-
Notifications
You must be signed in to change notification settings - Fork 136
Expand file tree
/
Copy pathnbdclt.h
More file actions
50 lines (45 loc) · 873 Bytes
/
nbdclt.h
File metadata and controls
50 lines (45 loc) · 873 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef NBDCLT_H
#define NBDCLT_H
typedef struct {
char *name;
char *dev;
char *hostn;
char *port;
char *cert;
char *key;
char *cacert;
char *tlshostn;
int bs;
int timeout;
int nconn;
uint64_t force_size64;
uint64_t size64;
bool no_optgo;
bool persist;
bool swap;
bool sdp;
bool b_unix;
bool preinit;
bool force_ro;
bool tls;
bool persist_mode;
char *priority;
int dead_conn_timeout;
} CLIENT;
extern void nbdtab_set_property(char *property, char *val);
extern void nbdtab_set_flag(char *property);
extern void nbdtab_commit_line(char *devn, char *hostn, char *exportname);
extern void yyerror(char *msg);
typedef struct {
struct addrinfo *ai;
char *hostname;
char *port;
} saved_connection_t;
typedef struct {
saved_connection_t *conn;
uint16_t flags;
uint64_t size64;
int blocksize;
int timeout;
} persist_connection_t;
#endif