lib/ovsdb-idl.c
/* Returns the last error reported on a connection by 'idl'.  The return value
 * is 0 only if no connection made by 'idl' has ever encountered an error and
 * a negative response to a schema request has never been received. See
 * jsonrpc_get_status() for jsonrpc_session_get_last_error() return value
 * interpretation. */
Returns the last error reported on a connection by 'idl'.  The return value
is 0 only if no connection made by 'idl' has ever encountered an error and
a negative response to a schema request has never been received. See
jsonrpc_get_status() for jsonrpc_session_get_last_error() return value
interpretation.
Returns the last error reported on a connection by ' idl ' . The return value is 0 only if no connection made by ' idl ' has ever encountered an error and a negative response to a schema request has never been received . See jsonrpc_get_status () for jsonrpc_session_get_last_error () return value interpretation .
int
ovsdb_idl_get_last_error(const struct ovsdb_idl *idl)
{
    int err = idl->session ? jsonrpc_session_get_last_error(idl->session) : 0;
    if (err) {
        return err;
    } else if (idl->state == IDL_S_ERROR) {
        return ENOENT;
    } else {
        return 0;
    }
}
int ovsdb_idl_get_last_error ( const struct ovsdb_idl * idl ) { int err = idl -> session ? jsonrpc_session_get_last_error ( idl -> session ) : 0 ; if ( err ) { return err ; } else if ( idl -> state == IDL_S_ERROR ) { return ENOENT ; } else { return 0 ; } }
Returns the last error reported on a connection by 'idl'.
Returns the last error reported on a connection by ' idl ' .