swu_update_get_pre_install_command()

Get the pre-installation command for an update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_pre_install_command(
                                swu_update_t update, 
                                swu_string_t *command )

Arguments:

update
Handle of the Update.
command
Pointer to the string to store the command that the UpdateTarget is meant to run before installing the update (i.e., during the update preparation phase).

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

Get the pre-installation command for the software update referenced in update. This command is meant to be run by the UpdateTarget before it installs the update, while it prepares for installation. The function stores this command in command. If no such command was provided in the manifest file, the function returns SWU_RESULT_SUCCESS but stores an empty string in command.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_INVALID_ARGUMENT
One of the arguments is invalid.