dbus: add dbus_error_busy

This commit is contained in:
Denis Kenzior 2014-10-27 23:42:43 -05:00
parent 4639c31d61
commit 96a139d15b
2 changed files with 10 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);