2020-02-17 20:53:42 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// \file status.h
|
|
|
|
/// \brief Generic status code.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WF_STATUS_H
|
|
|
|
#define WF_STATUS_H
|
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
#define WF_GOOD 0 ///< Positive status code.
|
|
|
|
#define WF_BAD 1 ///< Generic negative status code.
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
#define WF_BAD_NOTIMPLEMENTED 2 ///< The called function is not implemented (yet).
|
|
|
|
#define WF_BAD_TIMEOUT 3 ///< A timeout occured.
|
|
|
|
#define WF_BAD_BUSY 4 ///< Resource is busy, try again later.
|
|
|
|
#define WF_BAD_FORMAT 5 ///< Invalid format.
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
#define WF_BAD_NOENTRY 101 ///< Entry not found.
|
|
|
|
#define WF_BAD_ACCESS_DENIED 102 ///< Access is denied.
|
2019-03-26 22:04:53 +00:00
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
/// Status code.
|
2019-03-26 22:04:53 +00:00
|
|
|
typedef int wf_status;
|
|
|
|
|
|
|
|
#endif
|