summary refs log tree commit diff
path: root/bounce.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-27 03:31:30 -0500
committerJune McEnroe <june@causal.agency>2020-02-27 03:31:30 -0500
commit1af25ef2e6dfd4cc6fc2e4e32e9cbb379fcf0c24 (patch)
tree680e291068b425b800499a3881965cc6d4235a1f /bounce.h
parentRe-sort STANDARDS section (diff)
downloadpounce-1af25ef2e6dfd4cc6fc2e4e32e9cbb379fcf0c24.tar.gz
pounce-1af25ef2e6dfd4cc6fc2e4e32e9cbb379fcf0c24.zip
Add causal.agency/consumer capability
Diffstat (limited to '')
-rw-r--r--bounce.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bounce.h b/bounce.h
index 1eb5ce9..d5f4170 100644
--- a/bounce.h
+++ b/bounce.h
@@ -70,6 +70,7 @@ static inline struct Message parse(char *line) {
 	X("away-notify", CapAwayNotify) \
 	X("batch", CapBatch) \
 	X("cap-notify", CapCapNotify) \
+	X("causal.agency/consumer", CapConsumer) \
 	X("causal.agency/passive", CapPassive) \
 	X("chghost", CapChghost) \
 	X("extended-join", CapExtendedJoin) \
@@ -91,6 +92,7 @@ enum Cap {
 	TagCaps = 0
 		| CapAccountTag
 		| CapBatch
+		| CapConsumer
 		| CapLabeledResponse
 		| CapMessageTags
 		| CapServerTime,
@@ -142,6 +144,7 @@ extern bool verbose;
 void ringAlloc(size_t len);
 void ringProduce(const char *line);
 size_t ringConsumer(const char *name);
+size_t ringPos(size_t consumer);
 size_t ringDiff(size_t consumer);
 const char *ringPeek(struct timeval *time, size_t consumer);
 const char *ringConsume(struct timeval *time, size_t consumer);