Registers or unregister a PM aware application
PM (Power Management) Library (libpm.a)
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.|
The pmlib_register_application subroutine is part of the Base Operation System (BOS) Runtime.
The pmlib_get_event_notice (pmlib_get_event_notice Subroutine) subroutine, pmlib_request_state (pmlib_request_state Subroutine) subroutine, pmlib_request_battery (pmlib_request_battery Subroutine) subroutine, pmlib_request_parameter (pmlib_request_parameter Subroutine) subroutine.