| | 198 | = Linking from Trac to the API Reference Manual = |
| | 199 | |
| | 200 | Using the InterMapTxt feature of Trac, you can provide links from anywhere in the Trac site to the API reference manual using links looking like: |
| | 201 | |
| | 202 | `api:`''type''`:`''name'' where:: |
| | 203 | * ''type'' can be `macro`, `function`, `enum`, `struct`, or `field` |
| | 204 | * ''name'' is the name (without the `#` for macros, and like `struct_name.field_name` for ''field''s) |
| | 205 | |
| | 206 | Example: |
| | 207 | |
| | 208 | {{{ |
| | 209 | * [api:function:pthread_create link to pthread_create] |
| | 210 | * [api:macro:CONFIG_CPU_MAXCOUNT fancy text] |
| | 211 | * [api:struct:context_s CPU context structure] |
| | 212 | * [api:struct:fdt_walker_s.on_node_entry field on_node_entry of fdt_walker_s] |
| | 213 | }}} |
| | 214 | |
| | 215 | Yields:: |
| | 216 | * [api:function:pthread_create link to pthread_create] |
| | 217 | * [api:macro:CONFIG_CPU_MAXCOUNT fancy text] |
| | 218 | * [api:struct:context_s CPU context structure] |
| | 219 | * [api:field:fdt_walker_s.on_node_entry field on_node_entry of fdt_walker_s] |