Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
phosphor-buttons
/
dd5495cf40d5911fb9ad04acc6689ae8af054524
/
.
/
src
/
button_handler_main.cpp
blob: e9fcc27205abc19101c9585481b00bae6552c4e0 [
file
] [
log
] [
blame
]
#include
"button_handler.hpp"
int
main
(
int
argc
,
char
*
argv
[])
{
auto
bus
=
sdbusplus
::
bus
::
new_default
();
phosphor
::
button
::
Handler
handler
{
bus
};
while
(
true
)
{
bus
.
process_discard
();
bus
.
wait
();
}
return
0
;
}