| 1 |
#ifndef LDAPENTRY_H_ |
| 2 |
#define LDAPENTRY_H_ |
| 3 |
|
| 4 |
#define PY_SSIZE_T_CLEAN |
| 5 |
|
| 6 |
#include <Python.h> |
| 7 |
|
| 8 |
#include "ldapconnection.h" |
| 9 |
#include "ldapmodlist.h" |
| 10 |
|
| 11 |
typedef struct { |
| 12 |
PyDictObject dict; |
| 13 |
PyObject *dn; |
| 14 |
PyObject *deleted; |
| 15 |
LDAPConnection *conn; |
| 16 |
} LDAPEntry; |
| 17 |
|
| 18 |
extern PyTypeObject LDAPEntryType; |
| 19 |
|
| 20 |
PyObject *LDAPEntry_AddOrModify(LDAPEntry *self, int mod); |
| 21 |
int LDAPEntry_Rollback(LDAPEntry *self, LDAPModList* mods); |
| 22 |
LDAPModList *LDAPEntry_CreateLDAPMods(LDAPEntry *self); |
| 23 |
LDAPEntry *LDAPEntry_FromLDAPMessage(LDAPMessage *entrymsg, LDAPConnection *conn); |
| 24 |
PyObject *LDAPEntry_GetItem(LDAPEntry *self, PyObject *key); |
| 25 |
int LDAPEntry_SetItem(LDAPEntry *self, PyObject *key, PyObject *value); |
| 26 |
int LDAPEntry_SetConnection(LDAPEntry *self, LDAPConnection *conn); |
| 27 |
int LDAPEntry_SetDN(LDAPEntry *self, PyObject *value); |
| 28 |
|
| 29 |
#endif |