diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:26:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:26:13 +0930 |
commit | 0b81b07110c463300431a09f24e67144f97ad8b0 (patch) | |
tree | 2663dd4f519a712cef4dd036d37d8d61abc5673e /lib/tdb2/tdb1_open.c | |
parent | e9fe56cdf3285295642db09b70b673d865551b4a (diff) | |
download | samba-0b81b07110c463300431a09f24e67144f97ad8b0.tar.gz samba-0b81b07110c463300431a09f24e67144f97ad8b0.tar.bz2 samba-0b81b07110c463300431a09f24e67144f97ad8b0.zip |
tdb2: remove _PUBLIC_ in tdb1 functions.
They'll all be accessed via the tdb2 API.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 39f55294799c6443c0ad7bef09f1c113cf89d295)
Diffstat (limited to 'lib/tdb2/tdb1_open.c')
-rw-r--r-- | lib/tdb2/tdb1_open.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tdb2/tdb1_open.c b/lib/tdb2/tdb1_open.c index 7b548c1d05..7c5100e3d1 100644 --- a/lib/tdb2/tdb1_open.c +++ b/lib/tdb2/tdb1_open.c @@ -129,7 +129,7 @@ static int tdb1_already_open(dev_t device, try to call tdb1_error or tdb1_errname, just do strerror(errno). @param name may be NULL for internal databases. */ -_PUBLIC_ struct tdb1_context *tdb1_open(const char *name, int hash_size, int tdb1_flags, +struct tdb1_context *tdb1_open(const char *name, int hash_size, int tdb1_flags, int open_flags, mode_t mode) { return tdb1_open_ex(name, hash_size, tdb1_flags, open_flags, mode, NULL, NULL); @@ -162,7 +162,7 @@ static bool check_header_hash(struct tdb1_context *tdb, return check_header_hash(tdb, false, m1, m2); } -_PUBLIC_ struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int tdb1_flags, +struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int tdb1_flags, int open_flags, mode_t mode, const struct tdb1_logging_context *log_ctx, tdb1_hash_func hash_fn) @@ -450,7 +450,7 @@ _PUBLIC_ struct tdb1_context *tdb1_open_ex(const char *name, int hash_size, int * Set the maximum number of dead records per hash chain */ -_PUBLIC_ void tdb1_set_max_dead(struct tdb1_context *tdb, int max_dead) +void tdb1_set_max_dead(struct tdb1_context *tdb, int max_dead) { tdb->max_dead_records = max_dead; } @@ -460,7 +460,7 @@ _PUBLIC_ void tdb1_set_max_dead(struct tdb1_context *tdb, int max_dead) * * @returns -1 for error; 0 for success. **/ -_PUBLIC_ int tdb1_close(struct tdb1_context *tdb) +int tdb1_close(struct tdb1_context *tdb) { struct tdb1_context **i; int ret = 0; |