diff options
author | Andrew Bartlett <abartlet@samba.org> | 2016-03-08 10:39:24 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-03-15 20:29:34 +0100 |
commit | 6e83a845667f6325fca36760f718c71e021c4034 (patch) | |
tree | 885ca55a652af80f96af6460241e0530c5f6091e /lib | |
parent | b9d924a676733e541055fc9985926062abd99a59 (diff) | |
download | samba-6e83a845667f6325fca36760f718c71e021c4034.tar.gz |
pyldb: Add warning about pyldb_MessageElement_AsMessageElement()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit 02de793e013c1905cccc0c760bb64f45d37e3051)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/pyldb.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ldb/pyldb.h b/lib/ldb/pyldb.h index f8aea2242b4..e0cce1e89d2 100644 --- a/lib/ldb/pyldb.h +++ b/lib/ldb/pyldb.h @@ -60,11 +60,18 @@ typedef struct { } PyLdbModuleObject; #define pyldb_Module_AsModule(pyobj) ((PyLdbModuleObject *)pyobj)->mod +/* + * NOTE: el (and so the return value of + * pyldb_MessageElement_AsMessageElement()) may not be a valid talloc + * context, it could be part of an array + */ + typedef struct { PyObject_HEAD TALLOC_CTX *mem_ctx; struct ldb_message_element *el; } PyLdbMessageElementObject; + #define pyldb_MessageElement_AsMessageElement(pyobj) ((PyLdbMessageElementObject *)pyobj)->el typedef struct { |