-
Notifications
You must be signed in to change notification settings - Fork 0
/
bchan.h
63 lines (47 loc) · 1.2 KB
/
bchan.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
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _BCHAN_H_RPCGEN
#define _BCHAN_H_RPCGEN
#include <rpc/rpc.h>
#include <pthread.h>
#ifdef __cplusplus
extern "C" {
#endif
struct bchan_msg {
u_int seqnum;
char *msg1;
char *msg2;
};
typedef struct bchan_msg bchan_msg;
struct bchan_res {
u_int result;
char *msg1;
};
typedef struct bchan_res bchan_res;
#define BCHAN_PROG 0x20005002
#define BCHANV 1
#if defined(__STDC__) || defined(__cplusplus)
#define CALLBACK1 1
extern enum clnt_stat callback1_1(bchan_msg *, bchan_res *, CLIENT *);
extern bool_t callback1_1_svc(bchan_msg *, bchan_res *, struct svc_req *);
extern int bchan_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define CALLBACK1 1
extern enum clnt_stat callback1_1();
extern bool_t callback1_1_svc();
extern int bchan_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_bchan_msg (XDR *, bchan_msg*);
extern bool_t xdr_bchan_res (XDR *, bchan_res*);
#else /* K&R C */
extern bool_t xdr_bchan_msg ();
extern bool_t xdr_bchan_res ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_BCHAN_H_RPCGEN */