X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=bindings-apr-util.git;a=blobdiff_plain;f=cbits%2Fhelper_apr_sdbm.c;fp=cbits%2Fhelper_apr_sdbm.c;h=a8392113ff7e0f23bdae232df9245e21ed690b0a;hp=0000000000000000000000000000000000000000;hb=825ad4620a5166cccbf7aec2f5fd17d66531afc4;hpb=a444a39e722aa75c85a12cda976a42cc057472fe diff --git a/cbits/helper_apr_sdbm.c b/cbits/helper_apr_sdbm.c new file mode 100644 index 0000000..a839211 --- /dev/null +++ b/cbits/helper_apr_sdbm.c @@ -0,0 +1,23 @@ +#include +#include + +BC_GLOBALARRAY(APR_SDBM_DIRFEXT, char) +BC_GLOBALARRAY(APR_SDBM_PAGFEXT, char) + +apr_status_t inline_apr_sdbm_fetch(apr_sdbm_t* db, + apr_sdbm_datum_t* value, + apr_sdbm_datum_t* key) { + return apr_sdbm_fetch(db, value, *key); +} + +apr_status_t inline_apr_sdbm_store(apr_sdbm_t* db, + apr_sdbm_datum_t* key, + apr_sdbm_datum_t* value, + int opt) { + return apr_sdbm_store(db, *key, *value, opt); +} + +apr_status_t inline_apr_sdbm_delete(apr_sdbm_t* db, + const apr_sdbm_datum_t* key) { + return apr_sdbm_delete(db, *key); +}