Imported Upstream version 1.35
[platform/upstream/connman.git] / vpn / plugins / vpn.h
index 6f86aac..cb94bdc 100644 (file)
@@ -2,7 +2,7 @@
  *
  *  ConnMan VPN daemon
  *
- *  Copyright (C) 2010  BMW Car IT GmbH. All rights reserved.
+ *  Copyright (C) 2010,2014  BMW Car IT GmbH.
  *
  *  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
@@ -45,10 +45,12 @@ struct vpn_driver {
        int (*notify) (DBusMessage *msg, struct vpn_provider *provider);
        int (*connect) (struct vpn_provider *provider,
                        struct connman_task *task, const char *if_name,
-                       vpn_provider_connect_cb_t cb, void *user_data);
+                       vpn_provider_connect_cb_t cb, const char *dbus_sender,
+                       void *user_data);
        void (*disconnect) (struct vpn_provider *provider);
-       int (*error_code) (int exit_code);
+       int (*error_code) (struct vpn_provider *provider, int exit_code);
        int (*save) (struct vpn_provider *provider, GKeyFile *keyfile);
+       int (*device_flags) (struct vpn_provider *provider);
 };
 
 int vpn_register(const char *name, struct vpn_driver *driver,