Go to the source code of this file.
|
#define | BR_NAMESPACE(funcName) funcName |
|
#define | br_strcat BR_NAMESPACE(br_strcat) |
|
#define | BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) |
|
#define | BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) |
|
#define | BR_PREFIXDIR(suffix) (br_thread_local_store (br_strcat (BR_PREFIX, suffix))) |
|
#define | BR_BINDIR(suffix) (br_thread_local_store (br_strcat (BINDIR, suffix))) |
|
#define | BR_SBINDIR(suffix) (br_thread_local_store (br_strcat (SBINDIR, suffix))) |
|
#define | BR_DATADIR(suffix) (br_thread_local_store (br_strcat (DATADIR, suffix))) |
|
#define | BR_LIBDIR(suffix) (br_thread_local_store (br_strcat (LIBDIR, suffix))) |
|
#define | BR_LIBEXECDIR(suffix) (br_thread_local_store (br_strcat (LIBEXECDIR, suffix))) |
|
#define | BR_ETCDIR(suffix) (br_thread_local_store (br_strcat (ETCDIR, suffix))) |
|
#define | BR_SYSCONFDIR(suffix) (br_thread_local_store (br_strcat (SYSCONFDIR, suffix))) |
|
#define | BR_CONFDIR(suffix) (br_thread_local_store (br_strcat (CONFDIR, suffix))) |
|
#define | BR_LOCALEDIR(suffix) (br_thread_local_store (br_strcat (LOCALEDIR, suffix))) |
|
|
char * | br_strcat (const char *str1, const char *str2) |
| br_strcat: str1: A string. More...
|
|
◆ BR_BINDIR
◆ BR_CONFDIR
◆ BR_DATADIR
◆ BR_ETCDIR
◆ br_extract_dir
◆ br_extract_prefix
◆ BR_LIBDIR
◆ BR_LIBEXECDIR
◆ BR_LOCALEDIR
◆ BR_NAMESPACE
#define BR_NAMESPACE |
( |
|
funcName | ) |
funcName |
◆ BR_PREFIX
◆ BR_PREFIXDIR
◆ BR_SBINDIR
◆ BR_SELFPATH
◆ br_strcat
◆ BR_SYSCONFDIR
◆ br_extract_dir()
char* br_extract_dir |
( |
const char * |
path | ) |
|
br_extract_dir: path: A path.
Returns: A directory name. This string should be freed when no longer needed.
Extracts the directory component of path. Similar to g_dirname() or the dirname commandline application.
Example: br_extract_dir ("/usr/local/foobar"); –> Returns: "/usr/local"
Definition at line 379 of file prefix.cpp.
References br_return_val_if_fail, and br_strndup().
◆ br_extract_prefix()
char* br_extract_prefix |
( |
const char * |
path | ) |
|
br_extract_prefix: path: The full path of an executable or library.
Returns: The prefix, or NULL on error. This string should be freed when no longer needed.
Extracts the prefix from path. This function assumes that your executable or library is installed in an LSB-compatible directory structure.
Example: br_extract_prefix ("/usr/bin/gnome-panel"); –> Returns "/usr" br_extract_prefix ("/usr/local/lib/libfoo.so"); –> Returns "/usr/local" br_extract_prefix ("/usr/local/libfoo.so"); –> Returns "/usr"
Definition at line 414 of file prefix.cpp.
References br_return_val_if_fail, and br_strndup().
◆ br_strcat()
char* br_strcat |
( |
const char * |
str1, |
|
|
const char * |
str2 |
|
) |
| |
br_strcat: str1: A string.
str2: Another string. Returns: A newly-allocated string. This string should be freed when no longer needed.
Concatenate str1 and str2 to a newly allocated string.
Definition at line 334 of file prefix.cpp.