ObjFW
ObjFW.h
1 /*
2  * Copyright (c) 2008-2021 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This file is part of ObjFW. It may be distributed under the terms of the
7  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8  * the packaging of this file.
9  *
10  * Alternatively, it may be distributed under the terms of the GNU General
11  * Public License, either version 2 or 3, which can be found in the file
12  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13  * file.
14  */
15 
16 #import "OFObject.h"
17 #import "OFBlock.h"
18 
19 #import "OFString.h"
20 #import "OFCharacterSet.h"
21 
22 #import "OFData.h"
23 #import "OFArray.h"
24 #import "OFSecureData.h"
25 
26 #import "OFList.h"
27 #import "OFSortedList.h"
28 
29 #import "OFDictionary.h"
30 #import "OFMapTable.h"
31 
32 #import "OFSet.h"
33 #import "OFCountedSet.h"
34 
35 #import "OFValue.h"
36 #import "OFPair.h"
37 #import "OFTriple.h"
38 
39 #import "OFEnumerator.h"
40 
41 #import "OFNull.h"
42 
43 #import "OFMethodSignature.h"
44 #import "OFInvocation.h"
45 
46 #import "OFNumber.h"
47 #import "OFDate.h"
48 #import "OFURL.h"
49 #import "OFURLHandler.h"
50 #import "OFColor.h"
51 
52 #import "OFStream.h"
53 #import "OFStdIOStream.h"
54 #import "OFInflateStream.h"
55 #import "OFInflate64Stream.h"
56 #import "OFGZIPStream.h"
57 #import "OFLHAArchive.h"
58 #import "OFLHAArchiveEntry.h"
59 #import "OFTarArchive.h"
60 #import "OFTarArchiveEntry.h"
61 #import "OFZIPArchive.h"
62 #import "OFZIPArchiveEntry.h"
63 #import "OFFileManager.h"
64 #ifdef OF_HAVE_FILES
65 # import "OFFile.h"
66 # import "OFINIFile.h"
67 # import "OFSettings.h"
68 #endif
69 #ifdef OF_HAVE_SOCKETS
70 # import "OFStreamSocket.h"
71 # import "OFDatagramSocket.h"
73 # import "OFTCPSocket.h"
74 # import "OFUDPSocket.h"
75 # import "OFTLSSocket.h"
76 # import "OFKernelEventObserver.h"
77 # import "OFDNSQuery.h"
78 # import "OFDNSResourceRecord.h"
79 # import "OFDNSResponse.h"
80 # import "OFDNSResolver.h"
81 # ifdef OF_HAVE_IPX
82 # import "OFIPXSocket.h"
83 # import "OFSPXSocket.h"
84 # import "OFSPXStreamSocket.h"
85 # endif
86 # ifdef OF_HAVE_SCTP
87 # import "OFSCTPSocket.h"
88 # endif
89 #endif
90 #ifdef OF_HAVE_SOCKETS
91 # ifdef OF_HAVE_THREADS
92 # import "OFHTTPClient.h"
93 # endif
94 # import "OFHTTPCookie.h"
95 # import "OFHTTPCookieManager.h"
96 # import "OFHTTPRequest.h"
97 # import "OFHTTPResponse.h"
98 # import "OFHTTPServer.h"
99 #endif
100 
101 #ifdef OF_HAVE_PROCESSES
102 # import "OFProcess.h"
103 #endif
104 
105 #import "OFCryptoHash.h"
106 #import "OFMD5Hash.h"
107 #import "OFRIPEMD160Hash.h"
108 #import "OFSHA1Hash.h"
109 #import "OFSHA224Hash.h"
110 #import "OFSHA256Hash.h"
111 #import "OFSHA384Hash.h"
112 #import "OFSHA512Hash.h"
113 
114 #import "OFHMAC.h"
115 
116 #import "OFXMLAttribute.h"
117 #import "OFXMLElement.h"
118 #import "OFXMLAttribute.h"
119 #import "OFXMLCharacters.h"
120 #import "OFXMLCDATA.h"
121 #import "OFXMLComment.h"
122 #import "OFXMLProcessingInstructions.h"
123 #import "OFXMLParser.h"
124 #import "OFXMLElementBuilder.h"
125 
126 #import "OFMessagePackExtension.h"
127 
128 #import "OFApplication.h"
129 #import "OFSystemInfo.h"
130 #import "OFLocale.h"
131 #import "OFOptionsParser.h"
132 #import "OFTimer.h"
133 #import "OFRunLoop.h"
134 #import "OFSandbox.h"
135 
136 #ifdef OF_WINDOWS
137 # import "OFWindowsRegistryKey.h"
138 #endif
139 
140 #import "OFASN1BitString.h"
141 #import "OFASN1Boolean.h"
142 #import "OFASN1Enumerated.h"
143 #import "OFASN1IA5String.h"
144 #import "OFASN1Integer.h"
145 #import "OFASN1NumericString.h"
146 #import "OFASN1ObjectIdentifier.h"
147 #import "OFASN1OctetString.h"
148 #import "OFASN1PrintableString.h"
149 #import "OFASN1UTF8String.h"
150 #import "OFASN1Value.h"
151 
152 #import "OFAllocFailedException.h"
153 #import "OFException.h"
154 #ifdef OF_HAVE_SOCKETS
155 # import "OFAcceptFailedException.h"
156 # import "OFAlreadyConnectedException.h"
157 # import "OFBindFailedException.h"
158 #endif
159 #import "OFChangeCurrentDirectoryPathFailedException.h"
160 #import "OFChecksumMismatchException.h"
161 #ifdef OF_HAVE_THREADS
162 # import "OFConditionBroadcastFailedException.h"
163 # import "OFConditionSignalFailedException.h"
164 # import "OFConditionStillWaitingException.h"
165 # import "OFConditionWaitFailedException.h"
166 #endif
167 #ifdef OF_HAVE_SOCKETS
168 # import "OFConnectionFailedException.h"
169 #endif
170 #import "OFCopyItemFailedException.h"
171 #import "OFCreateDirectoryFailedException.h"
172 #import "OFCreateSymbolicLinkFailedException.h"
173 #ifdef OF_WINDOWS
174 # import "OFCreateWindowsRegistryKeyFailedException.h"
175 #endif
176 #ifdef OF_HAVE_SOCKETS
177 # import "OFDNSQueryFailedException.h"
178 #endif
179 #ifdef OF_WINDOWS
180 # import "OFDeleteWindowsRegistryKeyFailedException.h"
181 # import "OFDeleteWindowsRegistryValueFailedException.h"
182 #endif
183 #import "OFEnumerationMutationException.h"
184 #ifdef OF_HAVE_FILES
185 # import "OFGetCurrentDirectoryPathFailedException.h"
186 #endif
187 #import "OFGetOptionFailedException.h"
188 #ifdef OF_WINDOWS
189 # import "OFGetWindowsRegistryValueFailedException.h"
190 #endif
191 #import "OFHashAlreadyCalculatedException.h"
192 #ifdef OF_HAVE_SOCKETS
193 # import "OFHTTPRequestFailedException.h"
194 #endif
195 #import "OFInitializationFailedException.h"
196 #import "OFInvalidArgumentException.h"
197 #import "OFInvalidEncodingException.h"
198 #import "OFInvalidFormatException.h"
199 #import "OFInvalidJSONException.h"
200 #import "OFInvalidServerReplyException.h"
201 #import "OFLinkFailedException.h"
202 #ifdef OF_HAVE_SOCKETS
203 # import "OFListenFailedException.h"
204 #endif
205 #ifdef OF_HAVE_PLUGINS
206 # import "OFLoadPluginFailedException.h"
207 #endif
208 #import "OFLockFailedException.h"
209 #import "OFMalformedXMLException.h"
210 #import "OFMemoryNotPartOfObjectException.h"
211 #import "OFMoveItemFailedException.h"
212 #import "OFNotImplementedException.h"
213 #import "OFNotOpenException.h"
214 #ifdef OF_HAVE_SOCKETS
215 # import "OFObserveFailedException.h"
216 #endif
217 #import "OFOpenItemFailedException.h"
218 #ifdef OF_WINDOWS
219 # import "OFOpenWindowsRegistryKeyFailedException.h"
220 #endif
221 #import "OFOutOfMemoryException.h"
222 #import "OFOutOfRangeException.h"
223 #import "OFReadFailedException.h"
224 #import "OFReadOrWriteFailedException.h"
225 #import "OFRemoveItemFailedException.h"
226 #ifdef OF_HAVE_SOCKETS
227 # import "OFResolveHostFailedException.h"
228 #endif
229 #import "OFRetrieveItemAttributesFailedException.h"
230 #import "OFSandboxActivationFailedException.h"
231 #import "OFSeekFailedException.h"
232 #import "OFSetItemAttributesFailedException.h"
233 #import "OFSetOptionFailedException.h"
234 #ifdef OF_WINDOWS
235 # import "OFSetWindowsRegistryValueFailedException.h"
236 #endif
237 #import "OFStillLockedException.h"
238 #ifdef OF_HAVE_THREADS
239 # import "OFThreadJoinFailedException.h"
240 # import "OFThreadStartFailedException.h"
241 # import "OFThreadStillRunningException.h"
242 #endif
243 #import "OFTruncatedDataException.h"
244 #import "OFUnboundNamespaceException.h"
245 #import "OFUnboundPrefixException.h"
246 #import "OFUndefinedKeyException.h"
247 #import "OFUnknownXMLEntityException.h"
248 #import "OFUnlockFailedException.h"
249 #import "OFUnsupportedProtocolException.h"
250 #import "OFUnsupportedVersionException.h"
251 #import "OFWriteFailedException.h"
252 
253 #ifdef OF_HAVE_PLUGINS
254 # import "OFPlugin.h"
255 #endif
256 
257 #ifdef OF_HAVE_ATOMIC_OPS
258 # import "atomic.h"
259 #endif
260 
261 #import "OFLocking.h"
262 #import "OFThread.h"
263 #import "once.h"
264 #ifdef OF_HAVE_THREADS
265 # import "thread.h"
266 # import "tlskey.h"
267 # import "mutex.h"
268 # import "condition.h"
269 # import "OFThreadPool.h"
270 # import "OFMutex.h"
271 # import "OFRecursiveMutex.h"
272 # import "OFCondition.h"
273 #endif
274 
275 #import "base64.h"
276 #import "crc16.h"
277 #import "crc32.h"
278 #import "huffman_tree.h"
279 #import "of_asprintf.h"
280 #import "of_strptime.h"
281 #import "pbkdf2.h"
282 #import "scrypt.h"
283 #ifdef OF_HAVE_UNICODE_TABLES
284 # import "unicode.h"
285 #endif