/ src / frameworks / ShazamKit / src / ShazamKit.m
ShazamKit.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 <ShazamKit/ShazamKit.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 SHErrorDeviceToDeviceEncryptionKey = (void*)0;
 33  void* const SHErrorDiscardedAudioDurationKey = (void*)0;
 34  void* const SHErrorDomain = (void*)0;
 35  void* const SHEventSignalIdentifierMusicRecognitionHistoryActivated = (void*)0;
 36  void* const SHEventSignalIdentifierMusicRecognitionRecognitionActivated = (void*)0;
 37  void* const SHMaximumSignatureDuration = (void*)0;
 38  void* const SHMediaItemAlbumName = (void*)0;
 39  void* const SHMediaItemAppleMusicID = (void*)0;
 40  void* const SHMediaItemAppleMusicURL = (void*)0;
 41  void* const SHMediaItemArtist = (void*)0;
 42  void* const SHMediaItemArtworkURL = (void*)0;
 43  void* const SHMediaItemAudioStartDate = (void*)0;
 44  void* const SHMediaItemCreationDate = (void*)0;
 45  void* const SHMediaItemExplicitContent = (void*)0;
 46  void* const SHMediaItemFrequencySkew = (void*)0;
 47  void* const SHMediaItemFrequencySkewRanges = (void*)0;
 48  void* const SHMediaItemFrequencySkewRangesSwift = (void*)0;
 49  void* const SHMediaItemGenres = (void*)0;
 50  void* const SHMediaItemISRC = (void*)0;
 51  void* const SHMediaItemLyricsSnippet = (void*)0;
 52  void* const SHMediaItemMatchOffset = (void*)0;
 53  void* const SHMediaItemPresentationSettingOpenResultInBrowserOnFailure = (void*)0;
 54  void* const SHMediaItemQueryMatchOffsetRanges = (void*)0;
 55  void* const SHMediaItemReferenceMatchOffsetRanges = (void*)0;
 56  void* const SHMediaItemReleaseDate = (void*)0;
 57  void* const SHMediaItemShazamCount = (void*)0;
 58  void* const SHMediaItemShazamID = (void*)0;
 59  void* const SHMediaItemSpeedSkew = (void*)0;
 60  void* const SHMediaItemStaticLyricLines = (void*)0;
 61  void* const SHMediaItemSubtitle = (void*)0;
 62  void* const SHMediaItemSyncedLyricsSnippet = (void*)0;
 63  void* const SHMediaItemTimeRanges = (void*)0;
 64  void* const SHMediaItemTimeRangesSwift = (void*)0;
 65  void* const SHMediaItemTitle = (void*)0;
 66  void* const SHMediaItemVideoURL = (void*)0;
 67  void* const SHMediaItemWebURL = (void*)0;
 68  void* const SHMediaLibraryErrorDomain = (void*)0;
 69  void* const SHMediaLibrarySyncStartConditionInitialFetch = (void*)0;
 70  void* const SHMediaLibrarySyncStartConditionInitialUpload = (void*)0;
 71  void* const SHMediaLibrarySyncStartConditionMigration = (void*)0;
 72  void* const SHMediaLibrarySyncStartConditionRemotePush = (void*)0;
 73  void* const SHMediaLibrarySyncStartConditionUserAction = (void*)0;
 74  void* const SHNotificationKeySessionError = (void*)0;
 75  void* const SHNotificationKeySessionMatch = (void*)0;
 76  void* const SHNotificationKeySessionSignature = (void*)0;
 77  void* const SHNotificationNameSessionResult = (void*)0;
 78  void* const SHShazamKitServiceName = (void*)0;
 79  void* const SHShazamKitUIServiceName = (void*)0;
 80  void* const _ZTSNSt3__113basic_fstreamIcNS_11char_traitsIcEEEE = (void*)0;
 81  void* const _ZTSNSt3__117bad_function_callE = (void*)0;
 82  
 83  void *SHShazamKitClientInterface(void) {
 84      if (verbose) puts("STUB: SHShazamKitClientInterface called");
 85      return NULL;
 86  }
 87  
 88  void *SHShazamKitServiceInterface(void) {
 89      if (verbose) puts("STUB: SHShazamKitServiceInterface called");
 90      return NULL;
 91  }
 92  
 93  void *SHShazamKitUIClientInterface(void) {
 94      if (verbose) puts("STUB: SHShazamKitUIClientInterface called");
 95      return NULL;
 96  }
 97  
 98  void *SHShazamKitUIServiceInterface(void) {
 99      if (verbose) puts("STUB: SHShazamKitUIServiceInterface called");
100      return NULL;
101  }
102