1
/* NetworkManager -- Network link manager
3
* Dan Williams <dcbw@redhat.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* (C) Copyright 2004 Red Hat, Inc.
22
#ifndef NETWORK_MANAGER_VPN_H
23
#define NETWORK_MANAGER_VPN_H
26
* dbus services details
28
#define NM_DBUS_PATH_VPN "/org/freedesktop/NetworkManager/VPNConnections"
29
#define NM_DBUS_INTERFACE_VPN "org.freedesktop.NetworkManager.VPNConnections"
35
#define NM_DBUS_NO_ACTIVE_VPN_CONNECTION "org.freedesktop.NetworkManager.VPNConnections.NoActiveVPNConnection"
36
#define NM_DBUS_NO_VPN_CONNECTIONS "org.freedesktop.NetworkManager.VPNConnections.NoVPNConnections"
37
#define NM_DBUS_INVALID_VPN_CONNECTION "org.freedesktop.NetworkManager.VPNConnections.InvalidVPNConnection"
39
#define NM_DBUS_VPN_STARTING_IN_PROGRESS "StartingInProgress"
40
#define NM_DBUS_VPN_ALREADY_STARTED "AlreadyStarted"
41
#define NM_DBUS_VPN_STOPPING_IN_PROGRESS "StoppingInProgress"
42
#define NM_DBUS_VPN_ALREADY_STOPPED "AlreadyStopped"
43
#define NM_DBUS_VPN_WRONG_STATE "WrongState"
44
#define NM_DBUS_VPN_BAD_ARGUMENTS "BadArguments"
50
#define NM_DBUS_VPN_SIGNAL_LOGIN_BANNER "LoginBanner"
51
#define NM_DBUS_VPN_SIGNAL_LOGIN_FAILED "LoginFailed"
52
#define NM_DBUS_VPN_SIGNAL_LAUNCH_FAILED "LaunchFailed"
53
#define NM_DBUS_VPN_SIGNAL_CONNECT_FAILED "ConnectFailed"
54
#define NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD "VPNConfigBad"
55
#define NM_DBUS_VPN_SIGNAL_IP_CONFIG_BAD "IPConfigBad"
56
#define NM_DBUS_VPN_SIGNAL_STATE_CHANGE "StateChange"
57
#define NM_DBUS_VPN_SIGNAL_IP4_CONFIG "IP4Config"
62
typedef enum NMVPNState
64
NM_VPN_STATE_UNKNOWN = 0,
66
NM_VPN_STATE_SHUTDOWN,
67
NM_VPN_STATE_STARTING,
69
NM_VPN_STATE_STOPPING,
75
* VPN connection activation stages
77
typedef enum NMVPNActStage
79
NM_VPN_ACT_STAGE_UNKNOWN = 0,
80
NM_VPN_ACT_STAGE_DISCONNECTED,
81
NM_VPN_ACT_STAGE_PREPARE,
82
NM_VPN_ACT_STAGE_CONNECT,
83
NM_VPN_ACT_STAGE_IP_CONFIG_GET,
84
NM_VPN_ACT_STAGE_ACTIVATED,
85
NM_VPN_ACT_STAGE_FAILED,
86
NM_VPN_ACT_STAGE_CANCELED
90
#endif /* NETWORK_MANAGER_VPN_H */