0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-12 03:51:53 +00:00
bird/nest/notify.h

23 lines
570 B
C
Raw Normal View History

/*
* BIRD Internet Routing Daemon -- Notificators and Listeners
*
* (c) 2019 Maria Matejka <mq@jmq.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRD_NOTIFY_H_
#define _BIRD_NOTIFY_H_
2019-03-07 16:17:34 +00:00
#include "lib/resource.h"
#include "lib/lists.h"
2019-03-07 16:17:34 +00:00
struct listener;
2019-03-07 16:17:34 +00:00
struct listener *subscribe(pool *p, list *sender, void (*notify)(void *self, const void *data), void (*unsubscribe)(void *self), void *self);
void unsubscribe(struct listener *L);
void unsubscribe_all(list *sender);
void notify(list *sender, const void *data);
#endif