flipper_format_stream_i.h 872 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "flipper_format_stream.h"
  3. static const char flipper_format_delimiter = ':';
  4. static const char flipper_format_comment = '#';
  5. static const char flipper_format_eoln = '\n';
  6. static const char flipper_format_eolr = '\r';
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /**
  11. * Write Flipper Format EOL to the stream
  12. * @param stream
  13. * @return true
  14. * @return false
  15. */
  16. bool flipper_format_stream_write_eol(Stream* stream);
  17. /**
  18. * Seek to the key from the current position of the stream.
  19. * Position will be at the beginning of the value corresponding to the key, if the key is found,, or at the end of the stream.
  20. * @param stream
  21. * @param key
  22. * @param strict_mode
  23. * @return true key is found
  24. * @return false key is not found
  25. */
  26. bool flipper_format_stream_seek_to_key(Stream* stream, const char* key, bool strict_mode);
  27. #ifdef __cplusplus
  28. }
  29. #endif