doc: add tutorials as Doxygen examples

This commit is contained in:
Pauli Virtanen 2021-10-10 00:09:32 +03:00
parent 98a0e54d5f
commit 336caa9db3
14 changed files with 528 additions and 594 deletions

View file

@ -11,20 +11,7 @@ environment.
Let get started with the simplest application.
\code{.c}
#include <pipewire/pipewire.h>
int main(int argc, char *argv[])
{
pw_init(&argc, &argv);
fprintf(stdout, "Compiled with libpipewire %s\n"
"Linked with libpipewire %s\n",
pw_get_headers_version(),
pw_get_library_version());
return 0;
}
\endcode
\snippet tutorial1.c code
Before you can use any PipeWire functions, you need to call `pw_init()`.