chiark / gitweb /
mac fix
[disorder] / server / trackdb.h
index 3e7976aaebdb2ec756b5f658cec5f75bf0c4a42c..fe43474ca0b1652b07145672c9eb6f767fb32630 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of DisOrder
- * Copyright (C) 2005, 2006 Richard Kettlewell
+ * Copyright (C) 2005, 2006, 2007 Richard Kettlewell
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,11 @@ void trackdb_close(void);
 char **trackdb_stats(int *nstatsp);
 /* return a list of database stats */
 
+void trackdb_stats_subprocess(struct ev_source *ev,
+                              void (*done)(char *data, void *u),
+                              void *u);
+/* collect stats in background and call done() with results */
+
 int trackdb_set(const char *track,
                 const char *name,
                 const char *value);
@@ -119,6 +124,8 @@ const char *trackdb_get_global(const char *name);
 
 char **trackdb_new(int *ntracksp, int maxtracks);
 
+void trackdb_expire_noticed(time_t when);
+
 #endif /* TRACKDB_H */
 
 /*