![]() |
RDK Documentation (Open Sourced RDK Components)
|
#include <string.h>#include <stdlib.h>#include <unistd.h>#include "cJSON.h"#include "btrMgr_logger.h"#include "btrMgr_Types.h"#include "btrMgr_persistIface.h"
Go to the source code of this file.
Data Structures | |
| struct | _stBTRMgrPIHdl |
Macros | |
| #define | BTRMGR_PI_DEVID_LEN 17 |
| #define | BTRMGR_PI_VOL_LEN 4 |
Typedefs | |
| typedef struct _stBTRMgrPIHdl | stBTRMgrPIHdl |
Functions | |
| static char * | readPersistentFile (char *fileContent) |
| static void | writeToPersistentFile (char *fileName, cJSON *profileData) |
| eBTRMgrRet | BTRMgr_PI_Init (tBTRMgrPIHdl *hBTRMgrPiHdl) |
| This API initializes bluetooth manager's persistent storage interface. More... | |
| eBTRMgrRet | BTRMgr_PI_DeInit (tBTRMgrPIHdl hBTRMgrPiHdl) |
| This API deinitializes bluetooth manager's persistent storage interface. More... | |
| eBTRMgrRet | BTRMgr_PI_GetLEBeaconLimitingStatus (BTRMGR_Beacon_PersistentData_t *persistentData) |
| eBTRMgrRet | BTRMgr_PI_SetLEBeaconLimitingStatus (BTRMGR_Beacon_PersistentData_t *persistentData) |
| eBTRMgrRet | BTRMgr_PI_GetAllProfiles (tBTRMgrPIHdl hBTRMgrPiHdl, BTRMGR_PersistentData_t *persistentData) |
| This API reads all bluetooth profiles from json file and saves to BTRMGR_PersistentData_t structure. More... | |
| eBTRMgrRet | BTRMgr_PI_AddProfile (tBTRMgrPIHdl hBTRMgrPiHdl, BTRMGR_Profile_t *persistProfile) |
| This API adds a single bluetooth profile to json file. More... | |
| eBTRMgrRet | BTRMgr_PI_SetAllProfiles (tBTRMgrPIHdl hBTRMgrPiHdl, BTRMGR_PersistentData_t *persistentData) |
| This API sets all bluetooth profiles. More... | |
| eBTRMgrRet | BTRMgr_PI_RemoveProfile (tBTRMgrPIHdl hBTRMgrPiHdl, BTRMGR_Profile_t *persistProfile) |
| This API removes a single bluetooth profile from json file. More... | |
| eBTRMgrRet | BTRMgr_PI_GetProfile (stBTRMgrPersistProfile *persistProfile, char *profileName, char *deviceId) |
@description This file defines bluetooth manager's Persistent storage interfaces
Definition in file btrMgr_persistIface.c.
| struct _stBTRMgrPIHdl |
Definition at line 49 of file btrMgr_persistIface.c.

| Data Fields | ||
|---|---|---|
| BTRMGR_PersistentData_t | piData | |