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

pm_globals.h File Reference

#include <hiker/bundlemgr.h>
#include <hiker/prv/bundlemgr_prv.h>
#include <hiker/ipc.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <hiker/syspaths.h>
#include <hiker/global_settings.h>

Go to the source code of this file.

Defines

#define DEFAULT_BUNDLE_WORK_PATH   "/tmp/bundlemgr/work/"
#define BAR_LINK_PATH   "links"
#define BAR_MOUNT_PATH   "mounts"
#define BAR_LD_PATH   "libs"
#define DEFAULT_BUNDLE_RW_PATH   ALP_SYSPATH_BUNDLE_DATA
#define BAR_RW_PATH   "bar/%s"
#define BAR_DEFAULT_SEARCHPATH   "/rsc/^l/:/"
#define BAR_DEFAULT_TEXTDOMAIN_NAME   "bar-^n"
#define BAR_DEFAULT_TEXTDOMAIN_DIR   "rsc"
#define NOTIFY_NAME   "bundlemgr_d"
#define BAR_LIBPATH   "/libalp_%s.so"
#define BAR_DEFAULT_SEARCH   "alp_main"
#define DEFAULT_IPC_CHANNEL   "ALPBundleMgr"
#define DEFAULT_DATABASE   ALP_SYSPATH_SYSTEM_CACHE "bundlemgr/bundle_mgr.db"
#define DEFAULT_LIVE_DATABASE   "/tmp/bundlemgr/live_bundle_mgr.db"
#define SQLITE_RETRY_MS   10000
#define PM_CURRENT_DB_VERSION   16
#define BUNDLE_SCHEME_BAR   1
#define BUNDLE_SCHEME_GHOST   2
#define BUNDLE_SCHEME_JAVA   3
#define BUNDLE_SCHEME_NAME_BAR   "bar"
#define BUNDLE_SCHEME_NAME_GHOST   "GHost"
#define BUNDLE_SCHEME_NAME_JAVA   "java"
#define MIME_TYPE_PRC   "application/vnd.palm"
#define MIME_TYPE_PRC_2   "application/x-pilot"
#define MIME_TYPE_BAR   "x-application/access-bar"
#define MIME_TYPE_JAR   "application/java-archive"
#define MIME_TYPE_JAD   "text/vnd.sun.j2me.app-descriptor"

Enumerations

enum  { STATUS_UNINIT = 0, STATUS_CLIENT = 1, STATUS_SERVER = 2 }

Functions

alp_status_t register_volsvc_hooks ()
GList * pm_prv_searchpath (const char *path)
int mkdir_p (const char *path, int mode)
int rmdir_contents (const char *path)
gchar * hypotheticalpath (const char *path)
void wipe_locales ()
int alp_prv_associated_data (const char *name)
int alp_prv_folder_empty (const char *path, int status_on_missing)
alp_status_t alp_prv_bundle_setup_schema ()
void alp_prv_package_clear_refs ()
alp_status_t my_sync_notify (const char *appID, const char *notifyType, void *details, int length, int queue, int flags, int timeout, int *handled)
alp_status_t my_async_notify (const char *appID, const char *notifyType, void *details, int length, int queue, int flags)
void destroy_notify_pool (void)
AlpBundle alp_prv_bundle_image_install_fd (const char *provide_filename, const char *provide_mimetype, int fd, const char *destination_store, int flags, GHashTable **metadata_p, GHashTable **properties_p, AlpBundleProgressiveData *progress, AlpConnection *connection)
void alp_prv_bundle_clear_local_effects ()
void reset_hold ()
alp_status_t set_error (alp_status_t status)
int safe_sql_fillin (char *str, const char *fillin)

Variables

int pm_status
sqlite3 * db
AlpChannelpm_server_channel
AlpConnectionpm_client_connection
GHashTable * gConnectionTable
AlpGlobalSettingsContextgGSContext
gboolean gNotify
const char * gBundleRWPath
const char * gBundleWorkPath
gboolean gHoldNotifications
gboolean gHoldNotificationInstall
gboolean gHoldNotificationRegister
int lock


Define Documentation

#define BAR_DEFAULT_SEARCH   "alp_main"
 

