Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Beam Positoning Monitor - Software
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Beam Positoning Monitor - Software
Commits
3e17069d
Commit
3e17069d
authored
10 years ago
by
Lucas Russo
Browse files
Options
Downloads
Patches
Plain Diff
libclient/bpm_client_err.*: add error files
parent
d63fe592
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libclient/bpm_client_err.c
+23
-0
23 additions, 0 deletions
libclient/bpm_client_err.c
libclient/bpm_client_err.h
+26
-0
26 additions, 0 deletions
libclient/bpm_client_err.h
with
49 additions
and
0 deletions
libclient/bpm_client_err.c
0 → 100644
+
23
−
0
View file @
3e17069d
/*
* Copyright (C) 2014 LNLS (www.lnls.br)
* Author: Lucas Russo <lucas.russo@lnls.br>
*
* Released according to the GNU LGPL, version 3 or any later version.
*/
/* Error definitions and output stringification based on the work available
* at the libsllp project repository: https://github.com/brunoseivam/libsllp */
#include
"bpm_client_err.h"
static
const
char
*
bpm_client_err
[
BPM_CLIENT_ERR_END
]
=
{
[
BPM_CLIENT_SUCCESS
]
=
"Success"
,
[
BPM_CLIENT_ERR_ALLOC
]
=
"Could not allocate memory"
,
};
/* Convert enumeration type to string */
const
char
*
bpm_client_err_str
(
bpm_client_err_e
err
)
{
return
bpm_client_err
[
err
];
}
This diff is collapsed.
Click to expand it.
libclient/bpm_client_err.h
0 → 100644
+
26
−
0
View file @
3e17069d
/*
* Copyright (C) 2014 LNLS (www.lnls.br)
* Author: Lucas Russo <lucas.russo@lnls.br>
*
* Released according to the GNU LGPL, version 3 or any later version.
*/
/* Error definitions and output stringification based on the work available
* at the libsllp project repository: https://github.com/brunoseivam/libsllp */
#ifndef _BPM_CLIENT_ERR_H_
#define _BPM_CLIENT_ERR_H_
enum
_bpm_client_err_e
{
BPM_CLIENT_SUCCESS
=
0
,
/* No error */
BPM_CLIENT_ERR_ALLOC
,
/* Could not allocate memory */
BPM_CLIENT_ERR_END
/* End of enum marker */
};
typedef
enum
_bpm_client_err_e
bpm_client_err_e
;
/* Convert enumeration type to string */
const
char
*
bpm_client_err_str
(
bpm_client_err_e
err
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
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