about summary refs log tree commit diff stats
path: root/inc/handlers.h
blob: 9f1988feb8e6a7815ecd2af192af2392382c69b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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];
	struct sockaddr_in client;
} nbd_nbtpd_args;

void read_req_resp(nbd_nbtpd_args args);
void write_req_resp(nbd_nbtpd_args args);
void nbd_nbtpd_resp_error(nbd_nbtpd_args args);

#endif