2013-09-17 05:57:40 +08:00
|
|
|
/*
|
|
|
|
* BIRD -- I/O and event loop
|
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
2013-09-10 18:09:36 +08:00
|
|
|
|
2013-09-17 05:57:40 +08:00
|
|
|
#ifndef _BIRD_BFD_IO_H_
|
|
|
|
#define _BIRD_BFD_IO_H_
|
2013-09-10 18:09:36 +08:00
|
|
|
|
2013-09-17 05:57:40 +08:00
|
|
|
#include "nest/bird.h"
|
|
|
|
#include "lib/lists.h"
|
|
|
|
#include "lib/resource.h"
|
|
|
|
#include "lib/event.h"
|
2017-05-31 01:12:35 +08:00
|
|
|
#include "lib/timer.h"
|
2013-09-17 05:57:40 +08:00
|
|
|
#include "lib/socket.h"
|
|
|
|
|
|
|
|
|
2013-09-10 18:09:36 +08:00
|
|
|
void ev2_schedule(event *e);
|
|
|
|
|
|
|
|
void sk_start(sock *s);
|
|
|
|
void sk_stop(sock *s);
|
|
|
|
|
2013-11-20 05:33:48 +08:00
|
|
|
struct birdloop *birdloop_new(void);
|
2013-10-06 02:12:28 +08:00
|
|
|
void birdloop_start(struct birdloop *loop);
|
|
|
|
void birdloop_stop(struct birdloop *loop);
|
2013-11-20 05:33:48 +08:00
|
|
|
void birdloop_free(struct birdloop *loop);
|
|
|
|
|
2013-09-10 18:09:36 +08:00
|
|
|
void birdloop_enter(struct birdloop *loop);
|
|
|
|
void birdloop_leave(struct birdloop *loop);
|
2013-09-17 05:57:40 +08:00
|
|
|
void birdloop_mask_wakeups(struct birdloop *loop);
|
|
|
|
void birdloop_unmask_wakeups(struct birdloop *loop);
|
|
|
|
|
2013-09-10 18:09:36 +08:00
|
|
|
|
2013-09-17 05:57:40 +08:00
|
|
|
#endif /* _BIRD_BFD_IO_H_ */
|