summaryrefslogtreecommitdiff
path: root/obexd/plugins/messages.h
diff options
context:
space:
mode:
authorDivya Yadav <divya.yadav@samsung.com>2012-01-06 19:01:56 +0530
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:48:50 +0100
commit4390cc444e43035901a6bdff43ed0c144e76d892 (patch)
treec74b4c592026bb4fc6a49933382fa25fc5abf0ef /obexd/plugins/messages.h
parent9fb880095ddea518f4b7f9e07189158bd081e212 (diff)
obexd: Add UpdateInbox function
UpdateInbox function allows remote device to initiate an update of the MSE inbox, i.e. the MSE shall contact the network to retrieve new messages if available. If MSE does not support the network update it shall answer with a 'Not implemented' error response.
Diffstat (limited to 'obexd/plugins/messages.h')
-rw-r--r--obexd/plugins/messages.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/obexd/plugins/messages.h b/obexd/plugins/messages.h
index 6982eddca..8c014aa16 100644
--- a/obexd/plugins/messages.h
+++ b/obexd/plugins/messages.h
@@ -268,6 +268,18 @@ int messages_get_message(void *session,
messages_get_message_cb callback,
void *user_data);
+/* Informs Message Server to Update Inbox via network.
+ *
+ * session: Backend session.
+ * user_data: User data if any to be sent.
+ * Callback shall be called for every update inbox request recieved from MCE.
+ */
+typedef void (*messages_update_inbox_cb)(void *session, int err,
+ void *user_data);
+
+int messages_update_inbox(void *session, messages_update_inbox_cb callback,
+ void *user_data);
+
/* Aborts currently pending request.
*
* session: Backend session.