about summary refs log tree commit diff stats
path: root/inc/handlers.h
blob: 5aa073301fcd8241adf8e277fbd28bb13b93a5f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef NBD_NBTPD_HANDLERS_H
#define NBD_NBTPD_HANDLERS_H

#include <netinet/in.h>
#include "packet.h"

typedef struct {
	char path[768];
	char mode[32];
	int err;
	struct sockaddr_in client;
} nbd_nbtpd_args;

/// WARNING: use this only if you know what you are doing
void *read_req_resp(void *args);
/// WARNING: use this only if you know what you are doing
void *write_req_resp(void *args);
/// WARNING: use this only if you know what you are doing
void *nbd_nbtpd_resp_error(void *args);

#endif