aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/buf.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-11-15 13:50:15 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-11-15 14:03:11 +0100
commit992ac5301fc8727d83017b242af2df9895eebfcc (patch)
tree4fdd21a61b54d368540d6ef65258f97473051381 /src/buf.h
parentclient: print the server response (diff)
downloadcimple-992ac5301fc8727d83017b242af2df9895eebfcc.tar.gz
cimple-992ac5301fc8727d83017b242af2df9895eebfcc.zip
implement a command to list runs
Diffstat (limited to '')
-rw-r--r--src/buf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/buf.h b/src/buf.h
new file mode 100644
index 0000000..033a54c
--- /dev/null
+++ b/src/buf.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2023 Egor Tensin <Egor.Tensin@gmail.com>
+ * This file is part of the "cimple" project.
+ * For details, see https://github.com/egor-tensin/cimple.
+ * Distributed under the MIT License.
+ */
+
+#ifndef __BUF_H__
+#define __BUF_H__
+
+#include <stdint.h>
+
+struct buf;
+
+int buf_create(struct buf **, const void *, uint32_t);
+int buf_create_from_string(struct buf **, const char *);
+void buf_destroy(struct buf *);
+
+uint32_t buf_get_size(const struct buf *);
+const void *buf_get_data(const struct buf *);
+
+#endif