[asterisk-commits] ivaxer: branch ivaxer/ast_storage r275589 - in /team/ivaxer/ast_storage: incl...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 12 10:08:30 CDT 2010
Author: ivaxer
Date: Mon Jul 12 10:08:26 2010
New Revision: 275589
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275589
Log:
ast_storage public storage API fixes: changed prototype of the put() function
- added a third parameter "exts"
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=275589&r1=275588&r2=275589
==============================================================================
--- team/ivaxer/ast_storage/include/asterisk/storage.h (original)
+++ team/ivaxer/ast_storage/include/asterisk/storage.h Mon Jul 12 10:08:26 2010
@@ -55,7 +55,7 @@
struct ast_storage *(*create)(const char *uri);
int (*release)(struct ast_storage *st);
struct ast_storage_fileobject *(*get)(struct ast_storage *st, const char *objectname, const char *exts);
- int (*put)(struct ast_storage *st, struct ast_storage_fileobject *fo);
+ int (*put)(struct ast_storage *st, struct ast_storage_fileobject *fo, const char *exts);
int (*del)(struct ast_storage *st, struct ast_storage_fileobject *fo);
ssize_t (*read)(struct ast_storage *st, struct ast_storage_fileinst *fi, void *buf, size_t count);
ssize_t (*write)(struct ast_storage *st, struct ast_storage_fileinst *fi, void *buf, size_t count);
@@ -100,7 +100,7 @@
* \param st Storage instance
* \param fo File object to store
*/
-int ast_storage_put(struct ast_storage *st, struct ast_storage_fileobject *fo);
+int ast_storage_put(struct ast_storage *st, struct ast_storage_fileobject *fo, const char *exts);
int ast_storage_read(struct ast_storage *st, struct ast_storage_fileinst *fi, void *buf, size_t count);
int ast_storage_write(struct ast_storage *st, struct ast_storage_fileinst *fi, void *buf, size_t count);
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=275589&r1=275588&r2=275589
==============================================================================
--- team/ivaxer/ast_storage/main/storage.c (original)
+++ team/ivaxer/ast_storage/main/storage.c Mon Jul 12 10:08:26 2010
@@ -144,9 +144,9 @@
return st && st->be->get ? st->be->get(st, objectname, exts) : NULL;
}
-int ast_storage_put(struct ast_storage *st, struct ast_storage_fileobject *fo)
-{
- return st && st->be->put ? st->be->put(st, fo) : -1;
+int ast_storage_put(struct ast_storage *st, struct ast_storage_fileobject *fo, const char *exts)
+{
+ return st && st->be->put ? st->be->put(st, fo, exts) : -1;
}
int ast_storage_open(struct ast_storage_fileinst *fi, mode_t mode)
More information about the asterisk-commits
mailing list