cmd.h 414 B

123456789101112131415
  1. /*
  2. * Copyright 2010-2013 Branimir Karadzic. All rights reserved.
  3. * License: http://www.opensource.org/licenses/BSD-2-Clause
  4. */
  5. #ifndef __CMD_H__
  6. #define __CMD_H__
  7. struct CmdContext;
  8. typedef int (*ConsoleFn)(CmdContext* _context, void* _userData, int _argc, char const* const* _argv);
  9. void cmdAdd(const char* _name, ConsoleFn _fn, void* _userData = NULL);
  10. void cmdExec(const char* _cmd);
  11. #endif // __CMD_H__