From e355c6724c6fb8cd604763ad2518751056512b2b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 3 Jul 2013 10:45:50 +0200 Subject: trust: Add support for saving files with unique file names --- trust/save.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'trust/save.h') diff --git a/trust/save.h b/trust/save.h index f68d054..81f1044 100644 --- a/trust/save.h +++ b/trust/save.h @@ -39,12 +39,14 @@ enum { P11_SAVE_OVERWRITE = 1 << 0, + P11_SAVE_UNIQUE = 1 << 1, }; typedef struct _p11_save_file p11_save_file; typedef struct _p11_save_dir p11_save_dir; p11_save_file * p11_save_open_file (const char *path, + const char *extension, int flags); bool p11_save_write (p11_save_file *file, @@ -56,6 +58,7 @@ bool p11_save_write_and_finish (p11_save_file *file, ssize_t length); bool p11_save_finish_file (p11_save_file *file, + char **path, bool commit); const char * p11_save_file_name (p11_save_file *file); @@ -65,8 +68,7 @@ p11_save_dir * p11_save_open_directory (const char *path, p11_save_file * p11_save_open_file_in (p11_save_dir *directory, const char *basename, - const char *extension, - const char **filename); + const char *extension); #ifdef OS_UNIX -- cgit v1.1