1 /*
2  * Copyright (c) 2024 Nordic Semiconductor
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
8 #define ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
9 
10 /* Setting for pollfd to avoid circular inclusion */
11 
12 /**
13  * @brief BSD Sockets compatible API
14  * @defgroup bsd_sockets BSD Sockets compatible API
15  * @ingroup networking
16  * @{
17  */
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /**
24  * @brief Definition of the monitored socket/file descriptor.
25  *
26  * An array of these descriptors is passed as an argument to poll().
27  */
28 struct zsock_pollfd {
29 	int fd;        /**< Socket descriptor */
30 	short events;  /**< Requested events */
31 	short revents; /**< Returned events */
32 };
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 /**
39  * @}
40  */
41 
42 #endif /* ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_ */
43