- Introduces the e_cli_code enum for CLI status codes, replacing integer constants. - Updates cli_parse_arguments to return e_cli_code instead of int. - Refactors main.c, cli.h, and cli/parse.c to use the new enum.
23 lines
303 B
C
23 lines
303 B
C
#ifndef FT_PING
|
|
#define FT_PING
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
typedef struct s_ping_config
|
|
{
|
|
/* Target */
|
|
char *destination;
|
|
|
|
/* Options */
|
|
uint64_t count;
|
|
double interval;
|
|
uint8_t ttl;
|
|
size_t packet_size;
|
|
double timeout;
|
|
|
|
/* Flags */
|
|
uint8_t flags;
|
|
} t_ping_config;
|
|
|
|
#endif
|