Commit 1c7c21ea authored by Lucas Russo's avatar Lucas Russo

hal/hal_utils/*_err.*: add more error codes

parent bb1a1038
......@@ -14,7 +14,11 @@ static const char *halutils_err [HALUTILS_ERR_END] =
{
[HALUTILS_SUCCESS] = "Success",
[HALUTILS_ERR_ALLOC] = "Could not allocate memory",
[HALUTILS_ERR_NULL_POINTER] = "Null pointer received"
[HALUTILS_ERR_NULL_POINTER] = "Null pointer received",
[HALUTILS_ERR_NO_FUNC_REG] = "No function registered",
[HALUTILS_ERR_INV_LESS_ARGS] = "Less arguments than specified passed",
[HALUTILS_ERR_INV_MORE_ARGS] = "More arguments than specified passed",
[HALUTILS_ERR_INV_SIZE_ARG] = "Invalid size of argument size"
};
/* Convert enumeration type to string */
......
......@@ -16,6 +16,10 @@ enum _halutils_err_e
HALUTILS_SUCCESS = 0, /* No error */
HALUTILS_ERR_ALLOC, /* Could not allocate memory */
HALUTILS_ERR_NULL_POINTER, /* Null pointer received */
HALUTILS_ERR_NO_FUNC_REG, /* No function registered */
HALUTILS_ERR_INV_LESS_ARGS, /* Less arguments than specified passed */
HALUTILS_ERR_INV_MORE_ARGS, /* More arguments than specified passed */
HALUTILS_ERR_INV_SIZE_ARG, /* Invalid size of argument size */
HALUTILS_ERR_END
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment