]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/entry.c
Fix LBER_ERROR vs. -1 confusion.
[openldap] / servers / slapd / back-monitor / entry.c
index 036a6c511cb9d1a6ca5fed261efb907fd7c7d661..c764fd81007d1b93c838f8f5e79bb4a1f24eeb10 100644 (file)
@@ -1,12 +1,9 @@
 /* entry.c - monitor backend entry handling routines */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*
- * Copyright 2001 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
- * 
  * Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
  * 
  * This work has beed deveolped for the OpenLDAP Foundation 
@@ -64,7 +61,7 @@ monitor_entry_update(
 int
 monitor_entry_create(
        struct monitorinfo      *mi,
-       const char              *ndn,
+       struct berval           *ndn,
        Entry                   *e_parent,
        Entry                   **ep
 )
@@ -85,6 +82,28 @@ monitor_entry_create(
        return( 0 );
 }
 
+int
+monitor_entry_modify(
+       struct monitorinfo      *mi, 
+       Entry                   *e,
+       Modifications           *modlist
+)
+{
+       struct monitorentrypriv *mp;
+
+       assert( mi != NULL );
+       assert( e != NULL );
+       assert( e->e_private != NULL );
+
+       mp = ( struct monitorentrypriv * )e->e_private;
+
+       if ( mp->mp_info && mp->mp_info->mss_modify ) {
+               return ( *mp->mp_info->mss_modify )( mi, e, modlist );
+       }
+
+       return( 0 );
+}
+
 int
 monitor_entry_test_flags(
        struct monitorentrypriv *mp,