From 98efa0794aa12eea203216e6f5e7e0bdd336d488 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 25 Oct 2011 02:51:16 -0700 Subject: Add menu item and dialog to select which events to display Right now they are displayed in one hbox which doesn't work if you have many events - but the code itself works and correctly toggles the events on and off. Signed-off-by: Dirk Hohndel --- profile.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 810c47391..56716f5f7 100644 --- a/profile.c +++ b/profile.c @@ -174,6 +174,15 @@ static struct ev_select *ev_namelist; static int evn_allocated; static int evn_used; +void evn_foreach(void (*callback)(const char *, int *, void *), void *data) +{ + int i; + + for (i = 0; i < evn_used; i++) { + callback(ev_namelist[i].ev_name, &ev_namelist[i].plot_ev, data); + } +} + void remember_event(const char *eventname) { int i=0, len; -- cgit v1.2.3-70-g09d2