X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fsubscription.h;h=a35c568d9f0d50b9318a82121af340aa89e5684e;hb=35f91ea7421eb9bb1e6d024086be46eb0d7befb0;hp=3d8ce4f993dbe38d5339284baa97d2ff8a13c55e;hpb=bfc01c15f56c58cefc8680f7faed4c5e3650fa38;p=blerg.git diff --git a/database/subscription.h b/database/subscription.h index 3d8ce4f..a35c568 100644 --- a/database/subscription.h +++ b/database/subscription.h @@ -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 - -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 */