Console.h 397 B

1234567891011121314151617181920212223242526
  1. #ifndef CONSOLE_H
  2. #define CONSOLE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdbool.h>
  7. #include <stdint.h>
  8. #define CONSOLE_BUFFER_SIZE 1024
  9. typedef struct ConsoleLine {
  10. uint32_t data[CONSOLE_BUFFER_SIZE];
  11. int length;
  12. } ConsoleLine;
  13. bool initConsole();
  14. const char* getConsoleError();
  15. const ConsoleLine* readConsoleLine(const char* prefix);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif