Skip to content

Commit

Permalink
Use doxygen headers for src/util files
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 25, 2016
1 parent 6eaa5cb commit 0847a26
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 41 deletions.
3 changes: 1 addition & 2 deletions src/util/atomic_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
* $Id$
*
* @brief Thread-safe queues.
* @file atomic_queue.c
* @file util/atomic_queue.c
*
* @copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alister Winfield
*/

RCSID("$Id$")

#include <stdint.h>
Expand Down
17 changes: 10 additions & 7 deletions src/util/channel.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* channel.c Two-way thread-safe channels
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Two-way thread-safe channels
* @file util/channel.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down Expand Up @@ -203,7 +206,7 @@ int fr_channel_send_request(fr_channel_t *ch, fr_channel_data_t *cd, fr_channel_

rad_assert(end->last_write <= when);
end->last_write = when;

/*
* Increment the number of outstanding packets. If we
* just sent a new one, wake up the other end.
Expand Down Expand Up @@ -343,7 +346,7 @@ int fr_channel_send_reply(fr_channel_t *ch, fr_channel_data_t *cd, fr_channel_da
*p_request = fr_channel_recv_request(ch);
return -1;
}

rad_assert(end->num_outstanding > 0);
end->num_outstanding--;

Expand Down
17 changes: 10 additions & 7 deletions src/util/message.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* message.c Messages for inter-thread communication.
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Messages for inter-thread communication
* @file util/message.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down Expand Up @@ -666,7 +669,7 @@ static void fr_message_gc(fr_message_set_t *ms, int max_to_clean)
* The newly allocated message is zeroed.
*
* @param[in] ms the message set
* @param[in] mr the message ring to allocate from
* @param[in] mr the message ring to allocate from
* @param[in] clean whether to clean the message ring
* @return
* - NULL on failed allocation
Expand Down Expand Up @@ -1304,7 +1307,7 @@ fr_message_t *fr_message_alloc_aligned(fr_message_set_t *ms, fr_message_t *m, si
uint8_t *p, *aligned_p;
intptr_t addr;
size_t aligned_size;


#ifndef NDEBUG
(void) talloc_get_type_abort(ms, fr_message_set_t);
Expand Down
13 changes: 8 additions & 5 deletions src/util/queue.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* queue.c Thread-unsafe queues.
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Thread-unsafe queues
* @file util/queue.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down
13 changes: 8 additions & 5 deletions src/util/ring_buffer.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* ring_buffer.c Simple ring buffers for packet contents.
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Simple ring buffers for packet contents
* @file util/ring_buffer.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down
13 changes: 8 additions & 5 deletions src/util/time.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* time.c Platform independent time functions
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Platform independent time functions
* @file util/time.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down
13 changes: 8 additions & 5 deletions src/util/track.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* track.c RADIUS packet tracking
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief RADIUS packet tracking
* @file util/track.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down
13 changes: 8 additions & 5 deletions src/util/worker.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
* worker.c Worker thread functiobns.
*
* Version: $Id$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Expand All @@ -16,8 +12,15 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/

/**
* $Id$
*
* @brief Worker thread functions.
* @file util/worker.c
*
* Copyright 2016 Alan DeKok <aland@freeradius.org>
* @copyright 2016 Alan DeKok <aland@freeradius.org>
*/
RCSID("$Id$")

Expand Down

0 comments on commit 0847a26

Please sign in to comment.