Enum anjay_sw_mgmt_initial_state_t
Defined in File sw_mgmt.h
Enum Documentation
-
enum anjay_sw_mgmt_initial_state_t
Possible values that control Update State, Update Result and Activation State resources at the time of initialization of the Software Management object.
Values:
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_IDLE
Corresponds to the “Initial” Update State and “Initial” Update Result. Shall be used for software instances which are not yet downloaded.
Note: “Initial” Update State and “Initial” Update Result can be also caused by preparing installed software for update process (by executing Uninstall resource with “1” argument), although, in case of a reboot, it is recommended to revert back to “Installed” Update State by initializing the object instance with ANJAY_SW_MGMT_INITIAL_STATE_INSTALLED_DEACTIVATED or ANJAY_SW_MGMT_INITIAL_STATE_INSTALLED_ACTIVATED . Software Management Object in its current state is not able to differentiate these two situations.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_DOWNLOADED
Corresponds to the “Downloaded” Update State and “Initial” Update Result. Shall be used when the device unexpectedly rebooted when the software package has already been downloaded into some non-volatile memory and integrity check wasn’t performed yet.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_DELIVERED
Corresponds to the “Delivered” Update State and “Initial” Update Result. Shall be used when the device unexpectedly rebooted when the software package has already been downloaded into some non-volatile memory and integrity check was performed.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_INSTALLING
Corresponds to the “Delivered” Update State and “Initial” Update Result. Shall be used when the device has rebooted as a part of installation process, which hasn’t completed yet. The application should call anjay_sw_mgmt_finish_pkg_install to set the result to success or failure after the installation process is complete.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_INSTALLED_DEACTIVATED
Corresponds to the “Installed” Update State, “Installed” Update Result and Activation State set to false. Shall be used when given software instance is installed, but deactivated.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_INSTALLED_ACTIVATED
Corresponds to the “Installed” Update State, “Installed” Update Result and Activation State set to true. Shall be used when given software instance is installed and activated.
-
enumerator ANJAY_SW_MGMT_INITIAL_STATE_IDLE