29 lines
650 B
C
29 lines
650 B
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bli
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_sys_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Get the path to a directory suitable for temporary files.
|
|
*
|
|
* The return path is guaranteed to exist and to be a directory, as well as to contain a trailing
|
|
* directory separator.
|
|
*
|
|
* At maximum the buffer_size number of characters is written to the temp_directory. The directory
|
|
* path is always null-terminated. */
|
|
void BLI_temp_directory_path_get(char *temp_directory, const size_t buffer_size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|