4 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
6 * @author: Anupam Roy <anupam.r@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef BT_SERVICE_MESH_NETWORK_H_
23 #define BT_SERVICE_MESH_NETWORK_H_
26 #include <sys/types.h>
27 #include "bluetooth-api.h"
28 #include "bluetooth-mesh-api.h"
34 int _bt_mesh_network_create(const char *app_key,
35 const char *sender, const char *network_name,
36 bluetooth_mesh_node_t *node, GSList *model_list);
38 int _bt_mesh_network_create_cdb(int result,
39 const char *sender, const char *app_creds,
40 uint8_t uuid[16], uint8_t token[8],
43 int _bt_mesh_network_request_provisioning_data_request(
44 uint8_t net_uuid[], uint8_t count);
46 int _bt_mesh_network_scan(const char *app_cred, const char *sender,
47 bluetooth_mesh_network_t *network,
48 bluetooth_mesh_scan_param_t *param);
50 int _bt_mesh_network_scan_cancel(const char *app_cred,
51 const char *sender, bluetooth_mesh_network_t *network);
53 bool _bt_mesh_is_scanning(void);
55 void _bt_mesh_set_scanning_state(bool state);
57 bool _bt_mesh_is_provisioning(void);
59 void _bt_mesh_set_provisioning_state(bool state);
61 int _bt_mesh_network_set_provisioner_caps(const char *app_cred,
62 const char *sender, bluetooth_mesh_network_t *network,
63 bluetooth_mesh_provisioner_caps_t *caps);
65 int _bt_mesh_network_provision_device(const char *app_cred,
67 bluetooth_mesh_provisioning_request_t *req);
69 int _bt_mesh_authentication_reply(int auth_type,
70 const char *auth_value, gboolean reply);
74 #endif /* __cplusplus */
75 #endif /* BT_MESH_NETWORK_H_ */