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

Freeswitch SVN mikej at freeswitch.org
Tue Dec 4 16:05:10 EST 2007


Author: mikej
Date: Tue Dec  4 16:05:10 2007
New Revision: 6502

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

Log:
add switch_file_rename

Modified: freeswitch/trunk/src/include/switch_apr.h
==============================================================================
--- freeswitch/trunk/src/include/switch_apr.h	(original)
+++ freeswitch/trunk/src/include/switch_apr.h	Tue Dec  4 16:05:10 2007
@@ -720,6 +720,8 @@
  */
 SWITCH_DECLARE(switch_status_t) switch_file_remove(const char *path, switch_memory_pool_t *pool);
 
+SWITCH_DECLARE(switch_status_t) switch_file_rename(const char *from_path, const char *to_path, switch_memory_pool_t *pool);
+
 /**
  * Read data from the specified file.
  * @param thefile The file descriptor to read from.

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Tue Dec  4 16:05:10 2007
@@ -328,6 +328,11 @@
 	return apr_file_close(thefile);
 }
 
+SWITCH_DECLARE(switch_status_t) switch_file_rename(const char *from_path, const char *to_path, switch_memory_pool_t *pool)
+{
+	return apr_file_rename(from_path, to_path, pool);
+}
+
 SWITCH_DECLARE(switch_status_t) switch_file_remove(const char *path, switch_memory_pool_t *pool)
 {
 	return apr_file_remove(path, pool);



More information about the Freeswitch-svn mailing list