From: Ondrej Kuznik Date: Tue, 7 Feb 2012 15:09:44 +0000 (+0100) Subject: ITS#7182 Add mss_private for monitor subsystem. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7baac1d9b4dfb5b143f58458e52d747763829b45;p=openldap ITS#7182 Add mss_private for monitor subsystem. During initialization (and elsewhere), the subsystems have no way of storing local data. While embedding them inside a larger strusture and breaking out when needed (like the current back-ldap monitoring code currently does) works, it certainly does not add to readability. Notice that there is still no way to unregister an active subsystem. This patch does not attempt to include such functionality while it might actually be needed with the advent of SLAP_CONFIG_DELETE. --- diff --git a/servers/slapd/back-monitor/back-monitor.h b/servers/slapd/back-monitor/back-monitor.h index d98b946a77..49618958cb 100644 --- a/servers/slapd/back-monitor/back-monitor.h +++ b/servers/slapd/back-monitor/back-monitor.h @@ -268,6 +268,8 @@ typedef struct monitor_subsys_t { struct berval *ndn, Entry *, Entry ** ); /* modify entry and subentries */ int ( *mss_modify )( Operation *, SlapReply *, Entry * ); + + void *mss_private; } monitor_subsys_t; extern BackendDB *be_monitor;