Rizin
unix-like reverse engineering framework and cli tools
pipe.c
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2015-2020 pancake <pancake@nopcode.org>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#include <
rz_lib.h
>
5
#include <
rz_core.h
>
6
#include <
rz_lang.h
>
7
#if __WINDOWS__
8
#include <windows.h>
9
#endif
10
#ifdef _MSC_VER
11
#include <process.h>
12
#endif
13
#include "
pipe_helper.h
"
14
15
static
int
lang_pipe_file
(
RzLang
*lang,
const
char
*
file
) {
16
return
lang_pipe_run
(lang,
file
, -1);
17
}
18
19
RzLangPlugin
rz_lang_plugin_pipe
= {
20
.
name
=
"pipe"
,
21
.ext =
"pipe"
,
22
.license =
"LGPL"
,
23
.desc =
"Use #!pipe node script.js"
,
24
.run =
lang_pipe_run
,
25
.run_file = (
void
*)
lang_pipe_file
,
26
};
27
28
#ifndef RZ_PLUGIN_INCORE
29
RZ_API
RzLibStruct
rizin_plugin
= {
30
.
type
=
RZ_LIB_TYPE_LANG
,
31
.data = &
rz_lang_plugin_pipe
,
32
.version =
RZ_VERSION
33
};
34
#endif
RZ_API
#define RZ_API
Definition:
core_plugin_example.c:36
lang_pipe_file
static int lang_pipe_file(RzLang *lang, const char *file)
Definition:
pipe.c:15
rizin_plugin
RZ_API RzLibStruct rizin_plugin
Definition:
pipe.c:29
rz_lang_plugin_pipe
RzLangPlugin rz_lang_plugin_pipe
Definition:
pipe.c:19
lang_pipe_run
RZ_IPI int lang_pipe_run(RzLang *lang, const char *code, int len)
Definition:
pipe_helper.c:132
pipe_helper.h
rz_core.h
rz_lang.h
rz_lib.h
RZ_LIB_TYPE_LANG
@ RZ_LIB_TYPE_LANG
Definition:
rz_lib.h:71
RZ_VERSION
#define RZ_VERSION
Definition:
rz_version.h:8
file
Definition:
gzappend.c:170
rz_lang_plugin_t
Definition:
rz_lang.h:27
rz_lang_plugin_t::name
const char * name
Definition:
rz_lang.h:28
rz_lang_t
Definition:
rz_lang.h:17
rz_lib_struct_t
Definition:
rz_lib.h:57
rz_lib_struct_t::type
int type
Definition:
rz_lib.h:58
librz
lang
p
pipe.c
Generated by
1.9.1