Maintain connection status when wifi roaming
[platform/upstream/connman.git] / include / service.h
index 617735e..3f4c58c 100755 (executable)
@@ -26,6 +26,7 @@
 
 #if defined TIZEN_EXT
 #include <glib.h>
+#include <gdbus.h>
 #endif
 
 #ifdef __cplusplus
@@ -99,6 +100,9 @@ enum connman_service_error {
        CONNMAN_SERVICE_ERROR_AUTH_FAILED    = 6,
        CONNMAN_SERVICE_ERROR_INVALID_KEY    = 7,
        CONNMAN_SERVICE_ERROR_BLOCKED        = 8,
+#if defined TIZEN_EXT
+       CONNMAN_SERVICE_ERROR_ASSOC_FAILED   = 9,
+#endif
 };
 
 enum connman_service_proxy_method {
@@ -113,6 +117,7 @@ enum connman_service_connect_reason {
        CONNMAN_SERVICE_CONNECT_REASON_AUTO     = 1,
        CONNMAN_SERVICE_CONNECT_REASON_USER     = 2,
        CONNMAN_SERVICE_CONNECT_REASON_SESSION  = 3,
+       CONNMAN_SERVICE_CONNECT_REASON_NATIVE   = 4,
 };
 
 struct connman_service;
@@ -150,6 +155,8 @@ 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,
@@ -193,6 +200,7 @@ gboolean connman_service_is_no_ref_user_pdn_connection(
                                        struct connman_service *service);
 
 struct connman_service *connman_service_get_default_connection(void);
+struct connman_service *connman_service_get_connected_service(const char *ifname);
 
 /*
  * Description: telephony plug-in requires manual PROXY setting
@@ -201,13 +209,16 @@ int connman_service_set_proxy(struct connman_service *service,
                                        const char *proxy, gboolean active);
 
 void connman_service_set_disconnection_requested(struct connman_service *service,
-                                                bool disconnection_requested);
+                                               bool disconnection_requested);
+void connman_service_notify_reconnection(struct connman_service *service);
 #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_create_dbus_service_reply(DBusMessage *msg,
+                                                       struct connman_service *service);
 #endif
 
 #ifdef __cplusplus