Back to index

gcompris  8.2.2
binreloc.h
Go to the documentation of this file.
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         nafN51135257527955_gbr_find_exe
00039        #define gbr_find_exe_dir     nafN51135257527955_gbr_find_exe_dir
00040        #define gbr_find_prefix      nafN51135257527955_gbr_find_prefix
00041        #define gbr_find_bin_dir     nafN51135257527955_gbr_find_bin_dir
00042        #define gbr_find_sbin_dir    nafN51135257527955_gbr_find_sbin_dir
00043        #define gbr_find_data_dir    nafN51135257527955_gbr_find_data_dir
00044        #define gbr_find_locale_dir  nafN51135257527955_gbr_find_locale_dir
00045        #define gbr_find_lib_dir     nafN51135257527955_gbr_find_lib_dir
00046        #define gbr_find_libexec_dir nafN51135257527955_gbr_find_libexec_dir
00047        #define gbr_find_etc_dir     nafN51135257527955_gbr_find_etc_dir
00048 
00049 
00050 #endif
00051 gboolean gbr_init             (GError **error);
00052 gboolean gbr_init_lib         (GError **error);
00053 
00054 gchar   *gbr_find_exe         (const gchar *default_exe);
00055 gchar   *gbr_find_exe_dir     (const gchar *default_dir);
00056 gchar   *gbr_find_prefix      (const gchar *default_prefix);
00057 gchar   *gbr_find_bin_dir     (const gchar *default_bin_dir);
00058 gchar   *gbr_find_sbin_dir    (const gchar *default_sbin_dir);
00059 gchar   *gbr_find_data_dir    (const gchar *default_data_dir);
00060 gchar   *gbr_find_locale_dir  (const gchar *default_locale_dir);
00061 gchar   *gbr_find_lib_dir     (const gchar *default_lib_dir);
00062 gchar   *gbr_find_libexec_dir (const gchar *default_libexec_dir);
00063 gchar   *gbr_find_etc_dir     (const gchar *default_etc_dir);
00064 
00065 
00066 G_END_DECLS
00067 
00068 #endif /* __BINRELOC_H__ */