-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsystem.hpp
63 lines (44 loc) · 1.46 KB
/
system.hpp
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
Patchdiff2
Portions (C) 2010 Nicolas Pouvesle
Portions (C) 2007 - 2009 Tenable Network Security, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __SYSTEM_HPP__
#define __SYSTEM_HPP__
#include "sig.hpp"
#include "options.hpp"
#define PATCHDIFF_IDC "#include <idc.idc>\n\nstatic main (void)\n{\n RunPlugin (\"patchdiff\", 1);\n Exit(1);\n}\n"
#define SPREF_INT 1
#define IPC_DATA 0
#define IPC_DONE 1
#define IPC_END 3
#define IPC_SERVER 1
#define IPC_CLIENT 2
struct ipc_config
{
long init;
void * data;
};
typedef struct ipc_config ipc_config_t;
struct idata
{
long cmd;
char data[256];
};
typedef struct idata idata_t;
bool system_get_pref(char *, void *, int);
slist_t * system_parse_idb(ea_t, char *, options_t *);
bool ipc_init(char *, int, long);
void ipc_close();
bool ipc_recv_cmd(char *, size_t);
bool ipc_recv_cmd_end();
#endif