libropkg: implement package manifest parsing
This commit is contained in:
@@ -18,6 +18,14 @@ static const b_error_definition ropkg_errors[] = {
|
||||
"INTERNAL_FAILURE",
|
||||
"Internal failure"),
|
||||
B_ERROR_DEFINITION(ROPKG_ERR_IO_FAILURE, "IO_FAILURE", "I/O failure"),
|
||||
B_ERROR_DEFINITION(
|
||||
ROPKG_ERR_NO_ENTRY,
|
||||
"NO_ENTRY",
|
||||
"Name does not exist"),
|
||||
B_ERROR_DEFINITION(
|
||||
ROPKG_ERR_NAME_EXISTS,
|
||||
"NAME_EXISTS",
|
||||
"Name already exist"),
|
||||
|
||||
B_ERROR_DEFINITION_TEMPLATE(
|
||||
ROPKG_ERR_DIR_OPEN_FAILED,
|
||||
@@ -51,10 +59,20 @@ static const b_error_definition ropkg_errors[] = {
|
||||
B_ERROR_TEMPLATE_PARAM_STRING,
|
||||
"%s")),
|
||||
|
||||
B_ERROR_DEFINITION(
|
||||
ROPKG_ERR_INVALID_MANIFEST_FORMAT,
|
||||
"INVALID_MANIFSET_FORMAT",
|
||||
"Invalid manifest format"),
|
||||
|
||||
B_ERROR_DEFINITION(
|
||||
ROPKG_ERR_INVALID_VERSION_FORMAT,
|
||||
"INVALID_VERSION_FORMAT",
|
||||
"Invalid version format"),
|
||||
|
||||
B_ERROR_DEFINITION(
|
||||
ROPKG_ERR_INVALID_PKG_EXPR,
|
||||
"INVALID_PKG_EXPR",
|
||||
"Invalid package expression"),
|
||||
};
|
||||
|
||||
static const b_error_msg ropkg_error_msg[] = {
|
||||
|
||||
Reference in New Issue
Block a user