Commit Graph
129 Commits
Author SHA1 Message Date
Vibhav Pant dd5c6ed637 Shutdown: return after shutting down executor. 2023-09-08 16:49:35 +05:30
Vibhav Pant 844e0da3e0 Remove unneeded functions, add UuidFromString. 2023-09-08 16:49:08 +05:30
Vibhav Pant 0a53b9cba3 Add additional functions. 2023-09-08 16:48:58 +05:30
Vibhav Pant bd741337e8 Set discovery filter to "bredr" before starting discovery. 2023-09-08 16:48:28 +05:30
Vibhav Pant 4003ba0d8a Allow marking/unmarking devices as lost. 2023-09-08 16:48:00 +05:30
Vibhav Pant 9b7d627358 Add an ObjectManager instance at / for both system and session bus connections. 2023-09-06 23:12:21 +05:30
Vibhav Pant e0f601e6fd Refactor 2023-09-06 23:08:06 +05:30
Vibhav Pant 7517ba0061 Don't request a name for the default bus connection. 2023-09-06 19:53:03 +05:30
Vibhav Pant 18705559d4 BluetoothDevice: Inherit from ble_v2::BlePeripheral as well. 2023-09-05 20:16:40 +05:30
Vibhav Pant 501a77b2db Construct BluetoothClassicMedium correctly. 2023-09-05 20:01:13 +05:30
Vibhav Pant d960bfc9e1 Add support for sharing DiscoveryCallbacks across BluetoothDevices. 2023-09-05 20:00:25 +05:30
Vibhav Pant 4bf11c8db0 Refactor bluetooth code to use shared pointers instead of references. 2023-09-05 19:45:10 +05:30
Vibhav Pant df5800fc70 Use atexit to cleanup bus connections before exiting. 2023-09-03 13:10:18 +05:30
Vibhav Pant 4ec764950c Use separate locks for the the thread vector and task queue. 2023-09-02 22:04:32 +05:30
Vibhav Pant 57aedf6839 Use CancellationFlagListener to ensure that Accept exits. 2023-09-02 22:04:07 +05:30
Vibhav Pant de5159ea4a GetOsDeviceName: Use avahi's GetHostNameFqdn 2023-09-02 13:32:37 +05:30
Vibhav Pant 25a430c9e4 Fix typo. 2023-09-02 13:01:20 +05:30
Vibhav Pant ca2e1c205b Disable AP isolation for softAP 2023-09-01 21:38:25 +05:30
Vibhav Pant 252964b113 ConnectToProfile: log about the connection attempt. 2023-09-01 20:02:40 +05:30
Vibhav Pant c8c1e87f6b Minor refactor. 2023-09-01 20:01:13 +05:30
Vibhav Pant 9c41b22f30 Set the initial value for AtomicBoolean. 2023-09-01 20:00:50 +05:30
Vibhav Pant bdce878bef BluetoothServerSocket: Cancel an ongoing Accept request on Close. 2023-09-01 20:00:27 +05:30
Vibhav Pant 4619308425 Add support for request cancellation to GetServiceRecordFD. 2023-09-01 19:59:38 +05:30
Vibhav Pant 07ac2f1a99 WiFiLanSocket: Don't store an extra copy of the FD. 2023-09-01 19:59:08 +05:30
Vibhav Pant d2eee1f705 StartWifiHotspot: Generate connection UUID in the correct format. 2023-09-01 19:58:44 +05:30
Vibhav Pant d6b150db6d Add BluetoothInputStream, BluetoothOutputStream. 2023-09-01 19:58:05 +05:30
Vibhav Pant 20589b408f Register: Set options to allow RFCOMM socket creation. 2023-09-01 17:03:23 +05:30
Vibhav Pant 0b3accbe7e Move stream implementation to its own file. 2023-09-01 17:03:06 +05:30
Vibhav Pant b702bda1f6 Disable Start/StopWifiDirect for now. 2023-08-31 21:00:01 +05:30
Vibhav Pant 0b7b9e917d Reuse the Windows mutex implementation. 2023-08-31 20:58:27 +05:30
Vibhav Pant adb92aba65 Print: Fix crash because of the buffer being freed incorrectly. 2023-08-31 01:43:15 +05:30
Vibhav Pant 41308744b4 GetIP4Config: Avoid unnecessary lookups for unrelated connections. 2023-08-30 19:24:11 +05:30
Vibhav Pant 59594c482e GetInformation: Prevent potential UB while getting AP frequency 2023-08-30 19:20:36 +05:30
Vibhav Pant 99f9a4e5f0 Use absl::flat_hash_map for known_access_points_. 2023-08-30 19:06:12 +05:30
Vibhav Pant b27a95989f Refactor 2023-08-30 19:06:04 +05:30
Vibhav Pant 0191f6b9ae Split off most of NetworkManager code into their own files. 2023-08-30 18:48:10 +05:30
Vibhav Pant d8b0c254c0 Minor refactoring. 2023-08-30 16:46:41 +05:30
Vibhav Pant a5c5068aa4 Rewrite NetworkManager state to use an enum type for clarity. 2023-08-30 16:46:17 +05:30
Vibhav Pant 808ed3992d clang-format 2023-08-30 13:21:30 +05:30
Vibhav Pant 039d992c1a Minor refactoring. 2023-08-30 01:53:54 +05:30
Vibhav Pant dc2d8cd472 Move dbus stubs to generated package. 2023-08-29 23:56:15 +05:30
Vibhav Pant 393c135f48 Add copyright headers. 2023-08-29 22:12:10 +05:30
Vibhav Pant df00801bf4 Add copyright notice headers. 2023-08-29 22:06:30 +05:30
Vibhav Pant ef3ea70b57 Simplify ObjectManager listener code. 2023-08-29 20:27:49 +05:30
Vibhav Pant afeecca1ba Store a copy of the last known name and address to use for lost devices. 2023-08-29 20:27:23 +05:30
Vibhav Pant 02fdbb5a0c Use the correct object name for LoginManager. 2023-08-29 20:26:45 +05:30
Vibhav Pant fae8c4f6bd Use the correct syslog identifier. 2023-08-29 18:06:14 +05:30
Vibhav Pant 8198275b48 Print: Avoid memory leaks. 2023-08-29 18:01:46 +05:30
Vibhav Pant 6800141045 Add ble_medium.h, ble_v2_medium.h. 2023-08-29 17:01:35 +05:30
Vibhav Pant 671fcf2fe5 ServiceBrowser: Ignore local services. 2023-08-29 16:46:24 +05:30