diff options
author | Jan Kanis <jan.code@jankanis.nl> | 2012-12-20 11:48:36 +0100 |
---|---|---|
committer | Jan Kanis <jan.code@jankanis.nl> | 2012-12-20 16:13:14 +0100 |
commit | 30392bf66a79b91ad2fa10b369f151540c40c09e (patch) | |
tree | 1763f7af6ce644b580df09e1cd7d128615435a68 /event.h | |
parent | 71233ee89476aa92782ac8288eba6c1485a8477e (diff) |
reference'ize event.cpp/h
Diffstat (limited to 'event.h')
-rw-r--r-- | event.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -102,14 +102,14 @@ struct event_t May not be called by a signal handler, since it may allocate new memory. */ -void event_add_handler(const event_t *event); +void event_add_handler(const event_t &event); /** Remove all events matching the specified criterion. May not be called by a signal handler, since it may free allocated memory. */ -void event_remove(event_t *event); +void event_remove(event_t &event); /** Return all events which match the specified event class @@ -122,7 +122,7 @@ void event_remove(event_t *event); \return the number of found matches */ -int event_get(event_t *criterion, std::vector<event_t *> *out); +int event_get(const event_t &criterion, std::vector<event_t *> *out); /** Returns whether an event listener is registered for the given signal. @@ -169,7 +169,13 @@ void event_free(event_t *e); /** Returns a string describing the specified event. */ -wcstring event_get_desc(const event_t *e); +wcstring event_get_desc(const event_t &e); + +/** + Returns a string describing the event. This version is more concise and + more detailed than event_get_desc. +*/ +wcstring event_type_str(const event_t &e); /** Fire a generic event with the specified name |