Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
application_flavor.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <wireshark.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif /* __cplusplus */
18
19/*
20 * Application flavor. Used to construct configuration
21 * paths and environment variables.
22 */
23enum application_flavor_e {
24 APPLICATION_FLAVOR_WIRESHARK,
25 APPLICATION_FLAVOR_STRATOSHARK,
26};
27
37WS_DLL_PUBLIC void set_application_flavor(enum application_flavor_e flavor);
38
43WS_DLL_PUBLIC enum application_flavor_e get_application_flavor(void);
44
51WS_DLL_PUBLIC const char *application_flavor_name_proper(void);
52
58WS_DLL_PUBLIC const char *application_flavor_name_lower(void);
59
66WS_DLL_PUBLIC enum application_flavor_e application_name_to_flavor(const char * name);
67
72WS_DLL_PUBLIC bool application_flavor_is_wireshark(void);
73
78WS_DLL_PUBLIC bool application_flavor_is_stratoshark(void);
79
80#ifdef __cplusplus
81}
82#endif /* __cplusplus */
WS_DLL_PUBLIC void set_application_flavor(enum application_flavor_e flavor)
Definition application_flavor.c:18
WS_DLL_PUBLIC enum application_flavor_e get_application_flavor(void)
Definition application_flavor.c:23
WS_DLL_PUBLIC const char * application_flavor_name_proper(void)
Definition application_flavor.c:28
WS_DLL_PUBLIC const char * application_flavor_name_lower(void)
Definition application_flavor.c:39
WS_DLL_PUBLIC bool application_flavor_is_stratoshark(void)
Definition application_flavor.c:63
WS_DLL_PUBLIC bool application_flavor_is_wireshark(void)
Definition application_flavor.c:58
WS_DLL_PUBLIC enum application_flavor_e application_name_to_flavor(const char *name)
Definition application_flavor.c:50