eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

dbus.h (4350B)


      1 /*
      2  *
      3  *  Wireless daemon for Linux
      4  *
      5  *  Copyright (C) 2013-2019  Intel Corporation. All rights reserved.
      6  *
      7  *  This library is free software; you can redistribute it and/or
      8  *  modify it under the terms of the GNU Lesser General Public
      9  *  License as published by the Free Software Foundation; either
     10  *  version 2.1 of the License, or (at your option) any later version.
     11  *
     12  *  This library 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 GNU
     15  *  Lesser General Public License for more details.
     16  *
     17  *  You should have received a copy of the GNU Lesser General Public
     18  *  License along with this library; if not, write to the Free Software
     19  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20  *
     21  */
     22 
     23 #include <stdbool.h>
     24 
     25 #define IWD_SERVICE "net.connman.iwd"
     26 
     27 #define IWD_DAEMON_INTERFACE "net.connman.iwd.Daemon"
     28 #define IWD_AGENT_MANAGER_INTERFACE "net.connman.iwd.AgentManager"
     29 #define IWD_WIPHY_INTERFACE "net.connman.iwd.Adapter"
     30 #define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
     31 #define IWD_NETWORK_INTERFACE "net.connman.iwd.Network"
     32 #define IWD_AGENT_INTERFACE "net.connman.iwd.Agent"
     33 #define IWD_WSC_INTERFACE "net.connman.iwd.SimpleConfiguration"
     34 #define IWD_KNOWN_NETWORK_INTERFACE "net.connman.iwd.KnownNetwork"
     35 #define IWD_SIGNAL_AGENT_INTERFACE "net.connman.iwd.SignalLevelAgent"
     36 #define IWD_AP_INTERFACE "net.connman.iwd.AccessPoint"
     37 #define IWD_ADHOC_INTERFACE "net.connman.iwd.AdHoc"
     38 #define IWD_STATION_INTERFACE "net.connman.iwd.Station"
     39 #define IWD_P2P_INTERFACE "net.connman.iwd.p2p.Device"
     40 #define IWD_P2P_PEER_INTERFACE "net.connman.iwd.p2p.Peer"
     41 #define IWD_P2P_SERVICE_MANAGER_INTERFACE "net.connman.iwd.p2p.ServiceManager"
     42 #define IWD_P2P_WFD_INTERFACE "net.connman.iwd.p2p.Display"
     43 #define IWD_STATION_DIAGNOSTIC_INTERFACE "net.connman.iwd.StationDiagnostic"
     44 #define IWD_AP_DIAGNOSTIC_INTERFACE "net.connman.iwd.AccessPointDiagnostic"
     45 #define IWD_STATION_DEBUG_INTERFACE "net.connman.iwd.StationDebug"
     46 #define IWD_DPP_INTERFACE "net.connman.iwd.DeviceProvisioning"
     47 #define IWD_DPP_PKEX_INTERFACE "net.connman.iwd.SharedCodeDeviceProvisioning"
     48 #define IWD_NETCONFIG_AGENT_INTERFACE \
     49 	"net.connman.iwd.NetworkConfigurationAgent"
     50 #define IWD_SHARED_CODE_AGENT_INTERFACE "net.connman.iwd.SharedCodeAgent"
     51 #define IWD_BSS_INTERFACE "net.connman.iwd.BasicServiceSet"
     52 
     53 #define IWD_BASE_PATH "/net/connman/iwd"
     54 #define IWD_AGENT_MANAGER_PATH IWD_BASE_PATH
     55 #define IWD_P2P_SERVICE_MANAGER_PATH IWD_BASE_PATH
     56 
     57 struct l_dbus;
     58 
     59 struct l_dbus *dbus_get_bus(void);
     60 
     61 void dbus_pending_reply(struct l_dbus_message **msg,
     62 				struct l_dbus_message *reply);
     63 bool dbus_append_dict_basic(struct l_dbus_message_builder *builder,
     64 				const char *name, char type,
     65 				const void *data);
     66 
     67 struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
     68 struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg);
     69 struct l_dbus_message *dbus_error_aborted(struct l_dbus_message *msg);
     70 struct l_dbus_message *dbus_error_not_available(struct l_dbus_message *msg);
     71 struct l_dbus_message *dbus_error_invalid_args(struct l_dbus_message *msg);
     72 struct l_dbus_message *dbus_error_invalid_format(struct l_dbus_message *msg);
     73 struct l_dbus_message *dbus_error_already_exists(struct l_dbus_message *msg);
     74 struct l_dbus_message *dbus_error_not_found(struct l_dbus_message *msg);
     75 struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg);
     76 struct l_dbus_message *dbus_error_no_agent(struct l_dbus_message *msg);
     77 struct l_dbus_message *dbus_error_not_connected(struct l_dbus_message *msg);
     78 struct l_dbus_message *dbus_error_not_configured(struct l_dbus_message *msg);
     79 struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg);
     80 struct l_dbus_message *dbus_error_service_set_overlap(
     81 						struct l_dbus_message *msg);
     82 struct l_dbus_message *dbus_error_already_provisioned(
     83 						struct l_dbus_message *msg);
     84 struct l_dbus_message *dbus_error_not_hidden(struct l_dbus_message *msg);
     85 struct l_dbus_message *dbus_error_permission_denied(struct l_dbus_message *msg);
     86 
     87 struct l_dbus_message *dbus_error_from_errno(int err,
     88 						struct l_dbus_message *msg);
     89 
     90 bool dbus_init(struct l_dbus *dbus);
     91 void dbus_exit(void);
     92 void dbus_shutdown(void);