#include <sys/types.h>
#include <glib.h>
#include <hiker/ipc.h>
#include <hiker/types.h>
#include <hiker/config_defines.h>
#include <hiker/traces.h>
Go to the source code of this file.
Defines | |
| #define | ALP_APP_ALARM "--alp-alarm" |
| The application is being launched because one of its alarms went off. | |
| #define | ALP_APP_ALARM_REASON "--alp-alarm-reason" |
| Indicate that reason for the alarm event. | |
| #define | ALP_APP_ALLOW_EARLY "--alp-allow-early" |
| Forces the application to be launched even if the system is not yet fully booted. | |
| #define | ALP_APP_BACKGROUNDED "--alp-backgrounded" |
| The application is no longer the primary UI app. | |
| #define | ALP_APP_CLOSE_SESSION "--alp-close-session" |
| The application is being launched so that it can close open postal service sessions. | |
| #define | ALP_APP_DEBUG "--alp-debug" |
| Indicates that the application should be prepared for debugging. | |
| #define | ALP_APP_DISPLAY "--alp-display" |
| The application should display a particular piece of data. | |
| #define | ALP_APP_EXCHANGE "--alp-exchange" |
| The application is being launched or relaunched to run an exchange handler. | |
| #define | ALP_APP_FIND "--alp-find" |
| The application should search for a particular term. | |
| #define | ALP_APP_FIND_CANCEL "--alp-find-cancel" |
| The application should cancel ongoing searches. | |
| #define | ALP_APP_NOTIFY "--alp-notify" |
| The application is being launched or relaunched to handle a notification. | |
| #define | ALP_APP_PRIMARY "--alp-primary" |
| The application is the new "primary" main UI app, and should display its full UI. | |
| #define | ALP_APP_PROP_BACKGROUNDING "backgrounding" |
| #define | ALP_APP_PROP_BG_PREFERRED "preferred" |
| #define | ALP_APP_PROP_BG_REQUIRED "required" |
| #define | ALP_APP_PROP_BG_SUPPORTED "supported" |
| #define | ALP_APP_PROP_BG_UNSUPPORTED "unsupported" |
| #define | ALP_APP_PROP_DELETE "delete-menu" |
| #define | ALP_APP_PROP_ENABLE_THEME "enable-theme" |
| #define | ALP_APP_PROP_HIDDEN "hidden" |
| #define | ALP_APP_PROP_ICON "icon" |
| #define | ALP_APP_PROP_JUMP_LIST "jump-list" |
| #define | ALP_APP_PROP_NAME "name" |
| #define | ALP_APP_PROP_PREVENT_COPY "prevent-copy" |
| #define | ALP_APP_PROP_PREVENT_DELETE "prevent-delete" |
| #define | ALP_APP_PROP_SETTINGS "settings-menu" |
| #define | ALP_APP_PROP_TRANSIENT "transient" |
| #define | ALP_APP_PROP_UPDATE "update-menu" |
| #define | ALP_APP_PROP_VENDOR "vendor" |
| #define | ALP_APP_PROP_VERSION "version" |
| #define | ALP_APP_SETTING_APPMGR_DIR "/alp/appmgr" |
| #define | ALP_APP_SETTING_DEFAULT_ORIENTATION "/alp/appmgr/default-orientation" |
| #define | ALP_APP_SETTING_DEFAULT_PRIMARY "/alp/appmgr/default-primary" |
| #define | ALP_APP_SETTING_DISABLE_PRIMARY "/alp/appmgr/disable-primary-launches" |
| #define | ALP_APP_SETTING_END_KEY_APP "/alp/appmgr/end-key-app" |
| #define | ALP_APP_SETTING_HOME_KEY_APP "/alp/appmgr/home-key-app" |
| #define | ALP_APP_SETTING_LONG_PRESS_APP "/alp/appmgr/long-press-app" |
| #define | ALP_APP_SETTING_OTHER_PRIMARY "/alp/appmgr/other-primary" |
| #define | ALP_APP_TRANSIENT "--alp-transient" |
| The application is being launched as transient, and should go away when the primary app changes. | |
| #define | ALP_NOTIFY_EVENT_APP_MEMORY_CRITICAL "/alp/appmgr/memory-critical" |
| #define | ALP_NOTIFY_EVENT_APP_MEMORY_CRITICAL_RECOVER "/alp/appmgr/memory-critical-recover" |
| #define | ALP_NOTIFY_EVENT_APP_MEMORY_LOW "/alp/appmgr/memory-low" |
| #define | ALP_NOTIFY_EVENT_APP_MEMORY_LOW_RECOVER "/alp/appmgr/memory-low-recover" |
| #define | ALP_STATUS_APP_BLOCKED ((alp_status_t)ALP_CLASS_APPSERVER | 0x000A0000) |
| #define | ALP_STATUS_APP_IPC ((alp_status_t)ALP_CLASS_APPSERVER | 0x00020000) |
| #define | ALP_STATUS_APP_LAUNCHPAD ((alp_status_t)ALP_CLASS_APPSERVER | 0x00090000) |
| #define | ALP_STATUS_APP_MEM ((alp_status_t)ALP_CLASS_APPSERVER | 0x00080000) |
| #define | ALP_STATUS_APP_MSG ((alp_status_t)ALP_CLASS_APPSERVER | 0x00060000) |
| #define | ALP_STATUS_APP_NO_CONTEXT ((alp_status_t)ALP_CLASS_APPSERVER | 0x00040000) |
| #define | ALP_STATUS_APP_NO_LAUNCHPAD ((alp_status_t)ALP_CLASS_APPSERVER | 0x00050000) |
| #define | ALP_STATUS_APP_NOT_FOUND ((alp_status_t)ALP_CLASS_APPSERVER | 0x00030000) |
| #define | ALP_STATUS_APP_NOT_READY ((alp_status_t)ALP_CLASS_APPSERVER | 0x000B0000) |
| #define | ALP_STATUS_APP_PARAM ((alp_status_t)ALP_CLASS_APPSERVER | 0x00010000) |
| #define | ALP_STATUS_APP_RUNNING ((alp_status_t)ALP_CLASS_APPSERVER | 0x00070000) |
| #define | PKG_ID_MAX_SIZE 256 |
Typedefs | |
| typedef void(* | AlpAppLaunchCompletionProc )(alp_status_t status, pid_t pid, gpointer cbData) |
| typedef void(* | AlpExitHandler )(gpointer cbData) |
| typedef void(* | AlpRelaunchHandler )(int argc, char *argv[], gpointer cbData) |
| typedef uint32_t | AlpWatcherRef |
Enumerations | |
| enum | AlpAppBackgroundingType { ALP_APP_BACKGROUND_UNSUPPORTED = 1, ALP_APP_BACKGROUND_SUPPORTED, ALP_APP_BACKGROUND_PREFERRED, ALP_APP_BACKGROUND_REQUIRED, ALP_APP_BACKGROUND_DEFAULT = ALP_APP_BACKGROUND_UNSUPPORTED } |
| Values for alp_app_set_backgrounding(); see documentation for backgrounding properties. More... | |
| enum | AlpAppMemoryState { ALP_APP_MEMORY_STATE_UNKNOWN = 0, ALP_APP_MEMORY_STATE_LOW = 1, ALP_APP_MEMORY_STATE_LOW_RECOVER = 2, ALP_APP_MEMORY_STATE_CRITICAL = 3, ALP_APP_MEMORY_STATE_CRITICAL_RECOVER = 4 } |
Functions | |
| alp_status_t | alp_app_add_exit_handler (AlpExitHandler procP, gpointer cbData) |
| Applications should call this API in order to add an exit handler to the list. | |
| alp_status_t | alp_app_current (char **outBundleID) |
| Obtain the package ID of the current primary app, if any. | |
| alp_status_t | alp_app_exit (const char *bundleID) |
| Request that the indicated application cease execution. | |
| alp_status_t | alp_app_get_backgrounding (AlpAppBackgroundingType *outBackgrounding) |
| Get the application's current backgrounding setting. | |
| gboolean | alp_app_is_primary (void) |
| Check if the calling app is currently running as primary. | |
| alp_status_t | alp_app_launch (const char *bundleID, int argc, char *const argv[], pid_t *outPID) |
| Sends a request to the appserver to launch the indicated app. | |
| alp_status_t | alp_app_launch_async (const char *bundleID, int argc, char *const argv[], AlpAppLaunchCompletionProc completionProc, gpointer cbData) |
| Sends a request to the appserver to launch the indicated app, without blocking. | |
| alp_status_t | alp_app_remove_exit_handler (AlpExitHandler procP) |
| Remove the indicated exit handler from the list. | |
| alp_status_t | alp_app_remove_exit_handler_with_data (AlpExitHandler procP, gpointer cbData) |
| Remove the indicated exit handler from the list which also matches a given data pointer. | |
| alp_status_t | alp_app_reset_system (void) |
| Causes the system to reboot. | |
| alp_status_t | alp_app_retire (const char *bundleID) |
| Request that the indicated primary application exit or move to the background. | |
| alp_status_t | alp_app_retire_transients (void) |
| Request that all transient apps be retired (as with alp_app_retire()). | |
| alp_status_t | alp_app_set_backgrounding (AlpAppBackgroundingType newBackgrounding) |
| Set the application's backgrounding setting. | |
| alp_status_t | alp_app_set_relaunch_handler (AlpRelaunchHandler procP, gpointer cbData) |
| Set the handler for launch arguments in case the app is launched while it is already running. | |
| alp_status_t | alp_app_watcher_add (const char *bundleID, AlpWatcherRef *outWatcherRef, gboolean *outAppRan) |
| Add a new watcher to notice when the indicated app is run. | |
| alp_status_t | alp_app_watcher_block (AlpWatcherRef watcherRef, gboolean blockLaunch) |
| Configure watcher to (not) prevent its target application from being launched. | |
| alp_status_t | alp_app_watcher_check (AlpWatcherRef watcherRef, gboolean *outAppRan) |
| Check if the indicated watcher's target app has been run since the watcher was added. | |
| alp_status_t | alp_app_watcher_remove (AlpWatcherRef watcherRef, gboolean *outAppRan) |
| Deallocate the indicated watcher, and check if its target app ran since the watcher was added. | |
| gboolean | alp_gremlins_is_running (void) |
| Check if the calling app is being tested by gremlins. | |
| int | alp_main (int argc, char *argv[]) |
| Standard alp application main prototype. | |
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.