diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-03 10:45:50 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-03 12:13:02 +0200 |
commit | e355c6724c6fb8cd604763ad2518751056512b2b (patch) | |
tree | 893832ff6aa0c7e5f85f3e5589c9d073986757b8 /trust/save.h | |
parent | 81431ffd8cbf55175b1b9a9ed130fc67d0d4000b (diff) |
trust: Add support for saving files with unique file names
Diffstat (limited to 'trust/save.h')
-rw-r--r-- | trust/save.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |