ObjFW
ObjFW.h
1 /*
2  * Copyright (c) 2008-2026 Jonathan Schleifer <js@nil.im>
3  *
4  * All rights reserved.
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License version 3.0 only,
8  * as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13  * version 3.0 for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * version 3.0 along with this program. If not, see
17  * <https://www.gnu.org/licenses/>.
18  */
19 
20 #import "OFObject.h"
21 #import "OFBlock.h"
22 
23 #import "OFString.h"
24 #import "OFCharacterSet.h"
25 
26 #import "OFData.h"
27 #import "OFArray.h"
28 #import "OFSecureData.h"
29 
30 #import "OFList.h"
31 #import "OFSortedList.h"
32 
33 #import "OFDictionary.h"
34 #import "OFMapTable.h"
35 
36 #import "OFSet.h"
37 #import "OFCountedSet.h"
38 
39 #import "OFValue.h"
40 #import "OFPair.h"
41 #import "OFTriple.h"
42 
43 #import "OFEnumerator.h"
44 
45 #import "OFNull.h"
46 
47 #import "OFIndexSet.h"
48 
49 #import "OFMethodSignature.h"
50 #import "OFInvocation.h"
51 
52 #import "OFNumber.h"
53 #import "OFDate.h"
54 #import "OFIRI.h"
55 #import "OFIRIHandler.h"
56 #import "OFUUID.h"
57 #import "OFColor.h"
58 #import "OFColorSpace.h"
59 #import "OFImage.h"
60 #import "OFImageFormatHandler.h"
61 #import "OFCanvas.h"
62 
63 #import "OFNotification.h"
64 #import "OFNotificationCenter.h"
65 
66 #import "OFStream.h"
67 #import "OFSeekableStream.h"
68 #import "OFMemoryStream.h"
69 #import "OFStdIOStream.h"
70 #import "OFDeflateStream.h"
71 #import "OFDeflate64Stream.h"
72 #import "OFInflateStream.h"
73 #import "OFInflate64Stream.h"
74 #import "OFGZIPStream.h"
75 #import "OFLHAArchive.h"
76 #import "OFLHAArchiveEntry.h"
77 #import "OFTarArchive.h"
78 #import "OFTarArchiveEntry.h"
79 #import "OFZIPArchive.h"
80 #import "OFZIPArchiveEntry.h"
81 #import "OFZooArchive.h"
82 #import "OFZooArchiveEntry.h"
83 #import "OFFileManager.h"
84 #ifdef OF_HAVE_FILES
85 # import "OFFile.h"
86 #endif
87 #import "OFINIFile.h"
88 #import "OFEmbeddedIRIHandler.h"
89 #import "OFINICategory.h"
90 #import "OFSettings.h"
91 #ifdef OF_HAVE_SOCKETS
92 # import "OFStreamSocket.h"
93 # import "OFDatagramSocket.h"
95 # import "OFTCPSocket.h"
96 # import "OFUDPSocket.h"
97 # import "OFTLSStream.h"
98 # import "OFX509Certificate.h"
99 # import "OFKernelEventObserver.h"
100 # import "OFDNSQuery.h"
101 # import "OFDNSResourceRecord.h"
102 # import "OFDNSResponse.h"
103 # import "OFDNSResolver.h"
104 # ifdef OF_HAVE_SCTP
105 # import "OFSCTPSocket.h"
106 # endif
107 # ifdef OF_HAVE_UNIX_SOCKETS
108 # import "OFUNIXDatagramSocket.h"
109 # import "OFUNIXSequencedPacketSocket.h"
110 # import "OFUNIXStreamSocket.h"
111 # endif
112 # ifdef OF_HAVE_IPX
113 # import "OFIPXSocket.h"
114 # import "OFSPXSocket.h"
115 # import "OFSPXStreamSocket.h"
116 # endif
117 # ifdef OF_HAVE_APPLETALK
118 # import "OFDDPSocket.h"
119 # endif
120 # import "OFHTTPClient.h"
121 # import "OFHTTPCookie.h"
122 # import "OFHTTPCookieManager.h"
123 # import "OFHTTPRequest.h"
124 # import "OFHTTPResponse.h"
125 # import "OFHTTPServer.h"
126 #endif
127 
128 #ifdef OF_HAVE_SUBPROCESSES
129 # import "OFSubprocess.h"
130 #endif
131 
132 #import "OFCryptographicHash.h"
133 #import "OFMD5Hash.h"
134 #import "OFRIPEMD160Hash.h"
135 #import "OFSHA1Hash.h"
136 #import "OFSHA224Hash.h"
137 #import "OFSHA256Hash.h"
138 #import "OFSHA384Hash.h"
139 #import "OFSHA512Hash.h"
140 
141 #import "OFHMAC.h"
142 
143 #import "OFXMLAttribute.h"
144 #import "OFXMLElement.h"
145 #import "OFXMLAttribute.h"
146 #import "OFXMLCharacters.h"
147 #import "OFXMLCDATA.h"
148 #import "OFXMLComment.h"
149 #import "OFXMLProcessingInstruction.h"
150 #import "OFXMLParser.h"
151 #import "OFXMLElementBuilder.h"
152 
153 #import "OFMessagePackExtension.h"
154 
155 #import "OFApplication.h"
156 #import "OFSystemInfo.h"
157 #import "OFLocale.h"
158 #import "OFOptionsParser.h"
159 #import "OFTimer.h"
160 #import "OFRunLoop.h"
161 
162 #import "OFMatrix4x4.h"
163 
164 #ifdef OF_WINDOWS
165 # import "OFWindowsRegistryKey.h"
166 #endif
167 
168 #import "OFAllocFailedException.h"
169 #import "OFAlreadyOpenException.h"
170 #import "OFException.h"
171 #ifdef OF_HAVE_FILES
172 # import "OFChangeCurrentDirectoryFailedException.h"
173 #endif
174 #import "OFChecksumMismatchException.h"
175 #import "OFCopyItemFailedException.h"
176 #import "OFCreateDirectoryFailedException.h"
177 #import "OFCreateSymbolicLinkFailedException.h"
178 #import "OFEnumerationMutationException.h"
179 #ifdef OF_HAVE_FILES
180 # import "OFGetCurrentDirectoryFailedException.h"
181 #endif
182 #import "OFGetItemAttributesFailedException.h"
183 #import "OFGetOptionFailedException.h"
184 #import "OFHashAlreadyCalculatedException.h"
185 #import "OFHashNotCalculatedException.h"
186 #import "OFInitializationFailedException.h"
187 #import "OFInvalidArgumentException.h"
188 #import "OFInvalidEncodingException.h"
189 #import "OFInvalidFormatException.h"
190 #import "OFInvalidJSONException.h"
191 #import "OFInvalidServerResponseException.h"
192 #import "OFLinkItemFailedException.h"
193 #ifdef OF_HAVE_MODULES
194 # import "OFLoadModuleFailedException.h"
195 # import "OFLoadPluginFailedException.h"
196 #endif
197 #import "OFLockFailedException.h"
198 #import "OFMalformedXMLException.h"
199 #import "OFMoveItemFailedException.h"
200 #import "OFNotImplementedException.h"
201 #import "OFNotOpenException.h"
202 #import "OFOpenItemFailedException.h"
203 #import "OFOutOfMemoryException.h"
204 #import "OFOutOfRangeException.h"
205 #import "OFReadFailedException.h"
206 #import "OFReadOrWriteFailedException.h"
207 #import "OFRemoveItemFailedException.h"
208 #import "OFSeekFailedException.h"
209 #import "OFSetItemAttributesFailedException.h"
210 #import "OFSetOptionFailedException.h"
211 #import "OFStillLockedException.h"
212 #import "OFTruncatedDataException.h"
213 #import "OFUnboundNamespaceException.h"
214 #import "OFUnboundPrefixException.h"
215 #import "OFUndefinedKeyException.h"
216 #import "OFUnknownXMLEntityException.h"
217 #import "OFUnlockFailedException.h"
218 #import "OFUnsupportedProtocolException.h"
219 #import "OFUnsupportedVersionException.h"
220 #import "OFWriteFailedException.h"
221 #ifdef OF_HAVE_SOCKETS
222 # import "OFAcceptSocketFailedException.h"
223 # import "OFBindIPSocketFailedException.h"
224 # import "OFBindSocketFailedException.h"
225 # import "OFConnectIPSocketFailedException.h"
226 # import "OFConnectSocketFailedException.h"
227 # import "OFDNSQueryFailedException.h"
228 # import "OFHTTPRequestFailedException.h"
229 # import "OFListenOnSocketFailedException.h"
230 # import "OFObserveKernelEventsFailedException.h"
231 # import "OFResolveHostFailedException.h"
232 # import "OFTLSHandshakeFailedException.h"
233 # ifdef OF_HAVE_UNIX_SOCKETS
234 # import "OFBindUNIXSocketFailedException.h"
235 # import "OFConnectUNIXSocketFailedException.h"
236 # endif
237 # ifdef OF_HAVE_IPX
238 # import "OFBindIPXSocketFailedException.h"
239 # import "OFConnectSPXSocketFailedException.h"
240 # endif
241 # ifdef OF_HAVE_APPLETALK
242 # import "OFBindDDPSocketFailedException.h"
243 # endif
244 #endif
245 #ifdef OF_HAVE_THREADS
246 # import "OFBroadcastConditionFailedException.h"
247 # import "OFConditionStillWaitingException.h"
248 # import "OFJoinThreadFailedException.h"
249 # import "OFSignalConditionFailedException.h"
250 # import "OFStartThreadFailedException.h"
251 # import "OFThreadStillRunningException.h"
252 # import "OFWaitForConditionFailedException.h"
253 #endif
254 #ifdef OF_HAVE_MODULES
255 # import "OFModule.h"
256 # import "OFPlugin.h"
257 #endif
258 #ifdef OF_WINDOWS
259 # import "OFCreateWindowsRegistryKeyFailedException.h"
260 # import "OFDeleteWindowsRegistryKeyFailedException.h"
261 # import "OFDeleteWindowsRegistryValueFailedException.h"
262 # import "OFGetWindowsRegistryValueFailedException.h"
263 # import "OFOpenWindowsRegistryKeyFailedException.h"
264 # import "OFSetWindowsRegistryValueFailedException.h"
265 #endif
266 
267 #ifdef OF_HAVE_ATOMIC_OPS
268 # import "OFAtomic.h"
269 #endif
270 #import "OFLocking.h"
271 #import "OFOnce.h"
272 #import "OFThread.h"
273 #ifdef OF_HAVE_THREADS
274 # import "OFCondition.h"
275 # import "OFMutex.h"
276 # import "OFPlainCondition.h"
277 # import "OFPlainMutex.h"
278 # import "OFPlainThread.h"
279 # import "OFRecursiveMutex.h"
280 # import "OFTLSKey.h"
281 #endif
282 
283 #import "OFPBKDF2.h"
284 #import "OFScrypt.h"