1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1993 by Sun Microsystems, Inc.
24  */
25 
26 /*
27  * This file contains definitions which are only of interest to the actual
28  * service daemon and client stubs.  Normal framework users will not include
29  * this file.
30  */
31 
32 #ifndef _FW_RPC_H
33 #define	_FW_RPC_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #define	FW_NO_CONTEXT	"Plead no context"
40 
41 #define	FW_PROG ((unsigned long)(150006))
42 #define	FW_VERSION ((unsigned long)(1))
43 
44 #define	FW_INVOKE ((unsigned long)(1))
45 #define	FW_MORE ((unsigned long)(2))
46 #define	FW_KILL ((unsigned long)(3))
47 
48 
49 /* the xdr functions */
50 
51 extern  bool_t _TKFAR _TKPASCAL xdr_Op_arg(XDR _TKFAR *, Op_arg _TKFAR *);
52 extern  bool_t _TKFAR _TKPASCAL xdr_Fw_err(XDR _TKFAR *, Fw_err _TKFAR *);
53 extern  bool_t _TKFAR _TKPASCAL xdr_Op_err(XDR _TKFAR *, Op_err _TKFAR *);
54 extern  bool_t _TKFAR _TKPASCAL xdr_invk_context(XDR _TKFAR *, invk_context);
55 extern  bool_t _TKFAR _TKPASCAL xdr_invk_result(XDR _TKFAR *,
56     invk_result _TKFAR *);
57 extern  bool_t _TKFAR _TKPASCAL xdr_invk_request(XDR _TKFAR *,
58     invk_request _TKFAR *);
59 extern  bool_t _TKFAR _TKPASCAL xdr_more_request(XDR _TKFAR *,
60     more_request _TKFAR *);
61 extern  bool_t _TKFAR _TKPASCAL xdr_kill_request(XDR _TKFAR *,
62     kill_request _TKFAR *);
63 
64 #ifdef _WINDOWS
65 extern	void thunk_xdrs(void);
66 extern	void unthunk_xdrs(void);
67 extern	FARPROC lp_xdr_invk_request, lp_xdr_invk_result;
68 extern	FARPROC lp_xdr_more_request, lp_xdr_kill_request;
69 extern	FARPROC lp_xdr_Op_err, lp_xdr_Op_arg;
70 #endif
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* !_FW_RPC_H */
77