[Freeswitch-svn] [commit] r5239 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Fri Jun 1 11:17:31 EDT 2007


Author: anthm
Date: Fri Jun  1 11:17:30 2007
New Revision: 5239

Modified:
   freeswitch/trunk/src/include/switch_apr.h
   freeswitch/trunk/src/switch_apr.c

Log:
add switch_file_printf to the api

Modified: freeswitch/trunk/src/include/switch_apr.h
==============================================================================
--- freeswitch/trunk/src/include/switch_apr.h	(original)
+++ freeswitch/trunk/src/include/switch_apr.h	Fri Jun  1 11:17:30 2007
@@ -732,6 +732,7 @@
  * be returned.  APR_EINTR is never returned.
  */
 SWITCH_DECLARE(switch_status_t) switch_file_write(switch_file_t * thefile, const void *buf, switch_size_t *nbytes);
+SWITCH_DECLARE(int) switch_file_printf(switch_file_t *thefile, const char *format, ...);
 
 SWITCH_DECLARE(switch_status_t) switch_file_mktemp(switch_file_t **thefile, char *templ, int32_t flags, switch_memory_pool_t *pool);
 

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Fri Jun  1 11:17:30 2007
@@ -335,6 +335,15 @@
 	return apr_file_write(thefile, buf, nbytes);
 }
 
+SWITCH_DECLARE(int) switch_file_printf(switch_file_t *thefile, const char *format, ...)
+{
+	va_list ap;
+    int ret;
+	ret = apr_file_printf(thefile, format, ap);
+	va_end(ap);
+    return ret;
+}
+
 SWITCH_DECLARE(switch_status_t) switch_file_mktemp(switch_file_t **thefile, char *templ, int32_t flags, switch_memory_pool_t *pool)
 {
 	return apr_file_mktemp(thefile, templ, flags, pool);



More information about the Freeswitch-svn mailing list