Skip to content

Commit

Permalink
Remove deprecated ETH_PLUGIN_RESULT_OK_ALIAS from plugin API
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Apr 17, 2024
1 parent 985dd92 commit 2e97cdf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions doc/ethapp_plugins.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ typedef struct ethPluginInitContract_t {
uint8_t *selector; // 4 bytes selector
uint32_t dataSize;
char *alias; // 29 bytes alias if ETH_PLUGIN_RESULT_OK_ALIAS set
uint8_t result;
} ethPluginInitContract_t;
Expand Down
1 change: 0 additions & 1 deletion src/eth_plugin_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ eth_plugin_result_t eth_plugin_call(int method, void *parameter) {
(uint8_t *) &dataContext.tokenContext.pluginContext;
((ethPluginInitContract_t *) parameter)->pluginContextLength =
sizeof(dataContext.tokenContext.pluginContext);
((ethPluginInitContract_t *) parameter)->alias = dataContext.tokenContext.pluginName;
break;
case ETH_PLUGIN_PROVIDE_PARAMETER:
PRINTF("-- PLUGIN PROVIDE PARAMETER --\n");
Expand Down
3 changes: 0 additions & 3 deletions src_common/eth_plugin_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ typedef enum eth_plugin_result_e {
// Successful return values
ETH_PLUGIN_RESULT_SUCCESSFUL = 0x03, // Used for comparison
ETH_PLUGIN_RESULT_OK = 0x04,
ETH_PLUGIN_RESULT_OK_ALIAS = 0x05,
ETH_PLUGIN_RESULT_FALLBACK = 0x06,
} eth_plugin_result_t;

Expand Down Expand Up @@ -118,8 +117,6 @@ typedef struct ethPluginInitContract_s {
const uint8_t *selector; // 4 bytes selector
size_t dataSize;

char *alias; // 29 bytes alias if ETH_PLUGIN_RESULT_OK_ALIAS set

} ethPluginInitContract_t;
// void handle_init_contract(ethPluginInitContract_t *parameters);

Expand Down

0 comments on commit 2e97cdf

Please sign in to comment.