Fix build error
authorsaerome.kim <saerome.kim@samsung.com>
Mon, 3 Jul 2017 12:23:53 +0000 (21:23 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:09:10 +0000 (11:09 +0900)
- Added a missing 'mesh-internal.h' file

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
include/mesh-internal.h [new file with mode: 0644]

diff --git a/include/mesh-internal.h b/include/mesh-internal.h
new file mode 100644 (file)
index 0000000..d92b201
--- /dev/null
@@ -0,0 +1,256 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * 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 __TIZEN_MESH_INTERNAL_H__
+#define __TIZEN_MESH_INTERNAL_H__
+
+#include <tizen.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file mesh-internal.h
+ */
+
+/**
+ * @brief The HWMP type for mesh_hwmp_root_mode_e
+ *
+ * @since_tizen 4.0
+ */
+typedef enum {
+       MESH_HWMP_ROOT_REACTIVE_MODE = 0, /**< Disable Proative Mode */
+       MESH_HWMP_ROOT_SIMPLE_PROACTIVE_MODE = 2, /**< Enable the Proactive PREQ with no PREP */
+       MESH_HWMP_ROOT_FORCED_PROACTIVE_MODE = 3, /**< Enable the Proactive PREQ with PREP.
+       Once you do this, all the nodes in your mesh will proactively create paths to your gate.
+       Mesh nodes will send to gate(s) all traffic to those destinations that could not be resolved in the mesh. */
+       MESH_HWMP_ROOT_PROACTIVE_WITH_RANN_MODE = 4, /**< If we use HWMP_ROOTMODE as 4, every 5 sec,
+       our DUT sends action_frame with root announce. */
+} mesh_hwmp_root_mode_e;
+
+/**
+ * @brief The mesh station information handle.
+ * @since_tizen 4.0
+*/
+typedef void* mesh_station_info_h;
+
+/**
+ * @brief The mesh path information handle.
+ * @since_tizen 4.0
+*/
+typedef void* mesh_mpath_info_h;
+
+/**
+ * @brief Gets the maximum data rate.
+ * @details This function is to get the maximum data rate
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] network The mesh network information handle.
+ * @param[out] data_rate The maximum data rate.
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see mesh_network_set_data_rate()
+ *
+ */
+int mesh_network_get_data_rate(mesh_network_h network, int *data_rate);
+
+/**
+ * @brief Sets the maximum data rate.
+ * @details This function is to set the maximum data rate
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] network The mesh network information handle.
+ * @param[in] data_rate The maximum data rate.
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see mesh_network_get_data_rate()
+ *
+ */
+int mesh_network_set_data_rate(mesh_network_h network, int data_rate);
+
+/**
+ * @brief Cancel scanning for the mesh network.
+ * @details Stop scanning process of mesh network.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see mesh_scan()
+ * @see mesh_specific_scan()
+ * @see mesh_scan()
+ *
+ */
+int mesh_cancel_scan(mesh_h handle);
+
+/**
+ * @brief Sets gate options
+ * @details This function sets mesh gate options.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ * @param[in] gate_announce Enable / Disable Gate Announce to peers
+ * @param[in] hwmp_root_mode HWMP (Hybrid Wireless Mesh Protocol) Root Mode \n
+ *            #MESH_HWMP_ROOT_REACTIVE_MODE \n
+ *            #MESH_HWMP_ROOT_SIMPLE_PROACTIVE_MODE \n
+ *            #MESH_HWMP_ROOT_FORCED_PROACTIVE_MODE \n
+ *            #MESH_HWMP_ROOT_PROACTIVE_WITH_RANN_MODE \n
+ * @param[in] stp Enable / Disable Gate Announce to peers
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see mesh_unset_gate()
+ *
+ */
+int mesh_set_gate(mesh_h handle, int gate_announce, int hwmp_root_mode, bool stp);
+
+/**
+ * @brief Unsets gate options
+ * @details This function unsets mesh gate options.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see mesh_set_gate()
+ *
+ */
+int mesh_unset_gate(mesh_h handle);
+
+/**
+ * @brief Called after mesh_get_stations_info()
+ * @details This function can receive joined station information from mesh network.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[out] station mesh station information handle
+ * @param[out] user_data user data pointer
+ *
+ * @pre The callback must be registered with mesh_foreach_found_mesh_network()
+ *
+ * @see mesh_foreach_found_mesh_network()
+ */
+typedef void (*mesh_found_station_cb)(mesh_station_info_h station, void* user_data);
+
+/**
+ * @brief Get information of all connected stations.
+ * @details Get information about all stations present in the currently connected mesh network.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ * @param[in] cb The callback function to receive station information
+ * @param[in] user_data User data
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see mesh_get_path_info()
+ *
+ */
+int mesh_get_stations_info(mesh_h handle, mesh_found_station_cb cb, void *user_data);
+
+/**
+ * @brief Called after mesh_get_stations_info()
+ * @details This function can receive joined station information from mesh network.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[out] path mesh path information handle
+ * @param[out] user_data user data pointer
+ *
+ * @pre The callback must be registered with mesh_foreach_found_mesh_network()
+ *
+ * @see mesh_foreach_found_mesh_network()
+ */
+typedef void (*mesh_found_mpath_cb)(mesh_mpath_info_h path, void* user_data);
+
+/**
+ * @brief Get information of all mesh paths.
+ * @details Get information about all mesh paths present in the currently connected mesh network.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ * @param[in] cb The callback function to receive mesh path information
+ * @param[in] user_data User data
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ * @see mesh_get_stations_info()
+ *
+ */
+int mesh_get_mpath_info(mesh_h handle, mesh_found_mpath_cb cb, void *user_data);
+
+/**
+ * @brief Sets network device interface name.
+ * @details This function provides the ability to manually select interfaces for advanced users.
+ *
+ * @since_tizen 4.0
+ *
+ * @param[in] handle The mesh handle
+ * @param[in] mesh An interface name for mesh network
+ * @param[in] gate An interface name for external network
+ * @param[in] softap An interface name for internal softap
+ *
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #MESH_ERROR_NONE Successful
+ * @retval #MESH_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MESH_ERROR_IO_ERROR Unexpected d-bus error
+ *
+ */
+int mesh_set_interfaces(mesh_h handle,
+       const char *mesh, const char* gate, const char *softap);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_MESH_INTERNAL_H__ */