summaryrefslogtreecommitdiff
path: root/src/dged/bufread.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-09-17 08:47:03 +0200
committerAlbert Cervin <albert@acervin.com>2025-11-01 22:11:14 +0100
commit4459b8b3aa9d73895391785a99dcc87134e80601 (patch)
treea5204f447a0b2b05f63504c7fe958ef9bbf1918a /src/dged/bufread.h
parent4689f3f38277bb64981fc960e8e384e2d065d659 (diff)
downloaddged-4459b8b3aa9d73895391785a99dcc87134e80601.tar.gz
dged-4459b8b3aa9d73895391785a99dcc87134e80601.tar.xz
dged-4459b8b3aa9d73895391785a99dcc87134e80601.zip
More lsp support
This makes the LSP support complete for now: - Completion - Diagnostics - Goto implementation/declaration - Rename - Documentation - Find references
Diffstat (limited to 'src/dged/bufread.h')
-rw-r--r--src/dged/bufread.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dged/bufread.h b/src/dged/bufread.h
new file mode 100644
index 0000000..11a18ff
--- /dev/null
+++ b/src/dged/bufread.h
@@ -0,0 +1,13 @@
+#ifndef _BUFREAD_H
+#define _BUFREAD_H
+
+#include <stddef.h>
+#include <stdint.h>
+#include <sys/types.h>
+
+struct bufread;
+struct bufread *bufread_create(int fd, size_t capacity);
+void bufread_destroy(struct bufread *br);
+ssize_t bufread_read(struct bufread *br, uint8_t *buf, size_t count);
+
+#endif