feature: multithreading wip

This commit is contained in:
0x35c
2025-05-29 02:16:04 +02:00
parent 6538a085b9
commit 623b3ad0d7
8 changed files with 231 additions and 29 deletions

View File

@ -1,5 +1,9 @@
#pragma once
#include <stdint.h>
#include "scan.h"
#define NB_OPTIONS 5
typedef enum {
@ -17,4 +21,6 @@ struct option_lst {
};
struct option_lst *parse_options(int ac, char *const *av);
char *get_option_arg(struct option_lst *options, e_flag flag);
const char *get_option_arg(const struct option_lst *options, e_flag flag);
int parse_ports(const char *arg, uint16_t *start, uint16_t *end);
e_scantype parse_type(const char *arg);