]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add switch_vmprintf
authorMathieu Rene <mrene@avgs.ca>
Tue, 3 Mar 2009 19:01:21 +0000 (19:01 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 3 Mar 2009 19:01:21 +0000 (19:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12391 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_core_db.h
src/switch_core_db.c

index a85a471ace63c6469871b9013ca3ec1ab721798b..95351139517b171fc092a1c0c8caf40a3be3d393 100644 (file)
@@ -541,6 +541,11 @@ SWITCH_DECLARE(int) switch_core_db_changes(switch_core_db_t *db);
  */
 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:
index 94d4416b70af7a7e13a5379db66cdd26bd22e21d..863425139ed267267815d3919138600da68cd356 100644 (file)
@@ -180,6 +180,12 @@ SWITCH_DECLARE(char *) switch_mprintf(const char *zFormat, ...)
        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;