KWEBAPP-C-SOURCE(1) General Commands Manual KWEBAPP-C-SOURCE(1)


kwebapp-c-sourceimplement web application C API


kwebapp-c-source [-jsv] [-h header[,header...]] [-I bjv] [-N b] [config]


The kwebapp-c-source utility accepts config (defaulting to standard input) and produces an implementation of the C API generated by kwebapp-c-header(1). Its arguments are as follows:
-h header[,header...]
Include the set of comma-separated header files header.
-I bjv
Indicate that the generated source must include headers for the Database input declarations (b), the JSON export declarations (j), and/or Data validation (v). This allows multiple source files and a single header file. It's safe to duplicate, such as specifying -Ij and -j.
Output JSON output definitions as documented in JSON export.
Output data validator definitions as documented in Data validation.
-N b
Disable production of output, which may currently only be b to suppresses the Database input definitions.
Use split-process mode for the database.
By default, the Database input and Data structures definitions are output with a header file of db.h.
All C code produced by kwebapp-c-source conforms with the style(9) manual of OpenBSD.


The kwebapp-c-source utility exits 0 on success, and >0 if an error occurs.


December 12, 2017 OpenBSD 6.2