X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fservice.h;h=93b8ba7d17b24434589f6de91dc8f84fb271b5d6;hb=d180a9d2152fdd28ea68f0fbe0ef52e9c7ceac5a;hp=f4f4ea2754a570c5d467058989dfdd63c8e75d3d;hpb=55c73c5d731572b1c92894ac57150555b7e61216;p=platform%2Fupstream%2Fconnman.git diff --git a/include/service.h b/include/service.h old mode 100644 new mode 100755 index f4f4ea2..93b8ba7 --- a/include/service.h +++ b/include/service.h @@ -26,6 +26,7 @@ #if defined TIZEN_EXT #include +#include #endif #ifdef __cplusplus @@ -71,6 +72,10 @@ enum connman_service_security { #if defined TIZEN_EXT CONNMAN_SERVICE_SECURITY_SAE = 10, CONNMAN_SERVICE_SECURITY_OWE = 11, + CONNMAN_SERVICE_SECURITY_DPP = 12, +#endif +#if defined TIZEN_EXT + CONNMAN_SERVICE_SECURITY_MAX #endif }; @@ -129,9 +134,12 @@ void connman_service_unref_debug(struct connman_service *service, const char *file, int line, const char *caller); enum connman_service_type connman_service_get_type(struct connman_service *service); +enum connman_service_state connman_service_get_state(struct connman_service *service); char *connman_service_get_interface(struct connman_service *service); +const char *connman_service_get_identifier(struct connman_service *service); const char *connman_service_get_domainname(struct connman_service *service); +const char *connman_service_get_dbuspath(struct connman_service *service); char **connman_service_get_nameservers(struct connman_service *service); char **connman_service_get_timeservers_config(struct connman_service *service); char **connman_service_get_timeservers(struct connman_service *service); @@ -143,7 +151,16 @@ const char *connman_service_get_proxy_url(struct connman_service *service); const char *connman_service_get_proxy_autoconfig(struct connman_service *service); bool connman_service_get_favorite(struct connman_service *service); bool connman_service_get_autoconnect(struct connman_service *service); +bool connman_service_set_autoconnect(struct connman_service *service, + bool autoconnect); +/* Return non-zero value to terminate the loop, zero to continue */ +typedef int (* connman_service_iterate_cb) (struct connman_service *service, + void *user_data); +int connman_service_iterate_services(connman_service_iterate_cb cb, + void *user_data); + +struct connman_service *connman_service_get_default(void); struct connman_service *connman_service_lookup_from_network(struct connman_network *network); struct connman_service *connman_service_lookup_from_identifier(const char* identifier); @@ -177,9 +194,7 @@ gboolean connman_service_user_pdn_connection_unref_and_test( */ gboolean connman_service_is_no_ref_user_pdn_connection( struct connman_service *service); -#endif -#if defined TIZEN_EXT struct connman_service *connman_service_get_default_connection(void); /* @@ -192,6 +207,14 @@ void connman_service_set_disconnection_requested(struct connman_service *service bool disconnection_requested); #endif +#if defined TIZEN_EXT +void connman_service_set_internet_connection(struct connman_service *service, + bool internet_connection); +bool connman_service_get_internet_connection(struct connman_service *service); +DBusMessage *connman_service_get_defaut_info(DBusMessage *msg, + struct connman_service *service); +#endif + #ifdef __cplusplus } #endif