Function anjay_sw_mgmt_get_activation_state

Function Documentation

int anjay_sw_mgmt_get_activation_state(anjay_t *anjay, anjay_iid_t iid, bool *out_state)

Checks if the instance state is Installed and return the activation state via out_state argument. Can be used in anjay_sw_mgmt_activate_t or anjay_sw_mgmt_deactivate_t to check if we want to proceed with current activation state with the code responsible for activation/deactivation the package.

Parameters:
  • anjay – Anjay object for which the Software Management Object is installed.

  • iid – ID of Software Management object instance.

  • out_state – Activation state of Software Management object instance.

Returns:

0 on success, -1 if there is no such instance or instance state is different than Installed