about summary refs log tree commit diff
path: root/include/forkserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/forkserver.h')
-rw-r--r--include/forkserver.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/include/forkserver.h b/include/forkserver.h
index 227f75c1..2418381f 100644
--- a/include/forkserver.h
+++ b/include/forkserver.h
@@ -39,6 +39,7 @@
  */
 
 typedef enum NyxReturnValue {
+
   Normal,
   Crash,
   Asan,
@@ -47,22 +48,23 @@ typedef enum NyxReturnValue {
   Error,
   IoError,
   Abort,
+
 } NyxReturnValue;
 
-typedef struct{
-  void* (*nyx_new)(const char *sharedir,
-            const char *workdir,
-            uint32_t worker_id,
-            uint32_t cpu_id,
-            bool create_snapshot);
+typedef struct {
+
+  void *(*nyx_new)(const char *sharedir, const char *workdir,
+                   uint32_t worker_id, uint32_t cpu_id, bool create_snapshot);
   void (*nyx_shutdown)(void *qemu_process);
   void (*nyx_option_set_reload_mode)(void *qemu_process, bool enable);
-  void (*nyx_option_set_timeout)(void *qemu_process, uint8_t timeout_sec, uint32_t timeout_usec);
+  void (*nyx_option_set_timeout)(void *qemu_process, uint8_t timeout_sec,
+                                 uint32_t timeout_usec);
   void (*nyx_option_apply)(void *qemu_process);
   void (*nyx_set_afl_input)(void *qemu_process, uint8_t *buffer, uint32_t size);
   enum NyxReturnValue (*nyx_exec)(void *qemu_process);
-  uint8_t* (*nyx_get_bitmap_buffer)(void *qemu_process);
+  uint8_t *(*nyx_get_bitmap_buffer)(void *qemu_process);
   size_t (*nyx_get_bitmap_buffer_size)(void *qemu_process);
+
 } nyx_plugin_handler_t;
 
 #endif
@@ -156,14 +158,14 @@ typedef struct afl_forkserver {
   u8 kill_signal;
 
 #ifdef __linux__
-  nyx_plugin_handler_t* nyx_handlers;
-  char *out_dir_path;                   /* path to the output directory     */
-  u8 nyx_mode;                          /* if running in nyx mode or not    */
-  bool nyx_parent;                      /* create initial snapshot          */
-  bool nyx_standalone;                  /* don't serialize the snapshot     */
-  void* nyx_runner;                     /* nyx runner object                */
-  u32 nyx_id;                           /* nyx runner id (0 -> master)      */ 
-  u32 nyx_bind_cpu_id;                  /* nyx runner cpu id                */ 
+  nyx_plugin_handler_t *nyx_handlers;
+  char *                out_dir_path;    /* path to the output directory     */
+  u8                    nyx_mode;        /* if running in nyx mode or not    */
+  bool                  nyx_parent;      /* create initial snapshot          */
+  bool                  nyx_standalone;  /* don't serialize the snapshot     */
+  void *                nyx_runner;      /* nyx runner object                */
+  u32                   nyx_id;          /* nyx runner id (0 -> master)      */
+  u32                   nyx_bind_cpu_id; /* nyx runner cpu id                */
 #endif
 
 } afl_forkserver_t;