Imported Upstream version 1.38
[platform/upstream/connman.git] / vpn / plugins / vpn.h
index 3d2b66c..71e04f6 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
@@ -28,7 +28,8 @@
 extern "C" {
 #endif
 
-#define VPN_FLAG_NO_TUN        1
+#define VPN_FLAG_NO_TUN     1
+#define VPN_FLAG_NO_DAEMON  2
 
 enum vpn_state {
        VPN_STATE_UNKNOWN       = 0,
@@ -48,8 +49,13 @@ struct vpn_driver {
                        vpn_provider_connect_cb_t cb, const char *dbus_sender,
                        void *user_data);
        void (*disconnect) (struct vpn_provider *provider);
+       int (*remove) (struct vpn_provider *provider);
        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 (*route_env_parse) (struct vpn_provider *provider, const char *key,
+                       int *family, unsigned long *idx,
+                       enum vpn_provider_route_type *type);
 };
 
 int vpn_register(const char *name, struct vpn_driver *driver,