summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b0c076)
raw | patch | inline | side by side (parent: 3b0c076)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 1 Jul 2014 12:47:24 +0000 (14:47 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Fri, 29 Aug 2014 13:09:44 +0000 (15:09 +0200) |
src/openldap.c | patch | blob | history |
diff --git a/src/openldap.c b/src/openldap.c
index 24687e07bb192fc5b090e3cca66e6e7ce3d50bfe..391ec8348904035a4d9cad694e8f214ab6673924 100644 (file)
--- a/src/openldap.c
+++ b/src/openldap.c
return (-1);
}
return (0);
-} /* }}} ldap_config_set_bool */
+} /* }}} int ldap_config_set_bool */
static int ldap_config_add (oconfig_item_t *ci) /* {{{ */
{
return (0);
} /* }}} int ldap_config_add */
-static int ldap_config (oconfig_item_t *ci)
+static int ldap_config (oconfig_item_t *ci) /* {{{ */
{
int i;
int status = 0;
} /* for (ci->children) */
return (status);
-} /* int config */
+} /* }}} int ldap_config */
/* }}} End of configuration handling functions */
/* initialize ldap for each host */
-static int ldap_init_host (ldap_t *st)
+static int ldap_init_host (ldap_t *st) /* {{{ */
{
LDAP *ld;
int rc;
st->state = 1;
return (0);
}
-} /* static init_host (ldap_t *st) */
+} /* }}} static ldap_init_host */
-static void ldap_submit_value (const char *type, const char *type_instance,
+static void ldap_submit_value (const char *type, const char *type_instance, /* {{{ */
value_t value, ldap_t *st)
{
value_list_t vl = VALUE_LIST_INIT;
sizeof (vl.type_instance));
plugin_dispatch_values (&vl);
-} /* ldap_submit_value */
+} /* }}} void ldap_submit_value */
-static void ldap_submit_derive (const char *type, const char *type_instance,
+static void ldap_submit_derive (const char *type, const char *type_instance, /* {{{ */
derive_t d, ldap_t *st)
{
value_t v;
v.derive = d;
ldap_submit_value (type, type_instance, v, st);
-} /* void ldap_submit_derive */
+} /* }}} void ldap_submit_derive */
-static void ldap_submit_gauge (const char *type, const char *type_instance,
+static void ldap_submit_gauge (const char *type, const char *type_instance, /* {{{ */
gauge_t g, ldap_t *st)
{
value_t v;
v.gauge = g;
ldap_submit_value (type, type_instance, v, st);
-} /* void ldap_submit_gauge */
+} /* }}} void ldap_submit_gauge */
-static int ldap_read_host (user_data_t *ud)
+static int ldap_read_host (user_data_t *ud) /* {{{ */
{
ldap_t *st;
LDAPMessage *e, *result;
ldap_msgfree (result);
ldap_unbind_ext_s (st->ld, NULL, NULL);
return (0);
-} /* int ldap_read_host */
+} /* }}} int ldap_read_host */
-void module_register (void)
+void module_register (void) /* {{{ */
{
plugin_register_complex_config ("openldap", ldap_config);
-} /* void module_register */
+} /* }}} void module_register */