swu_update_get_post_install_command()

Get the post-installation command for an update

Synopsis:

#include <swu/Update.h>
 
swu_result_t swu_update_get_post_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 after installing the update.

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 post-installation command for the software update referenced in update. This command is meant to be run by the UpdateTarget after it has installed the update. 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.