]> git.sur5r.net Git - openldap/commitdiff
move entry_stub to monitor_extra_t
authorPierangelo Masarati <ando@OpenLDAP.org>
Mon, 9 Apr 2012 16:15:31 +0000 (18:15 +0200)
committerPierangelo Masarati <ando@OpenLDAP.org>
Mon, 9 Apr 2012 16:18:21 +0000 (18:18 +0200)
servers/slapd/back-ldap/monitor.c
servers/slapd/back-monitor/back-monitor.h
servers/slapd/back-monitor/init.c
servers/slapd/back-monitor/proto-back-monitor.h

index 54a6a6d7f5aa7f89f4ad273e9d1b8f58d56c39a0..678feae5ca55bccecf88a2f0695e42009915af66 100644 (file)
@@ -589,7 +589,7 @@ ldap_back_monitor_conn_init(
        ms->mss_create = ldap_back_monitor_conn_create;
        ms->mss_destroy = ldap_back_monitor_subsystem_destroy;
 
-       e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn,
+       e = mbe->entry_stub( &ms->mss_dn, &ms->mss_ndn,
                &ms->mss_rdn,
                mi->mi_oc_monitorContainer, mi, NULL, NULL );
        if ( e == NULL ) {
@@ -749,7 +749,7 @@ ldap_back_monitor_ops_init(
        ms->mss_rdn = li->li_monitor_info.lmi_ops_rdn;
        ms->mss_destroy = ldap_back_monitor_subsystem_destroy;
 
-       parent = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn,
+       parent = mbe->entry_stub( &ms->mss_dn, &ms->mss_ndn,
                &ms->mss_rdn,
                mi->mi_oc_monitorContainer, mi, NULL, NULL );
        if ( parent == NULL ) {
@@ -779,7 +779,7 @@ ldap_back_monitor_ops_init(
                monitor_callback_t *cb;
                struct ldap_back_monitor_op_counter *counter;
 
-               e = monitor_entry_stub( &parent->e_name, &parent->e_nname,
+               e = mbe->entry_stub( &parent->e_name, &parent->e_nname,
                        &ldap_back_monitor_op[op].rdn,
                        mi->mi_oc_monitorCounterObject, mi, NULL, NULL );
                if ( e == NULL ) {
index 49618958cbba7745347d4c2c4bbd6fc13923ce06..cf33b7c0864ce794aa073f67c9e8dfe8d400a89a 100644 (file)
@@ -306,6 +306,13 @@ typedef struct monitor_extra_t {
        monitor_cbfunc *unregister_entry_parent;
        monitor_cbafunc *unregister_entry_attrs;
        monitor_cbfunc *unregister_entry_callback;
+       Entry * (*entry_stub)( struct berval *pdn,
+               struct berval *pndn,
+               struct berval *rdn,
+               ObjectClass *oc,
+               monitor_info_t  *mi,
+               struct berval *create,
+               struct berval *modify );
 } monitor_extra_t;
 
 LDAP_END_DECL
index 92e1c0e54cce415871b8b9afc7b61614fa478de0..894ba4a71592aa9ea7085cfcc462dfa268e5d509 100644 (file)
@@ -64,7 +64,9 @@ static const monitor_extra_t monitor_extra = {
        monitor_back_unregister_entry,
        monitor_back_unregister_entry_parent,
        monitor_back_unregister_entry_attrs,
-       monitor_back_unregister_entry_callback
+       monitor_back_unregister_entry_callback,
+
+       monitor_back_entry_stub
 };
        
 
index 776d08136a9757bf47f277688fb240927a287cec..cf0eba21b7cb35eb1baf67f18098a6b2193e0990 100644 (file)
@@ -128,14 +128,16 @@ monitor_entrypriv_create LDAP_P((
        void ));
 
 extern Entry *
-monitor_entry_stub LDAP_P((
+monitor_back_entry_stub LDAP_P((
        struct berval   *pdn,
        struct berval   *pndn,
        struct berval   *rdn,
        ObjectClass             *oc,
        monitor_info_t  *mi,
        struct berval   *create,
-       struct berval   *modify));
+       struct berval   *modify ));
+
+#define monitor_entry_stub monitor_back_entry_stub
 
 /*
  * init