#include <hiker/bundlemgr.h>
#include <hiker/prv/bundlemgr_prv.h>
#include <hiker/notifymgr.h>
#include <hiker/ipc.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <glib/gthread.h>
#include "pm_traces.h"
#include "pm_globals.h"
#include "pm_ipc.h"
#include "pm_sql.h"
#include "pm_perms.h"
#include "pm_msg.h"
#include "ghost_support.h"
Functions | |
alp_status_t | alp_bundle_init (void) |
Initialize the bundle manager client library. Needed if you are not running as an ALP application The bundle manager needs to be initialized before you can do anything with it. ALP applications normally run in an environment where the bundle manager is already initialized. | |
alp_status_t | alp_bundle_fini (void) |
Shutdown (finalize) the bundle manager client library. | |
alp_status_t | alp_prv_bundle_init_playground (gboolean server, const char *playground_name, gboolean notify) |
alp_status_t | alp_prv_bundle_init (gboolean server, const char *database, const char *live_database, const char *ipc_channel, const char *work_path, const char *rw_path, gboolean notify) |
alp_status_t | alp_prv_bundle_fini (void) |
alp_status_t | alp_prv_bundle_setup_schema (void) |
alp_status_t | alp_prv_bundle_wipe (void) |
void | handle_client_alp_prv_package_wipe (AlpConnection *connection, AlpMessage *message, gpointer cbData) |
int | alp_prv_bundle_state (void) |
Variables | |
sqlite3 * | db |
int | pm_status = STATUS_UNINIT |
int | pm_open_count = 0 |
AlpChannel * | pm_server_channel |
AlpConnection * | pm_client_connection |
GHashTable * | gConnectionTable |
gboolean | gNotify |
AlpGlobalSettingsContext * | gGSContext |
const char * | gLiveDB |
const char * | gBundleWorkPath |
const char * | gBundleRWPath |
|
Shutdown (finalize) the bundle manager client library. If you explicitly initialized the bundle manager with alp_bundle_init(), you should use alp_bundle_fini(). This routine will decrement a refcount, and then shut down the bundle manager. |
|
Initialize the bundle manager client library. Needed if you are not running as an ALP application The bundle manager needs to be initialized before you can do anything with it. ALP applications normally run in an environment where the bundle manager is already initialized. Use this routine if you want to support running in environments without an initialized bundle manager. If the bundle manager is already initialized (in any mode), this will increment a refcount. Thus, it's safe to use from arbitrary code. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|