latch.h 354 B

12345678910111213141516171819202122
  1. #ifndef CX_ZIVUOS_LATCH_H_INCLUDED
  2. #define CX_ZIVUOS_LATCH_H_INCLUDED
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include "zivu_types.h"
  6. #include "hash.h"
  7. typedef struct zv_latch_s {
  8. zv_universal_param_t data[1];
  9. zv_hash_t hash;
  10. zv_size_t size;
  11. bool changed;
  12. #ifndef ZV_DISABLE_DYNAMIC
  13. bool is_dynamic;
  14. #endif
  15. } zv_latch_t;
  16. #endif