| 1 |
/* |
| 2 |
* ConnMan GTK GUI |
| 3 |
* |
| 4 |
* Copyright (C) 2015 Intel Corporation. All rights reserved. |
| 5 |
* Author: Jaakko Hannikainen <[email protected]> |
| 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 as published by |
| 9 |
* the Free Software Foundation, either version 2 of the License, or |
| 10 |
* (at your option) any later version. |
| 11 |
* |
| 12 |
* This program is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
* GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef _CONNMAN_GTK_INTERFACES_H |
| 22 |
#define _CONNMAN_GTK_INTERFACES_H |
| 23 |
|
| 24 |
#define CONNMAN_PATH "net.connman" |
| 25 |
#define CONNMAN_VPN_PATH "net.connman.vpn" |
| 26 |
|
| 27 |
#define MANAGER_NAME CONNMAN_PATH ".Manager" |
| 28 |
#define MANAGER_INTERFACE \ |
| 29 |
"<node>" \ |
| 30 |
"<interface name=\"net.connman.Manager\">" \ |
| 31 |
" <method name=\"GetProperties\">" \ |
| 32 |
" <arg name=\"properties\" type=\"a{sv}\" direction=\"out\"/>" \ |
| 33 |
" </method>" \ |
| 34 |
" <method name=\"SetProperty\">" \ |
| 35 |
" <arg name=\"name\" type=\"s\" direction=\"in\"/>" \ |
| 36 |
" <arg name=\"value\" type=\"v\" direction=\"in\"/>" \ |
| 37 |
" </method>" \ |
| 38 |
" <method name=\"GetTechnologies\">" \ |
| 39 |
" <arg name=\"technologies\" type=\"a(oa{sv})\" direction=\"out\"/>" \ |
| 40 |
" </method>" \ |
| 41 |
" <method name=\"GetServices\">" \ |
| 42 |
" <arg name=\"services\" type=\"a(oa{sv})\" direction=\"out\"/>" \ |
| 43 |
" </method>" \ |
| 44 |
" <method name=\"RegisterAgent\">" \ |
| 45 |
" <arg name=\"path\" type=\"o\" direction=\"in\"/>" \ |
| 46 |
" </method>" \ |
| 47 |
" <method name=\"UnregisterAgent\">" \ |
| 48 |
" <arg name=\"path\" type=\"o\" direction=\"in\"/>" \ |
| 49 |
" </method>" \ |
| 50 |
" <signal name=\"PropertyChanged\">" \ |
| 51 |
" <arg name=\"name\" type=\"s\"/>" \ |
| 52 |
" <arg name=\"value\" type=\"v\"/>" \ |
| 53 |
" </signal>" \ |
| 54 |
" <signal name=\"TechnologyAdded\">" \ |
| 55 |
" <arg name=\"path\" type=\"o\"/>" \ |
| 56 |
" <arg name=\"properties\" type=\"a{sv}\"/>" \ |
| 57 |
" </signal>" \ |
| 58 |
" <signal name=\"TechnologyRemoved\">" \ |
| 59 |
" <arg name=\"path\" type=\"o\"/>" \ |
| 60 |
" </signal>" \ |
| 61 |
" <signal name=\"ServicesChanged\">" \ |
| 62 |
" <arg name=\"changed\" type=\"a(oa{sv})\"/>" \ |
| 63 |
" <arg name=\"removed\" type=\"ao\"/>" \ |
| 64 |
" </signal>" \ |
| 65 |
"</interface>" \ |
| 66 |
"</node>" |
| 67 |
|
| 68 |
#define TECHNOLOGY_NAME CONNMAN_PATH ".Technology" |
| 69 |
#define TECHNOLOGY_INTERFACE \ |
| 70 |
"<node>" \ |
| 71 |
"<interface name=\"net.connman.Technology\">" \ |
| 72 |
" <method name=\"SetProperty\">" \ |
| 73 |
" <arg name=\"name\" type=\"s\" direction=\"in\"/>" \ |
| 74 |
" <arg name=\"value\" type=\"v\" direction=\"in\"/>" \ |
| 75 |
" </method>" \ |
| 76 |
" <method name=\"GetProperties\">" \ |
| 77 |
" <arg name=\"properties\" type=\"a{sv}\" direction=\"out\"/>" \ |
| 78 |
" </method>" \ |
| 79 |
" <method name=\"Scan\"></method>" \ |
| 80 |
" <signal name=\"PropertyChanged\">" \ |
| 81 |
" <arg name=\"name\" type=\"s\"/>" \ |
| 82 |
" <arg name=\"value\" type=\"v\"/>" \ |
| 83 |
" </signal>" \ |
| 84 |
"</interface>" \ |
| 85 |
"</node>" |
| 86 |
|
| 87 |
#define SERVICE_NAME CONNMAN_PATH ".Service" |
| 88 |
#define SERVICE_INTERFACE \ |
| 89 |
"<node>" \ |
| 90 |
"<interface name=\"net.connman.Service\">" \ |
| 91 |
" <method name=\"SetProperty\">" \ |
| 92 |
" <arg name=\"name\" type=\"s\" direction=\"in\"/>" \ |
| 93 |
" <arg name=\"value\" type=\"v\" direction=\"in\"/>" \ |
| 94 |
" </method>" \ |
| 95 |
" <method name=\"Connect\"></method>" \ |
| 96 |
" <method name=\"Disconnect\"></method>" \ |
| 97 |
" <signal name=\"PropertyChanged\">" \ |
| 98 |
" <arg name=\"name\" type=\"s\"/>" \ |
| 99 |
" <arg name=\"value\" type=\"v\"/>" \ |
| 100 |
" </signal>" \ |
| 101 |
"</interface>" \ |
| 102 |
"</node>" |
| 103 |
|
| 104 |
#define AGENT_NAME CONNMAN_PATH ".Agent" |
| 105 |
#define AGENT_INTERFACE \ |
| 106 |
"<node>" \ |
| 107 |
"<interface name=\"net.connman.Agent\">" \ |
| 108 |
" <method name=\"Release\"></method>" \ |
| 109 |
" <method name=\"ReportError\">" \ |
| 110 |
" <arg name=\"service\" type=\"o\" direction=\"in\"/>" \ |
| 111 |
" <arg name=\"error\" type=\"s\" direction=\"in\"/>" \ |
| 112 |
" </method>" \ |
| 113 |
" <method name=\"RequestBrowser\">" \ |
| 114 |
" <arg name=\"service\" type=\"o\" direction=\"in\"/>" \ |
| 115 |
" <arg name=\"url\" type=\"s\" direction=\"in\"/>" \ |
| 116 |
" </method>" \ |
| 117 |
" <method name=\"RequestInput\">" \ |
| 118 |
" <arg name=\"service\" type=\"o\" direction=\"in\"/>" \ |
| 119 |
" <arg name=\"fields\" type=\"a{sv}\" direction=\"in\"/>" \ |
| 120 |
" <arg name=\"values\" type=\"a{sv}\" direction=\"out\"/>" \ |
| 121 |
" </method>" \ |
| 122 |
" <method name=\"Cancel\"></method>" \ |
| 123 |
"</interface>" \ |
| 124 |
"</node>" |
| 125 |
|
| 126 |
#define VPN_MANAGER_NAME CONNMAN_VPN_PATH ".Manager" |
| 127 |
#define VPN_MANAGER_INTERFACE \ |
| 128 |
"<node>" \ |
| 129 |
"<interface name=\"net.connman.vpn.Manager\">" \ |
| 130 |
" <method name=\"Create\">" \ |
| 131 |
" <arg name=\"settings\" type=\"a{sv}\" direction=\"in\"/>" \ |
| 132 |
" </method>" \ |
| 133 |
" <method name=\"Remove\">" \ |
| 134 |
" <arg name=\"vpn\" type=\"o\" direction=\"in\"/>" \ |
| 135 |
" </method>" \ |
| 136 |
" <method name=\"GetConnections\">" \ |
| 137 |
" <arg name=\"connections\" type=\"a(oa{sv})\" direction=\"out\"/>" \ |
| 138 |
" </method>" \ |
| 139 |
" <method name=\"RegisterAgent\">" \ |
| 140 |
" <arg name=\"path\" type=\"o\" direction=\"in\"/>" \ |
| 141 |
" </method>" \ |
| 142 |
" <method name=\"UnregisterAgent\">" \ |
| 143 |
" <arg name=\"path\" type=\"o\" direction=\"in\"/>" \ |
| 144 |
" </method>" \ |
| 145 |
" <signal name=\"ConnectionAdded\">" \ |
| 146 |
" <arg name=\"path\" type=\"o\"/>" \ |
| 147 |
" <arg name=\"properties\" type=\"a{sv}\"/>" \ |
| 148 |
" </signal>" \ |
| 149 |
" <signal name=\"ConnectionRemoved\">" \ |
| 150 |
" <arg name=\"path\" type=\"o\"/>" \ |
| 151 |
" </signal>" \ |
| 152 |
"</interface>" \ |
| 153 |
"</node>" |
| 154 |
|
| 155 |
#define VPN_AGENT_NAME CONNMAN_VPN_PATH ".Agent" |
| 156 |
#define VPN_AGENT_INTERFACE \ |
| 157 |
"<node>" \ |
| 158 |
"<interface name=\"net.connman.vpn.Agent\">" \ |
| 159 |
" <method name=\"Release\"></method>" \ |
| 160 |
" <method name=\"ReportError\">" \ |
| 161 |
" <arg name=\"service\" type=\"o\" direction=\"in\"/>" \ |
| 162 |
" <arg name=\"error\" type=\"s\" direction=\"in\"/>" \ |
| 163 |
" </method>" \ |
| 164 |
" <method name=\"RequestInput\">" \ |
| 165 |
" <arg name=\"service\" type=\"o\" direction=\"in\"/>" \ |
| 166 |
" <arg name=\"fields\" type=\"a{sv}\" direction=\"in\"/>" \ |
| 167 |
" <arg name=\"values\" type=\"a{sv}\" direction=\"out\"/>" \ |
| 168 |
" </method>" \ |
| 169 |
" <method name=\"Cancel\"></method>" \ |
| 170 |
"</interface>" \ |
| 171 |
"</node>" |
| 172 |
|
| 173 |
#define VPN_CONNECTION_NAME CONNMAN_VPN_PATH ".Connection" |
| 174 |
#define VPN_CONNECTION_INTERFACE \ |
| 175 |
"<node>" \ |
| 176 |
"<interface name=\"net.connman.vpn.Connection\">" \ |
| 177 |
" <method name=\"SetProperty\">" \ |
| 178 |
" <arg name=\"name\" type=\"s\" direction=\"in\"/>" \ |
| 179 |
" <arg name=\"value\" type=\"v\" direction=\"in\"/>" \ |
| 180 |
" </method>" \ |
| 181 |
" <method name=\"ClearProperty\">" \ |
| 182 |
" <arg name=\"name\" type=\"s\" direction=\"in\"/>" \ |
| 183 |
" </method>" \ |
| 184 |
" <method name=\"Connect\"></method>" \ |
| 185 |
" <method name=\"Disconnect\"></method>" \ |
| 186 |
" <signal name=\"PropertyChanged\">" \ |
| 187 |
" <arg name=\"name\" type=\"s\"/>" \ |
| 188 |
" <arg name=\"value\" type=\"v\"/>" \ |
| 189 |
" </signal>" \ |
| 190 |
"</interface>" \ |
| 191 |
"</node>" |
| 192 |
|
| 193 |
#endif /* _CONNMAN_GTK_INTERFACES_H */ |