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 {
00024         GBR_INIT_ERROR_NOMEM,
00026         GBR_INIT_ERROR_OPEN_MAPS,
00028         GBR_INIT_ERROR_READ_MAPS,
00030         GBR_INIT_ERROR_INVALID_MAPS,
00032         GBR_INIT_ERROR_DISABLED
00033 } GbrInitError;
00034 
00035 
00036 #ifndef BINRELOC_RUNNING_DOXYGEN
00037 /* Mangle symbol names to avoid symbol collisions with other ELF objects. */
00038         #define gbr_find_exe         ffEt66859784967989_gbr_find_exe
00039         #define gbr_find_exe_dir     ffEt66859784967989_gbr_find_exe_dir
00040         #define gbr_find_prefix      ffEt66859784967989_gbr_find_prefix
00041         #define gbr_find_bin_dir     ffEt66859784967989_gbr_find_bin_dir
00042         #define gbr_find_sbin_dir    ffEt66859784967989_gbr_find_sbin_dir
00043         #define gbr_find_data_dir    ffEt66859784967989_gbr_find_data_dir
00044         #define gbr_find_lib_dir     ffEt66859784967989_gbr_find_lib_dir
00045         #define gbr_find_libexec_dir ffEt66859784967989_gbr_find_libexec_dir
00046         #define gbr_find_etc_dir     ffEt66859784967989_gbr_find_etc_dir
00047 
00048 
00049 #endif
00050 gboolean gbr_init             (GError **error);
00051 gboolean gbr_init_lib         (GError **error);
00052 
00053 gchar   *gbr_find_exe         (const gchar *default_exe);
00054 gchar   *gbr_find_exe_dir     (const gchar *default_dir);
00055 gchar   *gbr_find_prefix      (const gchar *default_prefix);
00056 gchar   *gbr_find_bin_dir     (const gchar *default_bin_dir);
00057 gchar   *gbr_find_sbin_dir    (const gchar *default_sbin_dir);
00058 gchar   *gbr_find_data_dir    (const gchar *default_data_dir);
00059 gchar   *gbr_find_lib_dir     (const gchar *default_lib_dir);
00060 gchar   *gbr_find_libexec_dir (const gchar *default_libexec_dir);
00061 gchar   *gbr_find_etc_dir     (const gchar *default_etc_dir);
00062 
00063 
00064 G_END_DECLS
00065 
00066 #endif /* __BINRELOC_H__ */

Generated on Sun Oct 12 05:06:59 2008 for GnuCash by  doxygen 1.5.2