mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -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
19
doc/tutorial1.c
Normal file
19
doc/tutorial1.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
[title]
|
||||
\ref page_tutorial1
|
||||
[title]
|
||||
*/
|
||||
/* [code] */
|
||||
#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;
|
||||
}
|
||||
/* [code] */
|
||||
Loading…
Add table
Add a link
Reference in a new issue