Hexadecimal error codes
This commit is contained in:
parent
742de300fe
commit
3511859908
@ -29,23 +29,23 @@ enum gmio_error
|
|||||||
GMIO_ERROR_OK = 0,
|
GMIO_ERROR_OK = 0,
|
||||||
|
|
||||||
/*! Pointer on argument gmio_transfer_t is NULL */
|
/*! Pointer on argument gmio_transfer_t is NULL */
|
||||||
GMIO_ERROR_NULL_TRANSFER = -1,
|
GMIO_ERROR_NULL_TRANSFER,
|
||||||
|
|
||||||
/*! Pointer on argument buffer is NULL */
|
/*! Pointer on argument buffer is NULL */
|
||||||
GMIO_ERROR_NULL_BUFFER = -2,
|
GMIO_ERROR_NULL_BUFFER,
|
||||||
|
|
||||||
/*! Argument buffer's size is too small */
|
/*! Argument buffer's size is too small */
|
||||||
GMIO_ERROR_INVALID_BUFFER_SIZE = -3,
|
GMIO_ERROR_INVALID_BUFFER_SIZE,
|
||||||
|
|
||||||
/*! An error occurred with gmio_stream */
|
/*! An error occurred with gmio_stream */
|
||||||
GMIO_ERROR_STREAM = -4,
|
GMIO_ERROR_STREAM,
|
||||||
|
|
||||||
/*! Transfer was stopped by user, that is to say
|
/*! Transfer was stopped by user, that is to say
|
||||||
* gmio_transfer::is_stop_requested_func() returned GMIO_TRUE */
|
* gmio_transfer::is_stop_requested_func() returned GMIO_TRUE */
|
||||||
GMIO_ERROR_TRANSFER_STOPPED = -5,
|
GMIO_ERROR_TRANSFER_STOPPED,
|
||||||
|
|
||||||
/*! Unknown error */
|
/*! Unknown error */
|
||||||
GMIO_ERROR_UNKNOWN = -6
|
GMIO_ERROR_UNKNOWN
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum gmio_error gmio_error_t;
|
typedef enum gmio_error gmio_error_t;
|
||||||
|
@ -28,34 +28,34 @@ enum { GMIO_STL_ERROR_TAG = 0x11000000 };
|
|||||||
enum gmio_stl_error
|
enum gmio_stl_error
|
||||||
{
|
{
|
||||||
/*! STL format could not be guessed in read function */
|
/*! STL format could not be guessed in read function */
|
||||||
GMIO_STL_ERROR_UNKNOWN_FORMAT = GMIO_STL_ERROR_TAG + 1,
|
GMIO_STL_ERROR_UNKNOWN_FORMAT = GMIO_STL_ERROR_TAG + 0x01,
|
||||||
|
|
||||||
/*! Common STL write error indicating gmio_stl_mesh::get_triangle_func()
|
/*! Common STL write error indicating gmio_stl_mesh::get_triangle_func()
|
||||||
* pointer is NULL
|
* pointer is NULL
|
||||||
*/
|
*/
|
||||||
GMIO_STL_ERROR_NULL_GET_TRIANGLE_FUNC = GMIO_STL_ERROR_TAG + 2,
|
GMIO_STL_ERROR_NULL_GET_TRIANGLE_FUNC = GMIO_STL_ERROR_TAG + 0x02,
|
||||||
|
|
||||||
/* Specific error codes returned by STL_ascii read function */
|
/* Specific error codes returned by STL_ascii read function */
|
||||||
|
|
||||||
/*! Parsing error occured in gmio_stla_read() due to malformed STL ascii
|
/*! Parsing error occured in gmio_stla_read() due to malformed STL ascii
|
||||||
* input */
|
* input */
|
||||||
GMIO_STL_ERROR_PARSING = GMIO_STL_ERROR_TAG + 100,
|
GMIO_STL_ERROR_PARSING = GMIO_STL_ERROR_TAG + 0x100,
|
||||||
|
|
||||||
/*! Invalid max number of decimal significants digits for
|
/*! Invalid max number of decimal significants digits for
|
||||||
* gmio_stla_write(), must be in [1..9] */
|
* gmio_stla_write(), must be in [1..9] */
|
||||||
GMIO_STL_ERROR_INVALID_FLOAT32_PREC = GMIO_STL_ERROR_TAG + 101,
|
GMIO_STL_ERROR_INVALID_FLOAT32_PREC = GMIO_STL_ERROR_TAG + 0x101,
|
||||||
|
|
||||||
/* Specific error codes returned by STL_binary read/write functions */
|
/* Specific error codes returned by STL_binary read/write functions */
|
||||||
|
|
||||||
/*! The byte order argument supplied is not supported, must be little or
|
/*! The byte order argument supplied is not supported, must be little or
|
||||||
* big endian */
|
* big endian */
|
||||||
GMIO_STL_ERROR_UNSUPPORTED_BYTE_ORDER = GMIO_STL_ERROR_TAG + 300,
|
GMIO_STL_ERROR_UNSUPPORTED_BYTE_ORDER = GMIO_STL_ERROR_TAG + 0x1000,
|
||||||
|
|
||||||
/*! Error occured when reading header data in gmio_stlb_read() */
|
/*! Error occured when reading header data in gmio_stlb_read() */
|
||||||
GMIO_STL_ERROR_HEADER_WRONG_SIZE = GMIO_STL_ERROR_TAG + 301,
|
GMIO_STL_ERROR_HEADER_WRONG_SIZE = GMIO_STL_ERROR_TAG + 0x1001,
|
||||||
|
|
||||||
/*! Error occured when reading facet count in gmio_stlb_read() */
|
/*! Error occured when reading facet count in gmio_stlb_read() */
|
||||||
GMIO_STL_ERROR_FACET_COUNT = GMIO_STL_ERROR_TAG + 302
|
GMIO_STL_ERROR_FACET_COUNT = GMIO_STL_ERROR_TAG + 0x1002
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum gmio_stl_error gmio_stl_error_t;
|
typedef enum gmio_stl_error gmio_stl_error_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user