#define BAR_DEFAULT_SEARCHPATH   "/rsc/^l/:/"
 

#define BAR_DEFAULT_TEXTDOMAIN_DIR   "rsc"
 

#define BAR_DEFAULT_TEXTDOMAIN_NAME   "bar-^n"
 

#define BAR_LD_PATH   "libs"
 

#define BAR_LIBPATH   "/libalp_%s.so"
 

#define BAR_LINK_PATH   "links"
 

#define BAR_MOUNT_PATH   "mounts"
 

#define BAR_RW_PATH   "bar/%s"
 

#define BUNDLE_SCHEME_BAR   1
 

#define BUNDLE_SCHEME_GHOST   2
 

#define BUNDLE_SCHEME_JAVA   3
 

#define BUNDLE_SCHEME_NAME_BAR   "bar"
 

#define BUNDLE_SCHEME_NAME_GHOST   "GHost"
 

#define BUNDLE_SCHEME_NAME_JAVA   "java"
 

#define DEFAULT_BUNDLE_RW_PATH   ALP_SYSPATH_BUNDLE_DATA
 

#define DEFAULT_BUNDLE_WORK_PATH   "/tmp/bundlemgr/work/"
 

#define DEFAULT_DATABASE   ALP_SYSPATH_SYSTEM_CACHE "bundlemgr/bundle_mgr.db"
 

#define DEFAULT_IPC_CHANNEL   "ALPBundleMgr"
 

#define DEFAULT_LIVE_DATABASE   "/tmp/bundlemgr/live_bundle_mgr.db"
 

#define MIME_TYPE_BAR   "x-application/access-bar"
 

#define MIME_TYPE_JAD   "text/vnd.sun.j2me.app-descriptor"
 

#define MIME_TYPE_JAR   "application/java-archive"
 

#define MIME_TYPE_PRC   "application/vnd.palm"
 

#define MIME_TYPE_PRC_2   "application/x-pilot"
 

#define NOTIFY_NAME   "bundlemgr_d"
 

#define PM_CURRENT_DB_VERSION   16
 

#define SQLITE_RETRY_MS   10000
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
STATUS_UNINIT 
STATUS_CLIENT 
STATUS_SERVER 


Function Documentation

int alp_prv_associated_data const char *  name  ) 
 

void alp_prv_bundle_clear_local_effects  ) 
 

AlpBundle alp_prv_bundle_image_install_fd const char *  provide_filename,
const char *  provide_mimetype,
int  fd,
const char *  destination_store,
int  flags,
GHashTable **  metadata_p,
GHashTable **  properties_p,
AlpBundleProgressiveData progress,
AlpConnection connection
 

alp_status_t alp_prv_bundle_setup_schema  ) 
 

int alp_prv_folder_empty const char *  path,
int  status_on_missing
 

void alp_prv_package_clear_refs  ) 
 

void destroy_notify_pool void   ) 
 

gchar* hypotheticalpath const char *  path  ) 
 

int mkdir_p const char *  path,
int  mode
 

alp_status_t my_async_notify const char *  appID,
const char *  notifyType,
void *  details,
int  length,
int  queue,
int  flags
 

alp_status_t my_sync_notify const char *  appID,
const char *  notifyType,
void *  details,
int  length,
int  queue,
int  flags,
int  timeout,
int *  handled
 

GList* pm_prv_searchpath const char *  path  ) 
 

alp_status_t register_volsvc_hooks  ) 
 

void reset_hold  ) 
 

int rmdir_contents const char *  path  ) 
 

int safe_sql_fillin char *  str,
const char *  fillin
 

alp_status_t set_error alp_status_t  status  ) 
 

void wipe_locales  ) 
 


Variable Documentation

sqlite3* db
 

const char* gBundleRWPath
 

const char* gBundleWorkPath
 

GHashTable* gConnectionTable
 

AlpGlobalSettingsContext* gGSContext
 

gboolean gHoldNotificationInstall
 

gboolean gHoldNotificationRegister
 

gboolean gHoldNotifications
 

gboolean gNotify
 

int lock
 

AlpConnection* pm_client_connection
 

AlpChannel* pm_server_channel
 

int pm_status
 


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