Skip to content

Commit

Permalink
doc: document uv_loop_option
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyu234 authored Aug 15, 2024
1 parent 31d9165 commit 1790abb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
13 changes: 13 additions & 0 deletions docs/src/loop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ Data types
Loop data type.

.. c:enum:: uv_loop_option
Additional loop options.
See :c:func:`uv_loop_configure`.

::

typedef enum {
UV_LOOP_BLOCK_SIGNAL = 0,
UV_METRICS_IDLE_TIME,
UV_LOOP_USE_IO_URING_SQPOLL
} uv_loop_option;

.. c:enum:: uv_run_mode
Mode used to run the loop with :c:func:`uv_run`.
Expand Down
6 changes: 3 additions & 3 deletions docs/src/misc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Data types
char* homedir;
} uv_passwd_t;

.. c:type:: uv_group_s
.. c:type:: uv_group_t
Data type for group file information.

Expand All @@ -209,7 +209,7 @@ Data types
char* groupname;
unsigned long gid;
char** members;
};
} uv_group_t;

.. c:type:: uv_utsname_t
Expand Down Expand Up @@ -590,7 +590,7 @@ API
.. versionadded:: 1.45.0
.. c:function:: int uv_os_get_group(uv_group_s* group, uv_uid_t gid)
.. c:function:: int uv_os_get_group(uv_group_t* group, uv_uid_t gid)
Gets a subset of the group file entry for the provided uid.
The populated data includes the group name, gid, and members. On non-Windows
Expand Down
24 changes: 14 additions & 10 deletions docs/src/request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@ Data types
Union of all request types.

.. c:enum:: uv_req_type
Public members
^^^^^^^^^^^^^^

.. c:member:: void* uv_req_t.data
Space for user-defined arbitrary data. libuv does not use this field.

.. c:member:: uv_req_type uv_req_t.type
Indicated the type of request. Readonly.
The kind of the libuv request.

::

Expand All @@ -50,6 +42,18 @@ Public members
} uv_req_type;


Public members
^^^^^^^^^^^^^^

.. c:member:: void* uv_req_t.data
Space for user-defined arbitrary data. libuv does not use this field.

.. c:member:: uv_req_type uv_req_t.type
The :c:type:`uv_req_type`, indicating the type of the request. Readonly.


API
---

Expand Down

0 comments on commit 1790abb

Please sign in to comment.