diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-03 01:43:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-03 01:43:03 +0000 |
commit | b4973888aeaea2dde6058bc06c3f6631349e7f3c (patch) | |
tree | 010de10692b330d7634ad3090fb94d14c101f484 /src/core/func.h | |
parent | 67f8a7a783e550cab8e6a77d997b31815ee8cd7e (diff) |
command buffer handling
engine function parsing
buffered client console
Diffstat (limited to 'src/core/func.h')
-rw-r--r-- | src/core/func.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/func.h b/src/core/func.h new file mode 100644 index 0000000..9d9f352 --- /dev/null +++ b/src/core/func.h @@ -0,0 +1,30 @@ +/* + core/core.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_CORE_FUNC_H__ +#define __INCLUDED_CORE_FUNC_H__ + +#include <sstream> + +namespace core { + +/// engine functions registry +namespace func { + typedef void (* Func)(std::stringstream &args); + + /// register a function pointer + void add(const char *functionname, Func functionptr); + + /// unregister a function pointer + void remove(std:: string functionname); + + /// find a fuction + Func find(std::string functionname); +} + +} + +#endif // __INCLUDED_CORE_FUNC_H__ |