summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-12-04 09:48:21 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-04 09:49:02 -0500
commite62dfdd79ee964a8c6617342831b1fd022e8a3bf (patch)
tree96a5985d8d3253719d677d3efbb829b8f5600be8
parent34dd248551679b493bb616a48b3f8be88a274f1f (diff)
eldbus: Add actual API function code for eldbus_proxy_send_and_block
Summary: This adds the actual code to send a dbus message and block while waiting for a reply. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/eldbus/eldbus_proxy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/eldbus/eldbus_proxy.c b/src/lib/eldbus/eldbus_proxy.c
index 785caec..ad32732 100644
--- a/src/lib/eldbus/eldbus_proxy.c
+++ b/src/lib/eldbus/eldbus_proxy.c
@@ -546,6 +546,12 @@ _eldbus_proxy_send(Eldbus_Proxy *proxy, Eldbus_Message *msg, Eldbus_Message_Cb c
546 return pending; 546 return pending;
547} 547}
548 548
549static Eldbus_Message *
550_eldbus_proxy_send_and_block(Eldbus_Proxy *proxy, Eldbus_Message *msg)
551{
552 return _eldbus_connection_send_and_block(proxy->obj->conn, msg);
553}
554
549EAPI Eldbus_Pending * 555EAPI Eldbus_Pending *
550eldbus_proxy_send(Eldbus_Proxy *proxy, Eldbus_Message *msg, Eldbus_Message_Cb cb, const void *cb_data, double timeout) 556eldbus_proxy_send(Eldbus_Proxy *proxy, Eldbus_Message *msg, Eldbus_Message_Cb cb, const void *cb_data, double timeout)
551{ 557{
@@ -556,6 +562,15 @@ eldbus_proxy_send(Eldbus_Proxy *proxy, Eldbus_Message *msg, Eldbus_Message_Cb cb
556} 562}
557 563
558EAPI Eldbus_Message * 564EAPI Eldbus_Message *
565eldbus_proxy_send_and_block(Eldbus_Proxy *proxy, Eldbus_Message *msg)
566{
567 ELDBUS_PROXY_CHECK_RETVAL(proxy, NULL);
568 EINA_SAFETY_ON_NULL_RETURN_VAL(msg, NULL);
569
570 return _eldbus_proxy_send_and_block(proxy, msg);
571}
572
573EAPI Eldbus_Message *
559eldbus_proxy_method_call_new(Eldbus_Proxy *proxy, const char *member) 574eldbus_proxy_method_call_new(Eldbus_Proxy *proxy, const char *member)
560{ 575{
561 Eldbus_Message *msg; 576 Eldbus_Message *msg;