mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
e075f52a75
In the Python/C API, conversion functions which check the types of their arguments have names like: double PyFloat_AsDouble(PyObject *pyfloat); while conversion macros that don't check have names like: PyFloat_AS_DOUBLE(pyfloat) The pyldb_Ldb_AsLdbContext() macro looks like one of the checking functions but it actually isn't. This has fooled us more than once. Here we fork the macro into two -- one which performs checks and keeps the camel case, and one with a shouty name that keeps the check-free behaviour. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> |
||
---|---|---|
.. | ||
tests | ||
ldb_ildap.c | ||
ldb_matching_rules.c | ||
ldb_matching_rules.h | ||
ldb_wrap.c | ||
ldb_wrap.h | ||
ldif_handlers.c | ||
ldif_handlers.h | ||
pyldb.c | ||
README | ||
samba_extensions.c | ||
wscript_build |
This directory contains Samba specific extensions to ldb. It also serves as example code on how to extend ldb for your own application. The main extension Samba uses is to provide ldif encode/decode routines for specific attributes, so users can get nice pretty printing of attributes in ldbedit, while the attributes are stored in the standard NDR format in the database.