Reduce catch all handlers, and make them optional.
[shibboleth/cpp-sp.git] / shib-target / shibrpc.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _SHIBRPC_H_RPCGEN
7 #define _SHIBRPC_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11 #ifdef HAVE_PTHREAD
12 # include <pthread.h>
13 #endif
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20 struct shibrpc_new_session_args_2 {
21         int supported_profiles;
22         char *application_id;
23         char *packet;
24         char *recipient;
25         char *client_addr;
26 };
27 typedef struct shibrpc_new_session_args_2 shibrpc_new_session_args_2;
28
29 struct shibrpc_new_session_ret_2 {
30         char *status;
31         char *target;
32         char *cookie;
33         char *provider_id;
34 };
35 typedef struct shibrpc_new_session_ret_2 shibrpc_new_session_ret_2;
36
37 struct shibrpc_get_session_args_2 {
38         char *application_id;
39         char *cookie;
40         char *client_addr;
41 };
42 typedef struct shibrpc_get_session_args_2 shibrpc_get_session_args_2;
43
44 struct shibrpc_get_session_ret_2 {
45         char *status;
46         int profile;
47         char *provider_id;
48         char *auth_statement;
49         char *attr_response_pre;
50         char *attr_response_post;
51 };
52 typedef struct shibrpc_get_session_ret_2 shibrpc_get_session_ret_2;
53
54 struct shibrpc_end_session_args_2 {
55         char *cookie;
56 };
57 typedef struct shibrpc_end_session_args_2 shibrpc_end_session_args_2;
58
59 struct shibrpc_end_session_ret_2 {
60         char *status;
61 };
62 typedef struct shibrpc_end_session_ret_2 shibrpc_end_session_ret_2;
63
64 #define SHIBRPC_PROG 123456
65 #define SHIBRPC_VERS_2 2
66
67 #if defined(__STDC__) || defined(__cplusplus)
68 #define shibrpc_ping 0
69 extern  enum clnt_stat shibrpc_ping_2(int *, int *, CLIENT *);
70 extern  bool_t shibrpc_ping_2_svc(int *, int *, struct svc_req *);
71 #define shibrpc_new_session 1
72 extern  enum clnt_stat shibrpc_new_session_2(shibrpc_new_session_args_2 *, shibrpc_new_session_ret_2 *, CLIENT *);
73 extern  bool_t shibrpc_new_session_2_svc(shibrpc_new_session_args_2 *, shibrpc_new_session_ret_2 *, struct svc_req *);
74 #define shibrpc_get_session 2
75 extern  enum clnt_stat shibrpc_get_session_2(shibrpc_get_session_args_2 *, shibrpc_get_session_ret_2 *, CLIENT *);
76 extern  bool_t shibrpc_get_session_2_svc(shibrpc_get_session_args_2 *, shibrpc_get_session_ret_2 *, struct svc_req *);
77 #define shibrpc_end_session 3
78 extern  enum clnt_stat shibrpc_end_session_2(shibrpc_end_session_args_2 *, shibrpc_end_session_ret_2 *, CLIENT *);
79 extern  bool_t shibrpc_end_session_2_svc(shibrpc_end_session_args_2 *, shibrpc_end_session_ret_2 *, struct svc_req *);
80 extern int shibrpc_prog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
81
82 #else /* K&R C */
83 #define shibrpc_ping 0
84 extern  enum clnt_stat shibrpc_ping_2();
85 extern  bool_t shibrpc_ping_2_svc();
86 #define shibrpc_new_session 1
87 extern  enum clnt_stat shibrpc_new_session_2();
88 extern  bool_t shibrpc_new_session_2_svc();
89 #define shibrpc_get_session 2
90 extern  enum clnt_stat shibrpc_get_session_2();
91 extern  bool_t shibrpc_get_session_2_svc();
92 #define shibrpc_end_session 3
93 extern  enum clnt_stat shibrpc_end_session_2();
94 extern  bool_t shibrpc_end_session_2_svc();
95 extern int shibrpc_prog_2_freeresult ();
96 #endif /* K&R C */
97
98 /* the xdr functions */
99
100 #if defined(__STDC__) || defined(__cplusplus)
101 extern  bool_t xdr_shibrpc_new_session_args_2 (XDR *, shibrpc_new_session_args_2*);
102 extern  bool_t xdr_shibrpc_new_session_ret_2 (XDR *, shibrpc_new_session_ret_2*);
103 extern  bool_t xdr_shibrpc_get_session_args_2 (XDR *, shibrpc_get_session_args_2*);
104 extern  bool_t xdr_shibrpc_get_session_ret_2 (XDR *, shibrpc_get_session_ret_2*);
105 extern  bool_t xdr_shibrpc_end_session_args_2 (XDR *, shibrpc_end_session_args_2*);
106 extern  bool_t xdr_shibrpc_end_session_ret_2 (XDR *, shibrpc_end_session_ret_2*);
107
108 #else /* K&R C */
109 extern bool_t xdr_shibrpc_new_session_args_2 ();
110 extern bool_t xdr_shibrpc_new_session_ret_2 ();
111 extern bool_t xdr_shibrpc_get_session_args_2 ();
112 extern bool_t xdr_shibrpc_get_session_ret_2 ();
113 extern bool_t xdr_shibrpc_end_session_args_2 ();
114 extern bool_t xdr_shibrpc_end_session_ret_2 ();
115
116 #endif /* K&R C */
117
118 #ifdef __cplusplus
119 }
120 #endif
121
122 #endif /* !_SHIBRPC_H_RPCGEN */