~mdz/network-manager/ubuntu.0.7

« back to all changes in this revision

Viewing changes to include/NetworkManagerVPN.h

  • Committer: dcbw
  • Date: 2005-12-06 23:37:09 UTC
  • Revision ID: vcs-imports@canonical.com-20051206233709-79106f19bd35dd93
2005-12-06  Dan Williams  <dcbw@redhat.com>

        * Move NetworkManager.h -> include/NetworkManager.h
        * Split out VPN stuff to include/NetworkManagerVPN.h
        * Fix up makefiles to include new location
        * Fix up sources to include NetworkManagerVPN.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* NetworkManager -- Network link manager
 
2
 *
 
3
 * Dan Williams <dcbw@redhat.com>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
18
 *
 
19
 * (C) Copyright 2004 Red Hat, Inc.
 
20
 */
 
21
 
 
22
#ifndef NETWORK_MANAGER_VPN_H
 
23
#define NETWORK_MANAGER_VPN_H
 
24
 
 
25
/*
 
26
 * dbus services details
 
27
 */
 
28
#define NM_DBUS_PATH_VPN                        "/org/freedesktop/NetworkManager/VPNConnections"
 
29
#define NM_DBUS_INTERFACE_VPN           "org.freedesktop.NetworkManager.VPNConnections"
 
30
 
 
31
 
 
32
/*
 
33
 * VPN Errors
 
34
 */
 
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"
 
38
 
 
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"
 
45
 
 
46
 
 
47
/*
 
48
 * VPN daemon signals
 
49
 */
 
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"
 
58
 
 
59
/*
 
60
 * VPN daemon states
 
61
 */
 
62
typedef enum NMVPNState
 
63
{
 
64
        NM_VPN_STATE_UNKNOWN = 0,
 
65
        NM_VPN_STATE_INIT,
 
66
        NM_VPN_STATE_SHUTDOWN,
 
67
        NM_VPN_STATE_STARTING,
 
68
        NM_VPN_STATE_STARTED,
 
69
        NM_VPN_STATE_STOPPING,
 
70
        NM_VPN_STATE_STOPPED
 
71
} NMVPNState;
 
72
 
 
73
 
 
74
/*
 
75
 * VPN connection activation stages
 
76
 */
 
77
typedef enum NMVPNActStage
 
78
{
 
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
 
87
} NMVPNActStage;
 
88
 
 
89
 
 
90
#endif /* NETWORK_MANAGER_VPN_H */