|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include <stdbool.h>#include "ws_symbol_export.h"Go to the source code of this file.
Functions | |
| WS_DLL_PUBLIC bool | ex_opt_add (const char *ws_optarg) |
| Adds an option to a hash table. | |
| WS_DLL_PUBLIC int | ex_opt_count (const char *key) |
| Counts the number of options associated with a given key. | |
| WS_DLL_PUBLIC const char * | ex_opt_get_nth (const char *key, unsigned key_index) |
| Retrieves the nth option value for a given key. | |
| WS_DLL_PUBLIC char * | ex_opt_get_next (const char *key) |
| Retrieves and removes the next option value associated with a given key. | |
eXtension command line options
(c) 2006, Luis E. Garcia Ontanon luis@.nosp@m.onta.nosp@m.non.o.nosp@m.rg
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| WS_DLL_PUBLIC bool ex_opt_add | ( | const char * | ws_optarg | ) |
Adds an option to a hash table.
| ws_optarg | The argument string to be added. |
| WS_DLL_PUBLIC int ex_opt_count | ( | const char * | key | ) |
Counts the number of options associated with a given key.
| key | The key for which to count options. |
| WS_DLL_PUBLIC char * ex_opt_get_next | ( | const char * | key | ) |
Retrieves and removes the next option value associated with a given key.
Note that the caller must free the returned pointer.
| key | The key for which to retrieve the next option value. |
| WS_DLL_PUBLIC const char * ex_opt_get_nth | ( | const char * | key, |
| unsigned | key_index | ||
| ) |
Retrieves the nth option value for a given key.
| key | The key to look up in the options hash table. |
| key_index | The index of the option to retrieve. |