xref: /titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/fw_rpc.h (revision 99ebb4ca412cb0a19d77a3899a87c055b9c30fa8)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 #define	FW_NO_CONTEXT	"Plead no context"
42 
43 #define	FW_PROG ((unsigned long)(150006))
44 #define	FW_VERSION ((unsigned long)(1))
45 
46 #define	FW_INVOKE ((unsigned long)(1))
47 #define	FW_MORE ((unsigned long)(2))
48 #define	FW_KILL ((unsigned long)(3))
49 
50 
51 /* the xdr functions */
52 
53 extern  bool_t _TKFAR _TKPASCAL xdr_Op_arg(XDR _TKFAR *, Op_arg _TKFAR *);
54 extern  bool_t _TKFAR _TKPASCAL xdr_Fw_err(XDR _TKFAR *, Fw_err _TKFAR *);
55 extern  bool_t _TKFAR _TKPASCAL xdr_Op_err(XDR _TKFAR *, Op_err _TKFAR *);
56 extern  bool_t _TKFAR _TKPASCAL xdr_invk_context(XDR _TKFAR *, invk_context);
57 extern  bool_t _TKFAR _TKPASCAL xdr_invk_result(XDR _TKFAR *,
58     invk_result _TKFAR *);
59 extern  bool_t _TKFAR _TKPASCAL xdr_invk_request(XDR _TKFAR *,
60     invk_request _TKFAR *);
61 extern  bool_t _TKFAR _TKPASCAL xdr_more_request(XDR _TKFAR *,
62     more_request _TKFAR *);
63 extern  bool_t _TKFAR _TKPASCAL xdr_kill_request(XDR _TKFAR *,
64     kill_request _TKFAR *);
65 
66 #ifdef _WINDOWS
67 extern	void thunk_xdrs(void);
68 extern	void unthunk_xdrs(void);
69 extern	FARPROC lp_xdr_invk_request, lp_xdr_invk_result;
70 extern	FARPROC lp_xdr_more_request, lp_xdr_kill_request;
71 extern	FARPROC lp_xdr_Op_err, lp_xdr_Op_arg;
72 #endif
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* !_FW_RPC_H */
79