mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-10-01 14:07:54 +00:00
* Removed dependencies on App Struct in Plugin Module * Cleaned up headers * Only check navigation events if plugin doesnt handle the event
22 lines
592 B
C
22 lines
592 B
C
#pragma once
|
|
|
|
#include <lib/subghz/types.h>
|
|
#include "protocol_items.h"
|
|
|
|
#define PROTOPIRATE_PROTOCOL_PLUGIN_APP_ID "protopirate_protocol_plugins"
|
|
#define PROTOPIRATE_PROTOCOL_PLUGIN_API_VERSION 2U
|
|
|
|
typedef enum {
|
|
ProtoPirateProtocolPluginKindRx = 0,
|
|
ProtoPirateProtocolPluginKindTx,
|
|
} ProtoPirateProtocolPluginKind;
|
|
|
|
typedef struct {
|
|
const char* plugin_name;
|
|
ProtoPirateProtocolPluginKind kind;
|
|
ProtoPirateProtocolRegistryRoute route;
|
|
const char* protocol_name;
|
|
const SubGhzProtocolRegistry* registry;
|
|
void (*release)(void);
|
|
} ProtoPirateProtocolPlugin;
|