X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=56716f5f767c11646d0edaade51d2b9b4d1b427f;hb=98efa0794aa12eea203216e6f5e7e0bdd336d488;hp=810c47391ad4cef865e7a8f8f673b980100d3d41;hpb=499cc0c87c61d517c7953a945da39f4db249f364;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index 810c473..56716f5 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;