Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/func.h')
-rw-r--r--src/core/func.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/core/func.h b/src/core/func.h
index 9d9f352..901490e 100644
--- a/src/core/func.h
+++ b/src/core/func.h
@@ -10,21 +10,19 @@
#include <sstream>
namespace core {
-
-/// engine functions registry
-namespace func {
+ /// function pointer type
typedef void (* Func)(std::stringstream &args);
/// register a function pointer
- void add(const char *functionname, Func functionptr);
+ void func_register(const char *functionname, Func functionptr);
/// unregister a function pointer
- void remove(std:: string functionname);
-
- /// find a fuction
- Func find(std::string functionname);
-}
+ void func_unregister(std:: string functionname);
+ /// find a fuction pointer
+ /** Returns 0 if the function pointer could not be found
+ */
+ Func func_find(std::string functionname);
}
#endif // __INCLUDED_CORE_FUNC_H__