00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00035 #ifndef ALP_PRIVATE_BUNDLEMGR_PRV_H_
00036 #define ALP_PRIVATE_BUNDLEMGR_PRV_H_
00037
00038 #include <hiker/bundlemgr.h>
00039 #include <hiker/types.h>
00040 #include <glib.h>
00041
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045
00078 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);
00079
00091 alp_status_t alp_prv_bundle_init_playground(gboolean server, const char * playground_name, gboolean notify);
00092
00098 alp_status_t alp_prv_bundle_fini(void);
00099
00106 alp_status_t alp_prv_bundle_wipe();
00107
00111 int alp_prv_bundle_state();
00112
00115 void alp_prv_bundle_dump();
00116
00118 #define ALP_PRV_BUNDLE_FLAG_DO_NOT_NOTIFY 2
00119
00120 #define ALP_PRV_BUNDLE_FLAG_FORCE_DELETE 4
00121
00122 #define ALP_PRV_BUNDLE_FLAG_FORCE_UNREGISTER 8
00123
00124 #define ALP_PRV_BUNDLE_FLAG_FORCE_UNMOUNT 16
00125
00126 #define ALP_PRV_BUNDLE_FLAG_DO_NOT_MAKE_STUB 32
00132 #define ALP_PRV_BUNDLE_FLAG_LAZY_DELETE 64
00135 #define ALP_PRV_BUNDLE_FLAG_RECURSE 128
00138 #define ALP_PRV_BUNDLE_FLAG_APPLY_LOCAL_EFFECTS 256
00141 #define ALP_PRV_BUNDLE_FLAG_NESTED_TRANSACTION 512
00142
00150 AlpBundleRef alp_prv_bundle_open(AlpBundle idx, int flags);
00151
00152 alp_status_t alp_prv_bundle_close(AlpBundleRef ref, int flags);
00153
00154
00167 AlpBundle alp_prv_bundle_register_bundle(const char * id, const char * scheme, const char * store, int flags);
00168
00181 alp_status_t alp_prv_bundle_unregister_bundle(AlpBundle index, int flags);
00182
00193 alp_status_t alp_prv_bundle_add_store(const char * store, const char * arguments[]);
00194
00200 alp_status_t alp_prv_bundle_delete_store(const char * store);
00201
00202
00203
00204
00205
00218 void alp_prv_bundle_set_application(AlpBundle index);
00219
00232 void alp_prv_bundle_set_application_ref(AlpBundleRef ref);
00233
00241 alp_status_t alp_prv_bundle_incref(AlpBundle index, int flags);
00242
00248 alp_status_t alp_prv_bundle_decref(AlpBundle index, int flags);
00249
00250
00259 alp_status_t alp_prv_bundle_ref_incref(AlpBundleRef ref);
00260
00264 alp_status_t alp_prv_bundle_ref_decref(AlpBundleRef ref);
00265
00270 GList * alp_prv_bundle_expand_searchpath(const char * path);
00271
00274 GList * alp_prv_bundle_expand_locale(const char * locale);
00275
00297 alp_status_t alp_prv_bundle_scan_store(const char * store, int wipe_invalid, int scheme_filter);
00298
00305 alp_status_t alp_prv_bundle_rescan_volumes(void);
00306
00311 alp_status_t alp_prv_bundle_reg_notify(AlpBundle index, int flags);
00312
00316 alp_status_t alp_prv_bundle_unreg_notify(AlpBundle index, int flags);
00317
00320 alp_status_t alp_prv_bundle_deactivate(AlpBundle index, int flags);
00321
00327 void alp_prv_bundle_update_names(const char * name, int flags);
00328
00335 alp_status_t alp_prv_bundle_force_close(AlpBundle index, int flags);
00336
00351 alp_status_t alp_prv_bundle_hold_notifications(gboolean hold);
00352
00353 #ifdef __cplusplus
00354 }
00355 #endif
00356
00359
00360 #endif
00361