#ifndef __CONSOLE_H__
#define __CONSOLE_H__

typedef void (*command_fct)(const char * cmd);

typedef struct {
  const char * name;
  command_fct  fct;
} command_t;

#ifdef __cplusplus
extern "C" {
#endif

  void console_init(command_t * commands);
  void console_recv(char c);

#ifdef __cplusplus
}
#endif

#endif /* __CONSOLE_H__ */
