summaryrefslogtreecommitdiffstats
path: root/example/follow.cpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-07-17 14:40:14 -0700
committerWilliam A. Kennington III <wak@google.com>2018-07-17 14:40:14 -0700
commit8f90e28b500d384fbabcf97119879c7ba3c88724 (patch)
tree8c68ef24d7b8ec3e36b8c3d793d4dd3fe763b030 /example/follow.cpp
downloadsdeventplus-8f90e28b500d384fbabcf97119879c7ba3c88724.tar.gz
sdeventplus-8f90e28b500d384fbabcf97119879c7ba3c88724.zip
Initial Commit
Diffstat (limited to 'example/follow.cpp')
-rw-r--r--example/follow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/example/follow.cpp b/example/follow.cpp
new file mode 100644
index 0000000..36cd44b
--- /dev/null
+++ b/example/follow.cpp
@@ -0,0 +1,14 @@
+#include <cstdio>
+#include <sdeventplus/event.hpp>
+
+int main(int argc, char* argv[])
+{
+ if (argc != 2)
+ {
+ fprintf(stderr, "Usage: %s [file]\n", argv[0]);
+ return 1;
+ }
+
+ sdeventplus::Event event = sdeventplus::Event::get_default();
+ return event.loop();
+}
OpenPOWER on IntegriCloud