From b697fedab8efb608b89003bcbd7d53a0fb2bf93a Mon Sep 17 00:00:00 2001 From: Anupam Roy Date: Fri, 17 Jul 2020 14:54:30 +0530 Subject: [PATCH] Mesh: Add enums & signals IPC requests & events Change-Id: I29ae9ed1e4d2ef296446e3cc7279db19db8e2dbe Signed-off-by: Anupam Roy --- include/bt-internal-types.h | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/include/bt-internal-types.h b/include/bt-internal-types.h index fdcc113..723bd73 100644 --- a/include/bt-internal-types.h +++ b/include/bt-internal-types.h @@ -96,6 +96,7 @@ typedef enum { #ifdef TIZEN_FEATURE_BT_AVC_TARGET BT_AUDIO_AVC_EVENT, #endif + BT_MESH_EVENT, /* Will be added */ } bt_event_type_t; @@ -166,6 +167,7 @@ typedef enum { #define BT_FUNC_MAP_BASE ((int)(BT_FUNC_PXP_BASE + 0x0020)) #define BT_FUNC_TDS_BASE ((int)(BT_FUNC_MAP_BASE + 0x0020)) #define BT_FUNC_OTP_BASE ((int)(BT_FUNC_TDS_BASE + 0x0020)) +#define BT_FUNC_MESH_BASE ((int)(BT_FUNC_OTP_BASE + 0x0020)) typedef enum { BT_CHECK_ADAPTER = BT_FUNC_BASE, @@ -471,6 +473,40 @@ typedef enum { BT_OTP_WRITE_VALUE, BT_LE_OTC_CONNECT, BT_LE_OTC_DISCONNECT, + /* BT Mesh */ + BT_MESH_NETWORK_CREATE = BT_FUNC_MESH_BASE, + BT_MESH_NETWORK_LOAD, + BT_MESH_NETWORK_SCAN, + BT_MESH_NETWORK_CANCEL_SCAN, + BT_MESH_NETWORK_SET_CAPABILITIES, + BT_MESH_NETWORK_PROVISION_DEVICE, + BT_MESH_AUTHENTICATION_REPLY, + BT_MESH_NETWORK_SET_NAME, + BT_MESH_NETWORK_ADD_NETKEY, + BT_MESH_NETWORK_DELETE_NETKEY, + BT_MESH_NETWORK_UPDATE_NETKEY, + BT_MESH_NETWORK_ADD_APPKEY, + BT_MESH_NETWORK_DELETE_APPKEY, + BT_MESH_NETWORK_UPDATE_APPKEY, + BT_MESH_NETWORK_GET_NETKEYS, + BT_MESH_NETWORK_GET_APPKEYS, + BT_MESH_NETWORK_GET_NODES, + BT_MESH_ELEMENT_GET_MODELS, + BT_MESH_NODE_BROWSE, + BT_MESH_NODE_GET_VENDOR_FEATURES, + BT_MESH_NODE_CONFIGURE_KEY, + BT_MESH_NODE_TTL_EXECUTE, + BT_MESH_NODE_GET_NETKEYS, + BT_MESH_NODE_GET_APPKEYS, + BT_MESH_MODEL_CONFIGURE_APPKEY, + BT_MESH_MODEL_GET_APPKEY_LIST, + BT_MESH_MODEL_GET_SUBSCRIPTION_LIST, + BT_MESH_MODEL_SET_PUBLICATION, + BT_MESH_MODEL_GET_PUBLICATION, + BT_MESH_NETWORK_CREATE_GROUP, + BT_MESH_NETWORK_GET_GROUPS, + BT_MESH_MODEL_CONFIG_GROUP_SUB, + BT_MESH_MODEL_CONFIG_VIRTUAL_GROUP_SUB } bt_function_t; typedef struct { @@ -543,6 +579,8 @@ typedef struct { #define BT_AUDIO_AVC_PATH "/org/projectx/bt/avc_mode" #endif +#define BT_MESH_PATH "/org/projectx/bt/mesh" + #define BT_ENABLED "Enabled" #define BT_DISABLED "Disabled" #define BT_DISABLED_BATTERY_DATA "AdapterDisabledBatteryData" @@ -713,6 +751,22 @@ typedef struct { #define HEADED_PLUGIN_FILEPATH64 "/usr/lib64/bt-plugin-headed.so" #define FILEPATH_ARCH_64 "/usr/lib64" +#define BT_MESH_SCAN_STARTED "MeshScanStarted" +#define BT_MESH_SCAN_FINISHED "MeshScanFinished" +#define BT_MESH_SCAN_RESULT "MeshScanResult" +#define BT_MESH_AUTHENTICATION_REQ "MeshAuthReq" +#define BT_MESH_PROVISIONING_RESULT "MeshProvResult" +#define BT_MESH_NODE_BROWSED "MeshNodeBrowsed" +#define BT_MESH_NODE_VEND_FEATS "MeshNodeVendorFeatures" +#define BT_MESH_NODE_KEY_CONFIGURED "MeshNodeKeyConfigured" +#define BT_MESH_NODE_TTL_CONFIGURED "MeshNodeTTLConfigured" +#define BT_MESH_MODEL_APPKEY_CONFIGURED "MeshModelAppKeyConfigured" +#define BT_MESH_MODEL_APPKEY_LIST "MeshModelAppKeyList" +#define BT_MESH_MODEL_SUB_LIST "MeshModelSubscriptionList" +#define BT_MESH_MODEL_SUB_CONF "MeshModelSubConfiguration" +#define BT_MESH_MODEL_VIR_SUB_CONF "MeshModelVirSubConfiguration" +#define BT_MESH_MODEL_PUB_STATUS "MeshModelPublicationStatus" + #define BT_FEATURE_COMMON "http://tizen.org/feature/network.bluetooth" #define BT_FEATURE_OPP "http://tizen.org/feature/network.bluetooth.opp" -- 2.7.4