Base Code merged to SPIN 2.4
[platform/upstream/connman.git] / include / vpn-dbus.h
1 /*
2  *
3  *  ConnMan VPN daemon
4  *
5  *  Copyright (C) 2007-2012  Intel Corporation. All rights reserved.
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 as
9  *  published by the Free Software Foundation.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef __VPN_DBUS_H
23 #define __VPN_DBUS_H
24
25 #include <dbus/dbus.h>
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define VPN_SERVICE                     "net.connman.vpn"
32 #define VPN_PATH                        "/net/connman/vpn"
33
34 #define VPN_ERROR_INTERFACE             VPN_SERVICE ".Error"
35
36 #define VPN_MANAGER_INTERFACE           VPN_SERVICE ".Manager"
37 #define VPN_MANAGER_PATH                "/"
38
39 #define VPN_CONNECTION_INTERFACE        VPN_SERVICE ".Connection"
40 #define VPN_AGENT_INTERFACE             VPN_SERVICE ".Agent"
41 #define VPN_TASK_INTERFACE              VPN_SERVICE ".Task"
42
43 #define VPN_PRIVILEGE_MODIFY            1
44 #define VPN_PRIVILEGE_SECRET            2
45
46 #define CONNECTION_ADDED                "ConnectionAdded"
47 #define CONNECTION_REMOVED              "ConnectionRemoved"
48 #define PROPERTY_CHANGED                "PropertyChanged"
49 #define GET_CONNECTIONS                 "GetConnections"
50 #define VPN_CONNECT                     "Connect"
51 #define VPN_DISCONNECT                  "Disconnect"
52 #define VPN_REMOVE                      "Remove"
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* __VPN_DBUS_H */