Lines Matching refs:message
66 * error message
67 * @message: Pointer to incoming dbus message this error refers to
68 * Returns: a dbus error message
73 wpas_dbus_error_persistent_group_unknown(DBusMessage *message)
76 message, WPAS_DBUS_ERROR_NETWORK_UNKNOWN,
81 DBusMessage * wpas_dbus_handler_p2p_find(DBusMessage *message,
95 dbus_message_iter_init(message, &iter);
152 message, "Could not start P2P find");
161 reply = wpas_dbus_error_invalid_args(message, entry.key);
166 DBusMessage * wpas_dbus_handler_p2p_stop_find(DBusMessage *message,
174 DBusMessage * wpas_dbus_handler_p2p_rejectpeer(DBusMessage *message,
181 dbus_message_iter_init(message, &iter);
185 return wpas_dbus_error_invalid_args(message, NULL);
190 return wpas_dbus_error_unknown_error(message,
197 DBusMessage * wpas_dbus_handler_p2p_listen(DBusMessage *message,
202 if (!dbus_message_get_args(message, NULL, DBUS_TYPE_INT32, &timeout,
204 return wpas_dbus_error_no_memory(message);
209 return dbus_message_new_error(message,
219 DBusMessage *message, struct wpa_supplicant *wpa_s)
226 dbus_message_iter_init(message, &iter);
251 message, "failed to initiate a p2p_ext_listen.");
258 return wpas_dbus_error_invalid_args(message, entry.key);
263 DBusMessage *message, struct wpa_supplicant *wpa_s)
270 dbus_message_iter_init(message, &iter);
299 return wpas_dbus_error_unknown_error(message,
307 return wpas_dbus_error_invalid_args(message, entry.key);
311 DBusMessage * wpas_dbus_handler_p2p_group_add(DBusMessage *message,
325 dbus_message_iter_init(message, &iter);
369 wpas_dbus_error_invalid_args(message,
377 message, pg_object_path);
389 message,
404 reply = wpas_dbus_error_invalid_args(message, NULL);
409 DBusMessage * wpas_dbus_handler_p2p_disconnect(DBusMessage *message,
413 return wpas_dbus_error_unknown_error(message,
421 DBusMessage *message,
425 /* Return an error message or an error if P2P isn't available */
429 message, DBUS_ERROR_FAILED,
440 DBusMessage * wpas_dbus_handler_p2p_remove_client(DBusMessage *message,
451 if (!wpa_dbus_p2p_check_enabled(wpa_s, message, &reply, NULL))
454 dbus_message_iter_init(message, &iter);
493 reply = wpas_dbus_error_invalid_args(message, "Invalid address format");
498 DBusMessage * wpas_dbus_handler_p2p_flush(DBusMessage *message,
503 if (!wpa_dbus_p2p_check_enabled(wpa_s, message, &reply, NULL))
517 DBusMessage * wpas_dbus_handler_p2p_connect(DBusMessage *message,
538 if (!wpa_dbus_p2p_check_enabled(wpa_s, message, &reply, NULL))
541 dbus_message_iter_init(message, &iter);
617 reply = wpas_dbus_error_unknown_error(message,
622 reply = dbus_message_new_method_return(message);
648 * error message?
650 reply = dbus_message_new_error(message, iface, err_msg);
660 reply = wpas_dbus_error_invalid_args(message, NULL);
667 * @message: Pointer to incoming dbus message
674 DBusMessage * wpas_dbus_handler_p2p_cancel(DBusMessage *message,
678 return wpas_dbus_error_unknown_error(message,
685 DBusMessage * wpas_dbus_handler_p2p_invite(DBusMessage *message,
700 if (!wpa_dbus_p2p_check_enabled(wpa_s, message, &reply, NULL))
703 dbus_message_iter_init(message, &iter);
748 reply = wpas_dbus_error_invalid_args(message,
756 message, pg_object_path);
768 message,
779 message, "Failed to join to an active group");
791 reply = wpas_dbus_error_invalid_args(message, NULL);
796 DBusMessage * wpas_dbus_handler_p2p_prov_disc_req(DBusMessage *message,
804 dbus_message_iter_init(message, &iter);
808 return wpas_dbus_error_invalid_args(message, NULL);
822 return wpas_dbus_error_invalid_args(message, NULL);
828 return wpas_dbus_error_unknown_error(message,
998 "invalid message format");
1158 "invalid message format");
1695 "%s: failed to construct message 1", __func__);
1717 "%s: failed to construct message 2 (%d)",
1729 "%s: failed to construct message 3", __func__);
1948 * @iter: Pointer to incoming dbus message iter
2010 * @iter: Pointer to incoming dbus message iter
2033 * @iter: Pointer to incoming dbus message iter
2060 * @message: Pointer to incoming dbus message
2062 * Returns: A dbus message containing the object path of the new
2069 DBusMessage *message, struct wpa_supplicant *wpa_s)
2077 dbus_message_iter_init(message, &iter);
2087 message,
2105 message, &error, DBUS_ERROR_INVALID_ARGS,
2116 reply = dbus_message_new_method_return(message);
2118 reply = wpas_dbus_error_no_memory(message);
2124 reply = wpas_dbus_error_no_memory(message);
2142 * @message: Pointer to incoming dbus message
2150 DBusMessage *message, struct wpa_supplicant *wpa_s)
2158 dbus_message_get_args(message, NULL, DBUS_TYPE_OBJECT_PATH, &op,
2173 reply = wpas_dbus_error_invalid_args(message, op);
2179 reply = wpas_dbus_error_invalid_args(message, op);
2185 reply = wpas_dbus_error_persistent_group_unknown(message);
2196 message,
2224 * @message: Pointer to incoming dbus message
2232 DBusMessage *message, struct wpa_supplicant *wpa_s)
2555 "invalid message format");
2587 "invalid message format");
2592 DBusMessage * wpas_dbus_handler_p2p_add_service(DBusMessage *message,
2606 dbus_message_iter_init(message, &iter);
2673 return wpas_dbus_error_invalid_args(message, NULL);
2678 DBusMessage *message, struct wpa_supplicant *wpa_s)
2691 dbus_message_iter_init(message, &iter);
2753 return wpas_dbus_error_invalid_args(message, NULL);
2757 DBusMessage * wpas_dbus_handler_p2p_flush_service(DBusMessage *message,
2766 DBusMessage *message, struct wpa_supplicant *wpa_s)
2780 dbus_message_iter_init(message, &iter);
2838 reply = dbus_message_new_method_return(message);
2843 message, "Unable to send SD request");
2854 reply = wpas_dbus_error_invalid_args(message, NULL);
2860 DBusMessage *message, struct wpa_supplicant *wpa_s)
2872 dbus_message_iter_init(message, &iter);
2915 reply = wpas_dbus_error_invalid_args(message, NULL);
2921 DBusMessage *message, struct wpa_supplicant *wpa_s)
2926 dbus_message_iter_init(message, &iter);
2937 return wpas_dbus_error_invalid_args(message, NULL);
2942 DBusMessage *message, struct wpa_supplicant *wpa_s)
2950 DBusMessage *message, struct wpa_supplicant *wpa_s)
2955 dbus_message_iter_init(message, &iter);
3034 "invalid message format");