Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / common / include / clib / miami_protos.h
blob820ba197da93ad090bcf2b6a002769e316423d5e
1 #ifndef CLIB_MIAMI_PROTOS_H
2 #define CLIB_MIAMI_PROTOS_H
4 /*
5 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 */
8 #include <aros/libcall.h>
10 AROS_LP7(int, MiamiSysCtl,
11 AROS_LPA(LONG *, name, A0),
12 AROS_LPA(ULONG, namelen, D0),
13 AROS_LPA(void *, oldp, A1),
14 AROS_LPA(LONG *, oldlenp, A2),
15 AROS_LPA(void *, newp, A3),
16 AROS_LPA(LONG, newlen, D1),
17 AROS_LPA(int, len, D2),
18 LIBBASETYPEPTR, MiamiBase, 5, Miami
20 AROS_LP0(void, SetSysLogPort,
21 LIBBASETYPEPTR, MiamiBase, 6, Miami
23 AROS_LP2(void, QueryInterfaceTagList,
24 AROS_LPA(STRPTR, name, A0),
25 AROS_LPA(struct TagItem *, tags, A1),
26 LIBBASETYPEPTR, MiamiBase, 7, Miami
28 AROS_LP0(void, ClearDynNameServ,
29 LIBBASETYPEPTR, MiamiBase, 9, Miami
31 AROS_LP0(struct hostent *, gethostent,
32 LIBBASETYPEPTR, MiamiBase, 10, Miami
34 AROS_LP1(void, MiamiDisallowDNS,
35 AROS_LPA(LONG, value, D0),
36 LIBBASETYPEPTR, MiamiBase, 11, Miami
38 AROS_LP0(void, endhostent,
39 LIBBASETYPEPTR, MiamiBase, 12, Miami
41 AROS_LP0(void *, MiamiGetPid,
42 LIBBASETYPEPTR, MiamiBase, 13, Miami
44 AROS_LP0(struct protoent *, getprotoent,
45 LIBBASETYPEPTR, MiamiBase, 14, Miami
47 AROS_LP0(void, endprotoent,
48 LIBBASETYPEPTR, MiamiBase, 15, Miami
50 AROS_LP3(APTR, MiamiPFAddHook,
51 AROS_LPA(struct Hook *, hook, A0),
52 AROS_LPA(UBYTE *, interface, A1),
53 AROS_LPA(struct TagItem *, taglist, A2),
54 LIBBASETYPEPTR, MiamiBase, 16, Miami
56 AROS_LP1(void, MiamiPFRemoveHook,
57 AROS_LPA(APTR, handle, A0),
58 LIBBASETYPEPTR, MiamiBase, 17, Miami
60 AROS_LP1(int, MiamiGetHardwareLen,
61 AROS_LPA(char *, name, A0),
62 LIBBASETYPEPTR, MiamiBase, 18, Miami
64 AROS_LP0(void, EndDynDomain,
65 LIBBASETYPEPTR, MiamiBase, 19, Miami
67 AROS_LP0(void, EndDynNameServ,
68 LIBBASETYPEPTR, MiamiBase, 20, Miami
70 AROS_LP1(LONG, AddDynNameServ,
71 AROS_LPA(struct sockaddr *, entry, A0),
72 LIBBASETYPEPTR, MiamiBase, 21, Miami
74 AROS_LP1(LONG, AddDynDomain,
75 AROS_LPA(STRPTR, entry, A0),
76 LIBBASETYPEPTR, MiamiBase, 22, Miami
78 AROS_LP2(int, sethostname,
79 AROS_LPA(const char *, name, A0),
80 AROS_LPA(size_t, namelen, D0),
81 LIBBASETYPEPTR, MiamiBase, 23, Miami
83 AROS_LP0(void, ClearDynDomain,
84 LIBBASETYPEPTR, MiamiBase, 24, Miami
86 AROS_LP1(struct Library *, MiamiOpenSSL,
87 AROS_LPA(struct TagItem *, taglist, A0),
88 LIBBASETYPEPTR, MiamiBase, 25, Miami
90 AROS_LP0(void, MiamiCloseSSL,
91 LIBBASETYPEPTR, MiamiBase, 26, Miami
93 AROS_LP2(int, MiamiSetSocksConn,
94 AROS_LPA(struct sockaddr *, sa, A0),
95 AROS_LPA(int, len, D0),
96 LIBBASETYPEPTR, MiamiBase, 33, Miami
98 AROS_LP1(int, MiamiIsOnline,
99 AROS_LPA(char *, name, A0),
100 LIBBASETYPEPTR, MiamiBase, 35, Miami
102 AROS_LP2(void, MiamiOnOffline,
103 AROS_LPA(char *, name, A0),
104 AROS_LPA(int, online, D0),
105 LIBBASETYPEPTR, MiamiBase, 36, Miami
107 AROS_LP4(STRPTR, inet_ntop,
108 AROS_LPA(LONG, family, D0),
109 AROS_LPA(void *, addrptr, A0),
110 AROS_LPA(char *, strptr, A1),
111 AROS_LPA(LONG, len, D1),
112 LIBBASETYPEPTR, MiamiBase, 38, Miami
114 AROS_LP2(int, inet_aton,
115 AROS_LPA(const char *, strptr, A0),
116 AROS_LPA(void *, addrptr, A2),
117 LIBBASETYPEPTR, MiamiBase, 39, Miami
119 AROS_LP3(int, inet_pton,
120 AROS_LPA(LONG, family, D0),
121 AROS_LPA(const char *, strptr, A0),
122 AROS_LPA(void *, addrptr, A1),
123 LIBBASETYPEPTR, MiamiBase, 40, Miami
125 AROS_LP2(struct hostent *, gethostbyname2,
126 AROS_LPA(const char *, name, A0),
127 AROS_LPA(LONG, family, D0),
128 LIBBASETYPEPTR, MiamiBase, 41, Miami
130 AROS_LP1(char *, gai_strerror,
131 AROS_LPA(LONG, error, D0),
132 LIBBASETYPEPTR, MiamiBase, 42, Miami
134 AROS_LP1(void, freeaddrinfo,
135 AROS_LPA(struct addrinfo *, addrinfo, A0),
136 LIBBASETYPEPTR, MiamiBase, 43, Miami
138 AROS_LP4(LONG, getaddrinfo,
139 AROS_LPA(char *, hostname, A0),
140 AROS_LPA(char *, servicename, A1),
141 AROS_LPA(struct addrinfo *, hintsp, A2),
142 AROS_LPA(struct addrinfo **, result, A3),
143 LIBBASETYPEPTR, MiamiBase, 44, Miami
145 AROS_LP7(LONG, getnameinfo,
146 AROS_LPA(struct sockaddr *, sockaddr, A0),
147 AROS_LPA(LONG, addrlen, D0),
148 AROS_LPA(char *, hostname, A1),
149 AROS_LPA(LONG, hostlen, D1),
150 AROS_LPA(char *, servicename, A2),
151 AROS_LPA(LONG, servicelen, D2),
152 AROS_LPA(LONG, flags, D3),
153 LIBBASETYPEPTR, MiamiBase, 45, Miami
155 AROS_LP1(LONG, if_nametoindex,
156 AROS_LPA(char *, name, A0),
157 LIBBASETYPEPTR, MiamiBase, 46, Miami
159 AROS_LP2(char *, if_indextoname,
160 AROS_LPA(LONG, index, D0),
161 AROS_LPA(char *, name, A0),
162 LIBBASETYPEPTR, MiamiBase, 47, Miami
164 AROS_LP0(struct if_nameindex *, if_nameindex,
165 LIBBASETYPEPTR, MiamiBase, 48, Miami
167 AROS_LP1(void, if_freenameindex,
168 AROS_LPA(struct if_nameindex *, nameindex, D0),
169 LIBBASETYPEPTR, MiamiBase, 49, Miami
171 AROS_LP0(LONG, MiamiSupportsIPV6,
172 LIBBASETYPEPTR, MiamiBase, 50, Miami
174 AROS_LP0(LONG, MiamiGetResOptions,
175 LIBBASETYPEPTR, MiamiBase, 51, Miami
177 AROS_LP1(void, MiamiSetResOptions,
178 AROS_LPA(LONG, options, D0),
179 LIBBASETYPEPTR, MiamiBase, 52, Miami
181 AROS_LP1(LONG, sockatmark,
182 AROS_LPA(LONG, sockfd, D0),
183 LIBBASETYPEPTR, MiamiBase, 53, Miami
185 AROS_LP3(void, MiamiSupportedCPUs,
186 AROS_LPA(ULONG *, apis, A0),
187 AROS_LPA(ULONG *, callbacks, A1),
188 AROS_LPA(ULONG *, kernel, A2),
189 LIBBASETYPEPTR, MiamiBase, 54, Miami
191 AROS_LP1(LONG, MiamiGetFdCallback,
192 AROS_LPA(void **, cbptr, A0),
193 LIBBASETYPEPTR, MiamiBase, 55, Miami
195 AROS_LP2(LONG, MiamiSetFdCallback,
196 AROS_LPA(void *, cbptr, A0),
197 AROS_LPA(LONG, cputype, D0),
198 LIBBASETYPEPTR, MiamiBase, 56, Miami
200 AROS_LP0(struct UserGroupCredentials *, MiamiGetCredentials,
201 LIBBASETYPEPTR, MiamiBase, 58, Miami
203 AROS_LP1(void *, FindKernelVar,
204 AROS_LPA(STRPTR, name, A0),
205 LIBBASETYPEPTR, MiamiBase, 59, Miami
207 #endif /* CLIB_MIAMI_PROTOS_H */