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 
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
31  .data = &rz_lang_plugin_pipe,
32  .version = RZ_VERSION
33 };
34 #endif
#define RZ_API
static int lang_pipe_file(RzLang *lang, const char *file)
Definition: pipe.c:15
RZ_API RzLibStruct rizin_plugin
Definition: pipe.c:29
RzLangPlugin rz_lang_plugin_pipe
Definition: pipe.c:19
RZ_IPI int lang_pipe_run(RzLang *lang, const char *code, int len)
Definition: pipe_helper.c:132
@ RZ_LIB_TYPE_LANG
Definition: rz_lib.h:71
#define RZ_VERSION
Definition: rz_version.h:8
Definition: gzappend.c:170
const char * name
Definition: rz_lang.h:28