IOBluetoothUserLib.inc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. { Parsed from IOBluetooth.framework IOBluetoothUserLib.h }
  2. {$ifdef TYPES}
  3. type
  4. IOBluetoothObjectRef = OpaqueType;
  5. IOBluetoothDeviceRef = OpaqueType;
  6. IOBluetoothL2CAPChannelRef = OpaqueType;
  7. IOBluetoothRFCOMMChannelRef = OpaqueType;
  8. IOBluetoothSDPServiceRecordRef = OpaqueType;
  9. IOBluetoothSDPUUIDRef = OpaqueType;
  10. IOBluetoothSDPDataElementRef = OpaqueType;
  11. IOBluetoothUserNotificationRef = OpaqueType;
  12. IOBluetoothObjectID = culong;
  13. IOBluetoothObjectIDPtr = ^IOBluetoothObjectID;
  14. {$endif}
  15. {$ifdef FUNCTIONS}
  16. function IOBluetoothGetObjectIDFromArguments(argc: cint; argv: PPChar { variable size array of PChar }): IOBluetoothObjectID; cdecl; external; deprecated 'in 10.6 and later';
  17. {$endif}
  18. {$ifdef TYPES}
  19. type
  20. IOBluetoothDeviceSearchOptions = UInt32;
  21. IOBluetoothDeviceSearchOptionsPtr = ^IOBluetoothDeviceSearchOptions;
  22. const
  23. kSearchOptionsNone = 0;
  24. kSearchOptionsAlwaysStartInquiry = 1 shl 0;
  25. kSearchOptionsDiscardCachedResults = 1 shl 1;
  26. type
  27. IOBluetoothDeviceSearchDeviceAttributes = record
  28. address: BluetoothDeviceAddress;
  29. name: BluetoothDeviceName;
  30. serviceClassMajor: BluetoothServiceClassMajor;
  31. deviceClassMajor: BluetoothDeviceClassMajor;
  32. deviceClassMinor: BluetoothDeviceClassMinor;
  33. end;
  34. type
  35. IOBluetoothDeviceSearchDeviceAttributesPtr = ^IOBluetoothDeviceSearchDeviceAttributes;
  36. type
  37. IOBluetoothDeviceSearchAttributes = record
  38. options: IOBluetoothDeviceSearchOptions;
  39. maxResults: IOItemCount;
  40. deviceAttributeCount: IOItemCount;
  41. attributeList: IOBluetoothDeviceSearchDeviceAttributesPtr;
  42. end;
  43. type
  44. IOBluetoothDeviceSearchAttributesPtr = ^IOBluetoothDeviceSearchAttributes;
  45. type
  46. IOBluetoothDeviceSearchTypes = UInt32;
  47. IOBluetoothDeviceSearchTypesPtr = ^IOBluetoothDeviceSearchTypes;
  48. const
  49. kIOBluetoothDeviceSearchClassic = 1;
  50. kIOBluetoothDeviceSearchLE = 2;
  51. {$endif}
  52. {$ifdef FUNCTIONS}
  53. procedure IOBluetoothIgnoreHIDDevice(device: IOBluetoothDeviceRef); cdecl; external;
  54. procedure IOBluetoothRemoveIgnoredHIDDevice(device: IOBluetoothDeviceRef); cdecl; external;
  55. {$endif}
  56. {$ifdef FUNCTIONS}
  57. function IOBluetoothAddServiceDict(serviceDict: CFDictionaryRef; outServiceRecord: IOBluetoothSDPServiceRecordRef): IOReturn; cdecl; external; deprecated 'in 10.9 and later';
  58. function IOBluetoothRemoveServiceWithRecordHandle(serviceRecordHandle: BluetoothSDPServiceRecordHandle): IOReturn; cdecl; external; deprecated 'in 10.9 and later';
  59. {$endif}
  60. {$ifdef TYPES}
  61. const
  62. kIOBluetoothUserNotificationChannelDirectionAny = 0;
  63. kIOBluetoothUserNotificationChannelDirectionIncoming = 1;
  64. kIOBluetoothUserNotificationChannelDirectionOutgoing = 2;
  65. type
  66. IOBluetoothUserNotificationChannelDirection = clong;
  67. type
  68. IOBluetoothUserNotificationCallback = procedure (userRefCon: pointer; inRef: IOBluetoothUserNotificationRef; objectRef: IOBluetoothObjectRef); cdecl;
  69. {$endif}
  70. {$ifdef FUNCTIONS}
  71. function IOBluetoothAddSCOAudioDevice(device: IOBluetoothDeviceRef; configDict: CFDictionaryRef): IOReturn; cdecl; external; deprecated 'in 10.9 and later';
  72. function IOBluetoothRemoveSCOAudioDevice(device: IOBluetoothDeviceRef): IOReturn; cdecl; external; deprecated 'in 10.9 and later';
  73. {$endif}