Console.h 328 B

123456789101112131415161718
  1. #ifndef CONSOLE_H
  2. #define CONSOLE_H
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #define CONSOLE_BUFFER_SIZE 1024
  6. typedef struct ConsoleLine {
  7. uint32_t data[CONSOLE_BUFFER_SIZE];
  8. int length;
  9. } ConsoleLine;
  10. bool initConsole();
  11. const char* getConsoleError();
  12. const ConsoleLine* readConsoleLine(const char* prefix);
  13. #endif