2013-08-08 00:45:56 -04:00
|
|
|
/*
|
2014-02-11 01:07:04 -05:00
|
|
|
* Copyright 2010-2014 Branimir Karadzic. All rights reserved.
|
2013-08-08 00:45:56 -04:00
|
|
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2013-11-14 22:10:10 -05:00
|
|
|
#ifndef CMD_H_HEADER_GUARD
|
|
|
|
#define CMD_H_HEADER_GUARD
|
2013-08-08 00:45:56 -04:00
|
|
|
|
|
|
|
struct CmdContext;
|
|
|
|
typedef int (*ConsoleFn)(CmdContext* _context, void* _userData, int _argc, char const* const* _argv);
|
|
|
|
|
|
|
|
void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
|
|
|
|
void cmdExec(const char* _cmd);
|
|
|
|
|
2013-11-14 22:10:10 -05:00
|
|
|
#endif // CMD_H_HEADER_GUARD
|