Add some missing includes
[blerg.git] / database / subscription.h
index 3d8ce4f..a35c568 100644 (file)
@@ -1,14 +1,17 @@
+/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
+ * BSD-style license.  Please see the COPYING file for details.
+ */
 #ifndef _SUBSCRIPTION_H
 #define _SUBSCRIPTION_H
 
 #include <stdint.h>
-
-struct subscription_record {
-       char author[32];
-       uint64_t record;
-};
+#include "blergref.h"
 
 int subscription_add(const char *from, const char *to);
 int subscription_remove(const char *from, const char *to);
+int subscription_notify(const char *author, uint64_t record);
+struct blergref * subscription_list(const char *author, uint64_t offset, int *count, int direction);
+int is_subscribed(const char *from, const char *to);
+int subscription_count_items(const char *user);
 
 #endif /* _SUBSCRIPTION_H */