Skip to content

Commit 2e5f895

Browse files
committed
Improve API documentation
1 parent 6a8234b commit 2e5f895

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

docs/api.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Common Types
2525
Singly Linked List
2626
------------------
2727

28+
Singly linked list API documentation.
29+
30+
The source code of the corresponding header file is in `slist.h <https://github.com/adel-mamin/amast/blob/main/libs/slist/slist.h>`_.
31+
2832
.. doxygenstruct:: am_slist_item
2933

3034
.. doxygenstruct:: am_slist
@@ -74,6 +78,10 @@ Singly Linked List
7478
Bit
7579
---
7680

81+
Bit API documentation.
82+
83+
The source code of the corresponding header file is in `bit.h <https://github.com/adel-mamin/amast/blob/main/libs/bit/bit.h>`_.
84+
7785
.. doxygenstruct:: am_bit_u64
7886

7987
.. doxygenfunction:: am_bit_u64_is_empty
@@ -91,6 +99,10 @@ Bit
9199
Ring Buffer
92100
-----------
93101

102+
Ring buffer API documentation.
103+
104+
The source code of the corresponding header file is in `ringbuf.h <https://github.com/adel-mamin/amast/blob/main/libs/ringbuf/ringbuf.h>`_.
105+
94106
.. doxygenstruct:: am_ringbuf
95107

96108
.. doxygenfunction:: am_ringbuf_ctor
@@ -118,6 +130,10 @@ Ring Buffer
118130
Queue
119131
-----
120132

133+
Queue API documentation.
134+
135+
The source code of the corresponding header file is in `queue.h <https://github.com/adel-mamin/amast/blob/main/libs/bit/bit.h>`_.
136+
121137
.. doxygenstruct:: am_queue
122138

123139
.. doxygenfunction:: am_queue_ctor
@@ -155,6 +171,10 @@ Queue
155171
Onesize
156172
-------
157173

174+
Onesize memory allocator API documentation.
175+
176+
The source code of the corresponding header file is in `onesize.h <https://github.com/adel-mamin/amast/blob/main/libs/async/onesize.h>`_.
177+
158178
.. doxygenstruct:: am_onesize
159179

160180
.. doxygenstruct:: am_onesize_cfg
@@ -187,6 +207,10 @@ Onesize
187207
Event
188208
-----
189209

210+
Event API documentation.
211+
212+
The source code of the corresponding header file is in `event.h <https://github.com/adel-mamin/amast/blob/main/libs/async/event.h>`_.
213+
190214
.. doxygendefine:: AM_EVT_USER
191215

192216
.. doxygendefine:: AM_EVENT_POOLS_NUM_MAX
@@ -259,6 +283,10 @@ Event
259283
Timer
260284
-----
261285

286+
Async API documentation.
287+
288+
The source code of the corresponding header file is in `timer.h <https://github.com/adel-mamin/amast/blob/main/libs/timer/timer.h>`_.
289+
262290
.. doxygentypedef:: am_timer_post_fn
263291

264292
.. doxygentypedef:: am_timer_publish_fn
@@ -295,6 +323,10 @@ Timer
295323
Async
296324
-----
297325

326+
Async API documentation.
327+
328+
The source code of the corresponding header file is in `async.h <https://github.com/adel-mamin/amast/blob/main/libs/async/async.h>`_.
329+
298330
.. doxygendefine:: AM_ASYNC_STATE_INIT
299331

300332
.. doxygenenum:: am_async_rc
@@ -375,6 +407,10 @@ The source code of the corresponding header file is in `hsm.h <https://github.co
375407
FSM
376408
---
377409

410+
Finite State Machine (FSM) API documentation.
411+
412+
The source code of the corresponding header file is in `fsm.h <https://github.com/adel-mamin/amast/blob/main/libs/fsm/fsm.h>`_.
413+
378414
.. doxygenenum:: am_fsm_evt_id
379415

380416
.. doxygenenum:: am_fsm_rc
@@ -412,6 +448,10 @@ FSM
412448
AO
413449
--
414450

451+
Active Object (AO API documentation.
452+
453+
The source code of the corresponding header file is in `ao.h <https://github.com/adel-mamin/amast/blob/main/libs/ao/ao.h>`_.
454+
415455
.. doxygenstruct:: am_ao
416456

417457
.. doxygenstruct:: am_ao_state_cfg
@@ -480,6 +520,10 @@ AO
480520
PAL
481521
---
482522

523+
Platform Abstraction Layer (PAL) API documentation.
524+
525+
The source code of the corresponding header file is in `pal.h <https://github.com/adel-mamin/amast/blob/main/libs/pal/pal.h>`_.
526+
483527
.. doxygendefine:: AM_PAL_TASK_NUM_MAX
484528

485529
.. doxygendefine:: AM_PAL_TASK_ID_NONE

libs/async/async.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct am_async {
118118
*
119119
* Checks the provided condition `cond`.
120120
* If the condition is not met (false) - returns #AM_ASYNC_RC_BUSY
121-
* and on next invocation of the function the condition is avaluated again.
121+
* and on next invocation of the function the condition is evaluated again.
122122
*
123123
* Continues the function execution once the `cond` evaluates to `true`.
124124
*

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
authors = ["Adel Mamin <[email protected]>"]
33
channels = ["conda-forge"]
4-
description = "Add a short description here"
4+
description = "A Minimalist Asynchronous Toolkit"
55
name = "amast"
66
platforms = ["linux-64"]
77
version = "0.1.0"

0 commit comments

Comments
 (0)