summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsaerome.kim <saerome.kim@samsung.com>2019-08-13 14:43:58 +0900
committersaerome.kim <saerome.kim@samsung.com>2019-08-13 15:12:36 +0900
commitac4d3aaa06f9c20610fd3513d788a00743488a2e (patch)
tree5654758463aa154265018dba5a976e1d38a6c5e1 /include
parentcd3fbf809f30c4d786f42b600804b22c9fbdb420 (diff)
downloadua-plugin-wifi-dummy-ac4d3aaa06f9c20610fd3513d788a00743488a2e.tar.gz
ua-plugin-wifi-dummy-ac4d3aaa06f9c20610fd3513d788a00743488a2e.tar.bz2
ua-plugin-wifi-dummy-ac4d3aaa06f9c20610fd3513d788a00743488a2e.zip
1. Changed API names.
2. Fixed security vulnerability issues. Change-Id: I273dfed976b300cd125a1174857c466423e730bb Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--]include/wifi-networkmanager.h16
-rw-r--r--include/wifi-plugin.h4
2 files changed, 18 insertions, 2 deletions
diff --git a/include/wifi-networkmanager.h b/include/wifi-networkmanager.h
index ee5129f..adf9407 100644..100755
--- a/include/wifi-networkmanager.h
+++ b/include/wifi-networkmanager.h
@@ -26,6 +26,22 @@
extern "C" {
#endif
+typedef enum {
+ NM_NETWORK_TYPE_UNKNOWN,
+ NM_NETWORK_TYPE_DISCONNECTED,
+ NM_NETWORK_TYPE_ETHERNET,
+ NM_NETWORK_TYPE_WIFI
+} nm_network_type;
+
+typedef struct {
+ char ip_addr[MAX_SIZE_BUFFER];
+ char hw_type[MAX_SIZE_BUFFER];
+ char flags[MAX_SIZE_BUFFER];
+ char hw_addr[MAX_SIZE_BUFFER];
+ char mask[MAX_SIZE_BUFFER];
+ char device[MAX_SIZE_BUFFER];
+} nm_linux_arp_entry;
+
bool __nm_init();
bool __nm_get_interface_name(char **iface_name);
diff --git a/include/wifi-plugin.h b/include/wifi-plugin.h
index 4f61ff8..9bb893d 100644
--- a/include/wifi-plugin.h
+++ b/include/wifi-plugin.h
@@ -38,10 +38,10 @@ typedef enum {
typedef struct {
int user_id; /**< User ID which is saved in DB */
int os; /**< Operating system type eg) Tizen, Android and iOS */
- char mobile_id[UAS_DEVICE_ID_MAX_LEN]; /**< MObile ID which is saved in DB */
+ char device_id[UAS_DEVICE_ID_MAX_LEN]; /**< MObile ID which is saved in DB */
char mac_addr[MAC_ADDRESS_STRING_SIZE]; /**< MAC address which is saved in DB */
char ip_addr[IP_ADDRESS_STRING_SIZE]; /**< IP address which is saved in DB */
- int mobile_flag; /**< The order of the target dev. */
+ int device_flag; /**< The order of the target dev. */
gboolean new_device; /**< Is newly added device ?*/
unsigned int supported_techs; /**< Operating system type of the target dev. */
wifi_presence_status_e presence; /**< Detected type (see. wifi_presence_status_e) */