[Asterisk-cvs] asterisk-addons mysql-vm-routines.h,1.1.1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Tue Nov 4 23:16:31 CST 2003
Update of /usr/cvsroot/asterisk-addons
In directory mongoose.digium.com:/tmp/cvs-serv12188
Modified Files:
mysql-vm-routines.h
Log Message:
Fix routines for vm
Index: mysql-vm-routines.h
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/mysql-vm-routines.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- mysql-vm-routines.h 26 Sep 2003 22:50:59 -0000 1.1.1.1
+++ mysql-vm-routines.h 5 Nov 2003 05:42:40 -0000 1.2
@@ -1,3 +1,9 @@
+/*
+ * to use mysql-vm-routines, set USE_MYSQL_VM_INTERFACE to 1
+ * in asterisk/apps/Makefile , then put this file into
+ * asterisk/apps/ and (re)build asterisk.
+*/
+
MYSQL *dbhandler=NULL;
ast_mutex_t mysqllock;
char dbuser[80];
@@ -127,15 +133,14 @@
static int sql_init(void)
{
-#ifdef USEMYSQLVM
+ static int res;
if ((res=mysql_login())) {
return(res);
}
-#endif
return 0;
}
-static int sql_close(void)
+static void sql_close(void)
{
mysql_logout();
}
More information about the svn-commits
mailing list