mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-11 17:16:03 +00:00
Add missing 'yara.mk'
This commit is contained in:
parent
afedcc0074
commit
639bdf0b1e
@ -10,23 +10,22 @@
|
||||
#undef R_IPI
|
||||
#define R_IPI static
|
||||
|
||||
void (*r_yr_initialize)(void) = NULL;
|
||||
int (*r_yr_compiler_add_file)(
|
||||
static void (*r_yr_initialize)(void) = NULL;
|
||||
static int (*r_yr_compiler_add_file)(
|
||||
YR_COMPILER* compiler,
|
||||
FILE* rules_file,
|
||||
const char* namespace_);
|
||||
void (*r_yr_finalize)(void);
|
||||
int (*r_yr_compiler_create)( YR_COMPILER** compiler);
|
||||
void (*r_yr_compiler_destroy)( YR_COMPILER* compiler);
|
||||
static void (*r_yr_finalize)(void);
|
||||
static int (*r_yr_compiler_create)( YR_COMPILER** compiler);
|
||||
static void (*r_yr_compiler_destroy)( YR_COMPILER* compiler);
|
||||
|
||||
int (*r_yr_compiler_push_file_name)(
|
||||
static int (*r_yr_compiler_push_file_name)(
|
||||
YR_COMPILER* compiler,
|
||||
const char* file_name);
|
||||
int (*r_yr_compiler_get_rules)(
|
||||
static int (*r_yr_compiler_get_rules)(
|
||||
YR_COMPILER* compiler,
|
||||
YR_RULES** rules);
|
||||
|
||||
int (*r_yr_rules_scan_mem)(
|
||||
static int (*r_yr_rules_scan_mem)(
|
||||
YR_RULES* rules,
|
||||
uint8_t* buffer,
|
||||
size_t buffer_size,
|
||||
@ -34,7 +33,7 @@ int (*r_yr_rules_scan_mem)(
|
||||
void* user_data,
|
||||
int fast_scan_mode,
|
||||
int timeout) = NULL;
|
||||
int (*r_yr_get_tidx)(void);
|
||||
static int (*r_yr_get_tidx)(void);
|
||||
|
||||
|
||||
/* ---- */
|
||||
|
20
libr/core/p/yara.mk
Normal file
20
libr/core/p/yara.mk
Normal file
@ -0,0 +1,20 @@
|
||||
CORE_OBJ_YARA=core_yara.o
|
||||
|
||||
#CORE_SHARED_YARA=../../shlr/yara/code.o
|
||||
#CORE_SHARED_YARA+=../../shlr/yara/class.o
|
||||
#CORE_SHARED_YARA+=../../shlr/yara/ops.o
|
||||
|
||||
CORE_SHARED2_YARA=$(addprefix ../,${CORE_SHARED_YARA})
|
||||
CORE_OBJ_YARA+=${CORE_SHARED2_YARA}
|
||||
CORE_SHARED2_YARA=
|
||||
|
||||
STATIC_OBJ+=${CORE_OBJ_YARA}
|
||||
#SHARED_OBJ+=${CORE_OBJ_YARA}
|
||||
CORE_TARGET_YARA=core_yara.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${CORE_TARGET_YARA}
|
||||
|
||||
${CORE_TARGET_YARA}: ${CORE_OBJ_YARA}
|
||||
${CC} $(call libname,core_yara) ${CFLAGS} \
|
||||
-o core_yara.${EXT_SO} \
|
||||
${CORE_OBJ_YARA} ${CORE_SHARED2_YARA}
|
@ -38,10 +38,11 @@ R_LIB_VERSION_HEADER(r_core);
|
||||
#define R_CORE_BLOCKSIZE 0x100
|
||||
#define R_CORE_BLOCKSIZE_MAX 0x3200000 /* 32MB */
|
||||
|
||||
#define R_CORE_ANAL_GRAPHLINES 0x1
|
||||
#define R_CORE_ANAL_GRAPHBODY 0x2
|
||||
#define R_CORE_ANAL_GRAPHDIFF 0x4
|
||||
#define R_CORE_ANAL_JSON 0x8
|
||||
#define R_CORE_ANAL_GRAPHLINES 1
|
||||
#define R_CORE_ANAL_GRAPHBODY 2
|
||||
#define R_CORE_ANAL_GRAPHDIFF 4
|
||||
#define R_CORE_ANAL_JSON 8
|
||||
#define R_CORE_ANAL_KEYVALUE 16
|
||||
|
||||
/* rtr */
|
||||
#define RTR_PROT_RAP 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user