[asterisk-commits] juggie: branch juggie/NoLossCDR r78524 - in /team/juggie/NoLossCDR: include/a...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 7 17:26:10 CDT 2007
Author: juggie
Date: Tue Aug 7 17:26:04 2007
New Revision: 78524
URL: http://svn.digium.com/view/asterisk?view=rev&rev=78524
Log:
compile error
Modified:
team/juggie/NoLossCDR/include/asterisk/cdr.h
team/juggie/NoLossCDR/main/cdr.c
Modified: team/juggie/NoLossCDR/include/asterisk/cdr.h
URL: http://svn.digium.com/view/asterisk/team/juggie/NoLossCDR/include/asterisk/cdr.h?view=diff&rev=78524&r1=78523&r2=78524
==============================================================================
--- team/juggie/NoLossCDR/include/asterisk/cdr.h (original)
+++ team/juggie/NoLossCDR/include/asterisk/cdr.h Tue Aug 7 17:26:04 2007
@@ -173,7 +173,7 @@
* \retval 0 on success.
* \retval -1 on error
*/
-int ast_cdr_register(const char *name, const char *name_detail, const char *desc, ast_cdrbe be);
+int ast_cdr_register(const char *name, const char *name_detail, const char *desc, ast_cdrbe be, void *be_data);
/*!
* \brief Unregister a CDR handling engine
Modified: team/juggie/NoLossCDR/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/juggie/NoLossCDR/main/cdr.c?view=diff&rev=78524&r1=78523&r2=78524
==============================================================================
--- team/juggie/NoLossCDR/main/cdr.c (original)
+++ team/juggie/NoLossCDR/main/cdr.c Tue Aug 7 17:26:04 2007
@@ -66,7 +66,6 @@
char name[20];
char name_detail[20];
char desc[80];
- void *data;
ast_cdrbe be;
void *be_data;
int cancel_thread;
@@ -92,7 +91,7 @@
/*! Register a CDR driver. Each registered CDR driver generates a CDR
\return 0 on success, -1 on failure
*/
-int ast_cdr_register(const char *name, const char *name_detail, const char *desc, ast_cdrbe be, void *data)
+int ast_cdr_register(const char *name, const char *name_detail, const char *desc, ast_cdrbe be, void *be_data)
{
struct ast_cdr_beitem *i = NULL;
@@ -123,9 +122,10 @@
if (name_detail)
ast_copy_string(i->name_detail, name_detail, sizeof(i->name_detail));
else
- i->name_detail = NULL;
+ ast_copy_string(i->name_detail, "", sizeof(i->name_detail));
+
ast_copy_string(i->desc, desc, sizeof(i->desc));
- i->data = data;
+ i->be_data = be_data;
ast_cond_init(&i->cdr_pending_cond, NULL);
if (ast_pthread_create_background(&i->cdr_thread, NULL, do_cdr, i) < 0)
ast_log(LOG_ERROR, "Unable to start CDR thread.\n");
More information about the asterisk-commits
mailing list