summaryrefslogtreecommitdiffstats
path: root/src/protocol.h
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-04-17 21:02:35 -0400
committerrsiddharth <s@ricketyspace.net>2020-04-17 21:02:35 -0400
commitb924fc2f66d46ee10aa3b800a6521d3940919f9f (patch)
tree130a19d8211874e3ba01203af0d2332506106be4 /src/protocol.h
parent1bab8e87d3875f672e7c36d10aea9e05f657c664 (diff)
nserver/ -> ./
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h
new file mode 100644
index 0000000..4640975
--- /dev/null
+++ b/src/protocol.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/*
+ * Copyright © 2020 rsiddharth <s@ricketyspace.net>
+ */
+
+#ifndef _protocol_h
+#define _protocol_h
+
+
+#include <bstrlib.h>
+#include <darray.h>
+#include <db.h>
+#include <hashmap.h>
+#include <stats.h>
+#include <tstree.h>
+#include <dbg.h>
+
+typedef struct Record {
+ bstring key;
+ Stats *st;
+ int deleted;
+} Record;
+
+int sscreate(char *key);
+int ssdelete(char *key);
+double sssample(char *key, double s);
+double ssmean(char *key);
+char *ssdump(char *key);
+char *sslist();
+int ssstore(char *key);
+int ssload(char *from, char *to);
+
+
+#endif