aboutsummaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-12-06 18:28:17 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-08 22:55:29 +0100
commit364753a1cfe46998946a42badd9099591a00325a (patch)
treeb905bc640d2830edc92e3e9b2135d35de665c2b1 /backend.h
parent881e1fd61524bd916cdce782f8d3beadd7e5aaec (diff)
downloadltrace-364753a1cfe46998946a42badd9099591a00325a.tar.gz
New backend hook os_get_ltrace_conf_filename and Linux implementation
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend.h b/backend.h
index 2767a94..f26186c 100644
--- a/backend.h
+++ b/backend.h
@@ -350,6 +350,12 @@ 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);
+
/* If arch.h defines ARCH_HAVE_FETCH_ARG, the following callbacks have
* to be implemented: arch_fetch_arg_init, arch_fetch_arg_clone,
* arch_fetch_arg_done, arch_fetch_arg_next and arch_fetch_retval.