struct messages_filter {
uint32_t parameter_mask;
uint8_t type;
- char *period_begin;
- char *period_end;
+ const char *period_begin;
+ const char *period_end;
uint8_t read_status;
- char *recipient;
- char *originator;
+ const char *recipient;
+ const char *originator;
uint8_t priority;
};
* session: Backend session.
* name: Optional subdirectory name.
* max: Maximum number of entries to retrieve.
+#ifdef TIZEN_PATCH
+ * offset: Offset of the first entry.
+ * subject_len: Maximum string length of the "subject" parameter in the entries.
+#endif
* filter: Filter to apply on returned message listing.
* size: Total size of listing to be returned.
* newmsg: Indicates presence of unread messages.
uint16_t size, gboolean newmsg,
const struct messages_message *message,
void *user_data);
-
+#ifdef TIZEN_PATCH
+int messages_get_messages_listing(void *session, const char *name,
+ uint16_t max, uint16_t offset, uint8_t subject_len,
+ const struct messages_filter *filter,
+ messages_get_messages_listing_cb callback,
+ void *user_data);
+#else
int messages_get_messages_listing(void *session, const char *name,
uint16_t max, uint16_t offset,
const struct messages_filter *filter,
messages_get_messages_listing_cb callback,
void *user_data);
+#endif
#define MESSAGES_ATTACHMENT (1 << 0)
#define MESSAGES_UTF8 (1 << 1)
*
* session: Backend session.
* user_data: User data if any to be sent.
- * Callback shall be called for every update inbox request recieved from MCE.
+ * Callback shall be called for every update inbox request received from MCE.
*/
typedef void (*messages_update_inbox_cb)(void *session, int err,
void *user_data);
void *user_data);
#endif
+
+#ifdef TIZEN_PATCH
+
+/* Informs Message Server to modify status of the message.
+ *
+ * session: Backend session.
+ * address: Remote device address that request notification registraton.
+ * status: To indicate message notification service
+ * Callback shall be called for every notification registration request.
+ * user_data: User data if any to be sent.
+ */
+typedef void (*messages_notification_registration_cb)(void *session, int err,
+ void *user_data);
+
+int messages_notification_registration(void *session,
+ char *address, int status,
+ messages_notification_registration_cb callback,
+ void *user_data);
+#endif
+
/* Aborts currently pending request.
*
* session: Backend session.