aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/tempfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/tempfile.h')
-rw-r--r--wsutil/tempfile.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/tempfile.h b/wsutil/tempfile.h
index 4f9492ed87..f58419f581 100644
--- a/wsutil/tempfile.h
+++ b/wsutil/tempfile.h
@@ -35,6 +35,15 @@ extern "C" {
* Convenience function for temporary file creation.
*/
+/**
+ * Construct the path name of a file in the appropriate temporary
+ * file directory.
+ *
+ * @param filename the file name to be given to the file.
+ * @return the pathname of the file, g_malloced so the caller
+ * should g_free it.
+ */
+WS_DLL_PUBLIC char *get_tempfile_path(const char *filename);
/**
* Create a tempfile with the given prefix (e.g. "wireshark"). The path