/usr/include/libmbim-glib/mbim-errors.h is in libmbim-glib-dev 1.12.2-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* libmbim-glib -- GLib/GIO based library to control MBIM devices
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2013 - 2014 Aleksander Morgado <aleksander@aleksander.es>
*/
#ifndef _LIBMBIM_GLIB_MBIM_ERRORS_H_
#define _LIBMBIM_GLIB_MBIM_ERRORS_H_
#if !defined (__LIBMBIM_GLIB_H_INSIDE__) && !defined (LIBMBIM_GLIB_COMPILATION)
#error "Only <libmbim-glib.h> can be included directly."
#endif
/**
* SECTION: mbim-errors
* @title: Errors
* @short_description: Common error types.
*
* This section defines common error types used in the interface.
*/
/* Prefixes for errors registered in DBus */
#define MBIM_DBUS_ERROR_PREFIX "org.freedesktop.libmbim.Error"
#define MBIM_CORE_ERROR_DBUS_PREFIX MBIM_DBUS_ERROR_PREFIX ".Core"
#define MBIM_PROTOCOL_ERROR_DBUS_PREFIX MBIM_DBUS_ERROR_PREFIX ".Protocol"
#define MBIM_STATUS_ERROR_DBUS_PREFIX MBIM_DBUS_ERROR_PREFIX ".Status"
/**
* MbimCoreError:
* @MBIM_CORE_ERROR_FAILED: Operation failed.
* @MBIM_CORE_ERROR_WRONG_STATE: Operation cannot be executed in the current state.
* @MBIM_CORE_ERROR_TIMEOUT: Operation timed out.
* @MBIM_CORE_ERROR_INVALID_ARGS: Invalid arguments given.
* @MBIM_CORE_ERROR_INVALID_MESSAGE: MBIM message is invalid.
* @MBIM_CORE_ERROR_UNSUPPORTED: Not supported.
* @MBIM_CORE_ERROR_ABORTED: Operation aborted..
*
* Common errors that may be reported by libmbim-glib.
*/
typedef enum { /*< underscore_name=mbim_core_error >*/
MBIM_CORE_ERROR_FAILED = 0, /*< nick=Failed >*/
MBIM_CORE_ERROR_WRONG_STATE = 1, /*< nick=WrongState >*/
MBIM_CORE_ERROR_TIMEOUT = 2, /*< nick=Timeout >*/
MBIM_CORE_ERROR_INVALID_ARGS = 3, /*< nick=InvalidArgs >*/
MBIM_CORE_ERROR_INVALID_MESSAGE = 4, /*< nick=InvalidMessage >*/
MBIM_CORE_ERROR_UNSUPPORTED = 5, /*< nick=Unsupported >*/
MBIM_CORE_ERROR_ABORTED = 6 /*< nick=Aborted >*/
} MbimCoreError;
/**
* MbimProtocolError:
* @MBIM_PROTOCOL_ERROR_INVALID: Invalid MBIM error.
* @MBIM_PROTOCOL_ERROR_TIMEOUT_FRAGMENT: Timeout waiting for fragment.
* @MBIM_PROTOCOL_ERROR_FRAGMENT_OUT_OF_SEQUENCE: Fragment received out of sequence.
* @MBIM_PROTOCOL_ERROR_LENGTH_MISMATCH: Length mismatch.
* @MBIM_PROTOCOL_ERROR_DUPLICATED_TID: Duplicated transaction ID.
* @MBIM_PROTOCOL_ERROR_NOT_OPENED: Not opened.
* @MBIM_PROTOCOL_ERROR_UNKNOWN: Unknown error.
* @MBIM_PROTOCOL_ERROR_CANCEL: Cancel the operation.
* @MBIM_PROTOCOL_ERROR_MAX_TRANSFER: Maximum control transfer not supported.
*
* MBIM protocol errors.
*/
typedef enum {
MBIM_PROTOCOL_ERROR_INVALID = 0, /*< nick=Invalid >*/
MBIM_PROTOCOL_ERROR_TIMEOUT_FRAGMENT = 1, /*< nick=TimeoutFragment >*/
MBIM_PROTOCOL_ERROR_FRAGMENT_OUT_OF_SEQUENCE = 2, /*< nick=FragmentOutOfSequence >*/
MBIM_PROTOCOL_ERROR_LENGTH_MISMATCH = 3, /*< nick=LengthMismatch >*/
MBIM_PROTOCOL_ERROR_DUPLICATED_TID = 4, /*< nick=DuplicatedTid >*/
MBIM_PROTOCOL_ERROR_NOT_OPENED = 5, /*< nick=NotOpened >*/
MBIM_PROTOCOL_ERROR_UNKNOWN = 6, /*< nick=Unknown >*/
MBIM_PROTOCOL_ERROR_CANCEL = 7, /*< nick=Cancel >*/
MBIM_PROTOCOL_ERROR_MAX_TRANSFER = 8 /*< nick=MaxTransfer >*/
} MbimProtocolError;
/**
* MbimStatusError:
* @MBIM_STATUS_ERROR_NONE: Success, no error.
* @MBIM_STATUS_ERROR_BUSY: Busy.
* @MBIM_STATUS_ERROR_FAILURE: Failure.
* @MBIM_STATUS_ERROR_SIM_NOT_INSERTED: SIM not inserted.
* @MBIM_STATUS_ERROR_BAD_SIM: Bad SIM.
* @MBIM_STATUS_ERROR_PIN_REQUIRED: PIN required.
* @MBIM_STATUS_ERROR_PIN_DISABLED: PIN disabled.
* @MBIM_STATUS_ERROR_NOT_REGISTERED: Not registered.
* @MBIM_STATUS_ERROR_PROVIDERS_NOT_FOUND: Providers not found.
* @MBIM_STATUS_ERROR_NO_DEVICE_SUPPORT: No device support.
* @MBIM_STATUS_ERROR_PROVIDER_NOT_VISIBLE: Provider not visible.
* @MBIM_STATUS_ERROR_DATA_CLASS_NOT_AVAILABLE: Data class not available.
* @MBIM_STATUS_ERROR_PACKET_SERVICE_DETACHED: Packet service detached.
* @MBIM_STATUS_ERROR_MAX_ACTIVATED_CONTEXTS: Max activated contexts.
* @MBIM_STATUS_ERROR_NOT_INITIALIZED: Not initialized.
* @MBIM_STATUS_ERROR_VOICE_CALL_IN_PROGRESS: Voice call in progress.
* @MBIM_STATUS_ERROR_CONTEXT_NOT_ACTIVATED: Context not activated.
* @MBIM_STATUS_ERROR_SERVICE_NOT_ACTIVATED: Service not activated.
* @MBIM_STATUS_ERROR_INVALID_ACCESS_STRING: Invalid access string.
* @MBIM_STATUS_ERROR_INVALID_USER_NAME_PWD: Invalid user name or password.
* @MBIM_STATUS_ERROR_RADIO_POWER_OFF: Radio power off.
* @MBIM_STATUS_ERROR_INVALID_PARAMETERS: Invalid parameters.
* @MBIM_STATUS_ERROR_READ_FAILURE: Read failure.
* @MBIM_STATUS_ERROR_WRITE_FAILURE: Write failure.
* @MBIM_STATUS_ERROR_NO_PHONEBOOK: No phonebook.
* @MBIM_STATUS_ERROR_PARAMETER_TOO_LONG: Parameter too long.
* @MBIM_STATUS_ERROR_STK_BUSY: SIM toolkit busy.
* @MBIM_STATUS_ERROR_OPERATION_NOT_ALLOWED: Operation not allowed.
* @MBIM_STATUS_ERROR_MEMORY_FAILURE: Memory failure.
* @MBIM_STATUS_ERROR_INVALID_MEMORY_INDEX: Invalid memory index.
* @MBIM_STATUS_ERROR_MEMORY_FULL: Memory full.
* @MBIM_STATUS_ERROR_FILTER_NOT_SUPPORTED: Filter not supported.
* @MBIM_STATUS_ERROR_DSS_INSTANCE_LIMIT: DSS instance limit.
* @MBIM_STATUS_ERROR_INVALID_DEVICE_SERVICE_OPERATION: Invalid device service operation.
* @MBIM_STATUS_ERROR_AUTH_INCORRECT_AUTN: Incorrect AUTN when sending authentication.
* @MBIM_STATUS_ERROR_AUTH_SYNC_FAILURE: Synchronization failure during the authentication.
* @MBIM_STATUS_ERROR_AUTH_AMF_NOT_SET: AMF bit not set in the authentication.
* @MBIM_STATUS_ERROR_SMS_UNKNOWN_SMSC_ADDRESS: Unknown SMSC address.
* @MBIM_STATUS_ERROR_SMS_NETWORK_TIMEOUT: Network timeout when sending SMS.
* @MBIM_STATUS_ERROR_SMS_LANG_NOT_SUPPORTED: Language not supported in SMS.
* @MBIM_STATUS_ERROR_SMS_ENCODING_NOT_SUPPORTED: Encoding not supported in SMS.
* @MBIM_STATUS_ERROR_SMS_FORMAT_NOT_SUPPORTED: Format not supported in SMS.
*
* Status of the MBIM request.
*/
typedef enum {
MBIM_STATUS_ERROR_NONE = 0, /*< nick=None >*/
MBIM_STATUS_ERROR_BUSY = 1, /*< nick=Busy >*/
MBIM_STATUS_ERROR_FAILURE = 2, /*< nick=Failure >*/
MBIM_STATUS_ERROR_SIM_NOT_INSERTED = 3, /*< nick=SimNotInserted >*/
MBIM_STATUS_ERROR_BAD_SIM = 4, /*< nick=BadSim >*/
MBIM_STATUS_ERROR_PIN_REQUIRED = 5, /*< nick=PinRequired >*/
MBIM_STATUS_ERROR_PIN_DISABLED = 6, /*< nick=PinDisabled >*/
MBIM_STATUS_ERROR_NOT_REGISTERED = 7, /*< nick=NotRegistered >*/
MBIM_STATUS_ERROR_PROVIDERS_NOT_FOUND = 8, /*< nick=ProvidersNotFound >*/
MBIM_STATUS_ERROR_NO_DEVICE_SUPPORT = 9, /*< nick=NoDeviceSupport >*/
MBIM_STATUS_ERROR_PROVIDER_NOT_VISIBLE = 10, /*< nick=ProviderNotVisible >*/
MBIM_STATUS_ERROR_DATA_CLASS_NOT_AVAILABLE = 11, /*< nick=DataClassNotAvailable >*/
MBIM_STATUS_ERROR_PACKET_SERVICE_DETACHED = 12, /*< nick=PacketServiceDetached >*/
MBIM_STATUS_ERROR_MAX_ACTIVATED_CONTEXTS = 13, /*< nick=MaxActivatedContexts >*/
MBIM_STATUS_ERROR_NOT_INITIALIZED = 14, /*< nick=NotInitialized >*/
MBIM_STATUS_ERROR_VOICE_CALL_IN_PROGRESS = 15, /*< nick=VoiceCallInProgress >*/
MBIM_STATUS_ERROR_CONTEXT_NOT_ACTIVATED = 16, /*< nick=ContextNotActivated >*/
MBIM_STATUS_ERROR_SERVICE_NOT_ACTIVATED = 17, /*< nick=ServiceNotActivated >*/
MBIM_STATUS_ERROR_INVALID_ACCESS_STRING = 18, /*< nick=InvalidAccessString >*/
MBIM_STATUS_ERROR_INVALID_USER_NAME_PWD = 19, /*< nick=InvalidUserNamePwd >*/
MBIM_STATUS_ERROR_RADIO_POWER_OFF = 20, /*< nick=RadioPowerOff >*/
MBIM_STATUS_ERROR_INVALID_PARAMETERS = 21, /*< nick=InvalidParameters >*/
MBIM_STATUS_ERROR_READ_FAILURE = 22, /*< nick=ReadFailure >*/
MBIM_STATUS_ERROR_WRITE_FAILURE = 23, /*< nick=WriteFailure >*/
/* 24 = reserved */
MBIM_STATUS_ERROR_NO_PHONEBOOK = 25, /*< nick=NoPhonebook >*/
MBIM_STATUS_ERROR_PARAMETER_TOO_LONG = 26, /*< nick=ParameterTooLong >*/
MBIM_STATUS_ERROR_STK_BUSY = 27, /*< nick=StkBusy >*/
MBIM_STATUS_ERROR_OPERATION_NOT_ALLOWED = 28, /*< nick=OperationNotAllowed >*/
MBIM_STATUS_ERROR_MEMORY_FAILURE = 29, /*< nick=MemoryFailure >*/
MBIM_STATUS_ERROR_INVALID_MEMORY_INDEX = 30, /*< nick=InvalidMemoryIndex >*/
MBIM_STATUS_ERROR_MEMORY_FULL = 31, /*< nick=MemoryFull >*/
MBIM_STATUS_ERROR_FILTER_NOT_SUPPORTED = 32, /*< nick=FilterNotSupported >*/
MBIM_STATUS_ERROR_DSS_INSTANCE_LIMIT = 33, /*< nick=DssInstanceLimit >*/
MBIM_STATUS_ERROR_INVALID_DEVICE_SERVICE_OPERATION = 34, /*< nick=InvalidDeviceServiceOperation >*/
MBIM_STATUS_ERROR_AUTH_INCORRECT_AUTN = 35, /*< nick=AuthIncorrectAuth >*/
MBIM_STATUS_ERROR_AUTH_SYNC_FAILURE = 36, /*< nick=AuthSyncFailure >*/
MBIM_STATUS_ERROR_AUTH_AMF_NOT_SET = 37, /*< nick=AuthAmfNotSet >*/
MBIM_STATUS_ERROR_SMS_UNKNOWN_SMSC_ADDRESS = 100, /*< nick=SmsUnknownSmscAddress >*/
MBIM_STATUS_ERROR_SMS_NETWORK_TIMEOUT = 101, /*< nick=SmsNetworkTimeout >*/
MBIM_STATUS_ERROR_SMS_LANG_NOT_SUPPORTED = 102, /*< nick=SmsLangNotSupported >*/
MBIM_STATUS_ERROR_SMS_ENCODING_NOT_SUPPORTED = 103, /*< nick=SmsEncodingNotSupported >*/
MBIM_STATUS_ERROR_SMS_FORMAT_NOT_SUPPORTED = 104 /*< nick=SmsFormatNotSupported >*/
} MbimStatusError;
#endif /* _LIBMBIM_GLIB_MBIM_ERRORS_H_ */
|