pytdb: Add support for tdb_add_flags() & tdb_remove_flags()
authorKirill Smelkov <kirr@mns.spb.ru>
Sun, 19 Sep 2010 09:53:20 +0000 (13:53 +0400)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:38:13 +0000 (15:08 +1030)
commit7389f8a8a634c2fe0f068831326d92e6bfa0d046
treec5a52ef6b33030241049c9fb90c98a8ae11ecf67
parent5c4240c364c52073ca64fddf2aa2c1593db0093b
pytdb: Add support for tdb_add_flags() & tdb_remove_flags()

Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want
flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple.

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
lib/tdb/pytdb.c
lib/tdb/python/tests/simple.py