]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/proto-back-monitor.h
Destroy monitor_info.mi_cache_mutex
[openldap] / servers / slapd / back-monitor / proto-back-monitor.h
index 0df5ebb1cd1fb524935de99171302eea7951f7de..70007135bde55b51884259f3ba63081af0ffd7b5 100644 (file)
@@ -68,6 +68,10 @@ monitor_cache_release LDAP_P((
        monitor_info_t          *mi,
        Entry                   *e ));
 
+extern int
+monitor_cache_destroy LDAP_P((
+       monitor_info_t          *mi ));
+
 /*
  * connections
  */
@@ -75,18 +79,6 @@ extern int
 monitor_subsys_conn_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_conn_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
-extern int
-monitor_subsys_conn_create LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       struct berval           *ndn,
-       Entry                   *e_parent,
-       Entry                   **ep ));
 
 /*
  * databases 
@@ -95,11 +87,6 @@ extern int
 monitor_subsys_database_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_database_modify LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * entry
@@ -190,11 +177,6 @@ extern int
 monitor_subsys_log_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_log_modify LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * operations
@@ -203,11 +185,6 @@ extern int
 monitor_subsys_ops_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_ops_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * overlay
@@ -224,11 +201,6 @@ extern int
 monitor_subsys_sent_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_sent_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * threads
@@ -237,11 +209,6 @@ extern int
 monitor_subsys_thread_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_thread_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * time
@@ -249,11 +216,6 @@ monitor_subsys_thread_update LDAP_P((
 extern int monitor_subsys_time_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_time_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
 
 /*
  * waiters
@@ -262,63 +224,6 @@ extern int
 monitor_subsys_rww_init LDAP_P((
        BackendDB               *be,
        monitor_subsys_t        *ms ));
-extern int
-monitor_subsys_rww_update LDAP_P((
-       Operation               *op,
-       SlapReply               *rs,
-       Entry                   *e ));
-
-/* NOTE: this macro assumes that bv has been allocated
- * by ber_* malloc functions or is { 0L, NULL } */
-#if defined(HAVE_BIGNUM)
-#define UI2BV(bv,ui) \
-       do { \
-               char            *val; \
-               ber_len_t       len; \
-               val = BN_bn2dec(ui); \
-               if (val) { \
-                       len = strlen(val); \
-                       if ( len > (bv)->bv_len ) { \
-                               (bv)->bv_val = ber_memrealloc( (bv)->bv_val, len + 1 ); \
-                       } \
-                       AC_MEMCPY((bv)->bv_val, val, len + 1); \
-                       (bv)->bv_len = len; \
-                       OPENSSL_free(val); \
-               } else { \
-                       ber_memfree( (bv)->bv_val ); \
-                       BER_BVZERO( (bv) ); \
-               } \
-       } while ( 0 )
-#elif defined(HAVE_GMP)
-/* NOTE: according to the documentation, the result 
- * of mpz_sizeinbase() can exceed the length of the
- * string representation of the number by 1
- */
-#define UI2BV(bv,ui) \
-       do { \
-               ber_len_t       len = mpz_sizeinbase( (ui), 10 ); \
-               if ( len > (bv)->bv_len ) { \
-                       (bv)->bv_val = ber_memrealloc( (bv)->bv_val, len + 1 ); \
-               } \
-               (void)mpz_get_str( (bv)->bv_val, 10, (ui) ); \
-               if ( (bv)->bv_val[ len - 1 ] == '\0' ) { \
-                       len--; \
-               } \
-               (bv)->bv_len = len; \
-       } while ( 0 )
-#else /* ! HAVE_BIGNUM && ! HAVE_GMP */
-#define UI2BV(bv,ui) \
-       do { \
-               char            buf[] = "+9223372036854775807L"; \
-               ber_len_t       len; \
-               snprintf( buf, sizeof( buf ), "%lu", (ui) ); \
-               len = strlen( buf ); \
-               if ( len > (bv)->bv_len ) { \
-                       (bv)->bv_val = ber_memrealloc( (bv)->bv_val, len + 1 ); \
-               } \
-               AC_MEMCPY( (bv)->bv_val, buf, len + 1 ); \
-       } while ( 0 )
-#endif /* ! HAVE_GMP */
 
 /*
  * former external.h