lib/ovsdb-idl.c
/* Returns the result of comparing two rows using the comparison function
 * for this index.
 * Returns:
 * < 0 if a < b
 * 0 if a == b
 * > 0 if a > b
 * When the pointer to either row is NULL, this function considers NULL to be
 * greater than any other value, and NULL == NULL.
 */
Returns the result of comparing two rows using the comparison function
for this index.
Returns:
< 0 if a < b
0 if a == b
> 0 if a > b
When the pointer to either row is NULL, this function considers NULL to be
greater than any other value, and NULL == NULL.
Returns the result of comparing two rows using the comparison function for this index . Returns : < 0 if a < b 0 if a == b > 0 if a > b When the pointer to either row is NULL this function considers NULL to be greater than any other value and NULL == NULL .
int
ovsdb_idl_index_compare(struct ovsdb_idl_index *index,
                        const struct ovsdb_idl_row *a,
                        const struct ovsdb_idl_row *b)
{
    if (a && b) {
        return ovsdb_idl_index_generic_comparer(a, b, index);
    } else if (!a && !b) {
        return 0;
    } else if (a) {
        return -1;
    } else {
        return 1;
    }
}
int ovsdb_idl_index_compare ( struct ovsdb_idl_index * index , const struct ovsdb_idl_row * a , const struct ovsdb_idl_row * b ) { if ( a && b ) { return ovsdb_idl_index_generic_comparer ( a , b , index ) ; } else if ( ! a && ! b ) { return 0 ; } else if ( a ) { return -1 ; } else { return 1 ; } }
Returns the result of comparing two rows using the comparison function
 for this index.
Returns the result of comparing two rows using the comparison function for this index .