ObjFW
ObjFW.h
1 /*
2  * Copyright (c) 2008-2024 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 "OFMethodSignature.h"
48 #import "OFInvocation.h"
49 
50 #import "OFNumber.h"
51 #import "OFDate.h"
52 #import "OFIRI.h"
53 #import "OFIRIHandler.h"
54 #import "OFUUID.h"
55 #import "OFColor.h"
56 
57 #import "OFNotification.h"
58 #import "OFNotificationCenter.h"
59 
60 #import "OFStream.h"
61 #import "OFSeekableStream.h"
62 #import "OFMemoryStream.h"
63 #import "OFStdIOStream.h"
64 #import "OFInflateStream.h"
65 #import "OFInflate64Stream.h"
66 #import "OFGZIPStream.h"
67 #import "OFLHAArchive.h"
68 #import "OFLHAArchiveEntry.h"
69 #import "OFTarArchive.h"
70 #import "OFTarArchiveEntry.h"
71 #import "OFZIPArchive.h"
72 #import "OFZIPArchiveEntry.h"
73 #import "OFZooArchive.h"
74 #import "OFZooArchiveEntry.h"
75 #import "OFFileManager.h"
76 #ifdef OF_HAVE_FILES
77 # import "OFFile.h"
78 #endif
79 #import "OFINIFile.h"
80 #import "OFINICategory.h"
81 #import "OFSettings.h"
82 #ifdef OF_HAVE_SOCKETS
83 # import "OFStreamSocket.h"
84 # import "OFDatagramSocket.h"
86 # import "OFTCPSocket.h"
87 # import "OFUDPSocket.h"
88 # import "OFTLSStream.h"
89 # import "OFKernelEventObserver.h"
90 # import "OFDNSQuery.h"
91 # import "OFDNSResourceRecord.h"
92 # import "OFDNSResponse.h"
93 # import "OFDNSResolver.h"
94 # ifdef OF_HAVE_SCTP
95 # import "OFSCTPSocket.h"
96 # endif
97 # ifdef OF_HAVE_UNIX_SOCKETS
98 # import "OFUNIXDatagramSocket.h"
99 # import "OFUNIXSequencedPacketSocket.h"
100 # import "OFUNIXStreamSocket.h"
101 # endif
102 # ifdef OF_HAVE_IPX
103 # import "OFIPXSocket.h"
104 # import "OFSPXSocket.h"
105 # import "OFSPXStreamSocket.h"
106 # endif
107 # ifdef OF_HAVE_APPLETALK
108 # import "OFDDPSocket.h"
109 # endif
110 # import "OFHTTPClient.h"
111 # import "OFHTTPCookie.h"
112 # import "OFHTTPCookieManager.h"
113 # import "OFHTTPRequest.h"
114 # import "OFHTTPResponse.h"
115 # import "OFHTTPServer.h"
116 #endif
117 
118 #ifdef OF_HAVE_SUBPROCESSES
119 # import "OFSubprocess.h"
120 #endif
121 
122 #import "OFCryptographicHash.h"
123 #import "OFMD5Hash.h"
124 #import "OFRIPEMD160Hash.h"
125 #import "OFSHA1Hash.h"
126 #import "OFSHA224Hash.h"
127 #import "OFSHA256Hash.h"
128 #import "OFSHA384Hash.h"
129 #import "OFSHA512Hash.h"
130 
131 #import "OFHMAC.h"
132 
133 #import "OFXMLAttribute.h"
134 #import "OFXMLElement.h"
135 #import "OFXMLAttribute.h"
136 #import "OFXMLCharacters.h"
137 #import "OFXMLCDATA.h"
138 #import "OFXMLComment.h"
139 #import "OFXMLProcessingInstruction.h"
140 #import "OFXMLParser.h"
141 #import "OFXMLElementBuilder.h"
142 
143 #import "OFMessagePackExtension.h"
144 
145 #import "OFApplication.h"
146 #import "OFSystemInfo.h"
147 #import "OFLocale.h"
148 #import "OFOptionsParser.h"
149 #import "OFTimer.h"
150 #import "OFRunLoop.h"
151 
152 #import "OFMatrix4x4.h"
153 
154 #ifdef OF_WINDOWS
155 # import "OFWindowsRegistryKey.h"
156 #endif
157 
158 #import "OFAllocFailedException.h"
159 #import "OFAlreadyOpenException.h"
160 #import "OFException.h"
161 #import "OFChangeCurrentDirectoryFailedException.h"
162 #import "OFChecksumMismatchException.h"
163 #import "OFCopyItemFailedException.h"
164 #import "OFCreateDirectoryFailedException.h"
165 #import "OFCreateSymbolicLinkFailedException.h"
166 #import "OFEnumerationMutationException.h"
167 #ifdef OF_HAVE_FILES
168 # import "OFGetCurrentDirectoryFailedException.h"
169 #endif
170 #import "OFGetItemAttributesFailedException.h"
171 #import "OFGetOptionFailedException.h"
172 #import "OFHashAlreadyCalculatedException.h"
173 #import "OFHashNotCalculatedException.h"
174 #import "OFInitializationFailedException.h"
175 #import "OFInvalidArgumentException.h"
176 #import "OFInvalidEncodingException.h"
177 #import "OFInvalidFormatException.h"
178 #import "OFInvalidJSONException.h"
179 #import "OFInvalidServerResponseException.h"
180 #import "OFLinkItemFailedException.h"
181 #ifdef OF_HAVE_PLUGINS
182 # import "OFLoadPluginFailedException.h"
183 #endif
184 #import "OFLockFailedException.h"
185 #import "OFMalformedXMLException.h"
186 #import "OFMoveItemFailedException.h"
187 #import "OFNotImplementedException.h"
188 #import "OFNotOpenException.h"
189 #import "OFOpenItemFailedException.h"
190 #import "OFOutOfMemoryException.h"
191 #import "OFOutOfRangeException.h"
192 #import "OFReadFailedException.h"
193 #import "OFReadOrWriteFailedException.h"
194 #import "OFRemoveItemFailedException.h"
195 #import "OFSeekFailedException.h"
196 #import "OFSetItemAttributesFailedException.h"
197 #import "OFSetOptionFailedException.h"
198 #import "OFStillLockedException.h"
199 #import "OFTruncatedDataException.h"
200 #import "OFUnboundNamespaceException.h"
201 #import "OFUnboundPrefixException.h"
202 #import "OFUndefinedKeyException.h"
203 #import "OFUnknownXMLEntityException.h"
204 #import "OFUnlockFailedException.h"
205 #import "OFUnsupportedProtocolException.h"
206 #import "OFUnsupportedVersionException.h"
207 #import "OFWriteFailedException.h"
208 #ifdef OF_HAVE_SOCKETS
209 # import "OFAcceptSocketFailedException.h"
210 # import "OFBindIPSocketFailedException.h"
211 # import "OFBindSocketFailedException.h"
212 # import "OFConnectIPSocketFailedException.h"
213 # import "OFConnectSocketFailedException.h"
214 # import "OFDNSQueryFailedException.h"
215 # import "OFHTTPRequestFailedException.h"
216 # import "OFListenOnSocketFailedException.h"
217 # import "OFObserveKernelEventsFailedException.h"
218 # import "OFResolveHostFailedException.h"
219 # import "OFTLSHandshakeFailedException.h"
220 # ifdef OF_HAVE_UNIX_SOCKETS
221 # import "OFBindUNIXSocketFailedException.h"
222 # import "OFConnectUNIXSocketFailedException.h"
223 # endif
224 # ifdef OF_HAVE_IPX
225 # import "OFBindIPXSocketFailedException.h"
226 # import "OFConnectSPXSocketFailedException.h"
227 # endif
228 # ifdef OF_HAVE_APPLETALK
229 # import "OFBindDDPSocketFailedException.h"
230 # endif
231 #endif
232 #ifdef OF_HAVE_THREADS
233 # import "OFBroadcastConditionFailedException.h"
234 # import "OFConditionStillWaitingException.h"
235 # import "OFJoinThreadFailedException.h"
236 # import "OFSignalConditionFailedException.h"
237 # import "OFStartThreadFailedException.h"
238 # import "OFThreadStillRunningException.h"
239 # import "OFWaitForConditionFailedException.h"
240 #endif
241 #ifdef OF_HAVE_PLUGINS
242 # import "OFPlugin.h"
243 #endif
244 #ifdef OF_WINDOWS
245 # import "OFCreateWindowsRegistryKeyFailedException.h"
246 # import "OFDeleteWindowsRegistryKeyFailedException.h"
247 # import "OFDeleteWindowsRegistryValueFailedException.h"
248 # import "OFGetWindowsRegistryValueFailedException.h"
249 # import "OFOpenWindowsRegistryKeyFailedException.h"
250 # import "OFSetWindowsRegistryValueFailedException.h"
251 #endif
252 
253 #ifdef OF_HAVE_ATOMIC_OPS
254 # import "OFAtomic.h"
255 #endif
256 #import "OFLocking.h"
257 #import "OFOnce.h"
258 #import "OFThread.h"
259 #ifdef OF_HAVE_THREADS
260 # import "OFCondition.h"
261 # import "OFMutex.h"
262 # import "OFPlainCondition.h"
263 # import "OFPlainMutex.h"
264 # import "OFPlainThread.h"
265 # import "OFRecursiveMutex.h"
266 # import "OFTLSKey.h"
267 #endif
268 
269 #import "OFPBKDF2.h"
270 #import "OFScrypt.h"