furi-hal-info.h 853 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @file furi-hal-info.h
  3. * Device info HAL API
  4. */
  5. #pragma once
  6. #include <stdbool.h>
  7. #include <stdint.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /** Callback type called every time another key-value pair of device information is ready
  12. *
  13. * @param key[in] device information type identifier
  14. * @param value[in] device information value
  15. * @param last[in] whether the passed key-value pair is the last one
  16. * @param context[in] to pass to callback
  17. */
  18. typedef void (*FuriHalInfoValueCallback) (const char* key, const char* value, bool last, void* context);
  19. /** Get device information
  20. *
  21. * @param[in] callback callback to provide with new data
  22. * @param[in] context context to pass to callback
  23. */
  24. void furi_hal_info_get(FuriHalInfoValueCallback callback, void* context);
  25. #ifdef __cplusplus
  26. }
  27. #endif