PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
BinReloc.h
Go to the documentation of this file.
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#ifndef __BINRELOC_H__
14#define __BINRELOC_H__
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20
34
35
36#if 0
37#ifndef BINRELOC_RUNNING_DOXYGEN
38/* Mangle symbol names to avoid symbol collisions with other ELF objects. */
39 #define br_init tnlg21885695786939_br_init
40 #define br_init_lib tnlg21885695786939_br_init_lib
41 #define br_find_exe tnlg21885695786939_br_find_exe
42 #define br_find_exe_dir tnlg21885695786939_br_find_exe_dir
43 #define br_find_prefix tnlg21885695786939_br_find_prefix
44 #define br_find_bin_dir tnlg21885695786939_br_find_bin_dir
45 #define br_find_sbin_dir tnlg21885695786939_br_find_sbin_dir
46 #define br_find_data_dir tnlg21885695786939_br_find_data_dir
47 #define br_find_locale_dir tnlg21885695786939_br_find_locale_dir
48 #define br_find_lib_dir tnlg21885695786939_br_find_lib_dir
49 #define br_find_libexec_dir tnlg21885695786939_br_find_libexec_dir
50 #define br_find_etc_dir tnlg21885695786939_br_find_etc_dir
51 #define br_strcat tnlg21885695786939_br_strcat
52 #define br_build_path tnlg21885695786939_br_build_path
53 #define br_dirname tnlg21885695786939_br_dirname
54#endif
55#endif
56
57int br_init (BrInitError *error);
58int br_init_lib (BrInitError *error);
59
60char *br_find_exe (const char *default_exe);
61char *br_find_exe_dir (const char *default_dir);
62char *br_find_prefix (const char *default_prefix);
63char *br_find_bin_dir (const char *default_bin_dir);
64char *br_find_sbin_dir (const char *default_sbin_dir);
65char *br_find_data_dir (const char *default_data_dir);
66char *br_find_locale_dir (const char *default_locale_dir);
67char *br_find_lib_dir (const char *default_lib_dir);
68char *br_find_libexec_dir (const char *default_libexec_dir);
69char *br_find_etc_dir (const char *default_etc_dir);
70
71/* Utility functions */
72char *br_strcat (const char *str1, const char *str2);
73char *br_build_path (const char *dir, const char *file);
74char *br_dirname (const char *path);
75
76
77#ifdef __cplusplus
78}
79#endif /* __cplusplus */
80
81#endif /* __BINRELOC_H__ */
char * br_find_prefix(const char *default_prefix)
Definition BinReloc.cpp:433
char * br_find_bin_dir(const char *default_bin_dir)
Definition BinReloc.cpp:466
char * br_dirname(const char *path)
Definition BinReloc.cpp:776
char * br_find_locale_dir(const char *default_locale_dir)
Definition BinReloc.cpp:566
int br_init(BrInitError *error)
Definition BinReloc.cpp:338
char * br_find_sbin_dir(const char *default_sbin_dir)
Definition BinReloc.cpp:499
char * br_strcat(const char *str1, const char *str2)
Definition BinReloc.cpp:695
char * br_find_exe_dir(const char *default_dir)
Definition BinReloc.cpp:405
BrInitError
Definition BinReloc.h:22
@ BR_INIT_ERROR_OPEN_MAPS
Definition BinReloc.h:26
@ BR_INIT_ERROR_DISABLED
Definition BinReloc.h:32
@ BR_INIT_ERROR_NOMEM
Definition BinReloc.h:24
@ BR_INIT_ERROR_INVALID_MAPS
Definition BinReloc.h:30
@ BR_INIT_ERROR_READ_MAPS
Definition BinReloc.h:28
int br_init_lib(BrInitError *error)
Definition BinReloc.cpp:360
char * br_find_exe(const char *default_exe)
Definition BinReloc.cpp:377
char * br_find_lib_dir(const char *default_lib_dir)
Definition BinReloc.cpp:599
char * br_find_etc_dir(const char *default_etc_dir)
Definition BinReloc.cpp:665
char * br_build_path(const char *dir, const char *file)
Definition BinReloc.cpp:718
char * br_find_data_dir(const char *default_data_dir)
Definition BinReloc.cpp:533
char * br_find_libexec_dir(const char *default_libexec_dir)
Definition BinReloc.cpp:632