X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Futil.h;h=6e9b936231894a87b46c61f1e6e20ee38cf22eee;hb=3d19e35af3329d269be7dff6207ef6509880d994;hp=c017276fc4dfda044796c70675d0d94732e64b33;hpb=0dbad86236d3cdec837d9cd74ae170c9b0bc2ee8;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git diff --git a/include/util.h b/include/util.h index c017276..6e9b936 100755 --- a/include/util.h +++ b/include/util.h @@ -25,6 +25,7 @@ extern "C" { #endif #include +#include #include "wifi.h" #include "plugin.h" @@ -33,6 +34,21 @@ extern "C" { #define MAX_SIZE_ERROR_BUFFER 256 +#define ETHERNET_FEATURE "http://tizen.org/feature/network.ethernet" +#define TETHERING_FEATURE "http://tizen.org/feature/network.tethering" +#define WIFI_DIRECT_FEATURE "http://tizen.org/feature/network.wifi.direct" +#define WIFI_SOFTAP_FEATURE "http://tizen.org/feature/network.wifi.softap" + +typedef enum { + NETCONFIG_SUPPORTED_FEATURE_ETHERNET = 0, + NETCONFIG_SUPPORTED_FEATURE_TETHERING, + NETCONFIG_SUPPORTED_FEATURE_WIFI_DIRECT, + NETCONFIG_SUPPORTED_FEATURE_WIFI_SOFTAP, + NETCONFIG_SUPPORTED_FEATURE_MAX, +} netconfig_supported_feature_e; + +bool netconfig_check_feature_supported(netconfig_supported_feature_e feature); + gboolean netconfig_check_passphrase(const gchar *service, const char *passphrase); GKeyFile *netconfig_keyfile_load(const char *pathname); void netconfig_keyfile_save(GKeyFile *keyfile, const char *pathname);