aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/filesystem.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-12-21 18:37:05 -0800
committerGerald Combs <gerald@wireshark.org>2022-12-22 21:22:04 +0000
commit5dcefc77777f47407801f8c51d3951fcb675da6e (patch)
treef13c905d7866893b999acf20e96167c88a017832 /wsutil/filesystem.h
parente9176b652dc4f76dd9708d1ac94a41eeb16b540a (diff)
wsutil: Make progfile_dir the main program file directory.
If our program file directory has a trailing "/extcap" or "\extcap", trim it off. This should let extcaps determine the proper data file and plugin directories. Fixes #15592.
Diffstat (limited to 'wsutil/filesystem.h')
-rw-r--r--wsutil/filesystem.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/wsutil/filesystem.h b/wsutil/filesystem.h
index ae082e7fb7..90dd49140f 100644
--- a/wsutil/filesystem.h
+++ b/wsutil/filesystem.h
@@ -53,7 +53,11 @@ WS_DLL_PUBLIC const char *get_configuration_namespace(void);
WS_DLL_PUBLIC bool is_packet_configuration_namespace(void);
/*
- * Get the directory in which the program resides.
+ * Get the directory in which the main (Wireshark, TShark, Logray, etc)
+ * program resides.
+ * Extcaps should use get_extcap_dir() to get their path.
+ *
+ * @return The main program file directory.
*/
WS_DLL_PUBLIC const char *get_progfile_dir(void);