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

bundlemgr_prv.h File Reference


Detailed Description

Private Header file for the ALP Bundle Manager APIs.

>

#include <hiker/bundlemgr.h>
#include <hiker/types.h>
#include <glib.h>

Go to the source code of this file.

Defines

#define ALP_PRV_BUNDLE_FLAG_DO_NOT_NOTIFY   2
 Flag to pass to some bundle manager routines to prevent notifications from being generated.
#define ALP_PRV_BUNDLE_FLAG_FORCE_DELETE   4
 Flag to pass to some bundle manager routines to force a bundle deletion even if the bundle is in use.
#define ALP_PRV_BUNDLE_FLAG_FORCE_UNREGISTER   8
 Flag to pass to some bundle manager routines to force a bundle unregistration even if the bundle is in use.
#define ALP_PRV_BUNDLE_FLAG_FORCE_UNMOUNT   16
 Flag to pass to some bundle manager routines to force an unmount even if the bundle is in use.
#define ALP_PRV_BUNDLE_FLAG_DO_NOT_MAKE_STUB   32
 Flag to pass to some bundle manager routines to prevent unregistration from creating a stub bundle for R/W data retention.
#define ALP_PRV_BUNDLE_FLAG_LAZY_DELETE   64
 Flag to pass to some bundle manager routines to cause a bundle deletion as soon it is fully closed (or on reboot) If this flag is passed to alp_bundle_delete(), then a lazy delete will always be used if the bundle is open, even if a force unregister is possible, and ALP_PRV_BUNDLE_FLAG_FORCE_UNREGISTER is supplied.
#define ALP_PRV_BUNDLE_FLAG_RECURSE   128
 Apply to alp_prv_bundle_open() flags to indicate that referenced bundles should be opened first.
#define ALP_PRV_BUNDLE_FLAG_APPLY_LOCAL_EFFECTS   256
 Apply to alp_prv_bundle_open() flags to indicate that local effects should be applied (updating gettext domain, setting java CLASSPATH, etc.
#define ALP_PRV_BUNDLE_FLAG_NESTED_TRANSACTION   512
 Flag to pass to some bundle manager routines to prevent them from starting/finishing a SQL transaction, so the caller can set up its own transaction.

Functions

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_init_playground (gboolean server, const char *playground_name, gboolean notify)
alp_status_t alp_prv_bundle_fini (void)
alp_status_t alp_prv_bundle_wipe ()
int alp_prv_bundle_state ()
void alp_prv_bundle_dump ()
AlpBundleRef alp_prv_bundle_open (AlpBundle idx, int flags)
 Open a bundle Given a bundle index, open the bundle, making its contents available for use, until it is closed.
alp_status_t alp_prv_bundle_close (AlpBundleRef ref, int flags)
AlpBundle alp_prv_bundle_register_bundle (const char *id, const char *scheme, const char *store, int flags)
 Register a bundle with the bundle manager.
alp_status_t alp_prv_bundle_unregister_bundle (AlpBundle index, int flags)
 Unregister a bundle from the bundle manager.
alp_status_t alp_prv_bundle_add_store (const char *store, const char *arguments[])
 Creates a new store.
alp_status_t alp_prv_bundle_delete_store (const char *store)
 Remove a store. Any bundles on that store will be unregistered (not deleted).
void alp_prv_bundle_set_application (AlpBundle index)
 Set the bundle index to return as the index of the running application.
void alp_prv_bundle_set_application_ref (AlpBundleRef ref)
 Set which bundle to return as the index of the running application.
alp_status_t alp_prv_bundle_incref (AlpBundle index, int flags)
 Increment the refcount on a bundle.
alp_status_t alp_prv_bundle_decref (AlpBundle index, int flags)
 Decrement the refcount on an open bundle.
alp_status_t alp_prv_bundle_ref_incref (AlpBundleRef ref)
 Increment the refcount on an open bundle.
alp_status_t alp_prv_bundle_ref_decref (AlpBundleRef ref)
 Decrement the refcount on an open bundle.
GList * alp_prv_bundle_expand_searchpath (const char *path)
 Given a path including escapes, create a list of possible paths using the current locale.
GList * alp_prv_bundle_expand_locale (const char *locale)
 Given an XPG/4 locale name, break off each optional part in turn, giving a list of possible locale paths in preferred order Multiple entries may be separated by colons.
alp_status_t alp_prv_bundle_scan_store (const char *store, int wipe_invalid, int scheme_filter)
 Sync registration of all bundles on a store For bar files, this will scan the contents of the store's bar_folder, and register any bar folders or files which were not previously registered. Any missing folders or files will have their bundle unregistered.
alp_status_t alp_prv_bundle_rescan_volumes (void)
 Sync volumes and stores.
alp_status_t alp_prv_bundle_reg_notify (AlpBundle index, int flags)
alp_status_t alp_prv_bundle_unreg_notify (AlpBundle index, int flags)
alp_status_t alp_prv_bundle_deactivate (AlpBundle index, int flags)
void alp_prv_bundle_update_names (const char *name, int flags)
 Utility routine to update name table, and emit notifications about changes to named bundles.
alp_status_t alp_prv_bundle_force_close (AlpBundle index, int flags)
 Utility routine to close a bundle.
alp_status_t alp_prv_bundle_hold_notifications (gboolean hold)


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