GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
binreloc.h
1 /*
2  * BinReloc - a library for creating relocatable executables
3  * Written by: Hongli Lai <[email protected]>
4  * http://autopackage.org/
5  *
6  * This source code is public domain. You can relicense this code
7  * under whatever license you want.
8  *
9  * See http://autopackage.org/docs/binreloc/ for
10  * more information and how to use this.
11  */
12 
13 #ifndef __BINRELOC_H__
14 #define __BINRELOC_H__
15 
16 #include <glib.h>
17 
18 G_BEGIN_DECLS
19 
20 
22 typedef enum
23 {
25  GNC_GBR_INIT_ERROR_NOMEM,
27  GNC_GBR_INIT_ERROR_OPEN_MAPS,
29  GNC_GBR_INIT_ERROR_READ_MAPS,
31  GNC_GBR_INIT_ERROR_INVALID_MAPS,
33  GNC_GBR_INIT_ERROR_MAC_NOT_BUNDLE,
35  GNC_GBR_INIT_ERROR_MAC_NOT_APP_BUNDLE,
37  GNC_GBR_INIT_ERROR_DISABLED
38 } Gnc_GbrInitError;
39 
40 
41 gboolean gnc_gbr_init (GError **error);
42 
43 gchar *gnc_gbr_find_exe (const gchar *default_exe);
44 gchar *gnc_gbr_find_exe_dir (const gchar *default_dir);
45 gchar *gnc_gbr_find_prefix (const gchar *default_prefix);
46 gchar *gnc_gbr_find_bin_dir (const gchar *default_bin_dir);
47 gchar *gnc_gbr_find_sbin_dir (const gchar *default_sbin_dir);
48 gchar *gnc_gbr_find_data_dir (const gchar *default_data_dir);
49 gchar *gnc_gbr_find_lib_dir (const gchar *default_lib_dir);
50 gchar *gnc_gbr_find_libexec_dir (const gchar *default_libexec_dir);
51 gchar *gnc_gbr_find_etc_dir (const gchar *default_etc_dir);
52 
57 void gnc_gbr_set_exe (const gchar* default_exe);
58 
59 
60 G_END_DECLS
61 
62 #endif /* __BINRELOC_H__ */