summaryrefslogtreecommitdiff
path: root/swaygrab/main.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-11-27 09:53:50 -0500
committerDrew DeVault <[email protected]>2015-11-27 09:53:50 -0500
commit7c04cd4fc849f01aaf3c5e8b09bee0a8af39276e (patch)
tree77f14711471cd0688ff75725ef3e76d3bd04e441 /swaygrab/main.c
parent27f03c705d8851a8ef6ca9e8f7828c1a2bfd9a88 (diff)
Add swaygrab subproject
Diffstat (limited to 'swaygrab/main.c')
-rw-r--r--swaygrab/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c
new file mode 100644
index 00000000..4a15bd06
--- /dev/null
+++ b/swaygrab/main.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include "log.h"
+
+void sway_terminate(void) {
+ exit(1);
+}
+
+int main(int argc, const char **argv) {
+ init_log(L_INFO);
+ sway_log(L_INFO, "Hello world!");
+}