|
PebbleOS
|
#include <applib/app_outbox.h>#include <kernel/events.h>#include <kernel/pebble_tasks.h>#include <pbl/util/list.h>#include <stdint.h>#include <stddef.h>Data Structures |
Typedefs | |
| typedef void(* | AppOutboxMessageHandler) (AppOutboxMessage *message) |
| Called on the consumer task when a message is added. | |
Enumerations | |
| enum | AppOutboxServiceTag { AppOutboxServiceTagInvalid = -1 , AppOutboxServiceTagAppMessageSender , NumAppOutboxServiceTag } |
| Identifies a kernel consumer and the sent handler permitted for it. More... | |
Functions | |
| void | app_outbox_service_init (void) |
| Initialize the service, once at boot. | |
| void | app_outbox_service_cleanup_all_pending_messages (void) |
| Drop all pending messages. | |
| void | app_outbox_service_cleanup_event (PebbleEvent *event) |
| Free the message of an unprocessed app outbox event. | |
| bool | app_outbox_service_is_message_cancelled (AppOutboxMessage *message) |
| Check whether a message was cancelled. | |
| void | app_outbox_service_register (AppOutboxServiceTag service_tag, AppOutboxMessageHandler message_handler, PebbleTask consumer_task, size_t consumer_data_size) |
| Register the consumer of a tag. | |
| void | app_outbox_service_consume_message (AppOutboxMessage *message, AppOutboxStatus status) |
| Finish processing a message and free it. | |
| void | app_outbox_service_unregister (AppOutboxServiceTag service_tag) |
| Unregister the consumer of a tag. | |