about summary refs log tree commit diff stats
path: root/src/handlers.c
blob: 788934d01531edc139cef8f5f3b224d429e90d6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdlib.h>
#include <sys/socket.h>
#include "handlers.h"

void *read_req_resp(void *args) {
	if ((*(nbd_nbtpd_args *)args).path[0] == 0) {
		nbd_nbtpd_resp_error(args);
		return (void *)NULL;
	}
	return (void *)NULL;
}

void *write_req_resp(void *args) {
	if ((*(nbd_nbtpd_args *)args).path[0] == 0) {
		nbd_nbtpd_resp_error(args);
		return (void *)NULL;
	}
	return (void *)NULL;
}

void *nbd_nbtpd_resp_error(void *args) {
	if ((*(nbd_nbtpd_args *)args).path[0] == 0) {
		return (void *)NULL;
	}
	return (void *)NULL;
}