summaryrefslogtreecommitdiffstats
path: root/doc/tutorial1.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:28:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:28:17 +0000
commit7a46c07230b8d8108c0e8e80df4522d0ac116538 (patch)
treed483300dab478b994fe199a5d19d18d74153718a /doc/tutorial1.c
parentInitial commit. (diff)
downloadpipewire-upstream.tar.xz
pipewire-upstream.zip
Adding upstream version 0.3.65.upstream/0.3.65upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/tutorial1.c')
-rw-r--r--doc/tutorial1.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/tutorial1.c b/doc/tutorial1.c
new file mode 100644
index 0000000..050aa88
--- /dev/null
+++ b/doc/tutorial1.c
@@ -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] */