diff --git a/src/lib/eldbus/eldbus_proxy.h b/src/lib/eldbus/eldbus_proxy.h index 5993967439..3552378b6f 100644 --- a/src/lib/eldbus/eldbus_proxy.h +++ b/src/lib/eldbus/eldbus_proxy.h @@ -116,6 +116,20 @@ EAPI Eldbus_Message *eldbus_proxy_method_call_new(Eldbus_Proxy *proxy, co */ EAPI Eldbus_Pending *eldbus_proxy_send(Eldbus_Proxy *proxy, Eldbus_Message *msg, Eldbus_Message_Cb cb, const void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2); +/** + * @brief Send a message and block while waiting for the reply + * + * @param proxy the msg will be send in connection that proxy belongs + * @param msg message that will be send + * @param cb if msg is a method call a callback should be passed + * @param cb_data data passed to callback + * + * @return A Eldbus_Pending object on the sent message. + * + * @since 1.13 + */ +EAPI Eldbus_Message *eldbus_proxy_send_and_block(Eldbus_Proxy *proxy, Eldbus_Message *msg) EINA_ARG_NONNULL(1, 2); + /** * @brief Call a method in proxy. * Send a method call to interface that proxy belong with data.