plugin_interface.h 401 B

12345678910111213141516171819
  1. /**
  2. * @file plugin_interface.h
  3. * @brief Example plugin interface.
  4. *
  5. * Common interface between a plugin and host application
  6. */
  7. #pragma once
  8. #include <stdint.h>
  9. #include <stddef.h>
  10. #define PLUGIN_APP_ID "plugin_wiegand"
  11. #define PLUGIN_API_VERSION 1
  12. typedef struct {
  13. const char* name;
  14. int (*count)(uint8_t, uint64_t);
  15. int (*description)(uint8_t, uint64_t, size_t);
  16. } PluginWiegand;