00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __BINRELOC_H__
00014 #define __BINRELOC_H__
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020
00022 typedef enum {
00024 BR_INIT_ERROR_NOMEM,
00026 BR_INIT_ERROR_OPEN_MAPS,
00028 BR_INIT_ERROR_READ_MAPS,
00030 BR_INIT_ERROR_INVALID_MAPS,
00032 BR_INIT_ERROR_DISABLED
00033 } BrInitError;
00034
00035
00036 #ifndef BINRELOC_RUNNING_DOXYGEN
00037
00038 #define br_init vtwc43395327882633_br_init
00039 #define br_init_lib vtwc43395327882633_br_init_lib
00040 #define br_find_exe vtwc43395327882633_br_find_exe
00041 #define br_find_exe_dir vtwc43395327882633_br_find_exe_dir
00042 #define br_find_prefix vtwc43395327882633_br_find_prefix
00043 #define br_find_bin_dir vtwc43395327882633_br_find_bin_dir
00044 #define br_find_sbin_dir vtwc43395327882633_br_find_sbin_dir
00045 #define br_find_data_dir vtwc43395327882633_br_find_data_dir
00046 #define br_find_locale_dir vtwc43395327882633_br_find_locale_dir
00047 #define br_find_lib_dir vtwc43395327882633_br_find_lib_dir
00048 #define br_find_libexec_dir vtwc43395327882633_br_find_libexec_dir
00049 #define br_find_etc_dir vtwc43395327882633_br_find_etc_dir
00050 #define br_strcat vtwc43395327882633_br_strcat
00051 #define br_build_path vtwc43395327882633_br_build_path
00052 #define br_dirname vtwc43395327882633_br_dirname
00053
00054
00055 #endif
00056 int br_init (BrInitError *error);
00057 int br_init_lib (BrInitError *error);
00058
00059 char *br_find_exe (const char *default_exe);
00060 char *br_find_exe_dir (const char *default_dir);
00061 char *br_find_prefix (const char *default_prefix);
00062 char *br_find_bin_dir (const char *default_bin_dir);
00063 char *br_find_sbin_dir (const char *default_sbin_dir);
00064 char *br_find_data_dir (const char *default_data_dir);
00065 char *br_find_locale_dir (const char *default_locale_dir);
00066 char *br_find_lib_dir (const char *default_lib_dir);
00067 char *br_find_libexec_dir (const char *default_libexec_dir);
00068 char *br_find_etc_dir (const char *default_etc_dir);
00069
00070
00071 char *br_strcat (const char *str1, const char *str2);
00072 char *br_build_path (const char *dir, const char *file);
00073 char *br_dirname (const char *path);
00074
00075
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079
00080 #endif