[asterisk-commits] ivaxer: branch ivaxer/ast_storage r275026 - /team/ivaxer/ast_storage/include/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 11:02:50 CDT 2010


Author: ivaxer
Date: Fri Jul  9 11:02:46 2010
New Revision: 275026

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275026
Log:
ast_storage API fixes
- extended/chaged the ast_storage fileobject and fileinst structures
- added ast_storage_fileinst_release() function to public API

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

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=275026&r1=275025&r2=275026
==============================================================================
--- team/ivaxer/ast_storage/include/asterisk/storage.h (original)
+++ team/ivaxer/ast_storage/include/asterisk/storage.h Fri Jul  9 11:02:46 2010
@@ -34,11 +34,13 @@
 struct ast_storage_fileinst {
 	int fd;
 	AST_RWLIST_ENTRY(ast_storage_fileinst) list;
-	char localfile[1];
+	char ext[16];
+	char localfile[64];
 };
 
 struct ast_storage_fileobject {
-	char name[256];
+	char objectname[256];
+	char pathname[256];
 	AST_RWLIST_HEAD(, ast_storage_fileinst) files;
 	AST_RWLIST_ENTRY(ast_storage_fileobject) list;
 };
@@ -121,6 +123,7 @@
 int ast_storage_seek(struct ast_storage *st, struct ast_storage_fileinst *fi);
 
 void ast_storage_fileobject_release(struct ast_storage_fileobject *fo);
+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, mode_t mode);




More information about the asterisk-commits mailing list