]> git.sur5r.net Git - openldap/blobdiff - include/ldap_rq.h
ITS#4943:
[openldap] / include / ldap_rq.h
index 551a1eada7bd1fb5fd7c03423e52f38d3adbfd7f..3f0cb1fe587e226954b436648b0731fd564d873e 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -27,6 +27,8 @@ typedef struct re_s {
        LDAP_STAILQ_ENTRY(re_s) rnext;
        ldap_pvt_thread_start_t *routine;
        void *arg;
+       char *tname;
+       char *tspec;
 } re_t;
 
 typedef struct runqueue_s {
@@ -35,12 +37,14 @@ typedef struct runqueue_s {
        ldap_pvt_thread_mutex_t rq_mutex;
 } runqueue_t;
 
-LDAP_F( void )
+LDAP_F( struct re_s* )
 ldap_pvt_runqueue_insert(
        struct runqueue_s* rq,
        time_t interval,
        ldap_pvt_thread_start_t* routine,
-       void *arg
+       void *arg,
+       char *tname,
+       char *tspec
 );
 
 LDAP_F( struct re_s* )
@@ -59,7 +63,7 @@ ldap_pvt_runqueue_remove(
 LDAP_F( struct re_s* )
 ldap_pvt_runqueue_next_sched(
        struct runqueue_s* rq,
-       struct timeval** next_run
+       struct timeval* next_run
 );
 
 LDAP_F( void )