summaryrefslogtreecommitdiffstats
path: root/Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch.h
blob: 3938bfc53ffcb9253c5307c0f84d55fedf233394 (plain)
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
/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 */

#ifndef _TELBUCH_H_RPCGEN
#define _TELBUCH_H_RPCGEN

#include <rpc/rpc.h>


#ifdef __cplusplus
extern "C" {
#endif


struct addStruct {
	char Name[45];
	char TelNr[45];
};
typedef struct addStruct addStruct;

struct searchStruct {
	char Name[45];
};
typedef struct searchStruct searchStruct;

struct Ergebnis {
	char Eintrag[80];
};
typedef struct Ergebnis Ergebnis;

#define TELBUCH_VERWALTUNG 1234567
#define ONE 1

#if defined(__STDC__) || defined(__cplusplus)
#define addEntry 1
extern  Ergebnis * addentry_1(addStruct *, CLIENT *);
extern  Ergebnis * addentry_1_svc(addStruct *, struct svc_req *);
#define searchEntry 2
extern  Ergebnis * searchentry_1(searchStruct *, CLIENT *);
extern  Ergebnis * searchentry_1_svc(searchStruct *, struct svc_req *);
extern int telbuch_verwaltung_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);

#else /* K&R C */
#define addEntry 1
extern  Ergebnis * addentry_1();
extern  Ergebnis * addentry_1_svc();
#define searchEntry 2
extern  Ergebnis * searchentry_1();
extern  Ergebnis * searchentry_1_svc();
extern int telbuch_verwaltung_1_freeresult ();
#endif /* K&R C */

/* the xdr functions */

#if defined(__STDC__) || defined(__cplusplus)
extern  bool_t xdr_addStruct (XDR *, addStruct*);
extern  bool_t xdr_searchStruct (XDR *, searchStruct*);
extern  bool_t xdr_Ergebnis (XDR *, Ergebnis*);

#else /* K&R C */
extern bool_t xdr_addStruct ();
extern bool_t xdr_searchStruct ();
extern bool_t xdr_Ergebnis ();

#endif /* K&R C */

#ifdef __cplusplus
}
#endif

#endif /* !_TELBUCH_H_RPCGEN */