]>
git.ipfire.org Git - thirdparty/hostap.git/blob - src/common/cli.h
2 * Common hostapd/wpa_supplicant command line interface functionality
3 * Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 #include "utils/list.h"
14 extern const char *const cli_license
;
15 extern const char *const cli_full_license
;
17 struct cli_txt_entry
{
22 void cli_txt_list_free(struct cli_txt_entry
*e
);
23 void cli_txt_list_flush(struct dl_list
*list
);
25 struct cli_txt_entry
*
26 cli_txt_list_get(struct dl_list
*txt_list
, const char *txt
);
28 void cli_txt_list_del(struct dl_list
*txt_list
, const char *txt
);
29 void cli_txt_list_del_addr(struct dl_list
*txt_list
, const char *txt
);
30 void cli_txt_list_del_word(struct dl_list
*txt_list
, const char *txt
,
33 int cli_txt_list_add(struct dl_list
*txt_list
, const char *txt
);
34 int cli_txt_list_add_addr(struct dl_list
*txt_list
, const char *txt
);
35 int cli_txt_list_add_word(struct dl_list
*txt_list
, const char *txt
,
38 char ** cli_txt_list_array(struct dl_list
*txt_list
);
40 int get_cmd_arg_num(const char *str
, int pos
);
41 int write_cmd(char *buf
, size_t buflen
, const char *cmd
, int argc
,
45 int tokenize_cmd(char *cmd
, char *argv
[]);