]> git.sur5r.net Git - openldap/blobdiff - include/ldap_rq.h
Fixing bug in extensible filter indexing
[openldap] / include / ldap_rq.h
index 3344f902e1e9c83af972e26abda001490983098a..ee0cf47bea2abc55d57a9085e426cc761f08cfcb 100644 (file)
@@ -1,13 +1,32 @@
 /* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2004 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
 
-#ifdef LDAP_SYNCREPL
+#ifndef LDAP_RQ_H
+#define LDAP_RQ_H 1
+
+#include <ldap_cdefs.h>
+
+LDAP_BEGIN_DECL
 
 typedef struct re_s {
        struct timeval next_sched;
        struct timeval interval;
        LDAP_STAILQ_ENTRY(re_s) tnext; /* it includes running */
        LDAP_STAILQ_ENTRY(re_s) rnext;
-       void *private;
+       ldap_pvt_thread_start_t *routine;
+       void *arg;
 } re_t;
 
 typedef struct runqueue_s {
@@ -20,7 +39,8 @@ LDAP_F( void )
 ldap_pvt_runqueue_insert(
        struct runqueue_s* rq,
        time_t interval,
-       void *private
+       ldap_pvt_thread_start_t* routine,
+       void *arg
 );
 
 LDAP_F( void )
@@ -56,7 +76,15 @@ ldap_pvt_runqueue_isrunning(
 LDAP_F( void )
 ldap_pvt_runqueue_resched(
        struct runqueue_s* rq,
-       struct re_s* entry
+       struct re_s* entry,
+       int defer
 );
 
+LDAP_F( int )
+ldap_pvt_runqueue_persistent_backload(
+       struct runqueue_s* rq
+);
+
+LDAP_END_DECL
+
 #endif