errors: new TOO_MANY and NOT_FOUND core errors
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
* @MM_CORE_ERROR_IN_PROGRESS: Operation is already in progress.
|
* @MM_CORE_ERROR_IN_PROGRESS: Operation is already in progress.
|
||||||
* @MM_CORE_ERROR_WRONG_STATE: Operation cannot be executed in the current state.
|
* @MM_CORE_ERROR_WRONG_STATE: Operation cannot be executed in the current state.
|
||||||
* @MM_CORE_ERROR_CONNECTED: Operation cannot be executed while being connected.
|
* @MM_CORE_ERROR_CONNECTED: Operation cannot be executed while being connected.
|
||||||
|
* @MM_CORE_ERROR_TOO_MANY: Too many items.
|
||||||
|
* @MM_CORE_ERROR_NOT_FOUND: Item not found.
|
||||||
*
|
*
|
||||||
* Common errors that may be reported by ModemManager.
|
* Common errors that may be reported by ModemManager.
|
||||||
*/
|
*/
|
||||||
@@ -51,6 +53,8 @@ typedef enum { /*< underscore_name=mm_core_error >*/
|
|||||||
MM_CORE_ERROR_IN_PROGRESS = 7,
|
MM_CORE_ERROR_IN_PROGRESS = 7,
|
||||||
MM_CORE_ERROR_WRONG_STATE = 8,
|
MM_CORE_ERROR_WRONG_STATE = 8,
|
||||||
MM_CORE_ERROR_CONNECTED = 9,
|
MM_CORE_ERROR_CONNECTED = 9,
|
||||||
|
MM_CORE_ERROR_TOO_MANY = 10,
|
||||||
|
MM_CORE_ERROR_NOT_FOUND = 11,
|
||||||
} MMCoreError;
|
} MMCoreError;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -37,6 +37,8 @@ static const GDBusErrorEntry mm_core_error_entries[] = {
|
|||||||
{ MM_CORE_ERROR_IN_PROGRESS, ERROR_PREFIX "InProgress" },
|
{ MM_CORE_ERROR_IN_PROGRESS, ERROR_PREFIX "InProgress" },
|
||||||
{ MM_CORE_ERROR_WRONG_STATE, ERROR_PREFIX "WrongState" },
|
{ MM_CORE_ERROR_WRONG_STATE, ERROR_PREFIX "WrongState" },
|
||||||
{ MM_CORE_ERROR_CONNECTED, ERROR_PREFIX "Connected" },
|
{ MM_CORE_ERROR_CONNECTED, ERROR_PREFIX "Connected" },
|
||||||
|
{ MM_CORE_ERROR_TOO_MANY, ERROR_PREFIX "TooMany" },
|
||||||
|
{ MM_CORE_ERROR_NOT_FOUND, ERROR_PREFIX "NotFound" },
|
||||||
};
|
};
|
||||||
#undef ERROR_PREFIX
|
#undef ERROR_PREFIX
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user