File: pollhandler.h

package info (click to toggle)
bluez 5.66-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,880 kB
  • sloc: ansic: 402,134; python: 5,873; makefile: 931; sh: 192; xml: 126; perl: 47
file content (15 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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);