]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add switch_file_rename
authorMichael Jerris <mike@jerris.com>
Tue, 4 Dec 2007 21:05:10 +0000 (21:05 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 4 Dec 2007 21:05:10 +0000 (21:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6502 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_apr.h
src/switch_apr.c

index 601fb74ff267b895d8dbaa5c3dc6021089733770..b4a0d96184b17674804f87a30a3de7170d6047cd 100644 (file)
@@ -720,6 +720,8 @@ SWITCH_DECLARE(switch_status_t) switch_file_close(switch_file_t * thefile);
  */
 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.
index 33ca647b25c37bfc7de867229e7e67afc83c6af0..2f34e001f7dc51feb3a796f64baf86b5f0d5f657 100644 (file)
@@ -328,6 +328,11 @@ SWITCH_DECLARE(switch_status_t) switch_file_close(switch_file_t * thefile)
        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);