[asterisk-commits] ivaxer: branch ivaxer/ast_storage r276116 - in /team/ivaxer/ast_storage: incl...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 13 13:35:06 CDT 2010


Author: ivaxer
Date: Tue Jul 13 13:35:02 2010
New Revision: 276116

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276116
Log:
added flags argument to the ast_storage_open() function prototype

Modified:
    team/ivaxer/ast_storage/include/asterisk/storage.h
    team/ivaxer/ast_storage/main/storage.c

Modified: team/ivaxer/ast_storage/include/asterisk/storage.h
URL: http://svnview.digium.com/svn/asterisk/team/ivaxer/ast_storage/include/asterisk/storage.h?view=diff&rev=276116&r1=276115&r2=276116
==============================================================================
--- team/ivaxer/ast_storage/include/asterisk/storage.h (original)
+++ team/ivaxer/ast_storage/include/asterisk/storage.h Tue Jul 13 13:35:02 2010
@@ -126,7 +126,7 @@
 void ast_storage_fileinst_release(struct ast_storage_fileinst *fi);
 void ast_storage_dirobject_release(struct ast_storage_dirobject *dobj);
 
-int ast_storage_open(struct ast_storage_fileinst *fi);
+int ast_storage_open(struct ast_storage_fileinst *fi, int flags);
 int ast_storage_close(struct ast_storage_fileinst *fi);
 
 /*! \brief Get storage engine by name

Modified: team/ivaxer/ast_storage/main/storage.c
URL: http://svnview.digium.com/svn/asterisk/team/ivaxer/ast_storage/main/storage.c?view=diff&rev=276116&r1=276115&r2=276116
==============================================================================
--- team/ivaxer/ast_storage/main/storage.c (original)
+++ team/ivaxer/ast_storage/main/storage.c Tue Jul 13 13:35:02 2010
@@ -152,12 +152,12 @@
 	return st && st->be->put ? st->be->put(st, fo, exts) : -1;
 }
 
-int ast_storage_open(struct ast_storage_fileinst *fi, mode_t mode)
+int ast_storage_open(struct ast_storage_fileinst *fi, int flags)
 {
 	if (!fi)
 		return -1;
 
-	fi->fd = open(fi->localfile, mode);
+	fi->fd = open(fi->localfile, flags);
 	return fi->fd;
 }
 




More information about the asterisk-commits mailing list