| 15 | static LIST_HEAD(chdir_notify_entries); |
| 16 | |
| 17 | void chdir_notify_register(const char *name, |
| 18 | chdir_notify_callback cb, |
| 19 | void *data) |
| 20 | { |
| 21 | struct chdir_notify_entry *e = xmalloc(sizeof(*e)); |
| 22 | e->name = name; |
| 23 | e->cb = cb; |
| 24 | e->data = data; |
| 25 | list_add_tail(&e->list, &chdir_notify_entries); |
| 26 | } |
| 27 | |
| 28 | void chdir_notify_unregister(const char *name, chdir_notify_callback cb, |
| 29 | void *data) |
no test coverage detected