Skip to content

Commit

Permalink
Merge pull request #1134 from mrolappe/darlingserver-stubs-CoreBluetooth
Browse files Browse the repository at this point in the history
CoreBluetooth framework stubs
  • Loading branch information
facekapow committed Apr 4, 2022
2 parents 6182753 + 64f9c4a commit 74aa503
Show file tree
Hide file tree
Showing 55 changed files with 1,568 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frameworks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_subdirectory(Carbon)
add_subdirectory(CloudKit)
add_subdirectory(ColorSync)
add_subdirectory(Contacts)
add_subdirectory(CoreBluetooth)
add_subdirectory(CoreImage)
add_subdirectory(CoreLocation)
add_subdirectory(CoreMIDI)
Expand Down
42 changes: 42 additions & 0 deletions src/frameworks/CoreBluetooth/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
project(CoreBluetooth)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "1.0.0")

add_framework(CoreBluetooth
FAT
CURRENT_VERSION
VERSION "A"

SOURCES
src/CoreBluetooth.m
src/BTDevicePicker.m
src/CBClassicPeer.m
src/CBCentralManager.m
src/CBRFCOMMChannel.m
src/CBCharacteristic.m
src/CBMutableCharacteristic.m
src/CBScalablePipeManager.m
src/CBAttribute.m
src/CBScalablePipe.m
src/CBDescriptor.m
src/CBMutableDescriptor.m
src/CBPeripheral.m
src/CBService.m
src/CBMutableService.m
src/CBUUID.m
src/CBL2CAPChannel.m
src/CBPeer.m
src/CBClassicManager.m
src/CBXpcConnection.m
src/CBPeripheralManager.m
src/CBCentral.m
src/CBManager.m
src/CBATTRequest.m
src/CBPairingAgent.m

DEPENDENCIES
system
objc
Foundation
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface BTDevicePicker : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBATTRequest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBATTRequest : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBAttribute.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBAttribute : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBCentral.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBCentral : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBCentralManager : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBCharacteristic : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBClassicManager : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBClassicPeer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBClassicPeer : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBDescriptor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBDescriptor : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBL2CAPChannel : NSObject

@end
24 changes: 24 additions & 0 deletions src/frameworks/CoreBluetooth/include/CoreBluetooth/CBManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBManager : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBMutableCharacteristic : NSObject

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/

#include <Foundation/Foundation.h>

@interface CBMutableDescriptor : NSObject

@end
Loading

0 comments on commit 74aa503

Please sign in to comment.