mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: pass event to event_type functions
Instead of passing name / flag pairs to event_type functions, pass a pointer to the event. This hides implementation details. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d3c9cb14bf
commit
6ad7e577f1
6 changed files with 20 additions and 20 deletions
|
@ -80,7 +80,7 @@ struct event *create_event(unsigned int time, int type, int flags, int value, co
|
|||
break;
|
||||
}
|
||||
|
||||
remember_event_type(name, flags);
|
||||
remember_event_type(ev);
|
||||
|
||||
return ev;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue