-result
-_AulServer::SetPowerOffNotiListener( void (*powerOffCb)(void *pData), void *pData)
-{
- int heyFd = heynoti_init();
- SysTryReturnResult(NID_APP, heyFd >= 0, E_SYSTEM, "heynoti_init failed.");
-
- int ret = heynoti_subscribe(heyFd, "power_off_start", powerOffCb, pData);
- SysTryReturnResult(NID_APP, ret >= 0, E_SYSTEM, "heynoti_subscribe failed.");
-
- ret = heynoti_attach_handler(heyFd);
- SysTryReturnResult(NID_APP, ret >= 0, E_SYSTEM, "heynoti_attach_handler failed.");
-
- return E_SUCCESS;
-}
-