#include <glib.h>
#include <hiker/types.h>
#include <hiker/sysclass.h>
Go to the source code of this file.
Data Structures | |
| struct | _AlpNotifyGroupArgs |
| struct | _AlpNotifyLaunch |
Defines | |
| #define | ALP_NOTIFY_BROADCAST_FLAG_IMMEDIATE 0x01 |
| broadcast flags: added the broadcast to the front of the queue | |
| #define | ALP_NOTIFY_BROADCAST_FLAG_SPECIAL 0x02 |
| broadcast flags: used for bundle processing (disables 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_CALLBACK_CONTINUE 0x00 |
| continue the current broadcast | |
| #define | ALP_NOTIFY_ERR_ACTIVE_BROADCAST (ALP_CLASS_NOTIFY | 0x000d0000) |
| error code: active broadcast | |
| #define | ALP_NOTIFY_ERR_ALREADY_REGISTERED (ALP_CLASS_NOTIFY | 0x000a0000) |
| error code: already registered | |
| #define | ALP_NOTIFY_ERR_INVALID_APPID (ALP_CLASS_NOTIFY | 0x00030000) |
| error code: invalid appID | |
| #define | ALP_NOTIFY_ERR_INVALID_CALLBACK (ALP_CLASS_NOTIFY | 0x00020000) |
| error code: invalid callback | |
| #define | ALP_NOTIFY_ERR_INVALID_CMD (ALP_CLASS_NOTIFY | 0x00080000) |
| error code: invalid command | |
| #define | ALP_NOTIFY_ERR_INVALID_FLAG (ALP_CLASS_NOTIFY | 0x000f0000) |
| error code: invalid flag value | |
| #define | ALP_NOTIFY_ERR_INVALID_LENGTH (ALP_CLASS_NOTIFY | 0x00070000) |
| error code: invalid length | |
| #define | ALP_NOTIFY_ERR_INVALID_NOTIFYTYPE (ALP_CLASS_NOTIFY | 0x00060000) |
| error code: invalid notification type | |
| #define | ALP_NOTIFY_ERR_INVALID_PRIORITY (ALP_CLASS_NOTIFY | 0x00050000) |
| error code: invalid priority | |
| #define | ALP_NOTIFY_ERR_INVALID_QUEUE (ALP_CLASS_NOTIFY | 0x00040000) |
| error code: invalid queue | |
| #define | ALP_NOTIFY_ERR_IPC (ALP_CLASS_NOTIFY | 0x000e0000) |
| error code: alp ipc | |
| #define | ALP_NOTIFY_ERR_NOT_REGISTERED (ALP_CLASS_NOTIFY | 0x00090000) |
| error code: not registered | |
| #define | ALP_NOTIFY_ERR_OUT_OF_MEMORY (ALP_CLASS_NOTIFY | 0x00010000) |
| error code: out of memory | |
| #define | ALP_NOTIFY_ERR_PERMISSION_DENIED (ALP_CLASS_NOTIFY | 0x00100000) |
| error code: permission denied | |
| #define | ALP_NOTIFY_ERR_TOO_MANY_BROADCASTS (ALP_CLASS_NOTIFY | 0x000c0000) |
| error code: too many active broadcasts | |
| #define | ALP_NOTIFY_ERR_TOO_MANY_REGISTRATIONS (ALP_CLASS_NOTIFY | 0x000b0000) |
| error code: too many registrations | |
| #define | ALP_NOTIFY_EVENT_HOMESCREEN_ACTIVATE "/alp/notify/homescreen_activate/" |
| notification type: Home Screen Activate notification | |
| #define | ALP_NOTIFY_EVENT_NOTIFY_BOOT "/alp/notify/boot/" |
| notification type: boot 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_REGISTER "/alp/notify/register/" |
| notification type: register notification | |
| #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_MAX_APPID_SIZE 64 |
| maximum size of the appIDs | |
| #define | ALP_NOTIFY_MAX_DETAILS_SIZE 256 |
| maximum size of the notification specific data | |
| #define | ALP_NOTIFY_MAX_NOTIFY_SIZE 128 |
| maximum size of the notification type | |
| #define | ALP_NOTIFY_PRIORITY_HIGH 10 |
| register priority: high priority notification | |
| #define | ALP_NOTIFY_PRIORITY_LOW -10 |
| register priority: low priority notification | |
| #define | ALP_NOTIFY_PRIORITY_NORMAL 0 |
| register priority: normal priority notification | |
| #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_REGISTER_FLAG_BGTHREAD 0x04 |
| register flag: process notification callbacks in dedicated thread | |
| #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 | |
Typedefs | |
| typedef int() | AlpNotifyCallbackProc (const char *notifyType, void *details, int length, int *handled, const char *appID, void *userData) |
| typedef void() | AlpNotifyCompletionProc (void *userData, int handled) |
| typedef _AlpNotifyGroupArgs | AlpNotifyGroupArgs |
| typedef _AlpNotifyLaunch | AlpNotifyLaunch |
Functions | |
| 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_full (const char *appID, const char *notifyType, const void *details, int length, int queue, int flags, AlpNotifyCompletionProc *completionProc, void *userData) |
| alp_status_t | alp_notify_broadcast_sync (const char *appID, const char *notifyType, const void *details, int length, int queue, int flags, int *handled) |
| int | alp_notify_details (const char *src, AlpNotifyLaunch *dst) |
| alp_status_t | alp_notify_done (const char *appID, int handled, int status) |
| void | alp_notify_group_broadcast_add (AlpNotifyGroupArgs *group, const char *appID, const char *notifyType, const void *details, int length, int queue, int flags) |
| void | alp_notify_group_clean (AlpNotifyGroupArgs *group) |
| void | alp_notify_group_free (AlpNotifyGroupArgs *group) |
| AlpNotifyGroupArgs * | alp_notify_group_new (void) |
| alp_status_t | alp_notify_group_send (AlpNotifyGroupArgs *group) |
| alp_status_t | alp_notify_register (const char *notifyType, AlpNotifyCallbackProc *callbackProc, void *userData, int priority, int flags) |
| alp_status_t | alp_notify_register_launch (const char *appID, const char *notifyType, int priority, int flags) |
| alp_status_t | alp_notify_unregister (const char *notifyType, int flags) |
| alp_status_t | alp_notify_unregister_launch (const char *appID, const char *notifyType, int flags) |
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.