diff options
author | Petr Machata <pmachata@redhat.com> | 2013-10-23 00:52:13 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-10-23 00:52:13 +0200 |
commit | aa3db6b1234da0e542ba7782849cf200d0d91c1c (patch) | |
tree | b83017f939a1b321b9c74364cdde0fd6cddb9837 /backend.h | |
parent | ff5606a61647623b1f490a91a985e55c1ee6253d (diff) | |
download | ltrace-aa3db6b1234da0e542ba7782849cf200d0d91c1c.tar.gz |
Replace os_get_ltrace_conf_filename with os_get_ltrace_conf_filenames
- I.e. allow returning a list of filenames, as opposed to a single
home directory name. This is to implement exactly the legacy config
file behavior on Linux.
Diffstat (limited to 'backend.h')
-rw-r--r-- | backend.h | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -347,11 +347,16 @@ int arch_find_dl_debug(struct process *proc, arch_addr_t dyn_addr, * concern itself with it. */ int os_get_config_dirs(int private, const char ***retp); -/* This is called to obtain the name of legacy config file, if any. - * Returns 0 on success, in which case *RETP should be set to the file - * name (it is legitimate to set this to NULL), or a negative value on - * failure. It is OK if the file is not present. */ -int os_get_ltrace_conf_filename(const char **retp); +/* This is called to obtain list of legacy config files to import, if + * any. A reference to initialized vector of char* is passed in. + * + * This returns 0 on success, in which case strings from *RETP (if + * any) are interpreted as files names. These files belong to the + * caller and will eventually be freed. + * + * Returns a negative value for failure, in which case *RETP contents + * are not consulted in any way. */ +int os_get_ltrace_conf_filenames(struct vect *retp); /* If arch.h defines ARCH_HAVE_FETCH_ARG, the following callbacks have * to be implemented: arch_fetch_arg_init, arch_fetch_arg_clone, |