]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/back-monitor.h
publish updateref...
[openldap] / servers / slapd / back-monitor / back-monitor.h
index 115d0246789a8db3ff930e3178bb511935ff7710..8cd40f186b748a492bf06880741071bdf20e2bd0 100644 (file)
@@ -33,16 +33,16 @@ LDAP_BEGIN_DECL
 #undef MONITOR_DEFINE_LABELEDURI
 
 typedef struct monitor_callback_t {
-       int                     (*mc_update)( Operation *op, Entry *e, void *priv );
+       int                             (*mc_update)( Operation *op, SlapReply *rs, Entry *e, void *priv );
                                                /* update callback
                                                   for user-defined entries */
-       int                     (*mc_modify)( Operation *op, Entry *e, void *priv );
+       int                             (*mc_modify)( Operation *op, SlapReply *rs, Entry *e, void *priv );
                                                /* modify callback
                                                   for user-defined entries */
-       int                     (*mc_free)( Entry *e, void *priv );
+       int                             (*mc_free)( Entry *e, void *priv );
                                                /* update callback
                                                   for user-defined entries */
-       void                    *mc_private;    /* opaque pointer to
+       void                            *mc_private;    /* opaque pointer to
                                                   private data */
        struct monitor_callback_t       *mc_next;
 } monitor_callback_t;
@@ -81,7 +81,6 @@ typedef struct monitor_info_t {
        /*
         * Config parameters
         */
-       struct berval           mi_l;
        struct berval           mi_startTime;           /* don't free it! */
        struct berval           mi_creatorsName;        /* don't free it! */
 
@@ -121,17 +120,12 @@ typedef struct monitor_info_t {
        AttributeDescription    *mi_ad_monitorConnectionPeerDomain;
        AttributeDescription    *mi_ad_monitorConnectionStartTime;
        AttributeDescription    *mi_ad_monitorConnectionActivityTime;
+       AttributeDescription    *mi_ad_monitorIsShadow;
+       AttributeDescription    *mi_ad_monitorUpdateRef;
 
        /*
         * Generic description attribute
         */
-       AttributeDescription    *mi_ad_description;
-       AttributeDescription    *mi_ad_seeAlso;
-       AttributeDescription    *mi_ad_l;
-#ifdef MONITOR_DEFINE_LABELEDURI
-       /* enable if si_ad_labeledURI is removed from slap_schema */
-       AttributeDescription    *mi_ad_labeledURI;
-#endif /* MONITOR_DEFINE_LABELEDURI */
        AttributeDescription    *mi_ad_readOnly;
        AttributeDescription    *mi_ad_restrictedOperation;
 
@@ -245,6 +239,7 @@ typedef struct monitor_subsys_t {
        struct berval   mss_rdn;
        struct berval   mss_dn;
        struct berval   mss_ndn;
+       struct berval   mss_desc[ 3 ];
        int             mss_flags;
 #define MONITOR_F_OPENED       0x10000000U
 
@@ -256,12 +251,12 @@ typedef struct monitor_subsys_t {
        /* initialize entry and subentries */
        int             ( *mss_open )( BackendDB *, struct monitor_subsys_t *ms );
        /* update existing dynamic entry and subentries */
-       int             ( *mss_update )( Operation *, Entry * );
+       int             ( *mss_update )( Operation *, SlapReply *, Entry * );
        /* create new dynamic subentries */
-       int             ( *mss_create )( Operation *,
+       int             ( *mss_create )( Operation *, SlapReply *,
                                struct berval *ndn, Entry *, Entry ** );
        /* modify entry and subentries */
-       int             ( *mss_modify )( Operation *, Entry * );
+       int             ( *mss_modify )( Operation *, SlapReply *, Entry * );
 } monitor_subsys_t;
 
 extern BackendDB *be_monitor;
@@ -269,43 +264,6 @@ extern BackendDB *be_monitor;
 /* increase this bufsize if entries in string form get too big */
 #define BACKMONITOR_BUFSIZE    8192
 
-extern int
-monitor_back_register_entry(
-       Entry                   *e,
-       monitor_callback_t      *cb );
-
-extern int
-monitor_back_register_entry_parent(
-       Entry                   *e,
-       monitor_callback_t      *cb,
-       struct berval           *base,
-       int                     scope,
-       struct berval           *filter );
-
-extern int
-monitor_filter2ndn(
-       struct berval           *base,
-       int                     scope,
-       struct berval           *filter,
-       struct berval           *ndn );
-
-extern int
-monitor_back_register_entry_attrs(
-       struct berval           *ndn_in,
-       Attribute               *a,
-       monitor_callback_t      *cb,
-       struct berval           *base,
-       int                     scope,
-       struct berval           *filter );
-
-extern int
-monitor_back_register_entry_callback(
-       struct berval           *ndn,
-       monitor_callback_t      *cb,
-       struct berval           *base,
-       int                     scope,
-       struct berval           *filter );
-
 LDAP_END_DECL
 
 #include "proto-back-monitor.h"