| 469 | } |
| 470 | |
| 471 | struct fs_event *get_event(fs_evs *sock, const str *name) |
| 472 | { |
| 473 | struct list_head *_; |
| 474 | struct fs_event *event; |
| 475 | |
| 476 | list_for_each(_, &sock->events) { |
| 477 | event = list_entry(_, struct fs_event, list); |
| 478 | if (str_strcmp(&event->name, name) == 0) |
| 479 | return event; |
| 480 | } |
| 481 | |
| 482 | return NULL; |
| 483 | } |
| 484 | |
| 485 | int evs_sub(fs_evs *sock, const str *tag, const str_list *name, |
| 486 | ipc_handler_type ipc_type) |
no test coverage detected