aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_common_code.h
blob: 84670a0bbf1c5c3869281785a1836f6ab76d2c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __FUZZ_COMMON_CODE_H__
#define __FUZZ_COMMON_CODE_H__

#include "ndpi_api.h"

#ifdef __cplusplus
extern "C"
{
#endif

void fuzz_init_detection_module(struct ndpi_detection_module_struct **ndpi_info_mod,
				int enable_log);

/* To allow memory allocation failures */
void fuzz_set_alloc_callbacks(void);
void fuzz_set_alloc_seed(int seed);
void fuzz_set_alloc_callbacks_and_seed(int seed);

#ifdef __cplusplus
}
#endif

#endif