19 #ifndef ASTERISK_ALERTPIPE_H 20 #define ASTERISK_ALERTPIPE_H 95 alert_pipe[0] = alert_pipe[1] = -1;
110 return alert_pipe[0] > -1;
125 return alert_pipe[1] > -1;
141 return alert_pipe[0];
155 SWAP(alert_pipe_1[0], alert_pipe_2[0]);
156 SWAP(alert_pipe_1[1], alert_pipe_2[1]);
int ast_alertpipe_readable(int alert_pipe[2])
Determine if the alert pipe is readable.
void ast_alertpipe_close(int alert_pipe[2])
Close an alert pipe.
ssize_t ast_alertpipe_write(int alert_pipe[2])
Write an event to an alert pipe.
void ast_alertpipe_clear(int alert_pipe[2])
Sets the alert pipe file descriptors to default values.
int ast_alertpipe_writable(int alert_pipe[2])
Determine if the alert pipe is writable.
int ast_alertpipe_init(int alert_pipe[2])
Initialize an alert pipe.
ast_alert_status_t ast_alertpipe_read(int alert_pipe[2])
Read an event from an alert pipe.
int ast_alertpipe_readfd(int alert_pipe[2])
Get the alert pipe's read file descriptor.
ast_alert_status_t ast_alertpipe_flush(int alert_pipe[2])
Consume all alerts written to the alert pipe.
void ast_alertpipe_swap(int alert_pipe_1[2], int alert_pipe_2[2])
Swap the file descriptors from two alert pipes.
#define AST_INLINE_API(hdr, body)