blob: d9390579671ad933bf0cd36d421e9dda3b15bd58 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _BLOCK_H_RPCGEN
#define _BLOCK_H_RPCGEN
#include <rpc/rpc.h>
#define ADDRESS "/var/run/gluster-block.socket"
#ifdef __cplusplus
extern "C" {
#endif
struct blockCreate {
char volume[255];
char volfileserver[255];
char gbid[127];
u_quad_t size;
char block_name[255];
};
typedef struct blockCreate blockCreate;
struct blockCreateCli {
char volume[255];
char volfileserver[255];
u_quad_t size;
char block_name[255];
char *block_hosts;
};
typedef struct blockCreateCli blockCreateCli;
struct blockResponse {
int exit;
char *out;
u_quad_t offset;
struct {
u_int xdata_len;
char *xdata_val;
} xdata;
};
typedef struct blockResponse blockResponse;
#define GLUSTER_BLOCK_CLI 212153113
#define GLUSTER_BLOCK_CLI_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define BLOCK_CREATE_CLI 1
extern blockResponse * block_create_cli_1(blockCreateCli *, CLIENT *);
extern blockResponse * block_create_cli_1_svc(blockCreateCli *, struct svc_req *);
extern int gluster_block_cli_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define BLOCK_CREATE_CLI 1
extern blockResponse * block_create_cli_1();
extern blockResponse * block_create_cli_1_svc();
extern int gluster_block_cli_1_freeresult ();
#endif /* K&R C */
#define GLUSTER_BLOCK 21215311
#define GLUSTER_BLOCK_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define BLOCK_CREATE 1
extern blockResponse * block_create_1(blockCreate *, CLIENT *);
extern blockResponse * block_create_1_svc(blockCreate *, struct svc_req *);
extern int gluster_block_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define BLOCK_CREATE 1
extern blockResponse * block_create_1();
extern blockResponse * block_create_1_svc();
extern int gluster_block_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_blockCreate (XDR *, blockCreate*);
extern bool_t xdr_blockCreateCli (XDR *, blockCreateCli*);
extern bool_t xdr_blockResponse (XDR *, blockResponse*);
#else /* K&R C */
extern bool_t xdr_blockCreate ();
extern bool_t xdr_blockCreateCli ();
extern bool_t xdr_blockResponse ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_BLOCK_H_RPCGEN */
|