return DEVICE_ERROR_OPERATION_FAILED;
}
- // subscribe signal
- for (int index = 0; index < POWER_STATE_MAX_INDEX; ++index)
- if((state_bits & (1ULL << index)) && (change_state_signal_id[index] == 0))
- __device_power_add_change_state_wait_callback(connection, index, cb, data);
-
// add change state wait
retgv = g_dbus_connection_call_sync(connection,
DEVICED_BUS_NAME,
return DEVICE_ERROR_OPERATION_FAILED;
}
+ // subscribe signal
+ for (int index = 0; index < POWER_STATE_MAX_INDEX; ++index)
+ if((state_bits & (1ULL << index)) && (change_state_signal_id[index] == 0))
+ __device_power_add_change_state_wait_callback(connection, index, cb, data);
+
+
return DEVICE_ERROR_NONE;
}