Put error_state into into it's own file.

This commit is contained in:
Joe Thornber
2013-08-16 14:07:04 +01:00
parent 94bd3aef3b
commit 67551d81f1
5 changed files with 48 additions and 31 deletions

18
base/error_state.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef BASE_ERROR_STATE_H
#define BASE_ERROR_STATE_H
//----------------------------------------------------------------
namespace base {
enum error_state {
NO_ERROR,
NON_FATAL, // eg, lost blocks
FATAL // needs fixing before pool can be activated
};
error_state combine_errors(error_state lhs, error_state rhs);
}
//----------------------------------------------------------------
#endif