Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
sdeventplus
/
5a7365c6e51fe4554b6a24455080974f3eeab4dc
/
.
/
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
();
}