diff options
Diffstat (limited to 'tempfile.h')
| -rw-r--r-- | tempfile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tempfile.h b/tempfile.h index a30e12c7e5..4219fe41bd 100644 --- a/tempfile.h +++ b/tempfile.h @@ -92,6 +92,14 @@ struct tempfile { */ extern int create_tempfile(struct tempfile *tempfile, const char *path); +/* + * Register an existing file as a tempfile, meaning that it will be + * deleted when the program exits. The tempfile is considered closed, + * but it can be worked with like any other closed tempfile (for + * example, it can be opened using reopen_tempfile()). + */ +extern void register_tempfile(struct tempfile *tempfile, const char *path); + /* * mks_tempfile functions |
