IOBluetoothUI.m
1 /* 2 This file is part of Darling. 3 4 Copyright (C) 2019 Lubos Dolezel 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 <IOBluetoothUI/IOBluetoothUI.h> 22 #include <stdlib.h> 23 #include <stdio.h> 24 25 static int verbose = 0; 26 27 __attribute__((constructor)) 28 static void initme(void) { 29 verbose = getenv("STUB_VERBOSE") != NULL; 30 } 31 32 void* BluetoothPreferencesChanged(void) 33 { 34 if (verbose) puts("STUB: BluetoothPreferencesChanged called"); 35 return NULL; 36 } 37 38 void* DeviceControllerHCIControllerNotificationHandler(void) 39 { 40 if (verbose) puts("STUB: DeviceControllerHCIControllerNotificationHandler called"); 41 return NULL; 42 } 43 44 void* IOBluetoothAlertHCIControllerPublished(void) 45 { 46 if (verbose) puts("STUB: IOBluetoothAlertHCIControllerPublished called"); 47 return NULL; 48 } 49 50 void* IOBluetoothAlertHCIPowerStateOn(void) 51 { 52 if (verbose) puts("STUB: IOBluetoothAlertHCIPowerStateOn called"); 53 return NULL; 54 } 55 56 void* IOBluetoothDecodeCommand(void) 57 { 58 if (verbose) puts("STUB: IOBluetoothDecodeCommand called"); 59 return NULL; 60 } 61 62 void* IOBluetoothDecodeEvent(void) 63 { 64 if (verbose) puts("STUB: IOBluetoothDecodeEvent called"); 65 return NULL; 66 } 67 68 void* IOBluetoothDecodeGroup(void) 69 { 70 if (verbose) puts("STUB: IOBluetoothDecodeGroup called"); 71 return NULL; 72 } 73 74 void* IOBluetoothDecodeManufacturerName(void) 75 { 76 if (verbose) puts("STUB: IOBluetoothDecodeManufacturerName called"); 77 return NULL; 78 } 79 80 void* IOBluetoothDecodeStatus(void) 81 { 82 if (verbose) puts("STUB: IOBluetoothDecodeStatus called"); 83 return NULL; 84 } 85 86 void* IOBluetoothDeviceSelectorRunPanelWithAttributes(void) 87 { 88 if (verbose) puts("STUB: IOBluetoothDeviceSelectorRunPanelWithAttributes called"); 89 return NULL; 90 } 91 92 void* IOBluetoothGetDefaultNameOfL2CAPPSMString(void) 93 { 94 if (verbose) puts("STUB: IOBluetoothGetDefaultNameOfL2CAPPSMString called"); 95 return NULL; 96 } 97 98 void* IOBluetoothGetDefaultNameOfServiceString(void) 99 { 100 if (verbose) puts("STUB: IOBluetoothGetDefaultNameOfServiceString called"); 101 return NULL; 102 } 103 104 void* IOBluetoothGetDeviceSelectorController(void) 105 { 106 if (verbose) puts("STUB: IOBluetoothGetDeviceSelectorController called"); 107 return NULL; 108 } 109 110 void* IOBluetoothGetGenericTypeStringForDevice(void) 111 { 112 if (verbose) puts("STUB: IOBluetoothGetGenericTypeStringForDevice called"); 113 return NULL; 114 } 115 116 void* IOBluetoothGetGenericTypeStringForDeviceClasses(void) 117 { 118 if (verbose) puts("STUB: IOBluetoothGetGenericTypeStringForDeviceClasses called"); 119 return NULL; 120 } 121 122 void* IOBluetoothGetLocalizedUIStringForKey(void) 123 { 124 if (verbose) puts("STUB: IOBluetoothGetLocalizedUIStringForKey called"); 125 return NULL; 126 } 127 128 void* IOBluetoothGetMajorClassOfDeviceString(void) 129 { 130 if (verbose) puts("STUB: IOBluetoothGetMajorClassOfDeviceString called"); 131 return NULL; 132 } 133 134 void* IOBluetoothGetMajorClassOfDeviceStringClass(void) 135 { 136 if (verbose) puts("STUB: IOBluetoothGetMajorClassOfDeviceStringClass called"); 137 return NULL; 138 } 139 140 void* IOBluetoothGetMinorClassOfDeviceString(void) 141 { 142 if (verbose) puts("STUB: IOBluetoothGetMinorClassOfDeviceString called"); 143 return NULL; 144 } 145 146 void* IOBluetoothGetMinorClassOfDeviceStringClass(void) 147 { 148 if (verbose) puts("STUB: IOBluetoothGetMinorClassOfDeviceStringClass called"); 149 return NULL; 150 } 151 152 void* IOBluetoothGetPairingController(void) 153 { 154 if (verbose) puts("STUB: IOBluetoothGetPairingController called"); 155 return NULL; 156 } 157 158 void* IOBluetoothIsOptionKeyDown(void) 159 { 160 if (verbose) puts("STUB: IOBluetoothIsOptionKeyDown called"); 161 return NULL; 162 } 163 164 void* IOBluetoothIsServiceUsableByUser(void) 165 { 166 if (verbose) puts("STUB: IOBluetoothIsServiceUsableByUser called"); 167 return NULL; 168 } 169 170 void* IOBluetoothIsShiftKeyDown(void) 171 { 172 if (verbose) puts("STUB: IOBluetoothIsShiftKeyDown called"); 173 return NULL; 174 } 175 176 void* IOBluetoothOpenBluetoothHelpAtPath(void) 177 { 178 if (verbose) puts("STUB: IOBluetoothOpenBluetoothHelpAtPath called"); 179 return NULL; 180 } 181 182 void* IOBluetoothPairingControllerRunPanelWithAttributes(void) 183 { 184 if (verbose) puts("STUB: IOBluetoothPairingControllerRunPanelWithAttributes called"); 185 return NULL; 186 } 187 188 void* IOBluetoothPreferenceGetMenuExtraShowState(void) 189 { 190 if (verbose) puts("STUB: IOBluetoothPreferenceGetMenuExtraShowState called"); 191 return NULL; 192 } 193 194 void* IOBluetoothPreferenceSetMenuExtraShowState(void) 195 { 196 if (verbose) puts("STUB: IOBluetoothPreferenceSetMenuExtraShowState called"); 197 return NULL; 198 } 199 200 void* IOBluetoothServiceBrowserControllerBrowseDevices(void) 201 { 202 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerBrowseDevices called"); 203 return NULL; 204 } 205 206 void* IOBluetoothServiceBrowserControllerBrowseDevicesAsSheet(void) 207 { 208 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerBrowseDevicesAsSheet called"); 209 return NULL; 210 } 211 212 void* IOBluetoothServiceBrowserControllerCreate(void) 213 { 214 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerCreate called"); 215 return NULL; 216 } 217 218 void* IOBluetoothServiceBrowserControllerDiscover(void) 219 { 220 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerDiscover called"); 221 return NULL; 222 } 223 224 void* IOBluetoothServiceBrowserControllerDiscoverAsSheet(void) 225 { 226 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerDiscoverAsSheet called"); 227 return NULL; 228 } 229 230 void* IOBluetoothServiceBrowserControllerDiscoverWithDeviceAttributes(void) 231 { 232 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerDiscoverWithDeviceAttributes called"); 233 return NULL; 234 } 235 236 void* IOBluetoothServiceBrowserControllerSetOptions(void) 237 { 238 if (verbose) puts("STUB: IOBluetoothServiceBrowserControllerSetOptions called"); 239 return NULL; 240 } 241 242 void* IOBluetoothValidateHardware(void) 243 { 244 if (verbose) puts("STUB: IOBluetoothValidateHardware called"); 245 return NULL; 246 } 247 248 void* IOBluetoothValidateHardwareWithDescription(void) 249 { 250 if (verbose) puts("STUB: IOBluetoothValidateHardwareWithDescription called"); 251 return NULL; 252 } 253 254 void* ISCopyDeviceIconPath(void) 255 { 256 if (verbose) puts("STUB: ISCopyDeviceIconPath called"); 257 return NULL; 258 } 259 260 void* ISShouldProposeToAddDeviceToISync(void) 261 { 262 if (verbose) puts("STUB: ISShouldProposeToAddDeviceToISync called"); 263 return NULL; 264 } 265 266 void* ImageForTypeStr(void) 267 { 268 if (verbose) puts("STUB: ImageForTypeStr called"); 269 return NULL; 270 } 271 272 void* ObjectTableDataSource_ColumnSorter(void) 273 { 274 if (verbose) puts("STUB: ObjectTableDataSource_ColumnSorter called"); 275 return NULL; 276 } 277 278 void* TypeForModelStr(void) 279 { 280 if (verbose) puts("STUB: TypeForModelStr called"); 281 return NULL; 282 } 283 284 void* _IOBluetoothUI_AlignCGPointToUserSpace(void) 285 { 286 if (verbose) puts("STUB: _IOBluetoothUI_AlignCGPointToUserSpace called"); 287 return NULL; 288 } 289 290 void* _IOBluetoothUI_AlignCGRectToUserSpace(void) 291 { 292 if (verbose) puts("STUB: _IOBluetoothUI_AlignCGRectToUserSpace called"); 293 return NULL; 294 } 295 296 void* _IOBluetoothUI_AlignPointToUserSpace(void) 297 { 298 if (verbose) puts("STUB: _IOBluetoothUI_AlignPointToUserSpace called"); 299 return NULL; 300 } 301 302 void* _IOBluetoothUI_AlignRectToUserSpace(void) 303 { 304 if (verbose) puts("STUB: _IOBluetoothUI_AlignRectToUserSpace called"); 305 return NULL; 306 } 307 308 void* isDebugLogEnabled(void) 309 { 310 if (verbose) puts("STUB: isDebugLogEnabled called"); 311 return NULL; 312 } 313 314 void* registerValueTransformers(void) 315 { 316 if (verbose) puts("STUB: registerValueTransformers called"); 317 return NULL; 318 }