about summary refs log tree commit diff
path: root/frida_mode/include/js.h
blob: a5ecb7120f1700bf77239b06bf51b0fa8c433e6d (plain) (blame)
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
#ifndef _JS_H
#define _JS_H

#include "frida-gumjs.h"

typedef gboolean (*js_api_stalker_callback_t)(const cs_insn *insn,
                                              gboolean begin, gboolean excluded,
                                              GumStalkerOutput *output);

extern unsigned char api_js[];
extern unsigned int  api_js_len;

extern gboolean                  js_done;
extern js_api_stalker_callback_t js_user_callback;

/* Frida Mode */

void js_config(void);

void js_start(void);

gboolean js_stalker_callback(const cs_insn *insn, gboolean begin,
                             gboolean excluded, GumStalkerOutput *output);

#endif