~ubuntu-branches/ubuntu/precise/pingus/precise

« back to all changes in this revision

Viewing changes to lib/binreloc/binreloc.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-02-28 19:44:25 UTC
  • mfrom: (4.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20080228194425-e8ilohlijv02kgcf
Tags: 0.7.2-2
* Fix FTBFS with gcc-4.3 by adding the missing include in
  src/input/evdev_device.cpp (Closes: #462238):
   + debian/patches/20_fix_FTBFS_with_gcc-4.3.
* Rename former patch so that the filename reflects the order in which
  the patches are applied:
   - debian/patches/data_dir.patch
   + debian/patches/10_fix_data_directory.
* Bump Standards-Version from 3.7.2 to 3.7.3, no changes needed.
* Add a dh_desktop call in the arch-dep part of debian/rules.
* Adjust the “missing-dep-for-interpreter guile” override since lintian
  now lists an alternative for that dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#include "config.h"
 
17
 
 
18
#ifdef __cplusplus
 
19
extern "C" {
 
20
#endif /* __cplusplus */
 
21
 
 
22
 
 
23
/** These error codes can be returned by br_init(), br_init_lib(), gbr_init() or gbr_init_lib(). */
 
24
typedef enum {
 
25
        /** Cannot allocate memory. */
 
26
        BR_INIT_ERROR_NOMEM,
 
27
        /** Unable to open /proc/self/maps; see errno for details. */
 
28
        BR_INIT_ERROR_OPEN_MAPS,
 
29
        /** Unable to read from /proc/self/maps; see errno for details. */
 
30
        BR_INIT_ERROR_READ_MAPS,
 
31
        /** The file format of /proc/self/maps is invalid; kernel bug? */
 
32
        BR_INIT_ERROR_INVALID_MAPS,
 
33
        /** BinReloc is disabled (the ENABLE_BINRELOC macro is not defined). */
 
34
        BR_INIT_ERROR_DISABLED
 
35
} BrInitError;
 
36
 
 
37
 
 
38
#ifndef BINRELOC_RUNNING_DOXYGEN
 
39
/* Mangle symbol names to avoid symbol collisions with other ELF objects. */
 
40
        #define br_init             GBYX18816731510476_br_init
 
41
        #define br_init_lib         GBYX18816731510476_br_init_lib
 
42
        #define br_find_exe         GBYX18816731510476_br_find_exe
 
43
        #define br_find_exe_dir     GBYX18816731510476_br_find_exe_dir
 
44
        #define br_find_prefix      GBYX18816731510476_br_find_prefix
 
45
        #define br_find_bin_dir     GBYX18816731510476_br_find_bin_dir
 
46
        #define br_find_sbin_dir    GBYX18816731510476_br_find_sbin_dir
 
47
        #define br_find_data_dir    GBYX18816731510476_br_find_data_dir
 
48
        #define br_find_locale_dir  GBYX18816731510476_br_find_locale_dir
 
49
        #define br_find_lib_dir     GBYX18816731510476_br_find_lib_dir
 
50
        #define br_find_libexec_dir GBYX18816731510476_br_find_libexec_dir
 
51
        #define br_find_etc_dir     GBYX18816731510476_br_find_etc_dir
 
52
        #define br_strcat           GBYX18816731510476_br_strcat
 
53
        #define br_build_path       GBYX18816731510476_br_build_path
 
54
        #define br_dirname          GBYX18816731510476_br_dirname
 
55
 
 
56
 
 
57
#endif
 
58
int   br_init             (BrInitError *error);
 
59
int   br_init_lib         (BrInitError *error);
 
60
 
 
61
char *br_find_exe         (const char *default_exe);
 
62
char *br_find_exe_dir     (const char *default_dir);
 
63
char *br_find_prefix      (const char *default_prefix);
 
64
char *br_find_bin_dir     (const char *default_bin_dir);
 
65
char *br_find_sbin_dir    (const char *default_sbin_dir);
 
66
char *br_find_data_dir    (const char *default_data_dir);
 
67
char *br_find_locale_dir  (const char *default_locale_dir);
 
68
char *br_find_lib_dir     (const char *default_lib_dir);
 
69
char *br_find_libexec_dir (const char *default_libexec_dir);
 
70
char *br_find_etc_dir     (const char *default_etc_dir);
 
71
 
 
72
/* Utility functions */
 
73
char *br_strcat  (const char *str1, const char *str2);
 
74
char *br_build_path (const char *dir, const char *file);
 
75
char *br_dirname (const char *path);
 
76
 
 
77
 
 
78
#ifdef __cplusplus
 
79
}
 
80
#endif /* __cplusplus */
 
81
 
 
82
#endif /* __BINRELOC_H__ */