Commit 619f7724 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

listener monitor

parent 5dfbf936
...@@ -4,12 +4,12 @@ SRCS = init.c search.c compare.c modify.c bind.c \ ...@@ -4,12 +4,12 @@ SRCS = init.c search.c compare.c modify.c bind.c \
operational.c \ operational.c \
cache.c entry.c \ cache.c entry.c \
backend.c database.c thread.c conn.c rww.c log.c \ backend.c database.c thread.c conn.c rww.c log.c \
operation.c sent.c operation.c sent.c listener.c
OBJS = init.lo search.lo compare.lo modify.lo bind.lo \ OBJS = init.lo search.lo compare.lo modify.lo bind.lo \
operational.lo \ operational.lo \
cache.lo entry.lo \ cache.lo entry.lo \
backend.lo database.lo thread.lo conn.lo rww.lo log.lo \ backend.lo database.lo thread.lo conn.lo rww.lo log.lo \
operation.lo sent.lo operation.lo sent.lo listener.lo
LDAP_INCDIR= ../../../include LDAP_INCDIR= ../../../include
LDAP_LIBDIR= ../../../libraries LDAP_LIBDIR= ../../../libraries
......
...@@ -52,8 +52,8 @@ struct monitorsubsys monitor_subsys[] = { ...@@ -52,8 +52,8 @@ struct monitorsubsys monitor_subsys[] = {
{ {
SLAPD_MONITOR_LISTENER, SLAPD_MONITOR_LISTENER_NAME, SLAPD_MONITOR_LISTENER, SLAPD_MONITOR_LISTENER_NAME,
{ 0L, NULL }, { 0L, NULL }, { 0L, NULL }, { 0L, NULL }, { 0L, NULL }, { 0L, NULL },
MONITOR_F_NONE, MONITOR_F_PERSISTENT_CH,
NULL, /* init */ monitor_subsys_listener_init,
NULL, /* update */ NULL, /* update */
NULL, /* create */ NULL, /* create */
NULL /* modify */ NULL /* modify */
......
...@@ -95,6 +95,11 @@ int monitor_subsys_ops_update LDAP_P(( struct monitorinfo *mi, Entry *e )); ...@@ -95,6 +95,11 @@ int monitor_subsys_ops_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
int monitor_subsys_sent_init LDAP_P(( BackendDB *be )); int monitor_subsys_sent_init LDAP_P(( BackendDB *be ));
int monitor_subsys_sent_update LDAP_P(( struct monitorinfo *mi, Entry *e )); int monitor_subsys_sent_update LDAP_P(( struct monitorinfo *mi, Entry *e ));
/*
* listener
*/
int monitor_subsys_listener_init LDAP_P(( BackendDB *be ));
LDAP_END_DECL LDAP_END_DECL
#endif #endif
...@@ -1820,3 +1820,7 @@ slap_sig_wake( int sig ) ...@@ -1820,3 +1820,7 @@ slap_sig_wake( int sig )
void slapd_add_internal(ber_socket_t s) { void slapd_add_internal(ber_socket_t s) {
slapd_add(s); slapd_add(s);
} }
Listener ** slapd_get_listeners(void) {
return slap_listeners;
}
...@@ -1032,6 +1032,7 @@ LDAP_SLAPD_F (void) slapd_add_internal(ber_socket_t s); ...@@ -1032,6 +1032,7 @@ LDAP_SLAPD_F (void) slapd_add_internal(ber_socket_t s);
LDAP_SLAPD_F (int) slapd_daemon_init( const char *urls ); LDAP_SLAPD_F (int) slapd_daemon_init( const char *urls );
LDAP_SLAPD_F (int) slapd_daemon_destroy(void); LDAP_SLAPD_F (int) slapd_daemon_destroy(void);
LDAP_SLAPD_F (int) slapd_daemon(void); LDAP_SLAPD_F (int) slapd_daemon(void);
LDAP_SLAPD_F (Listener **) slapd_get_listeners LDAP_P((void));
LDAP_SLAPD_F (void) slapd_set_write LDAP_P((ber_socket_t s, int wake)); LDAP_SLAPD_F (void) slapd_set_write LDAP_P((ber_socket_t s, int wake));
LDAP_SLAPD_F (void) slapd_clr_write LDAP_P((ber_socket_t s, int wake)); LDAP_SLAPD_F (void) slapd_clr_write LDAP_P((ber_socket_t s, int wake));
...@@ -1064,7 +1065,7 @@ LDAP_SLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op)); ...@@ -1064,7 +1065,7 @@ LDAP_SLAPD_F (int) do_extended LDAP_P((Connection *conn, Operation *op));
LDAP_SLAPD_V (ber_socket_t) dtblsize; LDAP_SLAPD_V (ber_socket_t) dtblsize;
LDAP_SLAPD_V (Listener **) slap_listeners;
LDAP_END_DECL LDAP_END_DECL
......
...@@ -239,3 +239,9 @@ slap_operational_hasSubordinate( int hs ) ...@@ -239,3 +239,9 @@ slap_operational_hasSubordinate( int hs )
return NULL; return NULL;
} }
Listener **
slapd_get_listeners(void)
{
return NULL;
}
Supports Markdown
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