X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftethering_private.h;h=b6a36c23df80722c9d4ac3d1480ccb710448762c;hb=HEAD;hp=c0b12a6245a705113f60d8d2539c4de2abf35c5f;hpb=dd56124a53e7ee4b7c422adf82af17e30bf799a8;p=platform%2Fcore%2Fapi%2Ftethering.git diff --git a/include/tethering_private.h b/include/tethering_private.h index c0b12a6..b6a36c2 100644 --- a/include/tethering_private.h +++ b/include/tethering_private.h @@ -134,6 +134,9 @@ int _tethering_check_feature_supported(const char* feature, ...); * Common configuration */ #define TETHERING_STR_INFO_LEN 40 /**< length of the ip or mac address */ +#define TETHERING_IPV4_ADDRESS_MAX_LEN 15 /**< Maximum length of IP address */ +#define TETHERING_IPV4_ADDRESS_MIN_LEN 7 /**< Minimum length of IP address */ + /** * Mobile AP error code @@ -191,6 +194,8 @@ typedef enum { E_SIGNAL_NET_CLOSED = 0, E_SIGNAL_WIFI_TETHER_ON, E_SIGNAL_WIFI_TETHER_OFF, + E_SIGNAL_P2P_TETHER_ON, + E_SIGNAL_P2P_TETHER_OFF, E_SIGNAL_USB_TETHER_ON, E_SIGNAL_USB_TETHER_OFF, E_SIGNAL_BT_TETHER_ON, @@ -217,6 +222,8 @@ typedef enum { #define SIGNAL_NAME_STA_DISCONNECT "sta_disconnected" #define SIGNAL_NAME_WIFI_TETHER_ON "wifi_on" #define SIGNAL_NAME_WIFI_TETHER_OFF "wifi_off" +#define SIGNAL_NAME_P2P_TETHER_ON "p2p_on" +#define SIGNAL_NAME_P2P_TETHER_OFF "p2p_off" #define SIGNAL_NAME_USB_TETHER_ON "usb_on" #define SIGNAL_NAME_USB_TETHER_OFF "usb_off" #define SIGNAL_NAME_BT_TETHER_ON "bluetooth_on" @@ -312,6 +319,7 @@ typedef struct { char passphrase[TETHERING_WIFI_KEY_MAX_LEN + 1]; tethering_wifi_security_type_e sec_type; tethering_wifi_mode_type_e mode_type; + char ip_address[TETHERING_IPV4_ADDRESS_MAX_LEN + 1]; bool visibility; bool mac_filter; bool port_forwarding; @@ -344,6 +352,7 @@ typedef struct { char ssid[TETHERING_WIFI_SSID_MAX_LEN + 1]; char key[TETHERING_WIFI_KEY_MAX_LEN + 1]; char mode[TETHERING_WIFI_MODE_MAX_LEN + 1]; + char ip_address[TETHERING_IPV4_ADDRESS_MAX_LEN + 1]; tethering_wifi_security_type_e sec_type; bool visibility; bool mac_filter;