Use enum in switch instead of raw int
This makes it a bit harder to forget to handle cases
We still need to manually keep upower.h in sync with upstream though
This makes it a bit harder to forget to handle cases
We still need to manually keep upower.h in sync with upstream though