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.
This commit is contained in:
leonard
2009-08-04 05:39:10 +00:00
parent 0341c24b67
commit 5fac716fb5

15
Modules/ldapcontrol.h Normal file
View File

@@ -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 */