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_wrap.c | |
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_wrap.c')
-rw-r--r-- | source4/lib/tdb/tdb_wrap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/lib/tdb/tdb_wrap.c b/source4/lib/tdb/tdb_wrap.c index 27da552d33..32665d79fd 100644 --- a/source4/lib/tdb/tdb_wrap.c +++ b/source4/lib/tdb/tdb_wrap.c @@ -3628,7 +3628,10 @@ static PyMethodDef SwigMethods[] = { "S.__init__(name,hash_size=0,tdb_flags=TDB_DEFAULT,flags=O_RDWR,mode=0600)\n" "Open a TDB file.\n" ""}, - { (char *)"Tdb_error", (PyCFunction)_wrap_Tdb_error, METH_O, NULL}, + { (char *)"Tdb_error", (PyCFunction)_wrap_Tdb_error, METH_O, (char *)"\n" + "S.error() -> int\n" + "Find last error number returned by operation on this TDB.\n" + ""}, { (char *)"delete_Tdb", (PyCFunction)_wrap_delete_Tdb, METH_O, NULL}, { (char *)"Tdb_close", (PyCFunction)_wrap_Tdb_close, METH_O, (char *)"\n" "S.close() -> None\n" @@ -3651,7 +3654,10 @@ static PyMethodDef SwigMethods[] = { "S.store(key, value, flag=TDB_REPLACE) -> None\n" "Store an entry.\n" ""}, - { (char *)"Tdb_exists", (PyCFunction) _wrap_Tdb_exists, METH_VARARGS | METH_KEYWORDS, NULL}, + { (char *)"Tdb_exists", (PyCFunction) _wrap_Tdb_exists, METH_VARARGS | METH_KEYWORDS, (char *)"\n" + "S.exists(key) -> bool\n" + "Check whether key exists in this database.\n" + ""}, { (char *)"Tdb_firstkey", (PyCFunction)_wrap_Tdb_firstkey, METH_O, (char *)"\n" "S.firstkey() -> data\n" "Return the first key in this database.\n" |