errors: new TOO_MANY and NOT_FOUND core errors

This commit is contained in:
Aleksander Morgado
2011-12-12 20:18:05 +01:00
parent 667e3edfbd
commit 0793522d28
2 changed files with 6 additions and 0 deletions

View File

@@ -37,6 +37,8 @@
* @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_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.
*/
@@ -51,6 +53,8 @@ typedef enum { /*< underscore_name=mm_core_error >*/
MM_CORE_ERROR_IN_PROGRESS = 7,
MM_CORE_ERROR_WRONG_STATE = 8,
MM_CORE_ERROR_CONNECTED = 9,
MM_CORE_ERROR_TOO_MANY = 10,
MM_CORE_ERROR_NOT_FOUND = 11,
} MMCoreError;
/**

View File

@@ -37,6 +37,8 @@ static const GDBusErrorEntry mm_core_error_entries[] = {
{ MM_CORE_ERROR_IN_PROGRESS, ERROR_PREFIX "InProgress" },
{ MM_CORE_ERROR_WRONG_STATE, ERROR_PREFIX "WrongState" },
{ 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