status: Move status_t type and functions to separate files

This commit is contained in:
Martin Willi
2015-04-16 14:50:05 +02:00
parent 001a22e2c1
commit 1e02eddb72
6 changed files with 125 additions and 116 deletions
-31
View File
@@ -39,21 +39,6 @@
#include <threading/mutex.h>
#include <threading/condvar.h>
ENUM(status_names, SUCCESS, NEED_MORE,
"SUCCESS",
"FAILED",
"OUT_OF_RES",
"ALREADY_DONE",
"NOT_SUPPORTED",
"INVALID_ARG",
"NOT_FOUND",
"PARSE_ERROR",
"VERIFY_ERROR",
"INVALID_STATE",
"DESTROY_ME",
"NEED_MORE",
);
/**
* Described in header.
*/
@@ -299,22 +284,6 @@ bool return_false()
return FALSE;
}
/**
* returns FAILED
*/
status_t return_failed()
{
return FAILED;
}
/**
* returns SUCCESS
*/
status_t return_success()
{
return SUCCESS;
}
/**
* nop operation
*/