This library create exports two functions, one for rebooting the machine, one for powering off the machine.
It use dbus messages for logind under the hood.