Imported Upstream version 1.26
[platform/upstream/connman.git] / vpn / vpn-provider.h
index 2889428..8105d7f 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  ConnMan VPN daemon
  *
- *  Copyright (C) 2007-2012  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2013  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -22,8 +22,9 @@
 #ifndef __VPN_PROVIDER_H
 #define __VPN_PROVIDER_H
 
+#include <stdbool.h>
+
 #include <glib.h>
-#include <connman/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -73,6 +74,8 @@ void vpn_provider_unref_debug(struct vpn_provider *provider,
 
 int vpn_provider_set_string(struct vpn_provider *provider,
                                        const char *key, const char *value);
+int vpn_provider_set_string_hide_value(struct vpn_provider *provider,
+                                       const char *key, const char *value);
 const char *vpn_provider_get_string(struct vpn_provider *provider,
                                                        const char *key);
 
@@ -104,6 +107,8 @@ const char *vpn_provider_get_save_group(struct vpn_provider *provider);
 const char *vpn_provider_get_name(struct vpn_provider *provider);
 const char *vpn_provider_get_host(struct vpn_provider *provider);
 const char *vpn_provider_get_path(struct vpn_provider *provider);
+void vpn_provider_change_address(struct vpn_provider *provider);
+void vpn_provider_clear_address(struct vpn_provider *provider, int family);
 
 typedef void (* vpn_provider_connect_cb_t) (struct vpn_provider *provider,
                                        void *user_data, int error);
@@ -123,7 +128,8 @@ struct vpn_provider_driver {
        int (*probe) (struct vpn_provider *provider);
        int (*remove) (struct vpn_provider *provider);
        int (*connect) (struct vpn_provider *provider,
-                       vpn_provider_connect_cb_t cb, void *user_data);
+                       vpn_provider_connect_cb_t cb, const char *dbus_sender,
+                       void *user_data);
        int (*disconnect) (struct vpn_provider *provider);
        int (*save) (struct vpn_provider *provider, GKeyFile *keyfile);
 };