diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-02-21 15:29:22 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-02-21 15:29:22 +1030 |
commit | 4e9072660a96324f8d9421f35593057b730ca185 (patch) | |
tree | ee1d0ad351b469bfa536a9dada2fb3fd8a558af9 /lib/tdb2/hash.c | |
parent | a63d731ae05af78bdc33db58880387169429753e (diff) | |
download | samba-4e9072660a96324f8d9421f35593057b730ca185.tar.gz samba-4e9072660a96324f8d9421f35593057b730ca185.tar.bz2 samba-4e9072660a96324f8d9421f35593057b730ca185.zip |
lib/tdb2: Mark public function as such
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/hash.c')
-rw-r--r-- | lib/tdb2/hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tdb2/hash.c b/lib/tdb2/hash.c index 619d56f811..0d4d7805ce 100644 --- a/lib/tdb2/hash.c +++ b/lib/tdb2/hash.c @@ -851,7 +851,7 @@ static enum TDB_ERROR chainlock(struct tdb_context *tdb, const TDB_DATA *key, /* lock/unlock one hash chain. This is meant to be used to reduce contention - it cannot guarantee how many records will be locked */ -enum TDB_ERROR tdb_chainlock(struct tdb_context *tdb, TDB_DATA key) +_PUBLIC_ enum TDB_ERROR tdb_chainlock(struct tdb_context *tdb, TDB_DATA key) { if (tdb->flags & TDB_VERSION1) { if (tdb1_chainlock(tdb, key) == -1) @@ -862,7 +862,7 @@ enum TDB_ERROR tdb_chainlock(struct tdb_context *tdb, TDB_DATA key) "tdb_chainlock"); } -void tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key) +_PUBLIC_ void tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key) { uint64_t h = tdb_hash(tdb, key.dptr, key.dsize); tdb_off_t lockstart, locksize; @@ -882,7 +882,7 @@ void tdb_chainunlock(struct tdb_context *tdb, TDB_DATA key) tdb_unlock_hashes(tdb, lockstart, locksize, F_WRLCK); } -enum TDB_ERROR tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key) +_PUBLIC_ enum TDB_ERROR tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key) { if (tdb->flags & TDB_VERSION1) { if (tdb1_chainlock_read(tdb, key) == -1) @@ -893,7 +893,7 @@ enum TDB_ERROR tdb_chainlock_read(struct tdb_context *tdb, TDB_DATA key) "tdb_chainlock_read"); } -void tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key) +_PUBLIC_ void tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key) { uint64_t h = tdb_hash(tdb, key.dptr, key.dsize); tdb_off_t lockstart, locksize; |