diff options
Diffstat (limited to 'source3')
-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; |