swu_update_compare_to_id()

Compare an ID with the ID of an Update

Synopsis:

#include <swu/Update.h>
 
int32_t swu_update_compare_to_id( 
                            swu_update_t update, 
                            swu_update_id_t id )

Arguments:

update
Handle of the Update.
id
ID to compare with the Update ID.

Library:

libswu-core

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

Description:

Compare the ID specified in id with the ID of the Update specified in update. This function is useful when searching the UpdateList for a specific Update or in any other case where simply comparing swu_update_t handles is inadequate.

Returns:

A signed integer value indicating how the IDs compare:

>0
The specified ID is greater than the ID of the Update.
0
The specified ID equals the ID of the Update.
<0
The specified ID is less than the ID of the Update.