Mesh: Add Mesh Stack DBUS handler API's
authorAnupam Roy <anupam.r@samsung.com>
Thu, 25 Jun 2020 08:56:06 +0000 (14:26 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Fri, 17 Jul 2020 09:03:06 +0000 (14:33 +0530)
Change-Id: I8f331d68a1a5830f6fc05fb75007621cb1a83ed7
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.h [new file with mode: 0644]

diff --git a/bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.h b/bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.h
new file mode 100644 (file)
index 0000000..7705e60
--- /dev/null
@@ -0,0 +1,83 @@
+/* Bluetooth-frwk
+ *
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * @author: Anupam Roy <anupam.r@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *              http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+
+#ifndef _BT_HAL_MESH_DBUS_HANDLER_H_
+#define _BT_HAL_MESH_DBUS_HANDLER_H_
+
+#include <glib.h>
+#include <sys/types.h>
+
+#include "bt-hal.h"
+#include "bt-hal-log.h"
+#include "bt-hal-msg.h"
+#include "bt_mesh.h"
+
+#include "bt-hal-event-receiver.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void _bt_hal_mesh_register_dbus_handler_cb(handle_stack_msg cb);
+
+void _bt_hal_mesh_register_dbus_handler_cb(void);
+
+bool _bt_hal_mesh_stack_init(void);
+
+bt_status_t _bt_hal_mesh_create_network(bt_hal_mesh_node_t *node,
+               GSList *models, bool is_prov);
+
+bt_status_t _bt_hal_mesh_network_scan(bt_uuid_t *net_uuid,
+               bt_hal_mesh_scan_param_t *param);
+
+bt_status_t _bt_hal_mesh_network_scan_cancel(bt_uuid_t *net_uuid);
+
+bt_status_t _bt_hal_mesh_network_set_caps(bt_uuid_t *net_uuid,
+               bt_hal_mesh_prov_caps_t *caps);
+
+bt_status_t _bt_hal_mesh_provision_device(bt_uuid_t *net_uuid,
+               bt_uuid_t *dev_uuid);
+
+bt_status_t _bt_hal_mesh_send_provision_data(bt_uuid_t *net_uuid,
+               uint16_t netkey_idx, uint16_t unicast);
+
+bt_status_t _bt_hal_mesh_attach_network(void);
+
+bt_status_t _bt_hal_mesh_auth_reply(bt_hal_mesh_auth_variant_e auth_type,
+               const char *auth_value);
+
+bt_status_t _bt_hal_mesh_network_subnet_execute(bt_uuid_t *net_uuid,
+               bt_mesh_key_op_e op, uint16_t netkey_idx);
+
+bt_status_t _bt_hal_mesh_network_appkey_execute(bt_uuid_t *net_uuid,
+               bt_mesh_key_op_e op, uint16_t netkey_idx, uint16_t appkey_idx);
+
+bt_status_t _bt_hal_mesh_send_configuration_message(bt_uuid_t *network, uint16_t dest,
+               bool is_dev_key, uint16_t netkey_idx,
+                       uint8_t *buf, int len);
+
+bt_status_t _bt_hal_mesh_send_key_config_message(bt_uuid_t *network, uint16_t dest,
+               bool is_netkey, bool is_update, uint16_t key_idx, uint16_t netkey_idx);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* _BT_HAL_MESH_DBUS_HANDLER_H_ */