2014-10-07 04:50:27 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* 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-28 05:42:43 +01:00
|
|
|
#define IWD_SERVICE "net.connman.iwd"
|
|
|
|
|
2016-05-21 03:39:35 +02:00
|
|
|
#define IWD_AGENT_MANAGER_INTERFACE "net.connman.iwd.AgentManager"
|
2014-10-23 21:33:27 +02:00
|
|
|
#define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
|
2014-10-30 05:58:36 +01:00
|
|
|
#define IWD_NETWORK_INTERFACE "net.connman.iwd.Network"
|
2015-02-19 13:53:08 +01:00
|
|
|
#define IWD_AGENT_INTERFACE "net.connman.iwd.Agent"
|
2015-09-29 19:15:37 +02:00
|
|
|
#define IWD_WSC_INTERFACE "net.connman.iwd.WiFiSimpleConfiguration"
|
2014-10-23 21:32:51 +02:00
|
|
|
|
2016-05-21 03:39:35 +02:00
|
|
|
#define IWD_AGENT_MANAGER_PATH "/"
|
2014-10-23 22:07:08 +02:00
|
|
|
|
2014-10-07 04:50:27 +02:00
|
|
|
struct l_dbus;
|
|
|
|
|
|
|
|
struct l_dbus *dbus_get_bus(void);
|
|
|
|
|
2014-10-28 05:42:05 +01:00
|
|
|
void dbus_pending_reply(struct l_dbus_message **msg,
|
|
|
|
struct l_dbus_message *reply);
|
|
|
|
|
2014-10-23 23:48:08 +02:00
|
|
|
void dbus_dict_append_string(struct l_dbus_message_builder *builder,
|
|
|
|
const char *key, const char *strval);
|
2014-10-23 23:48:32 +02:00
|
|
|
void dbus_dict_append_bool(struct l_dbus_message_builder *builder,
|
|
|
|
const char *key, bool boolval);
|
2016-03-09 19:23:14 +01:00
|
|
|
void dbus_dict_append_object(struct l_dbus_message_builder *builder,
|
|
|
|
const char *key, const char *object_path);
|
2014-12-12 11:33:33 +01:00
|
|
|
void dbus_dict_append_bytearray(struct l_dbus_message_builder *builder,
|
|
|
|
const char *key, const uint8_t *arrayval,
|
|
|
|
const int len);
|
2014-10-23 23:48:08 +02:00
|
|
|
|
2014-10-28 05:42:43 +01:00
|
|
|
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
|
2014-10-28 05:42:59 +01:00
|
|
|
struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg);
|
2015-02-13 23:12:05 +01: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 16:23:19 +01:00
|
|
|
struct l_dbus_message *dbus_error_invalid_args(struct l_dbus_message *msg);
|
|
|
|
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-25 06:19:16 +01:00
|
|
|
struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg);
|
2015-03-20 21:42:39 +01:00
|
|
|
struct l_dbus_message *dbus_error_no_agent(struct l_dbus_message *msg);
|
2015-05-01 01:41:53 +02:00
|
|
|
struct l_dbus_message *dbus_error_not_connected(struct l_dbus_message *msg);
|
2015-09-28 18:27:33 +02:00
|
|
|
struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg);
|
2014-10-28 05:42:43 +01:00
|
|
|
|
2016-04-01 04:27:37 +02:00
|
|
|
bool dbus_init(bool enable_debug, bool use_kdbus);
|
2014-10-07 04:50:27 +02:00
|
|
|
bool dbus_exit(void);
|
2016-05-25 01:37:19 +02:00
|
|
|
void dbus_shutdown(void);
|