aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-01-07 03:02:07 +0100
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:02:07 +0200
commitcd972587a4c0d14d764b3d0a43d75f5941db14cc (patch)
tree35017b8aa403b9ab1def45f89da482cb6300c415 /common.h
parentb77f778eda200e0dc1c481e2f7dc5ff322147bd7 (diff)
downloadltrace-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.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/common.h b/common.h
index 2741662..0e7693a 100644
--- a/common.h
+++ b/common.h
@@ -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