From 5fac716fb5bd10dc65ea422087bd7d15e718c756 Mon Sep 17 00:00:00 2001 From: leonard Date: Tue, 4 Aug 2009 05:39:10 +0000 Subject: [PATCH] Changed internal API List_to_LDAPControls() to LDAPControls_from_object() Reasons: exported symbols of the library should begin with "LDAP", also gives us a function with a converter signature we can use later. --- Modules/ldapcontrol.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Modules/ldapcontrol.h diff --git a/Modules/ldapcontrol.h b/Modules/ldapcontrol.h new file mode 100644 index 0000000..f615858 --- /dev/null +++ b/Modules/ldapcontrol.h @@ -0,0 +1,15 @@ +/* See http://www.python-ldap.org/ for details. + * $Id: ldapcontrol.h,v 1.6 2009/08/04 05:39:10 leonard Exp $ */ + +#ifndef __h_ldapcontrol +#define __h_ldapcontrol + +#include "common.h" +#include "ldap.h" + +void LDAPinit_control(PyObject *d); +void LDAPControl_List_DEL( LDAPControl** ); +int LDAPControls_from_object(PyObject *, LDAPControl ***); +PyObject* LDAPControls_to_List(LDAPControl **ldcs); + +#endif /* __h_ldapcontrol */