hunting/utils/ReturnCode/include/ReturnCode.h
2023-07-20 08:18:17 -07:00

28 lines
536 B
C

#ifndef RETURN_CODE_H
#define RETURN_CODE_H
enum C_RETURN_CODE
{
C_RETURN_CODE_OK = 0,
C_RETURN_CODE_NOT_OK,
C_RETURN_CODE_INVALID_PARAMENTER,
C_RETURN_CODE_END
};
typedef struct returnCodeC RETURN_CODE_C;
typedef struct returnCodeC
{
const char *(*printStringCode)(const RETURN_CODE_C);
const long int mCode;
} RETURN_CODE_C;
/*
** Make sure we can call this stuff from C++.
*/
#ifdef __cplusplus
extern "C"
{
#endif
const RETURN_CODE_C CreateReturnCode(const long int code);
#ifdef __cplusplus
}
#endif
#endif