-
Notifications
You must be signed in to change notification settings - Fork 0
/
cvstool.h
168 lines (142 loc) · 4.32 KB
/
cvstool.h
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
//#ifndef _CVSTOOL_H_RPCGEN
//#define _CVSTOOL_H_RPCGEN
#include <rpc/rpc.h>
#include "cvstool_redefines.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CVSTOOL_PATHLEN 1024
#define CVSTOOL_NAMELEN 255
#define CVSTOOL_MAXENT 256
#define CVSTOOL_MAXVER 64
#define CVSTOOL_VERLEN 16
#define CVSTOOL_DATELEN 32
#define CVSTOOL_TAGLEN 32
enum cvstool_status {
CVSTOOL_OK = 0,
CVSTOOL_NOENT = 1,
CVSTOOL_NOEOF = 2,
CVSTOOL_CVSERR = 3,
CVSTOOL_OPT_MISMATCH = 4,
CVSTOOL_FTYPE_MISMATCH = 5,
CVSTOOL_NOVER = 6,
CVSTOOL_NOTAG = 7,
};
typedef enum cvstool_status cvstool_status;
typedef char *cvstool_path;
typedef char *cvstool_name;
typedef char *cvstool_ver;
typedef char *cvstool_date;
typedef char *cvstool_tag;
#define CVSTOOL_LS_LONG 0x00000001
#define CVSTOOL_LS_DIRECTORY 0x00000002
struct cvstool_ls_args {
cvstool_path path;
u_int options;
int num_resp;
};
typedef struct cvstool_ls_args cvstool_ls_args;
struct cvstool_ver_info {
cvstool_ver ver;
cvstool_name author;
cvstool_date date;
cvstool_tag tag;
struct cvstool_ver_info *next;
};
typedef struct cvstool_ver_info cvstool_ver_info;
struct cvstool_dirent {
cvstool_name name;
cvstool_ver_info ver_info;
struct cvstool_dirent *next;
};
typedef struct cvstool_dirent cvstool_dirent;
struct cvstool_ls_resp {
int num_resp;
cvstool_dirent *dirents;
cvstool_status status;
int eof;
};
typedef struct cvstool_ls_resp cvstool_ls_resp;
#define CVSTOOL_LSVER_LONG 0x00000001
#define CVSTOOL_LSVER_FROM 0x00000002
#define CVSTOOL_LSVER_PRE 0x00000004
struct cvstool_lsver_args {
cvstool_path path;
cvstool_ver from_ver;
u_int options;
int num_resp;
};
typedef struct cvstool_lsver_args cvstool_lsver_args;
struct cvstool_lsver_resp {
int num_resp;
cvstool_ver_info *vers;
cvstool_status status;
};
typedef struct cvstool_lsver_resp cvstool_lsver_resp;
#define CVSTOOL_UPDATE_DYNAMIC 0x00000001
#define CVSTOOL_UPDATE_VER 0x00000002
#define CVSTOOL_UPDATE_TAG 0x00000004
struct cvstool_update_args {
cvstool_path path;
cvstool_ver ver;
cvstool_tag tag;
u_int options;
};
typedef struct cvstool_update_args cvstool_update_args;
struct cvstool_update_resp {
cvstool_status status;
};
typedef struct cvstool_update_resp cvstool_update_resp;
#define CVSTOOL_PROGRAM 0x3315563
#define CVSTOOL_VERSION 1
#if defined(__STDC__) || defined(__cplusplus)
#define CVSTOOL_LS 1
extern cvstool_ls_resp * cvstool_ls_1();
extern cvstool_ls_resp * cvstool_ls_1_svc();
#define CVSTOOL_LSVER 2
extern cvstool_lsver_resp * cvstool_lsver_1();
extern cvstool_lsver_resp * cvstool_lsver_1_svc();
#define CVSTOOL_UPDATE 3
extern cvstool_update_resp * cvstool_update_1();
extern cvstool_update_resp * cvstool_update_1_svc();
extern int cvstool_program_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_cvstool_status (XDR *, cvstool_status*);
extern bool_t xdr_cvstool_path (XDR *, cvstool_path*);
extern bool_t xdr_cvstool_name (XDR *, cvstool_name*);
extern bool_t xdr_cvstool_ver (XDR *, cvstool_ver*);
extern bool_t xdr_cvstool_date (XDR *, cvstool_date*);
extern bool_t xdr_cvstool_tag (XDR *, cvstool_tag*);
extern bool_t xdr_cvstool_ls_args (XDR *, cvstool_ls_args*);
extern bool_t xdr_cvstool_ver_info (XDR *, cvstool_ver_info*);
extern bool_t xdr_cvstool_dirent (XDR *, cvstool_dirent*);
extern bool_t xdr_cvstool_ls_resp (XDR *, cvstool_ls_resp*);
extern bool_t xdr_cvstool_lsver_args (XDR *, cvstool_lsver_args*);
extern bool_t xdr_cvstool_lsver_resp (XDR *, cvstool_lsver_resp*);
extern bool_t xdr_cvstool_update_args (XDR *, cvstool_update_args*);
extern bool_t xdr_cvstool_update_resp (XDR *, cvstool_update_resp*);
#else /* K&R C */
extern bool_t xdr_cvstool_status ();
extern bool_t xdr_cvstool_path ();
extern bool_t xdr_cvstool_name ();
extern bool_t xdr_cvstool_ver ();
extern bool_t xdr_cvstool_date ();
extern bool_t xdr_cvstool_tag ();
extern bool_t xdr_cvstool_ls_args ();
extern bool_t xdr_cvstool_ver_info ();
extern bool_t xdr_cvstool_dirent ();
extern bool_t xdr_cvstool_ls_resp ();
extern bool_t xdr_cvstool_lsver_args ();
extern bool_t xdr_cvstool_lsver_resp ();
extern bool_t xdr_cvstool_update_args ();
extern bool_t xdr_cvstool_update_resp ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_CVSTOOL_H_RPCGEN */