src: user.c: Rename POWER_STATES enumeration to user_power_state_t and define it as type