Registers or unregister a PM aware application
PM (Power Management) Library (libpm.a)
#include <pmlib.h>
int pmlib_register_application(cmd); int cmd;
cmd | Determines the action to be taken by the pmlib_register_application subroutine and is one of the following values: |
The pmlib_register_application registers or unregisters the caller process as a PM-aware application. The pmlib_register_application subroutine can be called by any user.
Upon successful completion, PMLIB_SUCCESS is returned. If the pmlib_request_state subroutine fails, PMLIB_ERROR is returned and errno variable is set to an error code.
ESRCH | PM daemon is not running. |
EINVAL | Invalid argument. |
The pmlib_register_application subroutine is part of the Base Operation System (BOS) Runtime.
The pmlib_get_event_notice subroutine, pmlib_request_state subroutine, pmlib_request_battery subroutine, pmlib_request_parameter subroutine.