| 1 | #ifndef LDAPSEARCHITER_H_ |
| 2 | #define LDAPSEARCHITER_H_ |
| 3 | |
| 4 | #define PY_SSIZE_T_CLEAN |
| 5 | |
| 6 | #include <Python.h> |
| 7 | |
| 8 | #include "ldapconnection.h" |
| 9 | |
| 10 | typedef struct { |
| 11 | PyObject_HEAD |
| 12 | PyObject *buffer; |
| 13 | LDAPConnection *conn; |
| 14 | ldapsearchparams *params; |
| 15 | struct berval *cookie; |
| 16 | int page_size; |
| 17 | LDAPVLVInfo *vlv_info; |
| 18 | char auto_acquire; |
| 19 | } LDAPSearchIter; |
| 20 | |
| 21 | extern PyTypeObject LDAPSearchIterType; |
| 22 | |
| 23 | LDAPSearchIter *LDAPSearchIter_New(LDAPConnection *conn); |
| 24 | |
| 25 | #endif /* LDAPSEARCHITER_H_ */ |