mirror of https://github.com/sipwise/rtpengine.git
Change-Id: I5fa5f7e7b431ba0dc663407ed3acb94c2c7974b1pull/2139/head
parent
d9b72e0134
commit
8a904fe3d5
@ -1,11 +1,15 @@
|
||||
#include "custom_poller.h"
|
||||
|
||||
void poller_blocked(struct poller *p, void *fdp) {
|
||||
static void poller_blocked(struct poller *p, void *fdp) {
|
||||
p->state = PS_WRITE_BLOCKED;
|
||||
}
|
||||
bool poller_isblocked(struct poller *p, void *fdp) {
|
||||
static bool poller_isblocked(struct poller *p, void *fdp) {
|
||||
return p->state != PS_OPEN;
|
||||
}
|
||||
void poller_error(struct poller *p, void *fdp) {
|
||||
static void poller_error(struct poller *p, void *fdp) {
|
||||
p->state = PS_ERROR;
|
||||
}
|
||||
|
||||
void (*rtpe_poller_blocked)(struct poller *, void *) = poller_blocked;
|
||||
bool (*rtpe_poller_isblocked)(struct poller *, void *) = poller_isblocked;
|
||||
void (*rtpe_poller_error)(struct poller *, void *) = poller_error;
|
||||
|
||||
Loading…
Reference in new issue