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