/ src / frameworks / UniformTypeIdentifiers / src / UniformTypeIdentifiers.m
UniformTypeIdentifiers.m
  1  /*
  2   This file is part of Darling.
  3  
  4   Copyright (C) 2023 Darling Team
  5  
  6   Darling is free software: you can redistribute it and/or modify
  7   it under the terms of the GNU General Public License as published by
  8   the Free Software Foundation, either version 3 of the License, or
  9   (at your option) any later version.
 10  
 11   Darling is distributed in the hope that it will be useful,
 12   but WITHOUT ANY WARRANTY; without even the implied warranty of
 13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 14   GNU General Public License for more details.
 15  
 16   You should have received a copy of the GNU General Public License
 17   along with Darling.  If not, see <http://www.gnu.org/licenses/>.
 18  */
 19  
 20  
 21  #include <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
 22  #include <stdlib.h>
 23  #include <stdio.h>
 24  
 25  static int verbose = 0;
 26  __attribute__((constructor))
 27  static void initme(void) {
 28      verbose = getenv("STUB_VERBOSE") != NULL;
 29  }
 30  
 31  
 32  void* const UTTagClassFilenameExtension = (void*)0;
 33  void* const UTTagClassMIMEType = (void*)0;
 34  void* const UTType3DContent = (void*)0;
 35  void* const UTTypeAIFF = (void*)0;
 36  void* const UTTypeARReferenceObject = (void*)0;
 37  void* const UTTypeAVI = (void*)0;
 38  void* const UTTypeAliasFile = (void*)0;
 39  void* const UTTypeAppleArchive = (void*)0;
 40  void* const UTTypeAppleProtectedMPEG4Audio = (void*)0;
 41  void* const UTTypeAppleProtectedMPEG4Video = (void*)0;
 42  void* const UTTypeAppleScript = (void*)0;
 43  void* const UTTypeApplication = (void*)0;
 44  void* const UTTypeApplicationBundle = (void*)0;
 45  void* const UTTypeApplicationExtension = (void*)0;
 46  void* const UTTypeArchive = (void*)0;
 47  void* const UTTypeAssemblyLanguageSource = (void*)0;
 48  void* const UTTypeAudio = (void*)0;
 49  void* const UTTypeAudiovisualContent = (void*)0;
 50  void* const UTTypeBMP = (void*)0;
 51  void* const UTTypeBZ2 = (void*)0;
 52  void* const UTTypeBinaryPropertyList = (void*)0;
 53  void* const UTTypeBookmark = (void*)0;
 54  void* const UTTypeBundle = (void*)0;
 55  void* const UTTypeCHeader = (void*)0;
 56  void* const UTTypeCPlusPlusHeader = (void*)0;
 57  void* const UTTypeCPlusPlusSource = (void*)0;
 58  void* const UTTypeCSource = (void*)0;
 59  void* const UTTypeCalendarEvent = (void*)0;
 60  void* const UTTypeCommaSeparatedText = (void*)0;
 61  void* const UTTypeCompositeContent = (void*)0;
 62  void* const UTTypeContact = (void*)0;
 63  void* const UTTypeContent = (void*)0;
 64  void* const UTTypeData = (void*)0;
 65  void* const UTTypeDatabase = (void*)0;
 66  void* const UTTypeDelimitedText = (void*)0;
 67  void* const UTTypeDirectory = (void*)0;
 68  void* const UTTypeDiskImage = (void*)0;
 69  void* const UTTypeEPUB = (void*)0;
 70  void* const UTTypeEXE = (void*)0;
 71  void* const UTTypeEmailMessage = (void*)0;
 72  void* const UTTypeExecutable = (void*)0;
 73  void* const UTTypeFileURL = (void*)0;
 74  void* const UTTypeFlatRTFD = (void*)0;
 75  void* const UTTypeFolder = (void*)0;
 76  void* const UTTypeFont = (void*)0;
 77  void* const UTTypeFramework = (void*)0;
 78  void* const UTTypeGIF = (void*)0;
 79  void* const UTTypeGZIP = (void*)0;
 80  void* const UTTypeHEIC = (void*)0;
 81  void* const UTTypeHEIF = (void*)0;
 82  void* const UTTypeHTML = (void*)0;
 83  void* const UTTypeICNS = (void*)0;
 84  void* const UTTypeICO = (void*)0;
 85  void* const UTTypeImage = (void*)0;
 86  void* const UTTypeInternetLocation = (void*)0;
 87  void* const UTTypeInternetShortcut = (void*)0;
 88  void* const UTTypeItem = (void*)0;
 89  void* const UTTypeJPEG = (void*)0;
 90  void* const UTTypeJSON = (void*)0;
 91  void* const UTTypeJavaScript = (void*)0;
 92  void* const UTTypeLivePhoto = (void*)0;
 93  void* const UTTypeLog = (void*)0;
 94  void* const UTTypeM3UPlaylist = (void*)0;
 95  void* const UTTypeMIDI = (void*)0;
 96  void* const UTTypeMP3 = (void*)0;
 97  void* const UTTypeMPEG = (void*)0;
 98  void* const UTTypeMPEG2TransportStream = (void*)0;
 99  void* const UTTypeMPEG2Video = (void*)0;
