[listener] Support passing multiple events in a single notify call

This commit is contained in:
chme
2017-11-13 21:58:54 +01:00
parent 1e24b3656a
commit 8d130cdc7c
7 changed files with 19 additions and 19 deletions

View File

@@ -50,10 +50,10 @@ static short write_events;
/* Thread: library (the thread the event occurred) */
static void
listener_cb(enum listener_event_type type)
listener_cb(short event_mask)
{
// Add event to the event mask, clients will be notified at the next break of the libwebsockets service loop
events |= type;
events |= event_mask;
}
/*