diff options
author | Werner Koch <wk@gnupg.org> | 2016-02-02 09:03:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-02-13 17:06:39 +0100 |
commit | dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed (patch) | |
tree | 40b62847151302949de2e4385c6f2201b7f95fab /g13/backend.h | |
parent | g13: Return an error for non-existing device. (diff) | |
download | gnupg2-dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed.tar.xz gnupg2-dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed.zip |
g13: Re-factor high level create code.
* g13/create.c (g13_create_container): Factor some code out to ...
* g13/backend.c (be_take_lock_for_create): new.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g13/backend.h')
-rw-r--r-- | g13/backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g13/backend.h b/g13/backend.h index e570fc5a1..be81a04d5 100644 --- a/g13/backend.h +++ b/g13/backend.h @@ -25,6 +25,8 @@ int be_parse_conttype_name (const char *name); int be_is_supported_conttype (int conttype); +gpg_error_t be_take_lock_for_create (ctrl_t ctrl, const char *fname, + dotlock_t *r_lock); gpg_error_t be_get_detached_name (int conttype, const char *fname, char **r_name, int *r_isdir); gpg_error_t be_create_new_keys (int conttype, membuf_t *mb); |