From 300433acda49569b82a33609f86d64694c531250 Mon Sep 17 00:00:00 2001 From: Ondrej Kuznik Date: Tue, 7 Feb 2012 16:09:44 +0100 Subject: [PATCH] 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. --- servers/slapd/back-monitor/back-monitor.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5