Rename functions and cmdline to cli for organization.
This commit is contained in:
23
src/rule_del/utils/cli.h
Normal file
23
src/rule_del/utils/cli.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
|
||||
struct cli
|
||||
{
|
||||
const char* cfg_file;
|
||||
|
||||
int help;
|
||||
|
||||
int save;
|
||||
|
||||
int mode;
|
||||
|
||||
int idx;
|
||||
|
||||
const char* ip;
|
||||
int v6;
|
||||
} typedef cli_t;
|
||||
|
||||
void parse_cli(cli_t* cli, int argc, char* argv[]);
|
||||
Reference in New Issue
Block a user