Mercurial > pidgin
comparison src/prefix.h @ 10251:645eb9804040
[gaim-migrate @ 11391]
This lets us register a fallback function, so we can do binreloc methods
2 and 3 without messing with prefix.c.
This is already in autopackage cvs.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 23 Nov 2004 20:25:22 +0000 |
parents | c143a3fac58d |
children | 7f487c725a90 |
comparison
equal
deleted
inserted
replaced
10250:89a25444401c | 10251:645eb9804040 |
---|---|
102 */ | 102 */ |
103 | 103 |
104 #define br_strcat BR_NAMESPACE(br_strcat) | 104 #define br_strcat BR_NAMESPACE(br_strcat) |
105 #define br_extract_dir BR_NAMESPACE(br_extract_dir) | 105 #define br_extract_dir BR_NAMESPACE(br_extract_dir) |
106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) | 106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) |
107 #define br_set_locate_fallback_func BR_NAMESPACE(br_set_locate_fallback_func) | |
107 | 108 |
108 #ifndef BR_NO_MACROS | 109 #ifndef BR_NO_MACROS |
109 /* Convenience functions for concatenating paths */ | 110 /* Convenience functions for concatenating paths */ |
110 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) | 111 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) |
111 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) | 112 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) |
122 #endif | 123 #endif |
123 | 124 |
124 char *br_strcat (const char *str1, const char *str2); | 125 char *br_strcat (const char *str1, const char *str2); |
125 char *br_extract_dir (const char *path); | 126 char *br_extract_dir (const char *path); |
126 char *br_extract_prefix(const char *path); | 127 char *br_extract_prefix(const char *path); |
128 typedef char *(*br_locate_fallback_func) (void *symbol, void *data); | |
129 void br_set_locate_fallback_func (br_locate_fallback_func func, void *data); | |
127 | 130 |
128 | 131 |
129 #ifdef __cplusplus | 132 #ifdef __cplusplus |
130 } | 133 } |
131 #endif /* __cplusplus */ | 134 #endif /* __cplusplus */ |