From 810de0a90148d5dc7fe5919949220a00d14f6447 Mon Sep 17 00:00:00 2001 From: Ren Kararou Date: Mon, 30 Dec 2024 15:30:46 -0600 Subject: fix silly errors in last commit; start impl of handlers --- src/handlers.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/handlers.c (limited to 'src/handlers.c') 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 +#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; +} + -- cgit 1.4.1-2-gfad0