[asterisk-commits] russell: branch group/timing r122799 - in /team/group/timing: include/asteris...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jun 14 13:36:55 CDT 2008
Author: russell
Date: Sat Jun 14 13:36:55 2008
New Revision: 122799
URL: http://svn.digium.com/view/asterisk?view=rev&rev=122799
Log:
Add ast_timing_init() so that some CLI commands can get registered
Modified:
team/group/timing/include/asterisk/_private.h
team/group/timing/main/asterisk.c
team/group/timing/main/timing.c
Modified: team/group/timing/include/asterisk/_private.h
URL: http://svn.digium.com/view/asterisk/team/group/timing/include/asterisk/_private.h?view=diff&rev=122799&r1=122798&r2=122799
==============================================================================
--- team/group/timing/include/asterisk/_private.h (original)
+++ team/group/timing/include/asterisk/_private.h Sat Jun 14 13:36:55 2008
@@ -37,6 +37,7 @@
int ast_http_init(void); /*!< Provided by http.c */
int ast_http_reload(void); /*!< Provided by http.c */
int ast_tps_init(void); /*!< Provided by taskprocessor.c */
+int ast_timing_init(void); /*!< Provided by timing.c */
/*!
* \brief Reload asterisk modules.
Modified: team/group/timing/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/group/timing/main/asterisk.c?view=diff&rev=122799&r1=122798&r2=122799
==============================================================================
--- team/group/timing/main/asterisk.c (original)
+++ team/group/timing/main/asterisk.c Sat Jun 14 13:36:55 2008
@@ -3306,6 +3306,11 @@
ast_autoservice_init();
+ if (ast_timing_init()) {
+ printf("%s", term_quit());
+ exit(1);
+ }
+
if (load_modules(1)) { /* Load modules, pre-load only */
printf("%s", term_quit());
exit(1);
Modified: team/group/timing/main/timing.c
URL: http://svn.digium.com/view/asterisk/team/group/timing/main/timing.c?view=diff&rev=122799&r1=122798&r2=122799
==============================================================================
--- team/group/timing/main/timing.c (original)
+++ team/group/timing/main/timing.c Sat Jun 14 13:36:55 2008
@@ -29,6 +29,7 @@
#include "asterisk/timing.h"
#include "asterisk/lock.h"
+#include "asterisk/_private.h"
AST_RWLOCK_DEFINE_STATIC(lock);
@@ -192,3 +193,8 @@
return result;
}
+
+int ast_timing_init(void)
+{
+ return 0;
+}
More information about the asterisk-commits
mailing list