Skip to content

Commit

Permalink
More docs, rename struct from auth_req to request
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 20, 2013
1 parent 2ca0c8c commit 3419115
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/include/radiusd.h
Expand Up @@ -34,7 +34,7 @@ RCSIDH(radiusd_h, "$Id$")
#include <freeradius-devel/event.h>
#include <freeradius-devel/connection.h>

typedef struct auth_req REQUEST;
typedef struct request REQUEST;

#ifdef HAVE_PTHREAD_H
#include <pthread.h>
Expand Down Expand Up @@ -165,7 +165,7 @@ typedef int (*RAD_REQUEST_FUNP)(REQUEST *);
#define REQUEST_DATA_REGEX (0xadbeef00)
#define REQUEST_MAX_REGEX (8)

struct auth_req {
struct request {
#ifndef NDEBUG
uint32_t magic; //!< Magic number used to
//!< detect memory corruption,
Expand Down Expand Up @@ -268,10 +268,15 @@ struct auth_req {

const char *server;
REQUEST *parent;
radlog_func_t radlog; /* logging function, if set */
radlog_func_t radlog; //!< Function to call to output
//!< log messages about this
//!< request.
#ifdef WITH_COA
REQUEST *coa;
int num_coa_requests;
REQUEST *coa; //!< CoA request originated
//!< by this request.
int num_coa_requests;//!< Counter for number of
//!< requests sent including
//!< retransmits.
#endif
}; /* REQUEST typedef */

Expand Down

0 comments on commit 3419115

Please sign in to comment.