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

bundlemgr_prv.h

Go to the documentation of this file.
00001 /********************************************************************
00002 
00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved.
00004 
00005 The contents of this file are subject to the Mozilla Public License Version
00006 1.1 (the "License"); you may not use this file except in compliance with
00007 the License. You may obtain a copy of the License at
00008 http://www.mozilla.org/MPL/
00009 
00010 Software distributed under the License is distributed on an "AS IS" basis,
00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012 for the specific language governing rights and limitations under the
00013 License.
00014 
00015 The Original Code is the entire contents of this file.
00016 
00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc.
00018 
00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All
00020 Rights Reserved.
00021 
00022 Contributor(s): none.
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> // for alp_status_t
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 // Plug-in API, to be written once we have Java and/or GHost integration
00203 //void alp_prv_bundle_register_scheme();
00204 //void alp_prv_bundle_unregister_scheme();
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 /* ALP_PRIVATE_BUNDLEMGR_PRV_H_ */
00361 

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