pyldb: add pyldb_check_type()
[gd/samba-autobuild/.git] / lib / ldb / pyldb.h
index 4fc89ec48142ee13941fedd66004bf4fa35533f6..dbe1d0fdb9e26cc05edf26eb6e72f1f6590b2946 100644 (file)
@@ -46,6 +46,8 @@ PyObject *pyldb_Dn_FromDn(struct ldb_dn *);
 bool pyldb_Object_AsDn(TALLOC_CTX *mem_ctx, PyObject *object, struct ldb_context *ldb_ctx, struct ldb_dn **dn);
 #define pyldb_Dn_AsDn(pyobj) ((PyLdbDnObject *)pyobj)->dn
 
+bool pyldb_check_type(PyObject *obj, const char *type_name);
+
 typedef struct {
        PyObject_HEAD
        TALLOC_CTX *mem_ctx;