aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-02-10 12:25:11 +0100
committerPetr Machata <pmachata@redhat.com>2012-04-19 00:55:01 +0200
commitfd43ef7bb48260aadd4d8335371f75015e680108 (patch)
tree670a49fee3c1972dc0c88146895bc7cab80e59d7
parent366c2f46d844f040458df9b7e35fc3b8527ed2d3 (diff)
downloadltrace-fd43ef7bb48260aadd4d8335371f75015e680108.tar.gz
Move the Process typedef to proc.h
-rw-r--r--ltrace-elf.h1
-rw-r--r--ltrace.h3
-rw-r--r--proc.h1
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;
diff --git a/ltrace.h b/ltrace.h
index b5ea034..fe3d6ed 100644
--- a/ltrace.h
+++ b/ltrace.h
@@ -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 */
diff --git a/proc.h b/proc.h
index 75062ad..9b80556 100644
--- a/proc.h
+++ b/proc.h
@@ -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 */