X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=database%2Fsubscription.h;fp=database%2Fsubscription.h;h=a7cf567f494154fcdbfd970712bcd75a898fb8b7;hb=ec8746b44dc85fd3e3b42835f779890684a9e90a;hp=3d8ce4f993dbe38d5339284baa97d2ff8a13c55e;hpb=dead5bdc521b34c85256737b616f4072a78dc2fb;p=blerg.git diff --git a/database/subscription.h b/database/subscription.h index 3d8ce4f..a7cf567 100644 --- a/database/subscription.h +++ b/database/subscription.h @@ -1,14 +1,15 @@ +/* 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); #endif /* _SUBSCRIPTION_H */