projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add subscription feed fetching, clean up a bit
[blerg.git]
/
database
/
subscription.h
diff --git
a/database/subscription.h
b/database/subscription.h
index
3d8ce4f
..
a7cf567
100644
(file)
--- 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 <stdint.h>
#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_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 */
#endif /* _SUBSCRIPTION_H */