-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremotedb.h
91 lines (74 loc) · 2.46 KB
/
remotedb.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
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _REMOTEDB_H_RPCGEN
#define _REMOTEDB_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct remotedb_in {
char *arg1;
};
typedef struct remotedb_in remotedb_in;
struct remotedb_out {
char *res1;
};
typedef struct remotedb_out remotedb_out;
struct remotedb_in2 {
char *arg1;
char *arg2;
};
typedef struct remotedb_in2 remotedb_in2;
#define REMOTEDB_PROG 0x31230000
#define REMOTEDB_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define REMOTEDBPROC 1
extern remotedb_out * remotedbproc_1(remotedb_in *, CLIENT *);
extern remotedb_out * remotedbproc_1_svc(remotedb_in *, struct svc_req *);
#define ADD_TO_DATABASE 2
extern remotedb_out * add_to_database_1(remotedb_in2 *, CLIENT *);
extern remotedb_out * add_to_database_1_svc(remotedb_in2 *, struct svc_req *);
#define REMOVE_FROM_DATABASE 3
extern remotedb_out * remove_from_database_1(remotedb_in *, CLIENT *);
extern remotedb_out * remove_from_database_1_svc(remotedb_in *, struct svc_req *);
#define LOOKUP_NAME 4
extern remotedb_out * lookup_name_1(remotedb_in *, CLIENT *);
extern remotedb_out * lookup_name_1_svc(remotedb_in *, struct svc_req *);
#define LIST 5
extern remotedb_out * list_1(remotedb_in *, CLIENT *);
extern remotedb_out * list_1_svc(remotedb_in *, struct svc_req *);
extern int remotedb_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define REMOTEDBPROC 1
extern remotedb_out * remotedbproc_1();
extern remotedb_out * remotedbproc_1_svc();
#define ADD_TO_DATABASE 2
extern remotedb_out * add_to_database_1();
extern remotedb_out * add_to_database_1_svc();
#define REMOVE_FROM_DATABASE 3
extern remotedb_out * remove_from_database_1();
extern remotedb_out * remove_from_database_1_svc();
#define LOOKUP_NAME 4
extern remotedb_out * lookup_name_1();
extern remotedb_out * lookup_name_1_svc();
#define LIST 5
extern remotedb_out * list_1();
extern remotedb_out * list_1_svc();
extern int remotedb_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_remotedb_in (XDR *, remotedb_in*);
extern bool_t xdr_remotedb_out (XDR *, remotedb_out*);
extern bool_t xdr_remotedb_in2 (XDR *, remotedb_in2*);
#else /* K&R C */
extern bool_t xdr_remotedb_in ();
extern bool_t xdr_remotedb_out ();
extern bool_t xdr_remotedb_in2 ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_REMOTEDB_H_RPCGEN */