Wireshark 4.7.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#include <wiretap/wtap.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20/*
21 * Application flavor. Used to construct configuration
22 * paths and environment variables.
23 */
24enum application_flavor_e {
25 APPLICATION_FLAVOR_WIRESHARK,
26 APPLICATION_FLAVOR_STRATOSHARK,
27};
28
38WS_DLL_PUBLIC void set_application_flavor(enum application_flavor_e flavor);
39
46WS_DLL_PUBLIC const char *application_flavor_name_proper(void);
47
53WS_DLL_PUBLIC const char *application_flavor_name_lower(void);
54
60WS_DLL_PUBLIC const char* application_configuration_environment_prefix(void);
61
68WS_DLL_PUBLIC void application_file_extensions(const struct file_extension_info** file_extensions, unsigned* num_extensions);
69
73WS_DLL_PUBLIC const char** application_columns(void);
74
78WS_DLL_PUBLIC unsigned application_num_columns(void);
79
84WS_DLL_PUBLIC bool application_flavor_is_wireshark(void);
85
86#ifdef __cplusplus
87}
88#endif /* __cplusplus */
WS_DLL_PUBLIC void set_application_flavor(enum application_flavor_e flavor)
Initialize our application flavor.
Definition application_flavor.c:20
WS_DLL_PUBLIC void application_file_extensions(const struct file_extension_info **file_extensions, unsigned *num_extensions)
Get the list of application supported file extensions.
Definition application_flavor.c:75
WS_DLL_PUBLIC const char * application_configuration_environment_prefix(void)
Get the prefix for the application specific environment variable used to retrieve various configurati...
Definition application_flavor.c:47
WS_DLL_PUBLIC const char * application_flavor_name_proper(void)
Get the proper (capitalized) application name, suitable for user presentation.
Definition application_flavor.c:25
WS_DLL_PUBLIC const char * application_flavor_name_lower(void)
Get the lower-case application name.
Definition application_flavor.c:36
WS_DLL_PUBLIC bool application_flavor_is_wireshark(void)
Convenience routine for checking the application flavor.
Definition application_flavor.c:198
WS_DLL_PUBLIC unsigned application_num_columns(void)
Get the default number of columns for the application.
Definition application_flavor.c:186
WS_DLL_PUBLIC const char ** application_columns(void)
Get the default columns for the application.
Definition application_flavor.c:147
For registering extensions used for file formats.
Definition wtap.h:1713