Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdmngr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IOPSYS
mdmngr
Commits
523d4119
Commit
523d4119
authored
6 years ago
by
Arun Muthusamy
Browse files
Options
Downloads
Patches
Plain Diff
add more enum related to success and general codes
parent
9e66f99e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
error.c
+31
-1
31 additions, 1 deletion
error.c
with
31 additions
and
1 deletion
error.c
+
31
−
1
View file @
523d4119
#include
"error.h"
#include
"error.h"
const
char
*
libmobile_success
[
__LIBMOBILE_SUCCESS_MAX
]
=
{
[
LIBMOBILE_SSTATUS_SUCCESS
]
=
"Success"
,
[
LIBMOBILE_SSTATUS_SIM_ACTIVATED
]
=
"Sim activated"
,
[
LIBMOBILE_SSTATUS_NEW_PIN_SET
]
=
"new pin set"
,
[
LIBMOBILE_SSTATUS_PIN_DISABLED
]
=
"Pin disabled"
,
[
LIBMOBILE_SSTATUS_PIN_ENABLED
]
=
"Pin enabled"
,
[
LIBMOBILE_SSTATUS_PIN_CORRECT
]
=
"Correct pin"
,
[
LIBMOBILE_SSTATUS_SIM_UNLOCKED
]
=
"sim unlocked"
,
[
LIBMOBILE_SSTATUS_PROFILE_SET
]
=
"Profile set"
,
[
LIBMOBILE_SSTATUS_PROFILE_CREATED
]
=
"Profile created"
,
[
LIBMOBILE_SSTATUS_PROFILE_DELETED
]
=
"Profile deleted"
,
[
LIBMOBILE_SSTATUS_CONNECTION_CONNECT_ATTEMPT
]
=
"Attempting to connect"
,
[
LIBMOBILE_SSTATUS_CONNECTION_DISCONNECT_ATTEMPT
]
=
"Attempting to disconnect network"
,
[
LIBMOBILE_SSTATUS_ROAMING_ENABLED
]
=
"Roaming enabled"
,
[
LIBMOBILE_SSTATUS_ROAMING_DISABLED
]
=
"Roaming disabled"
};
const
char
*
libmobile_generic
[
__LIBMOBILE_GENERIC_MAX
]
=
{
[
LIBMOBILE_GSTATUS_CONNECTION_CONNECTED
]
=
"Connection connected"
,
[
LIBMOBILE_GSTATUS_CONNECTION_DISCONNECTED
]
=
"Connection disconnected"
,
[
LIBMOBILE_GSTATUS_NETWORK_ENABLED
]
=
"Network enabled"
,
[
LIBMOBILE_GSTATUS_NETWORK_DISABLED
]
=
"Network disabled"
,
[
LIBMOBILE_GSTATUS_SIM_ACTIVATED
]
=
"Sim is activated"
,
[
LIBMOBILE_GSTATUS_PIN_ENABLED
]
=
"Pin enabled"
,
[
LIBMOBILE_GSTATUS_PIN_DISABLED
]
=
"Pin disabled"
};
const
char
*
libmobile_error
[
__LIBMOBILE_STATUS_LAST
]
=
{
const
char
*
libmobile_error
[
__LIBMOBILE_STATUS_LAST
]
=
{
[
LIBMOBILE_STATUS_
OK
]
=
"
Success
"
,
[
LIBMOBILE_STATUS_
FAIL
]
=
"
Failure
"
,
[
LIBMOBILE_STATUS_NO_DEVICE
]
=
"No device configured with this object"
,
[
LIBMOBILE_STATUS_NO_DEVICE
]
=
"No device configured with this object"
,
[
LIBMOBILE_STATUS_SIM_NOT_ACTIVE
]
=
"Sim not activated"
,
[
LIBMOBILE_STATUS_SIM_NOT_ACTIVE
]
=
"Sim not activated"
,
[
LIBMOBILE_STATUS_SIM_ACTIVE
]
=
"Sim active"
,
[
LIBMOBILE_STATUS_SIM_ACTIVE
]
=
"Sim active"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment