xref: /titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/fw_lib.h (revision 2449e17f82f6097fd2c665b64723e31ceecbeca6)
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 #ifndef	_FW_LIB_H
27 #define	_FW_LIB_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 #ifdef __STDC__
36 
37 extern short net_invoke(char _TKFAR *, char _TKFAR *, char _TKFAR *,
38 	char _TKFAR *, u_long, u_long, char _TKFAR *,
39     invk_context, Op_arg _TKFAR * _TKFAR *, Op_err _TKFAR * _TKFAR *, ...);
40 extern short net_more(u_long, u_long, invk_context, Op_arg _TKFAR * _TKFAR *,
41 	Op_err _TKFAR * _TKFAR *);
42 extern short net_end(u_long, invk_context, Op_err _TKFAR * _TKFAR *);
43 extern Op_arg _TKFAR *net_arg_init(void);
44 extern short net_arg_set(char _TKFAR *, ...);
45 extern short net_arg_markrow(void);
46 extern short net_arg_get(Op_arg _TKFAR *, char _TKFAR *,
47     char _TKFAR * _TKFAR *);
48 extern short net_arg_getnext(Op_arg _TKFAR *, char _TKFAR * _TKFAR *,
49 	char _TKFAR * _TKFAR *);
50 extern short net_arg_nextrow(Op_arg _TKFAR *);
51 extern short net_arg_rowstart(Op_arg _TKFAR *);
52 extern short net_arg_reset(Op_arg _TKFAR *);
53 extern void net_arg_free(Op_arg _TKFAR *);
54 extern void net_err_free(Op_err _TKFAR *);
55 extern Op_arg _TKFAR *new_Op_arg(void);
56 extern void free_Op_arg(Op_arg _TKFAR *);
57 extern void free_Op_err(Op_err _TKFAR *);
58 extern short append_Op_arg(Op_arg _TKFAR *, char _TKFAR *, char _TKFAR *);
59 extern void fw_err_set(Op_err _TKFAR * _TKFAR *, Fw_err, u_long, ...);
60 
61 #ifdef _WINDOWS
62 extern void net_cleanup(void);
63 #endif
64 
65 #else
66 
67 extern short net_invoke();
68 extern short net_more();
69 extern short net_end();
70 extern Op_arg _TKFAR *net_arg_init();
71 extern short net_arg_set();
72 extern short net_arg_markrow();
73 extern short net_arg_get();
74 extern short net_arg_getnext();
75 extern short net_arg_nextrow();
76 extern short net_arg_rowstart();
77 extern short net_arg_reset();
78 extern void net_arg_free();
79 extern void net_err_free();
80 extern Op_arg _TKFAR *new_Op_arg();
81 extern void free_Op_arg();
82 extern void free_Op_err();
83 extern short append_Op_arg();
84 extern void fw_err_set();
85 
86 #ifdef _WINDOWS
87 extern void net_cleanup();
88 #endif
89 
90 #endif	/* __STDC__ */
91 
92 #ifdef	__cplusplus
93 }
94 #endif
95 
96 #endif	/* !_FW_LIB_H */
97