| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
tempfile.h
Go to the documentation of this file.
1/* tempfile.h
2 * Declarations of routines to create temporary files
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef __TEMPFILE_H__
12#define __TEMPFILE_H__
13
14#include <wireshark.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
37WS_DLL_PUBLIC int create_tempfile(const char *tempdir, char **namebuf, const char *pfx, const char *sfx, GError **err);
38
49WS_DLL_PUBLIC char *create_tempdir(const char *parent_dir, const char *tmpl, GError **err);
50
51#ifdef __cplusplus
52}
53#endif /* __cplusplus */
54
55#endif /* __TEMPFILE_H__ */
create_tempdir
WS_DLL_PUBLIC char * create_tempdir(const char *parent_dir, const char *tmpl, GError **err)
Create a tempfile with the given parent directory (e.g. "/my/private/tmp"). The path is created using...
Definition tempfile.c:118
create_tempfile
WS_DLL_PUBLIC int create_tempfile(const char *tempdir, char **namebuf, const char *pfx, const char *sfx, GError **err)
Create a tempfile with the given prefix (e.g. "wireshark"). The path is created using g_file_open_tmp...
Definition tempfile.c:54