diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-06-08 04:20:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-06-08 04:20:26 +0200 |
commit | cad533c68e8100131dca364b76abdedac31f4184 (patch) | |
tree | d339242775aa3f44ff0fd9184ffdf6f4f4128d95 /source4/lib/tdb/tdb.i | |
parent | 3df0fee42d39301d276f4148ab9861514cbe7b6d (diff) | |
download | samba-cad533c68e8100131dca364b76abdedac31f4184.tar.gz samba-cad533c68e8100131dca364b76abdedac31f4184.tar.bz2 samba-cad533c68e8100131dca364b76abdedac31f4184.zip |
Add more docstrings in tdb.
(This used to be commit 3d798a1440603b7929955f2120f09ba1482885a1)
Diffstat (limited to 'source4/lib/tdb/tdb.i')
-rw-r--r-- | source4/lib/tdb/tdb.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/tdb/tdb.i b/source4/lib/tdb/tdb.i index 5f23568170..3d8b697732 100644 --- a/source4/lib/tdb/tdb.i +++ b/source4/lib/tdb/tdb.i @@ -160,6 +160,8 @@ typedef struct tdb_context { tdb(const char *name, int hash_size, int tdb_flags, int flags, mode_t mode) { return tdb_open(name, hash_size, tdb_flags, flags, mode); } + %feature("docstring") error "S.error() -> int\n" + "Find last error number returned by operation on this TDB."; enum TDB_ERROR error(); ~tdb() { tdb_close($self); } %feature("docstring") close "S.close() -> None\n" @@ -179,6 +181,8 @@ typedef struct tdb_context { %feature("docstring") store "S.store(key, value, flag=TDB_REPLACE) -> None\n" "Store an entry."; int store(TDB_DATA key, TDB_DATA dbuf, int flag); + %feature("docstring") exists "S.exists(key) -> bool\n" + "Check whether key exists in this database."; int exists(TDB_DATA key); %feature("docstring") firstkey "S.firstkey() -> data\n" "Return the first key in this database."; |