[ASan] Revert commit related to ASan.
[platform/core/api/connection.git] / include / net_connection_private.h
index 5e41cf5..8582d4c 100755 (executable)
@@ -114,10 +114,20 @@ typedef struct _connection_handle_s {
 typedef void(*libnet_ethernet_cable_state_changed_cb)
                (connection_ethernet_cable_state_e state);
 
+typedef void(*libnet_type_changed_cb) (int type);
+
+typedef void(*libnet_ip_changed_cb) (connection_address_family_e addr_family,
+                                                                        char *ip_addr);
+
+typedef void(*libnet_proxy_changed_cb) (char *proxy_addr);
+
 bool _connection_is_created(void);
 
 int _connection_libnet_init(void);
 bool _connection_libnet_deinit(void);
+void _connection_set_cs_tid(int tid);
+void _connection_unset_cs_tid(int tid);
+int _connection_libnet_get_metered_state(bool* is_metered);
 int _connection_libnet_get_wifi_state(connection_wifi_state_e *state);
 int _connection_libnet_get_ethernet_state(connection_ethernet_state_e *state);
 int _connection_libnet_get_ethernet_cable_state(connection_ethernet_cable_state_e* state);
@@ -143,6 +153,8 @@ int _connection_libnet_add_route(const char *interface_name, const char *host_ad
 int _connection_libnet_remove_route(const char *interface_name, const char *host_address);
 int _connection_libnet_add_route_ipv6(const char *interface_name, const char *host_address, const char * gateway);
 int _connection_libnet_remove_route_ipv6(const char *interface_name, const char *host_address, const char * gateway);
+int _connection_libnet_add_route_entry(connection_address_family_e address_family, const char *interface_name, const char *host_address, const char * gateway);
+int _connection_libnet_remove_route_entry(connection_address_family_e address_family, const char *interface_name, const char *host_address, const char * gateway);
 void _connection_libnet_add_to_profile_list(connection_profile_h profile);
 void _connection_libnet_remove_from_profile_list(connection_profile_h profile);
 bool _connection_libnet_add_to_profile_cb_list(connection_profile_h profile,
@@ -165,6 +177,15 @@ net_state_type_t _connection_profile_convert_to_net_state(connection_profile_sta
 
 int _connection_libnet_set_cellular_subscriber_id(connection_profile_h profile, connection_cellular_subscriber_id_e sim_id);
 
+int _connection_libnet_start_tcpdump(void);
+int _connection_libnet_stop_tcpdump(void);
+int _connection_libnet_get_tcpdump_state(gboolean *tcpdump_state);
+
+void _connection_libnet_set_type_changed_cb(libnet_type_changed_cb callback);
+void _connection_libnet_set_ip_changed_cb(libnet_ip_changed_cb callback);
+void _connection_libnet_set_proxy_changed_cb(libnet_proxy_changed_cb callback);
+
+bool _connection_check_handle_validity(connection_h connection);
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */