summaryrefslogtreecommitdiff
path: root/obexd/plugins/messages.h
diff options
context:
space:
mode:
authorSlawomir Bochenski <lkslawek@gmail.com>2011-09-02 10:57:42 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:48:44 +0100
commit027df908d8bd66f2f92f6366983215b704c6a541 (patch)
treed20ca82fc3f75030e6cfb516991d4b213a1a0b37 /obexd/plugins/messages.h
parent3ceea5ccb5f2231c70a7d017bcc49f5cb6419cbe (diff)
obexd: Add basic messages listing retrieval support
Diffstat (limited to 'obexd/plugins/messages.h')
-rw-r--r--obexd/plugins/messages.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/obexd/plugins/messages.h b/obexd/plugins/messages.h
index 5b0fd2d3f..f931eb4ee 100644
--- a/obexd/plugins/messages.h
+++ b/obexd/plugins/messages.h
@@ -223,12 +223,15 @@ int messages_get_folder_listing(void *session,
* Callback shall be called for every entry of the listing, giving message data
* in 'message'.
*/
+typedef void (*messages_get_messages_listing_cb)(void *session, int err,
+ uint16_t size, gboolean newmsg,
+ const struct messages_message *message,
+ void *user_data);
+
int messages_get_messages_listing(void *session,
const char *name,
uint16_t max, uint16_t offset, struct messages_filter *filter,
- void (*callback)(void *session, int err, uint16_t size,
- gboolean newmsg, const struct messages_message *message,
- void *user_data),
+ messages_get_messages_listing_cb callback,
void *user_data);
#define MESSAGES_ATTACHMENT (1 << 0)