-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsquare.h
More file actions
69 lines (53 loc) · 1.31 KB
/
Copy pathsquare.h
File metadata and controls
69 lines (53 loc) · 1.31 KB
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
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _SQUARE_H_RPCGEN
#define _SQUARE_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct square_in {
int client_id;
int cur_question;
int send_marks;
int choice;
int check;
int update_marks;
};
typedef struct square_in square_in;
struct square_out {
char ans[500];
char question[500];
int RANK;
int last_question;
int last_marks;
int is_finished;
};
typedef struct square_out square_out;
#define SQUARE_PROG 0x13451111
#define SQUARE_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define SQUAREPROC 1
extern square_out * squareproc_1(square_in *, CLIENT *);
extern square_out * squareproc_1_svc(square_in *, struct svc_req *);
extern int square_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define SQUAREPROC 1
extern square_out * squareproc_1();
extern square_out * squareproc_1_svc();
extern int square_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_square_in (XDR *, square_in*);
extern bool_t xdr_square_out (XDR *, square_out*);
#else /* K&R C */
extern bool_t xdr_square_in ();
extern bool_t xdr_square_out ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_SQUARE_H_RPCGEN */