Commit Graph

23 Commits (db04a0eb5c3503aeb07a6dc5eaad57e3b59956db)

Author SHA1 Message Date
Olivier Martin db04a0eb5c Introduce gattlib_connection_is_valid() to not access 'connection->device' 2024-04-08 23:10:47 +02:00
Olivier Martin dc009029fa Log when the adapter or device has been released 2024-04-08 12:01:53 +02:00
Olivier Martin cdd62f6d35 Return specific error code when the adapter or device has been removed 2024-04-08 10:08:57 +02:00
Olivier Martin 0e34df58e5 Single lock for all gattlib library 2024-04-08 00:15:16 +02:00
Olivier Martin 014c2802ee Refactor code to better separate gattlib_adapter_t, gattlib_device_t, gattlib_connection_t and their backends 2024-04-05 13:20:40 +02:00
Olivier Martin db629448fd Use calloc() instead of malloc() when allocating 'struct' or array in memory 2024-03-29 00:20:30 +01:00
Olivier Martin a85dd83015 Consolidate handlers 2024-03-29 00:19:56 +01:00
Olivier Martin 6cea2d37db Ensure gattlib can be built without Python support 2024-03-25 12:43:17 +01:00
Olivier Martin 2a46780e96 Fix gattlib and examples 2024-03-18 00:19:44 +01:00
Olivier Martin b2c4094cb6 gattlib-py: Fix some memory leaks 2024-03-13 13:52:57 +01:00
Olivier Martin 00cbc1ab87 common: Set pointer to NULL after freeing them 2024-02-27 11:28:49 +01:00
Olivier Martin 7f6979c82b gatt_notification: Use thread pool of one thread to ensure serial processing of notification 2024-02-15 22:00:06 +01:00
Olivier Martin 959ee55b61 gattlib: Change gattlib_register_(on_disconnect|notification|indication) 2024-02-15 22:00:06 +01:00
Olivier Martin 1d80061bf2 python: Fix callback back to native gattlib 2024-02-12 22:04:57 +01:00
Olivier Martin 028dfef5fc python: Update deprecated calls 2024-02-12 00:13:07 +01:00
Olivier Martin 2570850046 common/gattlib_common: Release Python PyObject 2022-05-11 20:29:07 +02:00
Olivier Martin 1afaa8b460 Introduce Gattlib logging backend 2021-10-18 16:46:45 +02:00
Olivier Martin f4ecc64d29 Clarify and update license 2021-09-01 00:04:00 +02:00
Chris Thornton d26065d6ad Only pass pointer value as long type on 64 bit systems.
When testing this on a RPI this causes issues, so we need to switch
based on the architecture.
2020-04-07 22:28:11 +02:00
Chris Thornton 1779c75062 Pass the pointer value as a long int to python
The pointer could be truncated which results in an invalid memory
address when trying to get at the array.
2020-04-07 11:48:54 +02:00
Michael Rolland 4b9252bad1 gattlib: Fix disconnection handler type check 2019-07-11 17:54:56 +02:00
Olivier Martin e74543fa56 Initial Python support 2019-07-07 22:17:49 +02:00
Olivier Martin 046f077085 gattlib: Move 'struct _gatt_connection_t' out of 'gattlib.h' 2019-07-07 22:17:49 +02:00