Commit bd7a6f67 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

Introduce lload_open_new_listener

parent 757c8bed
......@@ -702,6 +702,25 @@ lload_open_listener(
return 0;
}
int
lload_open_new_listener( const char *url, LDAPURLDesc *lud )
{
int rc, i, j = 0;
for ( i = 0; lload_listeners && lload_listeners[i] != NULL;
i++ ) /* count */
;
j = i;
i++;
lload_listeners = ch_realloc(
lload_listeners, ( i + 1 ) * sizeof(LloadListener *) );
rc = lload_open_listener( url, lud, &i, &j );
lload_listeners[j] = NULL;
return rc;
}
int lloadd_inited = 0;
int
......
......@@ -97,6 +97,7 @@ LDAP_SLAPD_F (void) connection_destroy( LloadConnection *c );
/*
* daemon.c
*/
LDAP_SLAPD_F (int) lload_open_new_listener( const char *urls, LDAPURLDesc *lud );
LDAP_SLAPD_F (int) lloadd_listeners_init( const char *urls );
LDAP_SLAPD_F (int) lloadd_daemon_destroy( void );
LDAP_SLAPD_F (int) lloadd_daemon( struct event_base *daemon_base );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment