From 0f6e6d9861ce790cb8b7d07aca28a5878d705359 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 26 Oct 2012 23:42:17 +0200 Subject: 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. --- backend.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend.h') diff --git a/backend.h b/backend.h index 24d77af..89c05c3 100644 --- a/backend.h +++ b/backend.h @@ -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. * -- cgit v1.2.3