2014-10-06 21:50:27 -05:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
2019-10-25 00:43:08 +02:00
|
|
|
* Copyright (C) 2013-2019 Intel Corporation. All rights reserved.
|
2014-10-06 21:50:27 -05:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2014-10-27 23:42:43 -05:00
|
|
|
#define IWD_SERVICE "net.connman.iwd"
|
|
|
|
|
2016-05-21 03:39:35 +02:00
|
|
|
#define IWD_AGENT_MANAGER_INTERFACE "net.connman.iwd.AgentManager"
|
2016-07-12 04:13:54 +02:00
|
|
|
#define IWD_WIPHY_INTERFACE "net.connman.iwd.Adapter"
|
2014-10-23 14:33:27 -05:00
|
|
|
#define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
|
2014-10-29 23:58:36 -05:00
|
|
|
#define IWD_NETWORK_INTERFACE "net.connman.iwd.Network"
|
2015-02-19 14:53:08 +02:00
|
|
|
#define IWD_AGENT_INTERFACE "net.connman.iwd.Agent"
|
2019-10-24 10:42:44 -05:00
|
|
|
#define IWD_WSC_INTERFACE "net.connman.iwd.SimpleConfiguration"
|
2018-07-31 16:37:04 +02:00
|
|
|
#define IWD_KNOWN_NETWORK_INTERFACE "net.connman.iwd.KnownNetwork"
|
2017-05-20 01:39:38 +02:00
|
|
|
#define IWD_SIGNAL_AGENT_INTERFACE "net.connman.iwd.SignalLevelAgent"
|
2018-06-29 11:46:30 -07:00
|
|
|
#define IWD_AP_INTERFACE "net.connman.iwd.AccessPoint"
|
2018-07-16 15:29:17 -07:00
|
|
|
#define IWD_ADHOC_INTERFACE "net.connman.iwd.AdHoc"
|
2018-09-04 21:50:18 -05:00
|
|
|
#define IWD_STATION_INTERFACE "net.connman.iwd.Station"
|
2020-04-03 18:14:14 +02:00
|
|
|
#define IWD_P2P_INTERFACE "net.connman.iwd.p2p.Device"
|
|
|
|
#define IWD_P2P_PEER_INTERFACE "net.connman.iwd.p2p.Peer"
|
2020-07-16 02:12:23 +02:00
|
|
|
#define IWD_P2P_SERVICE_MANAGER_INTERFACE "net.connman.iwd.p2p.ServiceManager"
|
2020-07-16 02:12:25 +02:00
|
|
|
#define IWD_P2P_WFD_INTERFACE "net.connman.iwd.p2p.Display"
|
2021-01-11 09:12:36 -08:00
|
|
|
#define IWD_STATION_DIAGNOSTIC_INTERFACE "net.connman.iwd.StationDiagnostic"
|
2021-01-20 10:30:31 -08:00
|
|
|
#define IWD_AP_DIAGNOSTIC_INTERFACE "net.connman.iwd.AccessPointDiagnostic"
|
2014-10-23 14:32:51 -05:00
|
|
|
|
2019-10-28 11:32:57 -05:00
|
|
|
#define IWD_BASE_PATH "/net/connman/iwd"
|
|
|
|
#define IWD_AGENT_MANAGER_PATH IWD_BASE_PATH
|
2020-07-16 02:12:23 +02:00
|
|
|
#define IWD_P2P_SERVICE_MANAGER_PATH IWD_BASE_PATH
|
2014-10-23 15:07:08 -05:00
|
|
|
|
2014-10-06 21:50:27 -05:00
|
|
|
struct l_dbus;
|
|
|
|
|
|
|
|
struct l_dbus *dbus_get_bus(void);
|
|
|
|
|
2014-10-27 23:42:05 -05:00
|
|
|
void dbus_pending_reply(struct l_dbus_message **msg,
|
|
|
|
struct l_dbus_message *reply);
|
2021-01-12 09:17:16 -08:00
|
|
|
bool dbus_append_dict_basic(struct l_dbus_message_builder *builder,
|
|
|
|
const char *name, char type,
|
|
|
|
const void *data);
|
2014-10-27 23:42:05 -05:00
|
|
|
|
2014-10-27 23:42:43 -05:00
|
|
|
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
|
2014-10-27 23:42:59 -05:00
|
|
|
struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg);
|
2015-02-14 00:12:05 +02:00
|
|
|
struct l_dbus_message *dbus_error_aborted(struct l_dbus_message *msg);
|
|
|
|
struct l_dbus_message *dbus_error_not_available(struct l_dbus_message *msg);
|
2015-02-24 17:23:19 +02:00
|
|
|
struct l_dbus_message *dbus_error_invalid_args(struct l_dbus_message *msg);
|
2017-02-21 15:46:26 -06:00
|
|
|
struct l_dbus_message *dbus_error_invalid_format(struct l_dbus_message *msg);
|
2015-02-24 17:23:19 +02:00
|
|
|
struct l_dbus_message *dbus_error_already_exists(struct l_dbus_message *msg);
|
|
|
|
struct l_dbus_message *dbus_error_not_found(struct l_dbus_message *msg);
|
2015-02-24 23:19:16 -06:00
|
|
|
struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg);
|
2015-03-20 15:42:39 -05:00
|
|
|
struct l_dbus_message *dbus_error_no_agent(struct l_dbus_message *msg);
|
2015-04-30 18:41:53 -05:00
|
|
|
struct l_dbus_message *dbus_error_not_connected(struct l_dbus_message *msg);
|
2017-10-26 13:25:59 -07:00
|
|
|
struct l_dbus_message *dbus_error_not_configured(struct l_dbus_message *msg);
|
2015-09-28 11:27:33 -05:00
|
|
|
struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg);
|
2018-06-27 16:33:01 -07:00
|
|
|
struct l_dbus_message *dbus_error_service_set_overlap(
|
|
|
|
struct l_dbus_message *msg);
|
2018-06-28 21:02:55 -07:00
|
|
|
struct l_dbus_message *dbus_error_already_provisioned(
|
|
|
|
struct l_dbus_message *msg);
|
|
|
|
struct l_dbus_message *dbus_error_not_hidden(struct l_dbus_message *msg);
|
2014-10-27 23:42:43 -05:00
|
|
|
|
2018-07-02 11:33:49 -05:00
|
|
|
struct l_dbus_message *dbus_error_from_errno(int err,
|
|
|
|
struct l_dbus_message *msg);
|
|
|
|
|
2018-09-11 20:06:00 -05:00
|
|
|
bool dbus_init(struct l_dbus *dbus);
|
|
|
|
void dbus_exit(void);
|
2016-05-25 01:37:19 +02:00
|
|
|
void dbus_shutdown(void);
|