python: use wrapped notmuch_*_t types instead of raw pointers
authorThomas Jost <schnouki@schnouki.net>
Tue, 6 Dec 2011 10:03:22 +0000 (11:03 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 6 Dec 2011 12:34:30 +0000 (13:34 +0100)
commit71e0082eff05f52709500109f1a194fdb03571e5
tree9dddd422aae01d34f84f3e7f6705e1bc337311df
parent672b6337b4adc5dda6070210ab30895075f7cf21
python: use wrapped notmuch_*_t types instead of raw pointers

Now that types are checked correctly, we also need to make sure that all the
arguments actually are instances of these types. Otherwise the function calls
will fail and raise an exception similar to this one:
   ctypes.ArgumentError: argument 3: <type 'exceptions.TypeError'>: expected
   LP_LP_NotmuchMessageS instance instead of pointer to c_void_p
bindings/python/notmuch/database.py