diff options
author | Petr Machata <pmachata@redhat.com> | 2012-01-07 03:02:07 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:02:07 +0200 |
commit | cd972587a4c0d14d764b3d0a43d75f5941db14cc (patch) | |
tree | 35017b8aa403b9ab1def45f89da482cb6300c415 /common.h | |
parent | b77f778eda200e0dc1c481e2f7dc5ff322147bd7 (diff) | |
download | ltrace-cd972587a4c0d14d764b3d0a43d75f5941db14cc.tar.gz |
Move event-que declarations to sysdeps, new backend interface process_removed
- the reason being that the que-handling was declared on global level, but
was only implemented in one back end. If this is deemed generally useful,
it should all be moved to front end, but as things are it's all the same,
so I'm preferring the less invasive change
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -86,17 +86,7 @@ enum process_status { }; /* Events */ -enum ecb_status { - ecb_cont, /* The iteration should continue. */ - ecb_yield, /* The iteration should stop, yielding this - * event. */ - ecb_deque, /* Like ecb_stop, but the event should be removed - * from the queue. */ -}; extern Event * next_event(void); -extern Event * each_qd_event(enum ecb_status (* cb)(Event * event, void * data), - void * data); -extern void enque_event(Event * event); extern void handle_event(Event * event); extern pid_t execute_program(const char * command, char ** argv); @@ -203,4 +193,7 @@ void arch_dynlink_done(struct Process *proc); int format_argument(FILE *stream, struct value *value, struct value_dict *arguments); +/* Called when process PROC was removed. */ +void process_removed(struct Process *proc); + #endif |