summaryrefslogtreecommitdiff
path: root/support/temp_file.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-12 09:53:06 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-12 09:53:06 +0100
commit1ffe1ccb6ec5771765f1f6f0c439ed07bf345d67 (patch)
treea5d96c2270d9f919e4cda3c17649e5cec4ff519e /support/temp_file.h
parent456b40a97f7e867803b2f47f5fcd3f1fa4bc1f6e (diff)
support: Add xstrndup, xunlink, xreadlink, support_create_temp_directory
Diffstat (limited to 'support/temp_file.h')
-rw-r--r--support/temp_file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/temp_file.h b/support/temp_file.h
index 6fed8df1ea..dfefe585de 100644
--- a/support/temp_file.h
+++ b/support/temp_file.h
@@ -32,6 +32,11 @@ void add_temp_file (const char *name);
*FILENAME. */
int create_temp_file (const char *base, char **filename);
+/* Create a temporary directory and schedule it for deletion. BASE
+ must end with the six characters "XXXXXX". Return the name of the
+ temporary directory. The caller should free the string. */
+char *support_create_temp_directory (const char *base);
+
__END_DECLS
#endif /* SUPPORT_TEMP_FILE_H */