File: c-api.md

package info (click to toggle)
groonga 16.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,416 kB
  • sloc: ansic: 772,827; cpp: 52,396; ruby: 40,556; javascript: 10,250; yacc: 7,045; sh: 5,627; python: 2,821; makefile: 1,679
file content (34 lines) | stat: -rw-r--r-- 840 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# C API

The C API documentation is auto-generated from header files using
[Doxygen](https://www.doxygen.nl/).
You can view the generated documentation at
[C API Reference](https://groonga.org/docs/reference/api/index.html).

## How to write

To contribute to the C API documentation, add Doxygen-style comments
to the header files in `include/groonga/`.

Example:

```c
/**
 * \brief Short description of the function
 *
 * Detailed description here.
 *
 * \param ctx The context
 * \param arg Description of the argument
 * \return Description of the return value
 */
GRN_API grn_rc grn_function(grn_ctx *ctx, int arg);
```

## How to preview

For instructions on how to generate documentation and preview it,
see {doc}`introduction`.

The generated C API HTML documentation will be output to
`../groonga.doc/doc/en/html/reference/api/`.