diff options
author | Petr Machata <pmachata@redhat.com> | 2012-10-26 23:42:17 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-10-26 23:42:17 +0200 |
commit | 0f6e6d9861ce790cb8b7d07aca28a5878d705359 (patch) | |
tree | f5a51847c9fb1095b19c092e697850939c29a908 /backend.h | |
parent | d3202de1176057520f49b5e6231b8774f6b6b31f (diff) | |
download | ltrace-0f6e6d9861ce790cb8b7d07aca28a5878d705359.tar.gz |
Add os_process_data and related
This is meant to be the same for per-OS configuration as arch_process_data
is for per-arch configuration.
Diffstat (limited to 'backend.h')
-rw-r--r-- | backend.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -264,6 +264,15 @@ void arch_process_destroy(struct Process *proc); int arch_process_clone(struct Process *retp, struct Process *proc); int arch_process_exec(struct Process *proc); +/* The following callbacks have to be implemented in OS backend if + * os.h defines OS_HAVE_PROCESS_DATA. The protocol is same as for, + * respectively, arch_process_init, arch_process_destroy, + * arch_process_clone and arch_process_exec. */ +int os_process_init(struct Process *proc); +void os_process_destroy(struct Process *proc); +int os_process_clone(struct Process *retp, struct Process *proc); +int os_process_exec(struct Process *proc); + /* The following callback has to be implemented in backend if arch.h * defines ARCH_HAVE_GET_SYM_INFO. * |