Lines Matching refs:event_id

18     uint32_t event_id;  member
31 static event_t *find_event(event_list_t *evlist, uint32_t event_id) in find_event() argument
35 if (node->event_id == event_id) { in find_event()
93 static int __yoc_event_subscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, void… in __yoc_event_subscribe() argument
98 event_t *ev = find_event(evlist, event_id); in __yoc_event_subscribe()
104 ev->event_id = event_id; in __yoc_event_subscribe()
143 int eventlist_subscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, void *context) in eventlist_subscribe() argument
146 if (event_id & FD_MASK) { in eventlist_subscribe()
150 return __yoc_event_subscribe(evlist, event_id, cb, context); in eventlist_subscribe()
153 static int __yoc_event_unsubscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, vo… in __yoc_event_unsubscribe() argument
159 event_t *ev = find_event(evlist, event_id); in __yoc_event_unsubscribe()
183 static int __yoc_event_remove(event_list_t *evlist, uint32_t event_id) in __yoc_event_remove() argument
189 event_t *ev = find_event(evlist, event_id); in __yoc_event_remove()
219 int eventlist_unsubscribe(event_list_t *evlist, uint32_t event_id, event_callback_t cb, void *conte… in eventlist_unsubscribe() argument
222 if (event_id & FD_MASK) { in eventlist_unsubscribe()
226 return __yoc_event_unsubscribe(evlist, event_id, cb, context); in eventlist_unsubscribe()
229 static void __event_publish(event_list_t *evlist, uint32_t event_id, void *data) in __event_publish() argument
233 event_t *ev = find_event(evlist, event_id); in __event_publish()
239 node->ecb(ev->event_id, data, node->context); in __event_publish()
247 int eventlist_publish(event_list_t *evlist, uint32_t event_id, void *data) in eventlist_publish() argument
250 if (event_id & FD_MASK) { in eventlist_publish()
254 __event_publish(evlist, event_id, data); in eventlist_publish()
271 int eventlist_remove(event_list_t *evlist, uint32_t event_id) in eventlist_remove() argument
274 if (event_id & FD_MASK) { in eventlist_remove()
277 __yoc_event_remove(evlist, event_id); in eventlist_remove()
307 if (node->event_id > FD_MASK) { in eventlist_setfd()
308 uint32_t fd = node->event_id & (~FD_MASK); in eventlist_setfd()