summaryrefslogtreecommitdiffstats
path: root/ldap_helper.h
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-01-14 16:41:12 +0100
committerMartin Nagy <mnagy@redhat.com>2009-01-14 16:41:12 +0100
commitb5a1cfb1cded6a31719da75525aa6ffb7d0915f3 (patch)
treece37ffd4c18a918bd1977c89ff0bde8a36881b0f /ldap_helper.h
parent4a78983d04dc77729b75d1620c41f1d2d140e8cc (diff)
downloadldap_driver_testing-b5a1cfb1cded6a31719da75525aa6ffb7d0915f3.tar.gz
ldap_driver_testing-b5a1cfb1cded6a31719da75525aa6ffb7d0915f3.tar.xz
ldap_driver_testing-b5a1cfb1cded6a31719da75525aa6ffb7d0915f3.zip
Add LDAP helper routines.
Diffstat (limited to 'ldap_helper.h')
-rw-r--r--ldap_helper.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/ldap_helper.h b/ldap_helper.h
new file mode 100644
index 0000000..d7239f6
--- /dev/null
+++ b/ldap_helper.h
@@ -0,0 +1,30 @@
+/* Authors: Martin Nagy <mnagy@redhat.com>
+ *
+ * Copyright (C) 2008 Red Hat
+ * see file 'COPYING' for use and warranty information
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; version 2 only
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _LD_LDAP_HELPER_H_
+
+typedef struct ldap_db ldap_db_t;
+typedef struct ldap_instance ldap_instance_t;
+
+isc_result_t new_ldap_db(isc_mem_t *mctx, ldap_db_t **ldap_dbp,
+ const char * const *argv);
+void destroy_ldap_db(ldap_db_t **ldap_db);
+void get_zone_list(ldap_db_t *ldap_db);
+
+#endif /* !_LD_LDAP_HELPER_H_ */