--- plugins/messages-dummy.c | 3 +-- plugins/messages.h | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/messages-dummy.c b/plugins/messages-dummy.c index 295eb61..408651e 100644 --- a/plugins/messages-dummy.c +++ b/plugins/messages-dummy.c @@ -145,8 +145,7 @@ int messages_set_folder(void *s, const char *name, gboolean cdup) int messages_get_folder_listing(void *session, const char *name, uint16_t max, uint16_t offset, - void (*callback)(void *session, int err, uint16_t size, - const char *name, void *user_data), + messages_folder_listing_cb callback, void *user_data) { return -EINVAL; diff --git a/plugins/messages.h b/plugins/messages.h index c862b07..d9348c7 100644 --- a/plugins/messages.h +++ b/plugins/messages.h @@ -202,11 +202,13 @@ int messages_set_folder(void *session, const char *name, gboolean cdup); * Callback shall be called for every entry of the listing. 'name' is the * subdirectory name. */ +typedef void (*messages_folder_listing_cb)(void *session, int err, + uint16_t size, const char *name, void *user_data); + int messages_get_folder_listing(void *session, const char *name, uint16_t max, uint16_t offset, - void (*callback)(void *session, int err, uint16_t size, - const char *name, void *user_data), + messages_folder_listing_cb callback, void *user_data); /* Retrieves messages listing from a current directory. -- 1.7.4.1 -- 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