Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

appservermsg.c File Reference


Detailed Description

This file contains the message-packing APIs for the MAX Application server.

#include <errno.h>
#include <hiker/pdk/appmgr_pdk.h>
#include <hiker/prv/appmgr_prv.h>
#include <hiker/ipc.h>
#include <string.h>
#include <sys/types.h>
#include <stdlib.h>

Defines

#define ALP_TRACE   ALP_TRACE_OFF

Functions

alp_status_t alp_app_prv_pack_argv (AlpMessage *msg, const char *appID, int argc, char *const argv[])
 Pack an argc/argv style argument list from AlpMessage structures.
alp_status_t alp_app_prv_unpack_argv (AlpMessage *msg, int *outArgc, char ***outArgv)
 Unpacking an argc/argv style argument list from AlpMessage structures.
AlpMessagealp_app_prv_make_launch_msg (const char *appID, int argc, char *const argv[], gboolean waitForPID)
 Utility API to create a new AlpMessage containing a launch request.
alp_status_t alp_app_prv_unpack_launch_msg (AlpMessage *msg, int *argc, char ***argv, gboolean *waitForPID)
 Utility API to unpack the contents of an AlpMessage containing a launch request.
AlpMessagealp_app_prv_make_exit_msg (const char *appID)
 Utility API to create a new AlpMessage containing an exit request.
alp_status_t alp_app_prv_unpack_exit_msg (AlpMessage *msg, char **appID)
 Utility API to unpack the contents of an AlpMessage containing an exit request.
AlpMessagealp_app_prv_make_retire_msg (const char *appID)
 Utility API to create a new AlpMessage containing a retire request.
alp_status_t alp_app_prv_unpack_retire_msg (AlpMessage *msg, char **appID)
 Utility API to unpack the contents of an AlpMessage containing an retire request.
AlpMessagealp_app_prv_make_register_msg (const char *appID, pid_t appPID, guint32 flags, const char *lpScheme)
 Utility API to create a new AlpMessage containing an app registration.
alp_status_t alp_app_prv_unpack_register_msg (AlpMessage *msg, char **appID, pid_t *appPID, guint32 *flags, char **lpScheme)
 Utility API to unpack the contents of an AlpMessage containing an app registration.
AlpMessagealp_app_prv_make_unregister_msg (int result)
 Utility API to create a new AlpMessage containing an unregistration message.
alp_status_t alp_app_prv_unpack_unregister_msg (AlpMessage *msg, int *result)
 Utility API to unpack the contents of an AlpMessage containing an unregistration message.
AlpMessagealp_app_prv_make_diagnostic_msg (const char *appID, const char *str)
 Utility API to create a new AlpMessage containing a diagnostic message.
alp_status_t alp_app_prv_unpack_diagnostic_msg (AlpMessage *msg, char **appID, char **str)
 Utility API to unpack the contents of an AlpMessage containing a diagnostic message.
AlpMessagealp_app_prv_make_launch_reply_msg (AlpMessage *replyTo, const char *appID, alp_status_t launchErr, pid_t appPID)
 Utility API to pack the contents of an AlpMessage containing a launch reply message.
alp_status_t alp_app_prv_unpack_launch_reply_msg (AlpMessage *msg, char **appID, alp_status_t *launchErr, pid_t *appPID)
 Utility API to unpack the contents of an AlpMessage containing a launch reply message.
AlpMessagealp_app_prv_make_backgrounding_msg (AlpAppBackgroundingType newBG)
 Utility API to create a new AlpMessage containing a "set backgrounding" request.
alp_status_t alp_app_prv_unpack_backgrounding_msg (AlpMessage *msg, AlpAppBackgroundingType *outBG)
 Utility API to unpack the contents of an AlpMessage containing a "set backgrounding" request.
AlpMessagealp_app_prv_make_flush_msg (AlpMessage *replyTo)
 Utility API to pack the contents of an AlpMessage containing a flush message.
AlpMessagealp_app_prv_make_jump_list_request_msg (void)
 Utility API to pack the contents of an AlpMessage containing a request for the current jumplist apps.
AlpMessagealp_app_prv_make_jump_list_msg (AlpMessage *replyTo, int count, char *const appIDs[], const gboolean *isRunnings)
 Utility API to pack the contents of an AlpMessage containing the current jumplist apps.
alp_status_t alp_app_prv_unpack_jump_list_msg (AlpMessage *msg, int *count, char ***appIDs, gboolean **outIsRunnings)
 Utility API to unpack the contents of an AlpMessage containing the current jumplist apps.
AlpMessagealp_app_prv_make_cur_app_msg (AlpMessage *replyTo, const char *appID)
 Utility API to pack the contents of an AlpMessage containing a request/response for the current primary app name.
alp_status_t alp_app_prv_unpack_cur_app_msg (AlpMessage *msg, char **outPkgID)
 Utility API to unpack the contents of an AlpMessage containing a request/response for the current primary app name.
AlpMessagealp_app_prv_make_watcher_msg (AlpMessage *replyTo, const char *appID, AlpWatcherRef watcherRef, gboolean wasRun, gboolean remove, alp_status_t result, gint blockMode)
 Utility API to pack the contents of an AlpMessage containing a request/response for the "watcher" APIs.
alp_status_t alp_app_prv_unpack_watcher_msg (AlpMessage *msg, char **outPkgID, AlpWatcherRef *outWatcherRef, gboolean *outWasRun, gboolean *outRemove, alp_status_t *outResult, gint *outBlockMode)
 Utility API to unpack the contents of an AlpMessage containing a request/response for the "watcher" APIs.
AlpMessagealp_app_prv_make_theme_update_msg (void)
 Utility API to make a theme update message.
AlpMessagealp_app_prv_make_reset_msg (void)
 Utility API to make a system reset message.


Define Documentation

#define ALP_TRACE   ALP_TRACE_OFF
 


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4