[Freeswitch-trunk] [commit] r12391 - in freeswitch/trunk/src: . include
FreeSWITCH SVN
mrene at freeswitch.org
Tue Mar 3 11:01:21 PST 2009
Author: mrene
Date: Tue Mar 3 13:01:21 2009
New Revision: 12391
Log:
Add switch_vmprintf
Modified:
freeswitch/trunk/src/include/switch_core_db.h
freeswitch/trunk/src/switch_core_db.c
Modified: freeswitch/trunk/src/include/switch_core_db.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core_db.h (original)
+++ freeswitch/trunk/src/include/switch_core_db.h Tue Mar 3 13:01:21 2009
@@ -541,6 +541,11 @@
*/
SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...);
+/*!
+ * \see switch_mprintf
+ */
+SWITCH_DECLARE(char *) switch_vmprintf(const char *zFormat, va_list ap);
+
SWITCH_END_EXTERN_C
#endif
/* For Emacs:
Modified: freeswitch/trunk/src/switch_core_db.c
==============================================================================
--- freeswitch/trunk/src/switch_core_db.c (original)
+++ freeswitch/trunk/src/switch_core_db.c Tue Mar 3 13:01:21 2009
@@ -180,6 +180,12 @@
return z;
}
+SWITCH_DECLARE(char *) switch_vmprintf(const char *zFormat, va_list ap)
+{
+
+ return sqlite3_vmprintf(zFormat, ap);
+}
+
SWITCH_DECLARE(switch_core_db_t *) switch_core_db_open_file(char *filename)
{
switch_core_db_t *db;
More information about the Freeswitch-trunk
mailing list