We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a81330 commit 6041303Copy full SHA for 6041303
1 file changed
main/php_poll.h
@@ -38,7 +38,7 @@
38
#define PHP_POLL_FLAG_RAW_EVENTS 0x02
39
40
/* Poll backend types. Keep in sync with io_poll.stub.php! */
41
-typedef enum {
+typedef enum php_poll_backend_type {
42
PHP_POLL_BACKEND_AUTO = -1,
43
PHP_POLL_BACKEND_POLL = 0,
44
PHP_POLL_BACKEND_EPOLL,
@@ -62,7 +62,7 @@ typedef enum {
62
#define PHP_POLL_ERROR_CODE_NOSUPPORT 11
63
64
/* Error codes */
65
+typedef enum php_poll_error {
66
PHP_POLL_ERR_NONE = PHP_POLL_ERROR_CODE_NONE, /* No error */
67
PHP_POLL_ERR_SYSTEM = PHP_POLL_ERROR_CODE_SYSTEM, /* Generic system error */
68
PHP_POLL_ERR_NOMEM = PHP_POLL_ERROR_CODE_NOMEM, /* Out of memory (ENOMEM) */
0 commit comments