aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-11-29 03:03:34 -0500
committercnlohr <lohr85@gmail.com>2016-11-29 03:03:34 -0500
commit8388ca81fbc6c0a840e81f6fd805b897d378556b (patch)
treea267870139b2269ec734813e979ef95302398409 /test.c
parent570309192b066ae1a440988c2a51dc0a17fa2b1a (diff)
downloadlibsurvive-8388ca81fbc6c0a840e81f6fd805b897d378556b.tar.gz
libsurvive-8388ca81fbc6c0a840e81f6fd805b897d378556b.tar.bz2
Add a basic vive driver. Gotta figure out how to turn it on.
Diffstat (limited to 'test.c')
-rw-r--r--test.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test.c b/test.c
new file mode 100644
index 0000000..b7f9627
--- /dev/null
+++ b/test.c
@@ -0,0 +1,22 @@
+#include <unistd.h>
+#include <stdio.h>
+
+
+#include <survive.h>
+
+int main()
+{
+ struct SurviveContext * ctx = survive_init( &ctx );
+
+ if( !ctx )
+ {
+ fprintf( stderr, "Fatal.\n" );
+ return 1;
+ }
+
+ while(survive_poll(ctx) == 0)
+ {
+
+ }
+}
+