#include <hiker/bundlemgr.h>
#include <hiker/prv/bundlemgr_prv.h>
#include <hiker/ipc.h>
#include <hiker/notifymgr.h>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sqlite3.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <hiker/global_settings.h>
#include "pm_traces.h"
#include "pm_globals.h"
#include "pm_ipc.h"
#include "pm_sql.h"
#include "pm_refimpl.h"
Data Structures | |
struct | xfer |
Defines | |
#define | _GNU_SOURCE |
Functions | |
AlpBundle | alp_bundle_me (void) |
Return a bundle index of the bundle containing the running code Returns a bundle index to the bundle which contains the code which invoked this function. Note that this function explicitly detects what routine it is being called from. Don't expect it to operate from a utility subroutine -- consider using a macro. | |
AlpBundle | alp_bundle_locate_file (const char *file) |
Identify open bundle containing a file Given a POSIX file path, this will attempt to identify an open bundle which matches that path. The supplied path can be the root of a folder, or any file or folder name within that folder (existing or not). | |
AlpBundle | alp_bundle_application (void) |
Return a bundle index of the running application Returns a bundle index to the bundle which contains the launched ALP application. | |
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. | |
AlpBundleRef | alp_bundle_ref_application (void) |
Return a bundle ref to the running application Returns a bundle ref to the bundle which the running application was launched from. | |
AlpBundleRef | alp_bundle_ref_me (void) |
Return a bundle ref to the running code Returns a bundle ref to the bundle which contains the code which invoked this function. Note that this function explicitly detects what routine it is being called from. Don't expect it to operate from a utility subroutine -- consider using a macro. | |
void | alp_prv_package_clear_refs (void) |
const char * | alp_bundle_ref_gettextdomain (AlpBundleRef ref) |
const char * | alp_bundle_ref_name (AlpBundleRef ref) |
gchar * | alp_bundle_name (AlpBundle index) |
gboolean | do_idle (gpointer data) |
void | do_notify (gpointer data, gpointer userdata) |
void * | thread_func (void *param) |
void | destroy_notify_pool (void) |
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) |
alp_status_t | set_error (alp_status_t status) |
alp_status_t | alp_bundle_error (void) |
gchar * | alp_bundle_saved_settings (AlpBundle index, const char *key) |
gchar * | alp_bundle_unsaved_settings (AlpBundle index, const char *key) |
int | safe_sql_fillin (char *str, const char *fillin) |
|
|
|
Return a bundle index of the running application Returns a bundle index to the bundle which contains the launched ALP application.
|
|
Returns status of last failing alp_bundle routine. Some Bundle Manager routines cannot return a detailed status value. Any Bundle Manager routine which fails (and returns and error value) will set an error status value which can be retrieved via this function. Successfull operations do not clear this status -- it is only modified by failing functions. This function should not be used except immediately after a failing Bundle Manager routine.
|
|
Identify open bundle containing a file Given a POSIX file path, this will attempt to identify an open bundle which matches that path. The supplied path can be the root of a folder, or any file or folder name within that folder (existing or not).
|
|
Return a bundle index of the bundle containing the running code Returns a bundle index to the bundle which contains the code which invoked this function. Note that this function explicitly detects what routine it is being called from. Don't expect it to operate from a utility subroutine -- consider using a macro. This routine identifies the caller, and determines if that caller is in library loaded from a bundle. If the immediate caller is not in a bundle, NULL will be returned.
|
|
Given a bundle index, this will retrieve the bundle's name
|
|
Return a bundle ref to the running application Returns a bundle ref to the bundle which the running application was launched from.
|
|
Given a bundle ref, this will retrieve its domain for gettext Some bundle types (ALP native bundles -- "bar") support gettext for localization. For these types of bundles, you can retrieve a text domain.
|
|
Return a bundle ref to the running code Returns a bundle ref to the bundle which contains the code which invoked this function. Note that this function explicitly detects what routine it is being called from. Don't expect it to operate from a utility subroutine -- consider using a macro. This routine identifies the caller, and determines if that caller is in library loaded from a bundle. If the immediate caller is not in a bundle, NULL will be returned.
|
|
Given a bundle ref, this will retrieve the bundle's name
|
|
Given a bundle index, retrieve the matching saved global settings key Saved settings are global settings specific to a bundle which survive even when the associated bundle is deleted. The settings are related to bundle name, so any bundles of the same name share the same saved global settings.
|
|
Given a bundle index, retrieve the matching unsaved global settings key Unsaved settings are global settings specific to a bundle which are deleted when the associated bundle is deleted. The settings are related to bundle name, so any bundles of the same name share the same unsaved global settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|