summaryrefslogtreecommitdiff
path: root/wsutil/tempfile.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-17 04:39:44 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-17 04:39:44 +0000
commiteee9b9ddd30be0b11593a31ecf67672522d7e5ed (patch)
treea192462f2b3ff017b879d449c007c6d496a7046a /wsutil/tempfile.h
parent74647a318b93d780cae2eabe70ce45b55e4e94a7 (diff)
downloadwireshark-eee9b9ddd30be0b11593a31ecf67672522d7e5ed.tar.gz
Move get_tempfile_path() from filesystem.[ch] to tempfile.[ch].
svn path=/trunk/; revision=53379
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