mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
doc: add tutorials as Doxygen examples
This commit is contained in:
parent
98a0e54d5f
commit
336caa9db3
14 changed files with 528 additions and 594 deletions
|
|
@ -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()`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue