nbd-client: Add support for setting /sys/block/nbdN/backend
[nbd/ericb.git] / nbdclt.h
blob6ba349098127c585941c9fbc18f24472e11c89ed
1 #ifndef NBDCLT_H
2 #define NBDCLT_H
4 typedef struct {
5 char *name;
6 char *dev;
7 char *hostn;
8 char *port;
9 char *cert;
10 char *key;
11 char *cacert;
12 char *tlshostn;
13 int bs;
14 int timeout;
15 int nconn;
16 uint64_t force_size64;
17 uint64_t size64;
18 bool no_optgo;
19 bool persist;
20 bool swap;
21 bool sdp;
22 bool b_unix;
23 bool preinit;
24 bool force_ro;
25 bool tls;
26 char *priority;
27 } CLIENT;
29 extern void nbdtab_set_property(char *property, char *val);
30 extern void nbdtab_set_flag(char *property);
31 extern void nbdtab_commit_line(char *devn, char *hostn, char *exportname);
32 extern void yyerror(char *msg);
34 #endif