X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/fde4e4c428e58ec9a7c951f57cc523ed82dec1ca..b8ce9a84c57eba13a157d7c1074254b5ce6bebd3:/src/bio.h

diff --git a/src/bio.h b/src/bio.h
index ded0d2dc..22a9b33e 100644
--- a/src/bio.h
+++ b/src/bio.h
@@ -1,11 +1,11 @@
 /* Exported API */
 void bioInit(void);
-void bioCreateBackgroundJob(int type, void *data);
+void bioCreateBackgroundJob(int type, void *arg1, void *arg2, void *arg3);
 unsigned long long bioPendingJobsOfType(int type);
 void bioWaitPendingJobsLE(int type, unsigned long long num);
+time_t bioOlderJobOfType(int type);
 
 /* Background job opcodes */
-#define REDIS_BIO_ZERO_OP_ID    0 /* We don't use zero as it is the most likely
-                                   * passed value in case of bugs/races. */
-#define REDIS_BIO_CLOSE_FILE    1 /* Deferred close(2) syscall. */
-#define REDIS_BIO_MAX_OP_ID     1
+#define REDIS_BIO_CLOSE_FILE    0 /* Deferred close(2) syscall. */
+#define REDIS_BIO_AOF_FSYNC     1 /* Deferred AOF fsync. */
+#define REDIS_BIO_NUM_OPS       2