summaryrefslogtreecommitdiffstats
path: root/doc/tutorial1.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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] */