mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
dbus: add dbus_error_busy
This commit is contained in:
parent
4639c31d61
commit
96a139d15b
@ -59,6 +59,12 @@ void dbus_dict_append_bool(struct l_dbus_message_builder *builder,
|
||||
l_dbus_message_builder_leave_dict(builder);
|
||||
}
|
||||
|
||||
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg)
|
||||
{
|
||||
return l_dbus_message_new_error(msg, IWD_SERVICE ".InProgress",
|
||||
"Operation already in progress");
|
||||
}
|
||||
|
||||
void dbus_pending_reply(struct l_dbus_message **msg,
|
||||
struct l_dbus_message *reply)
|
||||
{
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define IWD_SERVICE "net.connman.iwd"
|
||||
|
||||
#define IWD_MANAGER_INTERFACE "net.connman.iwd.Manager"
|
||||
#define IWD_DEVICE_INTERFACE "net.connman.iwd.Device"
|
||||
|
||||
@ -39,5 +41,7 @@ void dbus_dict_append_string(struct l_dbus_message_builder *builder,
|
||||
void dbus_dict_append_bool(struct l_dbus_message_builder *builder,
|
||||
const char *key, bool boolval);
|
||||
|
||||
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
|
||||
|
||||
bool dbus_init(void);
|
||||
bool dbus_exit(void);
|
||||
|
Loading…
Reference in New Issue
Block a user