[asterisk-commits] mnicholson: branch group/res_fax r240409 - /team/group/res_fax/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 15 14:14:07 CST 2010
Author: mnicholson
Date: Fri Jan 15 14:14:03 2010
New Revision: 240409
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=240409
Log:
Tweaked doxygen docs and updated copyright info.
Modified:
team/group/res_fax/res/res_fax_spandsp.c
Modified: team/group/res_fax/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/res_fax/res/res_fax_spandsp.c?view=diff&rev=240409&r1=240408&r2=240409
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (original)
+++ team/group/res_fax/res/res_fax_spandsp.c Fri Jan 15 14:14:03 2010
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 2009, Digium, Inc.
+ * Copyright (C) 2009-2010, Digium, Inc.
*
* Matthew Nicholson <mnicholson at digium.com>
*
@@ -49,32 +49,15 @@
#define SPANDSP_FAX_TIMER_RATE 8000 / SPANDSP_FAX_SAMPLES /* 50 ticks per second, 20ms, 160 samples per second */
static void *spandsp_fax_new(struct ast_fax_session *s, struct ast_fax_tech_token *token);
-
-/*! \brief destroy a spandsp fax session */
static void spandsp_fax_destroy(struct ast_fax_session *s);
-
-/*! \brief */
static struct ast_frame *spandsp_fax_read(struct ast_fax_session *s);
-
-/*! \brief */
static int spandsp_fax_write(struct ast_fax_session *s, const struct ast_frame *f);
-
-/*! \brief */
static int spandsp_fax_start(struct ast_fax_session *s);
-
-/*! \brief */
static int spandsp_fax_cancel(struct ast_fax_session *s);
-
-/*! \brief */
static int spandsp_fax_switch_to_t38(struct ast_fax_session *s);
-/*! \brief */
static char *spandsp_fax_cli_show_capabilities(int fd);
-
-/*! \brief */
static char *spandsp_fax_cli_show_session(struct ast_fax_session *s, int fd);
-
-/*! \brief */
static char *spandsp_fax_cli_show_stats(int fd);
static struct ast_fax_tech spandsp_fax_tech = {
@@ -479,6 +462,8 @@
return NULL;
}
+/*! \brief Destroy a spandsp fax session.
+ */
static void spandsp_fax_destroy(struct ast_fax_session *s)
{
struct spandsp_pvt *p = s->tech_pvt;
@@ -558,6 +543,7 @@
}
}
+/*! \brief */
static int spandsp_fax_start(struct ast_fax_session *s)
{
struct spandsp_pvt *p = s->tech_pvt;
@@ -629,6 +615,7 @@
return 0;
}
+/*! \brief */
static int spandsp_fax_cancel(struct ast_fax_session *s)
{
struct spandsp_pvt *p = s->tech_pvt;
@@ -637,6 +624,7 @@
return 0;
}
+/*! \brief */
static int spandsp_fax_switch_to_t38(struct ast_fax_session *s)
{
struct spandsp_pvt *p = s->tech_pvt;
@@ -656,12 +644,14 @@
return 0;
}
+/*! \brief */
static char *spandsp_fax_cli_show_capabilities(int fd)
{
ast_cli(fd, "SEND RECEIVE T.38 G.711\n\n");
return CLI_SUCCESS;
}
+/*! \brief */
static char *spandsp_fax_cli_show_session(struct ast_fax_session *s, int fd)
{
struct spandsp_pvt *p = s->tech_pvt;
@@ -700,6 +690,7 @@
return CLI_SUCCESS;
}
+/*! \brief */
static char *spandsp_fax_cli_show_stats(int fd)
{
ast_mutex_lock(&spandsp_global_stats.lock);
More information about the asterisk-commits
mailing list