Merge up from branch.
[shibboleth/cpp-sp.git] / shib-target / shibrpc.x
1 /*
2  *  Copyright 2001-2005 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * shibrpc.x: generic shib RPC definitions for target communication
19  *
20  * Created By:  Derek Atkins <derek@ihtfp.com>
21  * Modified By: Scott Cantor <cantor.2@osu.edu>
22  *
23  * $Id$
24  */
25
26 #ifdef RPC_XDR
27 %
28 %/* sometimes xdr_enum_t is not defined properly */
29 %#ifndef xdr_enum_t
30 %#define xdr_enum_t xdr_enum
31 %#endif
32 %
33 #endif
34
35 struct shibrpc_args_3 {
36   string        xml<>;                                          /* WDDX XML input message */
37 };
38
39 struct shibrpc_ret_3 {
40   string        xml<>;                                          /* WDDX XML output message */
41 };
42
43
44 /* Define the Shib Target RPC interface */
45 program SHIBRPC_PROG {
46   version SHIBRPC_VERS_3 {
47
48     shibrpc_ret_3 shibrpc_call (shibrpc_args_3) = 3;
49
50   } = 3;
51 } = 123456;                     /* Arbitrary RPC Program Number */