Skip to content

Commit

Permalink
storage:patch for KVDB storage feature
Browse files Browse the repository at this point in the history
bug: v/42051

rootcause: implement the KVDB storage feature

Signed-off-by: liuxiang18 <[email protected]>
  • Loading branch information
liuX10 committed Dec 23, 2024
1 parent ec30593 commit 8ab64c2
Show file tree
Hide file tree
Showing 4 changed files with 461 additions and 77 deletions.
14 changes: 11 additions & 3 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ config BLUETOOTH
depends on LIBUV_EXTENSION

if BLUETOOTH
config BLUETOOTH_STORAGE_PROPERTY_SUPPORT
bool "Bluetooth Storage KVDB Property support"
default n

choice
prompt "select Bluetooth Storage Method(Unqlite, KVDB)"
default BLUETOOTH_STORAGE_UNQLITE_SUPPORT
config BLUETOOTH_STORAGE_PROPERTY_SUPPORT
bool "Bluetooth Storage KVDB Property support"
depends on KVDB
config BLUETOOTH_STORAGE_UNQLITE_SUPPORT
bool "Bluetooth Storage uv_db support"
depends on UNQLITE
endchoice

config BLUETOOTH_BREDR_SUPPORT
bool "BREDR support"
Expand Down
2 changes: 2 additions & 0 deletions service/common/bluetooth_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ typedef enum {
typedef struct {
bt_address_t addr;
ble_addr_type_t addr_type;
// only can add member after "addr_type" if needed, see function bt_storage_save_remote_device for reasons.
char name[BT_REM_NAME_MAX_LEN + 1];
char alias[BT_REM_NAME_MAX_LEN + 1];
uint32_t class_of_device;
Expand All @@ -78,6 +79,7 @@ typedef struct {
typedef struct {
bt_address_t addr;
ble_addr_type_t addr_type;
// only can add member after "addr_type" if needed, see function bt_storage_save_le_remote_device for reasons.
uint8_t smp_key[80];
bt_device_type_t device_type;
} remote_device_le_properties_t;
Expand Down
Loading

0 comments on commit 8ab64c2

Please sign in to comment.