diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:30:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:30:19 +0000 |
commit | 5c1676dfe6d2f3c837a5e074117b45613fd29a72 (patch) | |
tree | cbffb45144febf451e54061db2b21395faf94bfe /libgimpbase/gimpreloc.h | |
parent | Initial commit. (diff) | |
download | gimp-5c1676dfe6d2f3c837a5e074117b45613fd29a72.tar.xz gimp-5c1676dfe6d2f3c837a5e074117b45613fd29a72.zip |
Adding upstream version 2.10.34.upstream/2.10.34upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libgimpbase/gimpreloc.h')
-rw-r--r-- | libgimpbase/gimpreloc.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libgimpbase/gimpreloc.h b/libgimpbase/gimpreloc.h new file mode 100644 index 0000000..a7af912 --- /dev/null +++ b/libgimpbase/gimpreloc.h @@ -0,0 +1,46 @@ +/* + * BinReloc - a library for creating relocatable executables + * Written by: Hongli Lai <h.lai@chello.nl> + * http://autopackage.org/ + * + * This source code is public domain. You can relicense this code + * under whatever license you want. + * + * See http://autopackage.org/docs/binreloc/ for + * more information and how to use this. + */ + +#ifndef __GIMP_RELOC_H__ +#define __GIMP_RELOC_H__ + +G_BEGIN_DECLS + + +/* These error codes can be returned from _gimp_reloc_init() or + * _gimp_reloc_init_lib(). + */ + +typedef enum +{ + /** Cannot allocate memory. */ + GIMP_RELOC_INIT_ERROR_NOMEM, + /** Unable to open /proc/self/maps; see errno for details. */ + GIMP_RELOC_INIT_ERROR_OPEN_MAPS, + /** Unable to read from /proc/self/maps; see errno for details. */ + GIMP_RELOC_INIT_ERROR_READ_MAPS, + /** The file format of /proc/self/maps is invalid; kernel bug? */ + GIMP_RELOC_INIT_ERROR_INVALID_MAPS, + /** BinReloc is disabled (the ENABLE_BINRELOC macro is not defined). */ + GIMP_RELOC_INIT_ERROR_DISABLED +} GimpBinrelocInitError; + + +G_GNUC_INTERNAL gboolean _gimp_reloc_init (GError **error); +G_GNUC_INTERNAL gboolean _gimp_reloc_init_lib (GError **error); + +G_GNUC_INTERNAL gchar * _gimp_reloc_find_prefix (const gchar *default_prefix); + + +G_END_DECLS + +#endif /* _GIMPRELOC_H_ */ |