mirror of
https://github.com/IllusionMan1212/ShockPair.git
synced 2026-10-24 10:12:26 +00:00
16 lines
377 B
C
16 lines
377 B
C
/* SPDX-License-Identifier: Apache-2.0 */
|
|||
|
|
/*
|
||
|
|
* Copyright (C) 2013 Intel Corporation
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <poll.h>
|
||
|
|
|
||
|
|
/* Function to be called when there are event for some descriptor */
|
||
|
|
typedef void (*poll_handler)(struct pollfd *pollfd);
|
||
|
|
|
||
|
|
int poll_register_fd(int fd, short events, poll_handler ph);
|
||
|
|
int poll_unregister_fd(int fd, poll_handler ph);
|
||
|
|
|
||
|
|
void poll_dispatch_loop(void);
|