diff options
author | Michael Mann <mmann78@netscape.net> | 2016-05-29 13:52:19 -0400 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2016-06-01 06:24:05 +0000 |
commit | acc018b8d1db3489d3f63f8f096c593243191469 (patch) | |
tree | e7adc7f2ffe56a94550c7def88de4cc8f50d9ac8 /wsutil/tempfile.h | |
parent | b2845a6ac885d49aa1ea5d3865cd377d812eb4c7 (diff) |
Allow create_tempfile to support a suffix.
Ping-Bug: 10203
Change-Id: Ifa24870d711449b87e9839dd46af614e4aa28fde
Reviewed-on: https://code.wireshark.org/review/15608
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'wsutil/tempfile.h')
-rw-r--r-- | wsutil/tempfile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wsutil/tempfile.h b/wsutil/tempfile.h index f595632f25..1dca2dfa13 100644 --- a/wsutil/tempfile.h +++ b/wsutil/tempfile.h @@ -50,9 +50,11 @@ WS_DLL_PUBLIC char *get_tempfile_path(const char *filename); * @param namebuf [in,out] If not NULL, receives the full path of the temp file. * Must NOT be freed. * @param pfx [in] A prefix for the temporary file. - * @return The file descriptor of the new tempfile, from mkstemp(). + * @param sfx [in] A file extension for the temporary file. NULL can be passed + * if no file extension is needed + * @return The file descriptor of the new tempfile, from mkstemps(). */ -WS_DLL_PUBLIC int create_tempfile(char **namebuf, const char *pfx); +WS_DLL_PUBLIC int create_tempfile(char **namebuf, const char *pfx, const char *sfx); /** * Create a directory with the given prefix (e.g. "wireshark"). The path |