GnuCash c935c2f+
Loading...
Searching...
No Matches
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
38G_BEGIN_DECLS
39
40
42typedef 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
63gboolean gnc_gbr_init (GError **error);
64
65gchar *gnc_gbr_find_exe (const gchar *default_exe);
66gchar *gnc_gbr_find_exe_dir (const gchar *default_dir);
67gchar *gnc_gbr_find_prefix (const gchar *default_prefix);
68gchar *gnc_gbr_find_bin_dir (const gchar *default_bin_dir);
69gchar *gnc_gbr_find_sbin_dir (const gchar *default_sbin_dir);
70gchar *gnc_gbr_find_data_dir (const gchar *default_data_dir);
71gchar *gnc_gbr_find_lib_dir (const gchar *default_lib_dir);
72gchar *gnc_gbr_find_libexec_dir (const gchar *default_libexec_dir);
73gchar *gnc_gbr_find_etc_dir (const gchar *default_etc_dir);
74
79void gnc_gbr_set_exe (const gchar* default_exe);
80
81
82G_END_DECLS
83
84#endif /* __BINRELOC_H__ */