Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
sdeventplus
/
ed05921075278795a1a3044365f1dd3143e593f5
/
.
/
example
/
follow.cpp
blob: 36cd44be619d58252af5b8e09c13b9338d17521b [
file
] [
log
] [
blame
]
#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
();
}