diff options
author | Michael Adam <obnox@samba.org> | 2008-03-26 10:45:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-26 10:50:35 +0100 |
commit | 6efe4873dcaa78520840a57264881d7b47036b91 (patch) | |
tree | eff1b99f66b50f66b21ad57bdd2b18d097ad8ac5 | |
parent | a4a90c62e6d843599138ca46f6488dca0398aac3 (diff) | |
download | samba-6efe4873dcaa78520840a57264881d7b47036b91.tar.gz samba-6efe4873dcaa78520840a57264881d7b47036b91.tar.bz2 samba-6efe4873dcaa78520840a57264881d7b47036b91.zip |
util_tdb: make the _byblob fetch/store functions public again.
Users of these are currently being written...
Michael
(This used to be commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)
-rw-r--r-- | source3/include/util_tdb.h | 4 | ||||
-rw-r--r-- | source3/lib/util_tdb.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/source3/include/util_tdb.h b/source3/include/util_tdb.h index 0a8eb935a3..f9049c33b0 100644 --- a/source3/include/util_tdb.h +++ b/source3/include/util_tdb.h @@ -65,9 +65,13 @@ int tdb_read_lock_bystring_with_timeout(TDB_CONTEXT *tdb, const char *keyval, unsigned int timeout); void tdb_read_unlock_bystring(TDB_CONTEXT *tdb, const char *keyval); +int32 tdb_fetch_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key); int32 tdb_fetch_int32(struct tdb_context *tdb, const char *keystr); +bool tdb_store_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 value); bool tdb_store_uint32(struct tdb_context *tdb, const char *keystr, uint32 value); +int tdb_store_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, int32 v); int tdb_store_int32(struct tdb_context *tdb, const char *keystr, int32 v); +bool tdb_fetch_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 *value); bool tdb_fetch_uint32(struct tdb_context *tdb, const char *keystr, uint32 *value); int32 tdb_change_int32_atomic(struct tdb_context *tdb, const char *keystr, int32 *oldval, int32 change_val); bool tdb_change_uint32_atomic(TDB_CONTEXT *tdb, const char *keystr, diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index 0c56e10163..e9c2d31637 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -167,7 +167,7 @@ void tdb_read_unlock_bystring(TDB_CONTEXT *tdb, const char *keyval) Output is int32 in native byte order. ****************************************************************************/ -static int32 tdb_fetch_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key) +int32 tdb_fetch_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key) { TDB_DATA data; int32 ret; @@ -200,7 +200,7 @@ int32 tdb_fetch_int32(TDB_CONTEXT *tdb, const char *keystr) Input is int32 in native byte order. Output in tdb is in little-endian. ****************************************************************************/ -static int tdb_store_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, int32 v) +int tdb_store_int32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, int32 v) { TDB_DATA data; int32 v_store; @@ -229,7 +229,7 @@ int tdb_store_int32(TDB_CONTEXT *tdb, const char *keystr, int32 v) Output is uint32 in native byte order. ****************************************************************************/ -static bool tdb_fetch_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 *value) +bool tdb_fetch_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 *value) { TDB_DATA data; @@ -261,7 +261,7 @@ bool tdb_fetch_uint32(TDB_CONTEXT *tdb, const char *keystr, uint32 *value) Input is uint32 in native byte order. Output in tdb is in little-endian. ****************************************************************************/ -static bool tdb_store_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 value) +bool tdb_store_uint32_byblob(TDB_CONTEXT *tdb, TDB_DATA key, uint32 value) { TDB_DATA data; uint32 v_store; |