plugin_wiegand.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "plugin_interface.h"
  2. #include <flipper_application/flipper_application.h>
  3. static int wiegand_format_count(uint8_t bit_length, uint64_t bits) {
  4. UNUSED(bit_length);
  5. UNUSED(bits);
  6. return 0;
  7. }
  8. static void wiegand_format_description(
  9. uint8_t bit_length,
  10. uint64_t bits,
  11. size_t index,
  12. FuriString* description) {
  13. UNUSED(bit_length);
  14. UNUSED(bits);
  15. UNUSED(index);
  16. UNUSED(description);
  17. }
  18. /* Actual implementation of app<>plugin interface */
  19. static const PluginWiegand plugin_wiegand = {
  20. .name = "Plugin Wiegand",
  21. .count = &wiegand_format_count,
  22. .description = &wiegand_format_description,
  23. };
  24. /* Plugin descriptor to comply with basic plugin specification */
  25. static const FlipperAppPluginDescriptor plugin_wiegand_descriptor = {
  26. .appid = PLUGIN_APP_ID,
  27. .ep_api_version = PLUGIN_API_VERSION,
  28. .entry_point = &plugin_wiegand,
  29. };
  30. /* Plugin entry point - must return a pointer to const descriptor */
  31. const FlipperAppPluginDescriptor* plugin_wiegand_ep(void) {
  32. return &plugin_wiegand_descriptor;
  33. }