From 7731832751ab9f3c6ddeb66f186d3d7fa1934a6d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 13:11:40 +0200 Subject: Adding upstream version 2.4.57+dfsg. Signed-off-by: Daniel Baumann --- contrib/ldapc++/src/LDAPModification.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/ldapc++/src/LDAPModification.h (limited to 'contrib/ldapc++/src/LDAPModification.h') diff --git a/contrib/ldapc++/src/LDAPModification.h b/contrib/ldapc++/src/LDAPModification.h new file mode 100644 index 0000000..f39f7b1 --- /dev/null +++ b/contrib/ldapc++/src/LDAPModification.h @@ -0,0 +1,30 @@ +// $OpenLDAP$ +/* + * Copyright 2000-2021 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + + +#ifndef LDAP_MODIFICATION_H +#define LDAP_MODIFICATION_H + +#include +#include + +class LDAPModification{ + public: + enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE}; + + LDAPModification(const LDAPAttribute& attr, mod_op op); + LDAPMod *toLDAPMod() const; + + const LDAPAttribute* getAttribute() const; + mod_op getOperation() const; + + private: + LDAPAttribute m_attr; + mod_op m_mod_op; + +}; +#endif //LDAP_MODIFICATION_H + -- cgit v1.2.3