forked from GregoryMorse/GhidraDec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin_config.h
41 lines (29 loc) · 852 Bytes
/
plugin_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @file idaplugin/plugin_config.h
* @brief Module deals with RetDec plugin configuration.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#ifndef IDAPLUGIN_PLUGIN_CONFIG_H
#define IDAPLUGIN_PLUGIN_CONFIG_H
#include "defs.h"
namespace idaplugin {
bool pluginConfigurationMenu(RdGlobalInfo& rdgi);
struct show_options_ah_t : public action_handler_t
{
show_options_ah_t(RdGlobalInfo* i) : rdgi(i) {}
virtual int idaapi activate(action_activation_ctx_t *)
{
pluginConfigurationMenu(*rdgi);
return false;
}
virtual action_state_t idaapi update(action_update_ctx_t *)
{
return AST_ENABLE_ALWAYS;
}
RdGlobalInfo* rdgi = nullptr;
};
bool addConfigurationMenuOption(RdGlobalInfo& rdgi);
bool readConfigFile(RdGlobalInfo& rdgi);
void saveConfigTofile(RdGlobalInfo& rdgi);
} // namespace idaplugin
#endif