| 1 |
#ifndef LDAPCONNECTION_H_ |
| 2 |
#define LDAPCONNECTION_H_ |
| 3 |
|
| 4 |
#define PY_SSIZE_T_CLEAN |
| 5 |
|
| 6 |
#include <Python.h> |
| 7 |
#include "structmember.h" |
| 8 |
|
| 9 |
#include "utils.h" |
| 10 |
|
| 11 |
typedef struct { |
| 12 |
PyObject_HEAD |
| 13 |
PyObject *client; |
| 14 |
PyObject *pending_ops; |
| 15 |
LDAP *ld; |
| 16 |
char closed; |
| 17 |
char async; |
| 18 |
char ppolicy; |
| 19 |
char managedsait; |
| 20 |
char ignore_referrals; |
| 21 |
SOCKET csock; |
| 22 |
PyObject *socketpair; |
| 23 |
} LDAPConnection; |
| 24 |
|
| 25 |
extern PyTypeObject LDAPConnectionType; |
| 26 |
|
| 27 |
int LDAPConnection_IsClosed(LDAPConnection *self); |
| 28 |
int LDAPConnection_Searching(LDAPConnection *self, ldapsearchparams *params, PyObject *iterator); |
| 29 |
|
| 30 |
#endif |