tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / api / miami_functable.c
blob7116d4b8366411058429301cae9a2293b14b1e1f
1 /*
2 * Copyright (C) 2005 - 2007 The AROS Dev Team
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
20 #include <conf.h>
22 #include <aros/libcall.h>
23 #include <exec/types.h>
24 #include <sys/param.h>
25 #include <api/amiga_raf.h>
27 typedef VOID (* f_void)();
30 * Null used in both function tables
32 extern VOID AROS_SLIB_ENTRY(Null, LIB, 0)(VOID);
35 * "declarations" for ExecLibraryList_funcTable functions.
36 */
38 extern VOID AROS_SLIB_ENTRY(Open, Miami, 1)();
39 extern VOID AROS_SLIB_ENTRY(Close, Miami, 2)();
41 extern VOID AROS_SLIB_ENTRY(Expunge, ELL, 3)();
43 f_void Miami_InitFuncTable[]=
45 #ifdef __MORPHOS__
46 FUNCARRAY_32BIT_NATIVE,
47 #endif
48 AROS_SLIB_ENTRY(Open, Miami, 1),
49 AROS_SLIB_ENTRY(Close, Miami, 2),
50 AROS_SLIB_ENTRY(Expunge, ELL, 3),
51 /* TODO: NicJA - LIB_Null?? */
52 #if defined(__AROS__)
53 NULL,
54 #else
55 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Reserved() is never called */
56 #endif
57 (f_void)-1
61 * "declarations" for userLibrary_funcTable functions.
62 */
63 void AROS_SLIB_ENTRY(MiamiSysCtl, Miami, 5)(void);
64 void AROS_SLIB_ENTRY(SetSysLogPort, Miami, 6)(void);
65 void AROS_SLIB_ENTRY(Miami_QueryInterfaceTagList, Miami, 7)(void);
66 void AROS_SLIB_ENTRY(ClearDynNameServ, Miami, 9)(void);
67 void AROS_SLIB_ENTRY(Miami_gethostent, Miami, 10)(void);
68 void AROS_SLIB_ENTRY(MiamiDisallowDNS, Miami, 11)(void);
69 void AROS_SLIB_ENTRY(Miami_endhostent, Miami, 12)(void);
70 void AROS_SLIB_ENTRY(MiamiGetPid, Miami, 13)(void);
71 void AROS_SLIB_ENTRY(Miami_getprotoent, Miami, 14)(void);
72 void AROS_SLIB_ENTRY(Miami_endprotoent, Miami, 15)(void);
73 void AROS_SLIB_ENTRY(MiamiPFAddHook, Miami, 16)(void);
74 void AROS_SLIB_ENTRY(MiamiPFRemoveHook, Miami, 17)(void);
75 void AROS_SLIB_ENTRY(MiamiGetHardwareLen, Miami, 18)(void);
76 void AROS_SLIB_ENTRY(EndDynDomain, Miami, 19)(void);
77 void AROS_SLIB_ENTRY(EndDynNameServ, Miami, 20)(void);
78 void AROS_SLIB_ENTRY(AddDynNameServ, Miami, 21)(void);
79 void AROS_SLIB_ENTRY(AddDynDomain, Miami, 22)(void);
80 void AROS_SLIB_ENTRY(Miami_sethostname, Miami, 23)(void);
81 void AROS_SLIB_ENTRY(ClearDynDomain, Miami, 24)(void);
82 void AROS_SLIB_ENTRY(MiamiOpenSSL, Miami, 25)(void);
83 void AROS_SLIB_ENTRY(MiamiCloseSSL, Miami, 26)(void);
84 void AROS_SLIB_ENTRY(MiamiSetSocksConn, Miami, 33)(void);
85 void AROS_SLIB_ENTRY(MiamiIsOnline, Miami, 35)(void);
86 void AROS_SLIB_ENTRY(MiamiOnOffline, Miami, 36)(void);
87 void AROS_SLIB_ENTRY(inet_ntop, Miami, 38)(void);
88 void AROS_SLIB_ENTRY(Miami_inet_aton, Miami, 39)(void);
89 void AROS_SLIB_ENTRY(inet_pton, Miami, 40)(void);
90 void AROS_SLIB_ENTRY(gethostbyname2, Miami, 41)(void);
91 void AROS_SLIB_ENTRY(gai_strerror, Miami, 42)(void);
92 void AROS_SLIB_ENTRY(freeaddrinfo, Miami, 43)(void);
93 void AROS_SLIB_ENTRY(getaddrinfo, Miami, 44)(void);
94 void AROS_SLIB_ENTRY(getnameinfo, Miami, 45)(void);
95 void AROS_SLIB_ENTRY(if_nametoindex, Miami, 46)(void);
96 void AROS_SLIB_ENTRY(if_indextoname, Miami, 47)(void);
97 void AROS_SLIB_ENTRY(if_nameindex, Miami, 48)(void);
98 void AROS_SLIB_ENTRY(if_freenameindex, Miami, 49)(void);
99 void AROS_SLIB_ENTRY(MiamiSupportsIPV6, Miami, 50)(void);
100 void AROS_SLIB_ENTRY(MiamiGetResOptions, Miami, 51)(void);
101 void AROS_SLIB_ENTRY(MiamiSetResOptions, Miami, 52)(void);
102 void AROS_SLIB_ENTRY(sockatmark, Miami, 53)(void);
103 void AROS_SLIB_ENTRY(MiamiSupportedCPUs, Miami, 54)(void);
104 void AROS_SLIB_ENTRY(MiamiGetFdCallback, Miami, 55)(void);
105 void AROS_SLIB_ENTRY(MiamiSetFdCallback, Miami, 56)(void);
106 void AROS_SLIB_ENTRY(MiamiGetCredentials, Miami, 58)(void);
107 void AROS_SLIB_ENTRY(FindKernelVar, Miami, 59)(void);
109 f_void Miami_UserFuncTable[] =
111 #ifdef __MORPHOS__
112 FUNCARRAY_BEGIN,
113 FUNCARRAY_32BIT_NATIVE,
114 #endif
115 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Open() is never called */
116 AROS_SLIB_ENTRY(Close, Miami, 2),
117 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Expunge() is never called */
118 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Reserved() is never called */
119 AROS_SLIB_ENTRY(MiamiSysCtl, Miami, 5),
120 AROS_SLIB_ENTRY(SetSysLogPort, Miami, 6),
121 AROS_SLIB_ENTRY(Miami_QueryInterfaceTagList, Miami, 7),
122 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Reserved2() is never called */
123 AROS_SLIB_ENTRY(ClearDynNameServ, Miami, 9),
124 AROS_SLIB_ENTRY(Miami_gethostent, Miami, 10),
125 AROS_SLIB_ENTRY(MiamiDisallowDNS, Miami, 11),
126 AROS_SLIB_ENTRY(Miami_endhostent, Miami, 12),
127 AROS_SLIB_ENTRY(MiamiGetPid, Miami, 13),
128 AROS_SLIB_ENTRY(Miami_getprotoent, Miami, 14),
129 AROS_SLIB_ENTRY(Miami_endprotoent, Miami, 15),
130 AROS_SLIB_ENTRY(MiamiPFAddHook, Miami, 16),
131 AROS_SLIB_ENTRY(MiamiPFRemoveHook, Miami, 17),
132 AROS_SLIB_ENTRY(MiamiGetHardwareLen, Miami, 18),
133 AROS_SLIB_ENTRY(EndDynDomain, Miami, 19),
134 AROS_SLIB_ENTRY(EndDynNameServ, Miami, 20),
135 AROS_SLIB_ENTRY(AddDynNameServ, Miami, 21),
136 AROS_SLIB_ENTRY(AddDynDomain, Miami, 22),
137 AROS_SLIB_ENTRY(Miami_sethostname, Miami, 23),
138 AROS_SLIB_ENTRY(ClearDynDomain, Miami, 24),
139 AROS_SLIB_ENTRY(MiamiOpenSSL, Miami, 25),
140 AROS_SLIB_ENTRY(MiamiCloseSSL, Miami, 26),
141 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
142 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
143 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
144 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
145 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
146 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
147 AROS_SLIB_ENTRY(MiamiSetSocksConn, Miami, 33),
148 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
149 AROS_SLIB_ENTRY(MiamiIsOnline, Miami, 35),
150 AROS_SLIB_ENTRY(MiamiOnOffline, Miami, 36),
151 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
152 AROS_SLIB_ENTRY(inet_ntop, Miami, 38),
153 AROS_SLIB_ENTRY(Miami_inet_aton, Miami, 39),
154 AROS_SLIB_ENTRY(inet_pton, Miami, 40),
155 AROS_SLIB_ENTRY(gethostbyname2, Miami, 41),
156 AROS_SLIB_ENTRY(gai_strerror, Miami, 42),
157 AROS_SLIB_ENTRY(freeaddrinfo, Miami, 43),
158 AROS_SLIB_ENTRY(getaddrinfo, Miami, 44),
159 AROS_SLIB_ENTRY(getnameinfo, Miami, 45),
160 AROS_SLIB_ENTRY(if_nametoindex, Miami, 46),
161 AROS_SLIB_ENTRY(if_indextoname, Miami, 47),
162 AROS_SLIB_ENTRY(if_nameindex, Miami, 48),
163 AROS_SLIB_ENTRY(if_freenameindex, Miami, 49),
164 AROS_SLIB_ENTRY(MiamiSupportsIPV6, Miami, 50),
165 AROS_SLIB_ENTRY(MiamiGetResOptions, Miami, 51),
166 AROS_SLIB_ENTRY(MiamiSetResOptions, Miami, 52),
167 AROS_SLIB_ENTRY(sockatmark, Miami, 53),
168 AROS_SLIB_ENTRY(MiamiSupportedCPUs, Miami, 54),
169 AROS_SLIB_ENTRY(MiamiGetFdCallback, Miami, 55),
170 AROS_SLIB_ENTRY(MiamiSetFdCallback, Miami, 56),
171 AROS_SLIB_ENTRY(Null, LIB, 0), /* ELL_Close() is never called */
172 AROS_SLIB_ENTRY(MiamiGetCredentials, Miami, 58),
173 #ifdef __MORPHOS__
175 FUNCARRAY_32BIT_SYSTEMV,
176 #endif
177 AROS_SLIB_ENTRY(FindKernelVar, Miami, 59),
178 #ifdef __MORPHOS__
179 (f_void)-1,
180 FUNCARRAY_END
181 #else
182 (f_void)-1
183 #endif