[PATCH 2/6] Add phonebook_req_cancel to tracker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add phonebook_req_cancel function to phonebook_tracker.c that cancels
pending request.
---
 plugins/phonebook-tracker.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 20053f6..5fd0074 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -1799,6 +1799,17 @@ done:
 	return path;
 }
 
+void phonebook_req_cancel(void *request)
+{
+	struct DBusPendingCall *call = request;
+
+	if (!call)
+		return;
+
+	dbus_pending_call_cancel(call);
+	dbus_pending_call_unref(call);
+}
+
 int phonebook_pull(const char *name, const struct apparam_field *params,
 					phonebook_cb cb, void *user_data)
 {
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux