diff options
author | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
commit | 567be2b6589e5fa3e11bb103f046bec55f37dd6b (patch) | |
tree | 5c276c4fb82c4a010597898a4375556c92529249 /ldap/servers/slapd/slapi-plugin.h | |
parent | 6b1364ff27b4a9499089f76938fcd82da9e70baf (diff) | |
download | ds-567be2b6589e5fa3e11bb103f046bec55f37dd6b.tar.gz ds-567be2b6589e5fa3e11bb103f046bec55f37dd6b.tar.xz ds-567be2b6589e5fa3e11bb103f046bec55f37dd6b.zip |
Related: 207457
Summary: Add support for 64-bit counters (phase 1).
Diffstat (limited to 'ldap/servers/slapd/slapi-plugin.h')
-rw-r--r-- | ldap/servers/slapd/slapi-plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slapi-plugin.h b/ldap/servers/slapd/slapi-plugin.h index 8cfc51c0..43e783db 100644 --- a/ldap/servers/slapd/slapi-plugin.h +++ b/ldap/servers/slapd/slapi-plugin.h @@ -152,6 +152,7 @@ typedef struct slapi_rdn Slapi_RDN; typedef struct slapi_mod Slapi_Mod; typedef struct slapi_mods Slapi_Mods; typedef struct slapi_componentid Slapi_ComponentId; +typedef struct slapi_counter Slapi_Counter; /* Online tasks interface (to support import, export, etc) */ #define SLAPI_TASK_PUBLIC 1 /* tell old plugins that the task api is now public */ @@ -1340,6 +1341,17 @@ Slapi_Task *slapi_new_task(const char *dn); void slapi_destroy_task(void *arg); /* End of interface to support online tasks **********************************/ +/* Slapi_Counter Interface */ +Slapi_Counter *slapi_counter_new(); +void slapi_counter_init(Slapi_Counter *counter); +void slapi_counter_destroy(Slapi_Counter **counter); +PRUint64 slapi_counter_increment(Slapi_Counter *counter); +PRUint64 slapi_counter_decrement(Slapi_Counter *counter); +PRUint64 slapi_counter_add(Slapi_Counter *counter, PRUint64 addvalue); +PRUint64 slapi_counter_subtract(Slapi_Counter *counter, PRUint64 subvalue); +PRUint64 slapi_counter_set_value(Slapi_Counter *counter, PRUint64 newvalue); +PRUint64 slapi_counter_get_value(Slapi_Counter *counter); + /* Binder-based (connection centric) resource limits */ /* * Valid values for `type' parameter to slapi_reslimit_register(). |