aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-24 20:29:41 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-24 20:29:41 +0000
commit10edb20a8e659e7a8468ec032aa5042fd70b6d86 (patch)
tree1affbf2f9fe7a7ec24e319146b7094431b6707e1 /main
parent2c162efa7e1633695c3a96027f3aefc7e00910c3 (diff)
Doxygen additions, corrections
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56665 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c24
-rw-r--r--main/config.c1
-rw-r--r--main/rtp.c10
3 files changed, 24 insertions, 11 deletions
diff --git a/main/channel.c b/main/channel.c
index 2ab07b7e5..a18251d84 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -72,12 +72,15 @@ struct channel_spy_trans {
struct ast_trans_pvt *path;
};
+/*! \brief List of SPY structures
+*/
struct ast_channel_spy_list {
struct channel_spy_trans read_translator;
struct channel_spy_trans write_translator;
AST_LIST_HEAD_NOLOCK(, ast_channel_spy) list;
};
+/*! \brief Definition of the Whisper buffer */
struct ast_channel_whisper_buffer {
ast_mutex_t lock;
struct ast_slinfactory sf;
@@ -88,10 +91,10 @@ struct ast_channel_whisper_buffer {
/* uncomment if you have problems with 'monitoring' synchronized files */
#if 0
#define MONITOR_CONSTANT_DELAY
-#define MONITOR_DELAY 150 * 8 /* 150 ms of MONITORING DELAY */
+#define MONITOR_DELAY 150 * 8 /*!< 150 ms of MONITORING DELAY */
#endif
-/*! Prevent new channel allocation if shutting down. */
+/*! \brief Prevent new channel allocation if shutting down. */
static int shutting_down;
static int uniqueint;
@@ -101,22 +104,25 @@ unsigned long global_fin, global_fout;
AST_THREADSTORAGE(state2str_threadbuf);
#define STATE2STR_BUFSIZE 32
-/*! 100ms */
-#define AST_DEFAULT_EMULATE_DTMF_DURATION 100
+#define AST_DEFAULT_EMULATE_DTMF_DURATION 100 /*!< 100ms */
+/*! \brief List of channel drivers */
struct chanlist {
const struct ast_channel_tech *tech;
AST_LIST_ENTRY(chanlist) list;
};
-/*! the list of registered channel types */
+/*! \brief the list of registered channel types */
static AST_LIST_HEAD_NOLOCK_STATIC(backends, chanlist);
-/*! the list of channels we have. Note that the lock for this list is used for
+/*! \brief the list of channels we have. Note that the lock for this list is used for
both the channels list and the backends list. */
static AST_LIST_HEAD_STATIC(channels, ast_channel);
-/*! map AST_CAUSE's to readable string representations */
+/*! \brief map AST_CAUSE's to readable string representations
+ *
+ * \ref causes.h
+*/
const struct ast_cause {
int cause;
const char *name;
@@ -184,6 +190,7 @@ struct ast_variable *ast_channeltype_list(void)
return var;
}
+/*! \brief Show channel types - CLI command */
static int show_channeltypes(int fd, int argc, char *argv[])
{
#define FORMAT "%-10.10s %-40.40s %-12.12s %-12.12s %-12.12s\n"
@@ -211,6 +218,7 @@ static int show_channeltypes(int fd, int argc, char *argv[])
}
+/*! \brief Show details about a channel driver - CLI command */
static int show_channeltype(int fd, int argc, char *argv[])
{
struct chanlist *cl = NULL;
@@ -428,6 +436,7 @@ int ast_channel_register(const struct ast_channel_tech *tech)
return 0;
}
+/*! \brief Unregister channel driver */
void ast_channel_unregister(const struct ast_channel_tech *tech)
{
struct chanlist *chan;
@@ -451,6 +460,7 @@ void ast_channel_unregister(const struct ast_channel_tech *tech)
AST_LIST_UNLOCK(&channels);
}
+/*! \brief Get handle to channel driver based on name */
const struct ast_channel_tech *ast_get_channel_tech(const char *name)
{
struct chanlist *chanls;
diff --git a/main/config.c b/main/config.c
index 023be5fb5..ee9d03a0d 100644
--- a/main/config.c
+++ b/main/config.c
@@ -70,6 +70,7 @@ static char *lline_buffer; /*!< A buffer for stuff behind the ; */
static int lline_buffer_size;
+/*! \brief Structure to keep comments for rewriting configuration files */
struct ast_comment {
struct ast_comment *next;
char cmt[0];
diff --git a/main/rtp.c b/main/rtp.c
index afb5c256a..728eaa849 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3277,10 +3277,6 @@ static enum ast_bridge_result bridge_p2p_loop(struct ast_channel *c0, struct ast
return res;
}
-/*! \brief Bridge calls. If possible and allowed, initiate
- re-invite so the peers exchange media directly outside
- of Asterisk.
-*/
/*! \page AstRTPbridge The Asterisk RTP bridge
The RTP bridge is called from the channel drivers that are using the RTP
subsystem in Asterisk - like SIP, H.323 and Jingle/Google Talk.
@@ -3306,6 +3302,12 @@ static enum ast_bridge_result bridge_p2p_loop(struct ast_channel *c0, struct ast
- ast_rtp_bridge()
- ast_channel_early_bridge()
- ast_channel_bridge()
+ - rtp.c
+ - rtp.h
+*/
+/*! \brief Bridge calls. If possible and allowed, initiate
+ re-invite so the peers exchange media directly outside
+ of Asterisk.
*/
enum ast_bridge_result ast_rtp_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc, int timeoutms)
{