Skip to content
Snippets Groups Projects
Commit 3e17069d authored by Lucas Russo's avatar Lucas Russo
Browse files

libclient/bpm_client_err.*: add error files

parent d63fe592
No related merge requests found
/*
* 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];
}
/*
* 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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment