GnuCash  5.6-150-g038405b370+
binreloc.h
1 /*
2  * BinReloc - a library for creating relocatable executables
3  * Written by: Hongli Lai <h.lai@chello.nl>
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  * This program is free software; you can redistribute it and/or *
14  * modify it under the terms of the GNU General Public License as *
15  * published by the Free Software Foundation; either version 2 of *
16  * the License, or (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License*
24  * along with this program; if not, contact: *
25  * *
26  * Free Software Foundation Voice: +1-617-542-5942 *
27  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
28  * Boston, MA 02110-1301, USA gnu@gnu.org *
29  * *
30 \********************************************************************/
31 
32 
33 #ifndef __BINRELOC_H__
34 #define __BINRELOC_H__
35 
36 #include <glib.h>
37 
38 G_BEGIN_DECLS
39 
40 
42 typedef enum
43 {
45  GNC_GBR_INIT_ERROR_NOMEM,
47  GNC_GBR_INIT_ERROR_OPEN_MAPS,
49  GNC_GBR_INIT_ERROR_READ_MAPS,
51  GNC_GBR_INIT_ERROR_INVALID_MAPS,
53  GNC_GBR_INIT_ERROR_MAC_NOT_BUNDLE,
55  GNC_GBR_INIT_ERROR_MAC_NOT_APP_BUNDLE,
57  GNC_GBR_INIT_ERROR_DISABLED,
59  GNC_GBR_INIT_WIN32_NO_EXE_DIR
60 } Gnc_GbrInitError;
61 
62 
63 gboolean gnc_gbr_init (GError **error);
64 
65 gchar *gnc_gbr_find_exe (const gchar *default_exe);
66 gchar *gnc_gbr_find_exe_dir (const gchar *default_dir);
67 gchar *gnc_gbr_find_prefix (const gchar *default_prefix);
68 gchar *gnc_gbr_find_bin_dir (const gchar *default_bin_dir);
69 gchar *gnc_gbr_find_sbin_dir (const gchar *default_sbin_dir);
70 gchar *gnc_gbr_find_data_dir (const gchar *default_data_dir);
71 gchar *gnc_gbr_find_lib_dir (const gchar *default_lib_dir);
72 gchar *gnc_gbr_find_libexec_dir (const gchar *default_libexec_dir);
73 gchar *gnc_gbr_find_etc_dir (const gchar *default_etc_dir);
74 
79 void gnc_gbr_set_exe (const gchar* default_exe);
80 
81 
82 G_END_DECLS
83 
84 #endif /* __BINRELOC_H__ */