Doxygen corrections

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45742 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Olle Johansson 19 years ago
parent 647704aca5
commit e19576388d

@ -77,12 +77,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/linkedlists.h" #include "asterisk/linkedlists.h"
struct eventqent { struct eventqent {
int usecount; /* # of clients who still need the event */ int usecount; /*!< # of clients who still need the event */
int category; int category;
struct eventqent *next; struct eventqent *next;
char eventdata[1]; /* really variable size, allocated by append_event() */ char eventdata[1]; /*!< really variable size, allocated by append_event() */
}; };
struct eventqent *master_eventq = NULL; /* Protected by the sessions list lock */ struct eventqent *master_eventq = NULL; /*!< Protected by the sessions list lock */
static int enabled = 0; static int enabled = 0;
static int portno = DEFAULT_MANAGER_PORT; static int portno = DEFAULT_MANAGER_PORT;
@ -91,7 +91,7 @@ static int displayconnects = 1;
static int timestampevents = 0; static int timestampevents = 0;
static int httptimeout = 60; static int httptimeout = 60;
static pthread_t accept_thread_ptr; /* the accept thread */ static pthread_t accept_thread_ptr; /*!< the accept thread */
static int block_sockets = 0; static int block_sockets = 0;
static int num_sessions = 0; static int num_sessions = 0;
@ -107,34 +107,34 @@ AST_THREADSTORAGE(astman_append_buf);
* with the socket. * with the socket.
*/ */
struct mansession { struct mansession {
pthread_t ms_t; /*! Execution thread, basically useless */ pthread_t ms_t; /*!< Execution thread, basically useless */
ast_mutex_t __lock; /*! Thread lock -- don't use in action callbacks, it's already taken care of */ ast_mutex_t __lock; /*!< Thread lock -- don't use in action callbacks, it's already taken care of */
/* XXX need to document which fields it is protecting */ /* XXX need to document which fields it is protecting */
struct sockaddr_in sin; /*! address we are connecting from */ struct sockaddr_in sin; /*!< address we are connecting from */
int fd; /*! descriptor used for output. Either the socket (AMI) or a temporary file (HTTP) */ int fd; /*!< descriptor used for output. Either the socket (AMI) or a temporary file (HTTP) */
int inuse; /*! number of HTTP sessions using this entry */ int inuse; /*!< number of HTTP sessions using this entry */
int needdestroy; /*! Whether an HTTP session should be destroyed */ int needdestroy; /*!< Whether an HTTP session should be destroyed */
pthread_t waiting_thread; /*! Whether an HTTP session has someone waiting on events */ pthread_t waiting_thread; /*!< Whether an HTTP session has someone waiting on events */
unsigned long managerid; /*! Unique manager identifer, 0 for AMI sessions */ unsigned long managerid; /*!< Unique manager identifer, 0 for AMI sessions */
time_t sessiontimeout; /*! Session timeout if HTTP */ time_t sessiontimeout; /*!< Session timeout if HTTP */
struct ast_dynamic_str *outputstr; /*! Output from manager interface */ struct ast_dynamic_str *outputstr; /*!< Output from manager interface */
char username[80]; /*! Logged in username */ char username[80]; /*!< Logged in username */
char challenge[10]; /*! Authentication challenge */ char challenge[10]; /*!< Authentication challenge */
int authenticated; /*! Authentication status */ int authenticated; /*!< Authentication status */
int readperm; /*! Authorization for reading */ int readperm; /*!< Authorization for reading */
int writeperm; /*! Authorization for writing */ int writeperm; /*!< Authorization for writing */
char inbuf[AST_MAX_MANHEADER_LEN]; /*! Buffer */ char inbuf[AST_MAX_MANHEADER_LEN]; /*!< Buffer */
int inlen; /*! number of buffered bytes */ int inlen; /*!< number of buffered bytes */
int send_events; /* XXX what ? */ int send_events; /*!< XXX what ? */
struct eventqent *eventq; /* last event processed. */ struct eventqent *eventq; /*!< last event processed. */
int writetimeout; /* Timeout for ast_carefulwrite() */ int writetimeout; /*!< Timeout for ast_carefulwrite() */
AST_LIST_ENTRY(mansession) list; AST_LIST_ENTRY(mansession) list;
}; };
static AST_LIST_HEAD_STATIC(sessions, mansession); static AST_LIST_HEAD_STATIC(sessions, mansession);
/* user descriptor, as read from the config file. /*! \brief user descriptor, as read from the config file.
* It is still missing some fields -- e.g. we can have multiple permit and deny * \note It is still missing some fields -- e.g. we can have multiple permit and deny
* lines which are not supported here, and readperm/writeperm/writetimeout * lines which are not supported here, and readperm/writeperm/writetimeout
* are not stored. * are not stored.
*/ */
@ -145,19 +145,19 @@ struct ast_manager_user {
char *permit; char *permit;
char *read; char *read;
char *write; char *write;
int displayconnects; /* XXX unused */ int displayconnects; /*!< XXX unused */
int keep; /* mark entries created on a reload */ int keep; /*!< mark entries created on a reload */
AST_LIST_ENTRY(ast_manager_user) list; AST_LIST_ENTRY(ast_manager_user) list;
}; };
/* list of users found in the config file */ /*! \brief list of users found in the config file */
static AST_LIST_HEAD_STATIC(users, ast_manager_user); static AST_LIST_HEAD_STATIC(users, ast_manager_user);
/* list of actions registered */ /*! \brief list of actions registered */
static struct manager_action *first_action = NULL; static struct manager_action *first_action = NULL;
AST_MUTEX_DEFINE_STATIC(actionlock); AST_MUTEX_DEFINE_STATIC(actionlock);
/* /*! \brief
* helper functions to convert back and forth between * helper functions to convert back and forth between
* string and numeric representation of set of flags * string and numeric representation of set of flags
*/ */
@ -236,7 +236,7 @@ static int get_perm(const char *instr)
return ret; return ret;
} }
/* /*!
* A number returns itself, false returns 0, true returns all flags, * A number returns itself, false returns 0, true returns all flags,
* other strings return the flags that are set. * other strings return the flags that are set.
*/ */
@ -281,7 +281,7 @@ static char *complete_show_mancmd(const char *line, const char *word, int pos, i
return ret; return ret;
} }
/* /*!
* lookup an entry in the list of registered users. * lookup an entry in the list of registered users.
* must be called with the list lock held. * must be called with the list lock held.
*/ */

Loading…
Cancel
Save