about summary refs log tree commit diff stats
path: root/src/handlers.c
diff options
context:
space:
mode:
authorRen Kararou <[email protected]>2024-12-30 15:30:46 -0600
committerRen Kararou <[email protected]>2024-12-30 15:30:46 -0600
commit810de0a90148d5dc7fe5919949220a00d14f6447 (patch)
tree61464902efd5718456561983825137a19dc80aa4 /src/handlers.c
parentd9111c41e8160c69a79e03e88b9219cb1c0ac27e (diff)
downloadnbtpd-810de0a90148d5dc7fe5919949220a00d14f6447.tar.gz
nbtpd-810de0a90148d5dc7fe5919949220a00d14f6447.tar.bz2
nbtpd-810de0a90148d5dc7fe5919949220a00d14f6447.zip
fix silly errors in last commit; start impl of handlers
Diffstat (limited to 'src/handlers.c')
-rw-r--r--src/handlers.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/handlers.c b/src/handlers.c
new file mode 100644
index 0000000..4162926
--- /dev/null
+++ b/src/handlers.c
@@ -0,0 +1,26 @@
+#include <sys/socket.h>
+#include "handlers.h"
+
+void read_req_resp(nbd_nbtpd_args args) {
+	if (args.path[0] == 0) {
+		nbd_nbtpd_resp_error(args);
+		return;
+	}
+	return;
+}
+
+void write_req_resp(nbd_nbtpd_args args) {
+	if (args.path[0] == 0) {
+		nbd_nbtpd_resp_error(args);
+		return;
+	}
+	return;
+}
+
+void nbd_nbtpd_resp_error(nbd_nbtpd_args args) {
+	if (args.path[0] == 0) {
+		return;
+	}
+	return;
+}
+