git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes to the module loader to handle specific errors from modules
[tpg/acess2.git]
/
Kernel
/
include
/
modules.h
diff --git
a/Kernel/include/modules.h
b/Kernel/include/modules.h
index
d53f774
..
8dc720a
100644
(file)
--- a/
Kernel/include/modules.h
+++ b/
Kernel/include/modules.h
@@
-36,8
+36,15
@@
typedef struct sModule {
char **Dependencies; // NULL Terminated List
} __attribute__((packed)) tModule;
char **Dependencies; // NULL Terminated List
} __attribute__((packed)) tModule;
-#define MODULE_INIT_SUCCESS 1
-#define MODULE_INIT_FAILURE 0
+enum eModuleErrors
+{
+ MODULE_ERR_OK, //!< No Error
+ MODULE_ERR_MISC, //!< Misc Error
+ MODULE_ERR_NOTNEEDED, //!< Module not needed
+ MODULE_ERR_MALLOC, //!< Error with malloc/realloc/calloc
+
+ MODULE_ERR_MAX
+};
/**
* \brief Module Loader definition
/**
* \brief Module Loader definition
UCC
git Repository :: git.ucc.asn.au