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