Update.
[glibc.git] / nis / nis_cache2.h
blob55f0109d46a12d65d95314c08732e5c548a17ffe
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
6 #ifndef _NIS_CACHE2_H_RPCGEN
7 #define _NIS_CACHE2_H_RPCGEN
9 #include <rpc/rpc.h>
11 #include <rpcsvc/nis.h>
13 struct fs_result {
14 nis_error status;
15 long class;
16 struct {
17 u_int dir_data_len;
18 char *dir_data_val;
19 } dir_data;
20 long server_used;
21 long current_ep;
23 typedef struct fs_result fs_result;
24 #ifdef __cplusplus
25 extern "C" bool_t xdr_fs_result(XDR *, fs_result*);
26 #elif __STDC__
27 extern bool_t xdr_fs_result(XDR *, fs_result*);
28 #else /* Old Style C */
29 bool_t xdr_fs_result();
30 #endif /* Old Style C */
33 struct fs_request {
34 nis_name name;
35 long old_class;
37 typedef struct fs_request fs_request;
38 #ifdef __cplusplus
39 extern "C" bool_t xdr_fs_request(XDR *, fs_request*);
40 #elif __STDC__
41 extern bool_t xdr_fs_request(XDR *, fs_request*);
42 #else /* Old Style C */
43 bool_t xdr_fs_request();
44 #endif /* Old Style C */
47 #define CACHEPROG ((u_long)600100301)
48 #define CACHE_VER_1 ((u_long)1)
50 #ifdef __cplusplus
51 #define NIS_CACHE_READ_COLDSTART ((u_long)1)
52 extern "C" void * nis_cache_read_coldstart_1(void *, CLIENT *);
53 extern "C" void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *);
54 #define NIS_CACHE_FIND_MASTER ((u_long)2)
55 extern "C" fs_result * nis_cache_find_master_1(char **, CLIENT *);
56 extern "C" fs_result * nis_cache_find_master_1_svc(char **, struct svc_req *);
57 #define NIS_CACHE_FIND_SERVER ((u_long)3)
58 extern "C" fs_result * nis_cache_find_server_1(char **, CLIENT *);
59 extern "C" fs_result * nis_cache_find_server_1_svc(char **, struct svc_req *);
60 #define NIS_CACHE_NEXT_SERVER ((u_long)4)
61 extern "C" fs_result * nis_cache_next_server_1(fs_request *, CLIENT *);
62 extern "C" fs_result * nis_cache_next_server_1_svc(fs_request *, struct svc_req *);
64 #elif __STDC__
65 #define NIS_CACHE_READ_COLDSTART ((u_long)1)
66 extern void * nis_cache_read_coldstart_1(void *, CLIENT *);
67 extern void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *);
68 #define NIS_CACHE_FIND_MASTER ((u_long)2)
69 extern fs_result * nis_cache_find_master_1(char **, CLIENT *);
70 extern fs_result * nis_cache_find_master_1_svc(char **, struct svc_req *);
71 #define NIS_CACHE_FIND_SERVER ((u_long)3)
72 extern fs_result * nis_cache_find_server_1(char **, CLIENT *);
73 extern fs_result * nis_cache_find_server_1_svc(char **, struct svc_req *);
74 #define NIS_CACHE_NEXT_SERVER ((u_long)4)
75 extern fs_result * nis_cache_next_server_1(fs_request *, CLIENT *);
76 extern fs_result * nis_cache_next_server_1_svc(fs_request *, struct svc_req *);
78 #else /* Old Style C */
79 #define NIS_CACHE_READ_COLDSTART ((u_long)1)
80 extern void * nis_cache_read_coldstart_1();
81 extern void * nis_cache_read_coldstart_1_svc();
82 #define NIS_CACHE_FIND_MASTER ((u_long)2)
83 extern fs_result * nis_cache_find_master_1();
84 extern fs_result * nis_cache_find_master_1_svc();
85 #define NIS_CACHE_FIND_SERVER ((u_long)3)
86 extern fs_result * nis_cache_find_server_1();
87 extern fs_result * nis_cache_find_server_1_svc();
88 #define NIS_CACHE_NEXT_SERVER ((u_long)4)
89 extern fs_result * nis_cache_next_server_1();
90 extern fs_result * nis_cache_next_server_1_svc();
91 #endif /* Old Style C */
93 #endif /* !_NIS_CACHE2_H_RPCGEN */