X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fnet_connection_private.h;h=d05f0ad4748c8e4cb8a468d8182c59dd7c6e8643;hb=4d297013fd680009f28806557b8ae16aa5eae205;hp=7fdf8c74a89e1dbbce8bb126d408269695bdd852;hpb=7fd81c3b703a58f302a8ebeef6980ab1ac3b5ac7;p=platform%2Fcore%2Fapi%2Fconnection.git diff --git a/include/net_connection_private.h b/include/net_connection_private.h index 7fdf8c7..d05f0ad 100755 --- a/include/net_connection_private.h +++ b/include/net_connection_private.h @@ -43,6 +43,13 @@ extern "C" { #define TETHERING_BLUETOOTH_FEATURE "http://tizen.org/feature/network.tethering.bluetooth" #define ETHERNET_FEATURE "http://tizen.org/feature/network.ethernet" +#ifdef ADDRESS_SANITIZER +#define NO_SANITIZE \ + __attribute__((optimize(2))) __attribute__((no_sanitize_address)) +#else +#define NO_SANITIZE +#endif + typedef enum { CONNECTION_CELLULAR_SUBSCRIBER_1 = 0x00, CONNECTION_CELLULAR_SUBSCRIBER_2 = 0x01, @@ -114,10 +121,19 @@ 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); @@ -172,6 +188,9 @@ 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) NO_SANITIZE; +void _connection_libnet_set_ip_changed_cb(libnet_ip_changed_cb callback); +void _connection_libnet_set_proxy_changed_cb(libnet_proxy_changed_cb callback); #ifdef __cplusplus }