diff options
author | Gerald Combs <gerald@wireshark.org> | 2022-06-17 15:22:26 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2022-07-06 10:53:21 -0500 |
commit | f296a00f09de2d22233800ea2b6bd39c5753d53f (patch) | |
tree | 0a545e02dee32a3295f415cad677618cd8b05767 /wsutil | |
parent | 75efbb1ac4590f0e086bd3d028bc8b525b8eb3c6 (diff) |
Add a default configuration profile for Logray.
Add and install default coloring rules and filter buttons for Logray.
Add is_packet_configuration_namespace() and use it to set the default
timestamp type for Logray to "Absolute", which is more appropriate for
log entries.
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/filesystem.c | 5 | ||||
-rw-r--r-- | wsutil/filesystem.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index bb948753c2..4d749da2fb 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -309,6 +309,11 @@ get_configuration_namespace(void) return CONFIGURATION_NAMESPACE_PROPER; } +bool is_packet_configuration_namespace(void) +{ + return configuration_namespace != CONFIGURATION_NAMESPACE_LOGRAY; +} + #ifndef _WIN32 /* * Get the pathname of the executable using various platform- diff --git a/wsutil/filesystem.h b/wsutil/filesystem.h index 8363f0842c..ae082e7fb7 100644 --- a/wsutil/filesystem.h +++ b/wsutil/filesystem.h @@ -45,6 +45,13 @@ WS_DLL_PUBLIC char *configuration_init(const char *arg0, const char *namespace_n */ WS_DLL_PUBLIC const char *get_configuration_namespace(void); +/** + * Check to see if the configuration namespace is for packet analysis + * (Wireshark) or log analysis (Logray). + * @return true if the configuration namespace is for packets. + */ +WS_DLL_PUBLIC bool is_packet_configuration_namespace(void); + /* * Get the directory in which the program resides. */ |