netdriver: bring netdriver.h in sync with hfuzz-cc
@@ -10,12 +10,14 @@ extern "C" {
#ifdef __cplusplus
#define HFND_FUZZING_ENTRY_FUNCTION(x, y) \
- int HonggfuzzNetDriver_main_required = 0; \
- extern "C" __attribute__((used)) int HonggfuzzNetDriver_main(x, y)
+ "extern const char* LIBHFNETDRIVER_module_netdriver;" \
+ "const char** LIBHFNETDRIVER_module_main = &LIBHFNETDRIVER_module_netdriver;" \
+ "extern \"C\" __attribute__((used)) int HonggfuzzNetDriver_main(x,y)"
#else /* ifdef __cplusplus */
#define HFND_FUZZING_ENTRY_FUNCTION(x, y) \
- int HonggfuzzNetDriver_main_required = 0; \
- __attribute__((used)) int HonggfuzzNetDriver_main(x, y)
+ "extern const char* LIBHFNETDRIVER_module_netdriver;" \
+ "const char** LIBHFNETDRIVER_module_main = &LIBHFNETDRIVER_module_netdriver;" \
+ "__attribute__((used)) int HonggfuzzNetDriver_main(x,y)"
#endif /* ifdef __cplusplus */
/*
