diff options
author | Petr Machata <pmachata@redhat.com> | 2012-02-10 12:25:11 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 00:55:01 +0200 |
commit | fd43ef7bb48260aadd4d8335371f75015e680108 (patch) | |
tree | 670a49fee3c1972dc0c88146895bc7cab80e59d7 | |
parent | 366c2f46d844f040458df9b7e35fc3b8527ed2d3 (diff) | |
download | ltrace-fd43ef7bb48260aadd4d8335371f75015e680108.tar.gz |
Move the Process typedef to proc.h
-rw-r--r-- | ltrace-elf.h | 1 | ||||
-rw-r--r-- | ltrace.h | 3 | ||||
-rw-r--r-- | proc.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/ltrace-elf.h b/ltrace-elf.h index 4da8a0a..507a466 100644 --- a/ltrace-elf.h +++ b/ltrace-elf.h @@ -3,6 +3,7 @@ #include <gelf.h> #include <stdlib.h> +#include "proc.h" struct ltelf { int fd; @@ -21,11 +21,10 @@ enum Event_type { EVENT_MAX }; -typedef struct Process Process; typedef struct Event Event; struct Event { struct Event * next; - Process * proc; + struct Process * proc; Event_type type; union { int ret_val; /* EVENT_EXIT */ @@ -47,6 +47,7 @@ struct callstack_element { * have Process for the whole group and Task for what's there for * per-thread stuff. But for now this is the less invasive way of * structuring it. */ +typedef struct Process Process; struct Process { enum process_state state; Process * parent; /* needed by STATE_BEING_CREATED */ |