-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd - Copie.h
71 lines (56 loc) · 1.43 KB
/
add - Copie.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
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _ADD_H_RPCGEN
#define _ADD_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct numbers {
float x;
float y;
};
typedef struct numbers numbers;
#define ADD_PROG 0x2CCCCCCC
#define VERSION1 1
#if defined(__STDC__) || defined(__cplusplus)
#define add 1
extern float * add_1(numbers *, CLIENT *);
extern float * add_1_svc(numbers *, struct svc_req *);
#define sub 2
extern float * sub_1(numbers *, CLIENT *);
extern float * sub_1_svc(numbers *, struct svc_req *);
#define mul 3
extern float * mul_1(numbers *, CLIENT *);
extern float * mul_1_svc(numbers *, struct svc_req *);
#define div 4
extern float * div_1(numbers *, CLIENT *);
extern float * div_1_svc(numbers *, struct svc_req *);
extern int add_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define add 1
extern float * add_1();
extern float * add_1_svc();
#define sub 2
extern float * sub_1();
extern float * sub_1_svc();
#define mul 3
extern float * mul_1();
extern float * mul_1_svc();
#define div 4
extern float * div_1();
extern float * div_1_svc();
extern int add_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_numbers (XDR *, numbers*);
#else /* K&R C */
extern bool_t xdr_numbers ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_ADD_H_RPCGEN */