From 1af25ef2e6dfd4cc6fc2e4e32e9cbb379fcf0c24 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 27 Feb 2020 03:31:30 -0500 Subject: Add causal.agency/consumer capability --- bounce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bounce.h') 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); -- cgit 1.4.1