GnuCash 2.4.99
binreloc.h
00001 /*
00002  * BinReloc - a library for creating relocatable executables
00003  * Written by: Hongli Lai <h.lai@chello.nl>
00004  * http://autopackage.org/
00005  *
00006  * This source code is public domain. You can relicense this code
00007  * under whatever license you want.
00008  *
00009  * See http://autopackage.org/docs/binreloc/ for
00010  * more information and how to use this.
00011  */
00012 
00013 #ifndef __BINRELOC_H__
00014 #define __BINRELOC_H__
00015 
00016 #include <glib.h>
00017 
00018 G_BEGIN_DECLS
00019 
00020 
00022 typedef enum
00023 {
00025     GNC_GBR_INIT_ERROR_NOMEM,
00027     GNC_GBR_INIT_ERROR_OPEN_MAPS,
00029     GNC_GBR_INIT_ERROR_READ_MAPS,
00031     GNC_GBR_INIT_ERROR_INVALID_MAPS,
00033     GNC_GBR_INIT_ERROR_MAC_NOT_BUNDLE,
00035     GNC_GBR_INIT_ERROR_MAC_NOT_APP_BUNDLE,
00037     GNC_GBR_INIT_ERROR_DISABLED
00038 } Gnc_GbrInitError;
00039 
00040 
00041 gboolean gnc_gbr_init             (GError **error);
00042 
00043 gchar   *gnc_gbr_find_exe         (const gchar *default_exe);
00044 gchar   *gnc_gbr_find_exe_dir     (const gchar *default_dir);
00045 gchar   *gnc_gbr_find_prefix      (const gchar *default_prefix);
00046 gchar   *gnc_gbr_find_bin_dir     (const gchar *default_bin_dir);
00047 gchar   *gnc_gbr_find_sbin_dir    (const gchar *default_sbin_dir);
00048 gchar   *gnc_gbr_find_data_dir    (const gchar *default_data_dir);
00049 gchar   *gnc_gbr_find_lib_dir     (const gchar *default_lib_dir);
00050 gchar   *gnc_gbr_find_libexec_dir (const gchar *default_libexec_dir);
00051 gchar   *gnc_gbr_find_etc_dir     (const gchar *default_etc_dir);
00052 
00057 void gnc_gbr_set_exe (const gchar* default_exe);
00058 
00059 
00060 G_END_DECLS
00061 
00062 #endif /* __BINRELOC_H__ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines