|
Data Structures |
struct | _AlpNotifyLaunch |
Defines |
#define | ALP_NOTIFY_EVENT_NOTIFY_REGISTER "/alp/notify/register/" |
| notification type: register notification
|
#define | ALP_NOTIFY_EVENT_NOTIFY_INSTALL "/alp/notify/install/" |
| notification type: install notification (deprecated, please use ALP_NOTIFY_EVENT_NOTIFY_REGISTER)
|
#define | ALP_NOTIFY_EVENT_NOTIFY_BOOT "/alp/notify/boot/" |
| notification type: boot notification
|
#define | ALP_NOTIFY_MAX_NOTIFY_SIZE 128 |
| maximum size of the notification type
|
#define | ALP_NOTIFY_MAX_DETAILS_SIZE 256 |
| maximum size of the notification specific data
|
#define | ALP_NOTIFY_MAX_APPID_SIZE 64 |
| maximum size of the appIDs
|
#define | ALP_NOTIFY_LAUNCH_DETAILS "--alp-notify-details=" |
| command line parameter containing encoded notification details AlpNotifyLaunch
|
#define | ALP_NOTIFY_LAUNCH_TYPE "--alp-notify-type=" |
| command line parameter containing notification type
|
#define | ALP_NOTIFY_PRIORITY_HIGH 10 |
| register priority: high priority notification
|
#define | ALP_NOTIFY_PRIORITY_NORMAL 0 |
| register priority: normal priority notification
|
#define | ALP_NOTIFY_PRIORITY_LOW -10 |
| register priority: low priority notification
|
#define | ALP_NOTIFY_REGISTER_FLAG_DONTSAVE 0x01 |
| register flags: don't save app registration (don't persist across resets)
|
#define | ALP_NOTIFY_REGISTER_FLAG_ONETIME 0x02 |
| register flags: automatic unregister after first use
|
#define | ALP_NOTIFY_QUEUE_DEFAULT 0x01 |
| broadcast queue: default broadcast queue
|
#define | ALP_NOTIFY_QUEUE_STATUSGADGET 0x02 |
| broadcast queue: status gadget broadcast queue
|
#define | ALP_NOTIFY_BROADCAST_FLAG_IMMEDIATE 0x01 |
| broadcast flags: added the broadcast to the front of the queue
|
#define | ALP_NOTIFY_BROADCAST_FLAG_SYNC 0x02 |
| broadcast flags: sync broadcast, block until apps have been notified
|
#define | ALP_NOTIFY_CALLBACK_CONTINUE 0x00 |
| continue the current broadcast
|
#define | ALP_NOTIFY_CALLBACK_CANCEL 0x01 |
| cancel the current broadcast
|
#define | ALP_NOTIFY_CALLBACK_COMPLETED_ALREADY 0x02 |
| already called the completion routine
|
#define | ALP_NOTIFY_ERR_OUT_OF_MEMORY (ALP_CLASS_NOTIFY | 0x00010000) |
| error code: out of memory
|
#define | ALP_NOTIFY_ERR_INVALID_CALLBACK (ALP_CLASS_NOTIFY | 0x00020000) |
| error code: invalid callback
|
#define | ALP_NOTIFY_ERR_INVALID_APPID (ALP_CLASS_NOTIFY | 0x00030000) |
| error code: invalid appID
|
#define | ALP_NOTIFY_ERR_INVALID_QUEUE (ALP_CLASS_NOTIFY | 0x00040000) |
| error code: invalid queue
|
#define | ALP_NOTIFY_ERR_INVALID_PRIORITY (ALP_CLASS_NOTIFY | 0x00050000) |
| error code: invalid priority
|
#define | ALP_NOTIFY_ERR_INVALID_NOTIFYTYPE (ALP_CLASS_NOTIFY | 0x00060000) |
| error code: invalid notification type
|
#define | ALP_NOTIFY_ERR_INVALID_LENGTH (ALP_CLASS_NOTIFY | 0x00070000) |
| error code: invalid length
|
#define | ALP_NOTIFY_ERR_INVALID_CMD (ALP_CLASS_NOTIFY | 0x00080000) |
| error code: invalid command
|
#define | ALP_NOTIFY_ERR_NOT_REGISTERED (ALP_CLASS_NOTIFY | 0x00090000) |
| error code: not registered
|
#define | ALP_NOTIFY_ERR_ALREADY_REGISTERED (ALP_CLASS_NOTIFY | 0x000a0000) |
| error code: already registered
|
#define | ALP_NOTIFY_ERR_TOO_MANY_REGISTRATIONS (ALP_CLASS_NOTIFY | 0x000b0000) |
| error code: too many registrations
|
#define | ALP_NOTIFY_ERR_TOO_MANY_BROADCASTS (ALP_CLASS_NOTIFY | 0x000c0000) |
| error code: too many active broadcasts
|
#define | ALP_NOTIFY_ERR_ACTIVE_BROADCAST (ALP_CLASS_NOTIFY | 0x000d0000) |
| error code: active broadcast
|
#define | ALP_NOTIFY_ERR_IPC (ALP_CLASS_NOTIFY | 0x000e0000) |
| error code: alp ipc
|
#define | ALP_NOTIFY_ERR_TIMEOUT (ALP_CLASS_NOTIFY | 0x000f0000) |
| error code: sync broadcast timed out
|
#define | ALP_NOTIFY_ERR_PERMISSION_DENIED (ALP_CLASS_NOTIFY | 0x00100000) |
| error code: permission denied
|
#define | ALP_NOTIFY_PRIORITY_HIGHEST 110 |
| register priority: highest priority notification
|
#define | ALP_NOTIFY_PRIORITY_LOWEST -110 |
| register priority: lowest priority notification
|
#define | ALP_NOTIFY_BROADCAST_FORCE 0x100 |
| broadcast flags: override any limits
|
#define | ALP_NOTIFY_REGISTER_FORCE 0x100 |
| register flags: override any limits
|
Typedefs |
typedef _AlpNotifyLaunch | AlpNotifyLaunch |
typedef int( | AlpNotifyCallbackProc )(const char *notifyType, void *details, int length, int *handled, const char *appID, void *userData) |
Functions |
alp_status_t | alp_notify_register_server (const char *notifyType, AlpNotifyCallbackProc *callbackProc, void *userData, int priority, int flags) |
alp_status_t | alp_notify_register (const char *appID, const char *notifyType, int priority, int flags) |
alp_status_t | alp_notify_unregister (const char *appID, const char *notifyType, int flags) |
alp_status_t | alp_notify_unregister_server (const char *notifyType, int flags) |
alp_status_t | alp_notify_broadcast (const char *appID, const char *notifyType, const void *details, int length, int queue, int flags) |
alp_status_t | alp_notify_broadcast_sync (const char *appID, const char *notifyType, const void *details, int length, int queue, int flags, int timeout, int *handled) |
alp_status_t | alp_notify_done (const char *appID, int handled, int status) |
int | alp_notify_details (const char *src, AlpNotifyLaunch *dst) |