100  void* const UTTypeMPEG4Audio = (void*)0;
101  void* const UTTypeMPEG4Movie = (void*)0;
102  void* const UTTypeMakefile = (void*)0;
103  void* const UTTypeMessage = (void*)0;
104  void* const UTTypeMountPoint = (void*)0;
105  void* const UTTypeMovie = (void*)0;
106  void* const UTTypeOSAScript = (void*)0;
107  void* const UTTypeOSAScriptBundle = (void*)0;
108  void* const UTTypeObjectiveCPlusPlusSource = (void*)0;
109  void* const UTTypeObjectiveCSource = (void*)0;
110  void* const UTTypePDF = (void*)0;
111  void* const UTTypePHPScript = (void*)0;
112  void* const UTTypePKCS12 = (void*)0;
113  void* const UTTypePNG = (void*)0;
114  void* const UTTypePackage = (void*)0;
115  void* const UTTypePerlScript = (void*)0;
116  void* const UTTypePlainText = (void*)0;
117  void* const UTTypePlaylist = (void*)0;
118  void* const UTTypePluginBundle = (void*)0;
119  void* const UTTypePresentation = (void*)0;
120  void* const UTTypePropertyList = (void*)0;
121  void * const UTTypePythonScript = (void*)0;
122  void* const UTTypeQuickLookGenerator = (void*)0;
123  void* const UTTypeQuickTimeMovie = (void*)0;
124  void* const UTTypeRAWImage = (void*)0;
125  void* const UTTypeRTF = (void*)0;
126  void* const UTTypeRTFD = (void*)0;
127  void* const UTTypeRealityFile = (void*)0;
128  void* const UTTypeResolvable = (void*)0;
129  void* const UTTypeRubyScript = (void*)0;
130  void* const UTTypeSVG = (void*)0;
131  void* const UTTypeSceneKitScene = (void*)0;
132  void* const UTTypeScript = (void*)0;
133  void* const UTTypeShellScript = (void*)0;
134  void* const UTTypeSourceCode = (void*)0;
135  void* const UTTypeSpotlightImporter = (void*)0;
136  void* const UTTypeSpreadsheet = (void*)0;
137  void* const UTTypeSwiftSource = (void*)0;
138  void* const UTTypeSymbolicLink = (void*)0;
139  void* const UTTypeSystemPreferencesPane = (void*)0;
140  void* const UTTypeTIFF = (void*)0;
141  void* const UTTypeTabSeparatedText = (void*)0;
142  void* const UTTypeText = (void*)0;
143  void* const UTTypeToDoItem = (void*)0;
144  void* const UTTypeURL = (void*)0;
145  void* const UTTypeURLBookmarkData = (void*)0;
146  void* const UTTypeUSD = (void*)0;
147  void* const UTTypeUSDZ = (void*)0;
148  void* const UTTypeUTF16ExternalPlainText = (void*)0;
149  void* const UTTypeUTF16PlainText = (void*)0;
150  void* const UTTypeUTF8PlainText = (void*)0;
151  void* const UTTypeUTF8TabSeparatedText = (void*)0;
152  void* const UTTypeUnixExecutable = (void*)0;
153  void* const UTTypeVCard = (void*)0;
154  void* const UTTypeVideo = (void*)0;
155  void* const UTTypeVolume = (void*)0;
156  void* const UTTypeWAV = (void*)0;
157  void* const UTTypeWebArchive = (void*)0;
158  void* const UTTypeWebP = (void*)0;
159  void* const UTTypeX509Certificate = (void*)0;
160  void* const UTTypeXML = (void*)0;
161  void* const UTTypeXMLPropertyList = (void*)0;
162  void* const UTTypeXPCService = (void*)0;
163  void* const UTTypeYAML = (void*)0;
164  void* const UTTypeZIP = (void*)0;
165  void* const _UTTagClassBluetoothVendorProductID = (void*)0;
166  void* const _UTTagClassDeviceModelCode = (void*)0;
167  void* const _UTTagClassHFSTypeCode = (void*)0;
168  void* const _UTTagClassPasteboardType = (void*)0;
169  void* const _UTTypeAppCategory = (void*)0;
170  void* const _UTTypeAppCategoryActionGames = (void*)0;
171  void* const _UTTypeAppCategoryAdventureGames = (void*)0;
172  void* const _UTTypeAppCategoryArcadeGames = (void*)0;
173  void* const _UTTypeAppCategoryBoardGames = (void*)0;
174  void* const _UTTypeAppCategoryBookmarks = (void*)0;
175  void* const _UTTypeAppCategoryBooks = (void*)0;
176  void* const _UTTypeAppCategoryBusiness = (void*)0;
177  void* const _UTTypeAppCategoryCardGames = (void*)0;
178  void* const _UTTypeAppCategoryCasinoGames = (void*)0;
179  void* const _UTTypeAppCategoryDeveloperTools = (void*)0;
180  void* const _UTTypeAppCategoryDiceGames = (void*)0;
181  void* const _UTTypeAppCategoryEducation = (void*)0;
182  void* const _UTTypeAppCategoryEducationalGames = (void*)0;
183  void* const _UTTypeAppCategoryEntertainment = (void*)0;
184  void* const _UTTypeAppCategoryFamilyGames = (void*)0;
185  void* const _UTTypeAppCategoryFinance = (void*)0;
186  void* const _UTTypeAppCategoryFoodAndDrink = (void*)0;
187  void* const _UTTypeAppCategoryGames = (void*)0;
188  void* const _UTTypeAppCategoryGraphicsDesign = (void*)0;
189  void* const _UTTypeAppCategoryHealthcareFitness = (void*)0;
190  void* const _UTTypeAppCategoryKidsGames = (void*)0;
191  void* const _UTTypeAppCategoryLifestyle = (void*)0;
192  void* const _UTTypeAppCategoryMagazinesAndNewspapers = (void*)0;
193  void* const _UTTypeAppCategoryMedical = (void*)0;
194  void* const _UTTypeAppCategoryMusic = (void*)0;
195  void* const _UTTypeAppCategoryMusicGames = (void*)0;
196  void* const _UTTypeAppCategoryNavigation = (void*)0;
197  void* const _UTTypeAppCategoryNews = (void*)0;
198  void* const _UTTypeAppCategoryPhotoAndVideo = (void*)0;
199  void* const _UTTypeAppCategoryPhotography = (void*)0;
200  void* const _UTTypeAppCategoryProductivity = (void*)0;
201  void* const _UTTypeAppCategoryPuzzleGames = (void*)0;
202  void* const _UTTypeAppCategoryRacingGames = (void*)0;
203  void* const _UTTypeAppCategoryReference = (void*)0;
204  void* const _UTTypeAppCategoryRolePlayingGames = (void*)0;
205  void* const _UTTypeAppCategoryShopping = (void*)0;
206  void* const _UTTypeAppCategorySimulationGames = (void*)0;
207  void* const _UTTypeAppCategorySocialNetworking = (void*)0;
208  void* const _UTTypeAppCategorySports = (void*)0;
209  void* const _UTTypeAppCategorySportsGames = (void*)0;
210  void* const _UTTypeAppCategoryStrategyGames = (void*)0;
211  void* const _UTTypeAppCategoryTravel = (void*)0;
212  void* const _UTTypeAppCategoryTriviaGames = (void*)0;
213  void* const _UTTypeAppCategoryUtilities = (void*)0;
214  void* const _UTTypeAppCategoryVideo = (void*)0;
215  void* const _UTTypeAppCategoryWeather = (void*)0;
216  void* const _UTTypeAppCategoryWordGames = (void*)0;
217  void* const _UTTypeAppleDevice = (void*)0;
218  void* const _UTTypeAppleEncryptedArchive = (void*)0;
219  void* const _UTTypeAppleTV = (void*)0;
220  void* const _UTTypeAppleWatch = (void*)0;
221  void* const _UTTypeApplicationsFolder = (void*)0;
222  void* const _UTTypeBlockSpecial = (void*)0;
223  void* const _UTTypeCharacterSpecial = (void*)0;
224  void* const _UTTypeComputer = (void*)0;
225  void* const _UTTypeDataContainer = (void*)0;
226  void* const _UTTypeDevice = (void*)0;
227  void* const _UTTypeDisplay = (void*)0;
228  void* const _UTTypeDropFolder = (void*)0;
229  void* const _UTTypeGenericPC = (void*)0;
230  void* const _UTTypeHEIFStandard = (void*)0;
231  void* const _UTTypeHomePod = (void*)0;
232  void* const _UTTypeLibraryFolder = (void*)0;
233  void* const _UTTypeMac = (void*)0;
234  void* const _UTTypeMacBook = (void*)0;
235  void* const _UTTypeMacBookAir = (void*)0;
236  void* const _UTTypeMacBookPro = (void*)0;
237  void* const _UTTypeMacLaptop = (void*)0;
238  void* const _UTTypeMacMini = (void*)0;
239  void* const _UTTypeMacPro = (void*)0;
240  void* const _UTTypeNamedPipeOrFIFO = (void*)0;
241  void* const _UTTypeNetworkNeighborhood = (void*)0;
242  void* const _UTTypePassBundle = (void*)0;
243  void* const _UTTypePassData = (void*)0;
244  void* const _UTTypePassesData = (void*)0;
245  void* const _UTTypeServersFolder = (void*)0;
246  void* const _UTTypeSocket = (void*)0;
247  void* const _UTTypeSpeaker = (void*)0;
248  void* const _UTTypeiMac = (void*)0;
249  void* const _UTTypeiOSDevice = (void*)0;
250  void* const _UTTypeiOSSimulator = (void*)0;
251  void* const _UTTypeiPad = (void*)0;
252  void* const _UTTypeiPhone = (void*)0;
253  void* const _UTTypeiPodTouch = (void*)0;
254  void* const _ZTSSt11logic_error = (void*)0;
255  void* const _ZTSSt12length_error = (void*)0;
256  void* const _ZTSSt19bad_optional_access = (void*)0;
257  void* const _ZTSSt20bad_array_new_length = (void*)0;
258  void* const _ZTSSt9bad_alloc = (void*)0;
259  void* const _ZTSSt9exception = (void*)0;
260  
261  void *_UTGetAllCoreTypesConstants(void) {
262      if (verbose) puts("STUB: _UTGetAllCoreTypesConstants called");
263      return NULL;
264  }
265  
266  void *_UTHardwareColorGetCurrentEnclosureColor(void) {
267      if (verbose) puts("STUB: _UTHardwareColorGetCurrentEnclosureColor called");
268      return NULL;
269  }
270  
271  void *_UTHardwareColorGetDebugDescription(void) {
272      if (verbose) puts("STUB: _UTHardwareColorGetDebugDescription called");
273      return NULL;
274  }
275  
276  void *_UTHardwareColorMakeWithIndex(void) {
277      if (verbose) puts("STUB: _UTHardwareColorMakeWithIndex called");
278      return NULL;
279  }
280  
281  void *_UTHardwareColorMakeWithRGBComponents(void) {
282      if (verbose) puts("STUB: _UTHardwareColorMakeWithRGBComponents called");
283      return NULL;
284  }
285  
286  void *_UTHardwareColorsAreEqual(void) {
287      if (verbose) puts("STUB: _UTHardwareColorsAreEqual called");
288      return NULL;
289  }
290  
291  void *_UTIdentifierGetCanonicalRepresentation(void) {
292      if (verbose) puts("STUB: _UTIdentifierGetCanonicalRepresentation called");
293      return NULL;
294  }
295  
296  void *_UTIdentifierGetHashCode(void) {
297      if (verbose) puts("STUB: _UTIdentifierGetHashCode called");
298      return NULL;
299  }
300  
301  void *_UTIdentifiersAreEqual(void) {
302      if (verbose) puts("STUB: _UTIdentifiersAreEqual called");
303      return NULL;
304  }
305  
306  void *_UTPrintModelCodesForCurrentDevice(void) {
307      if (verbose) puts("STUB: _UTPrintModelCodesForCurrentDevice called");
308      return NULL;
309  }
310  
311  void *_UTSetRuntimeIssueCatcher(void) {
312      if (verbose) puts("STUB: _UTSetRuntimeIssueCatcher called");
313      return NULL;
314  }
315  
316  void *_UTTaggedTypeCreate(void) {
317      if (verbose) puts("STUB: _UTTaggedTypeCreate called");
318      return NULL;
319  }
320  
321  void *__UNIFORM_TYPE_IDENTIFIER_WAS_NOT_DECLARED_IN_INFO_PLIST_OF_BUNDLE__(void) {
322      if (verbose) puts("STUB: __UNIFORM_TYPE_IDENTIFIER_WAS_NOT_DECLARED_IN_INFO_PLIST_OF_BUNDLE__ called");
323      return NULL;
324  }
325  
326  void *__UTFindCoreTypesConstantWithIdentifier(void) {
327      if (verbose) puts("STUB: __UTFindCoreTypesConstantWithIdentifier called");
328      return NULL;
329  }
330  
331  void *__UTGetDeclarationStatusFromInfoPlist(void) {
332      if (verbose) puts("STUB: __UTGetDeclarationStatusFromInfoPlist called");
333      return NULL;
334  }
335