diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 11:05:43 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 11:07:05 +0800 |
commit | 84ec0dd08c75344513fb4c912f835cadf5b28e49 (patch) | |
tree | 60c49797b602eb39551829b5fa0cd7c02252195a /git2d/x.h | |
parent | Makefile: Statically build Go (diff) | |
download | forge-84ec0dd08c75344513fb4c912f835cadf5b28e49.tar.gz forge-84ec0dd08c75344513fb4c912f835cadf5b28e49.tar.zst forge-84ec0dd08c75344513fb4c912f835cadf5b28e49.zip |
git2d: Separate the files a bit
Diffstat (limited to 'git2d/x.h')
-rw-r--r-- | git2d/x.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/git2d/x.h b/git2d/x.h new file mode 100644 index 0000000..4be5186 --- /dev/null +++ b/git2d/x.h @@ -0,0 +1,30 @@ +#include <err.h> +#include <errno.h> +#include <git2.h> +#include <pthread.h> +#include <signal.h> +#include <sys/socket.h> +#include <sys/stat.h> +#include <sys/types.h> +#include <sys/un.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "bare.h" + +#ifndef X_H +#define X_H + +typedef struct { + int fd; +} conn_io_t; + + +bare_error conn_read(void *buffer, void *dst, uint64_t sz); +bare_error conn_write(void *buffer, const void *src, uint64_t sz); + +void * session(void *_conn); + +#endif // X_H |