diff options
author | Werner Koch <[email protected]> | 2016-08-13 10:49:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-08-13 11:49:41 +0000 |
commit | b57f55321295846d47144bd6b39fbbcac0127421 (patch) | |
tree | 4469af47dd36b04c9e1a4309f127d02194b1ff54 /g13/call-syshelp.h | |
parent | Avoid leading ": " in the log output when there are no prefixes. (diff) | |
download | gnupg-b57f55321295846d47144bd6b39fbbcac0127421.tar.gz gnupg-b57f55321295846d47144bd6b39fbbcac0127421.zip |
g13: New command --find-device.
* common/status.h (STATUS_BLOCKDEV: New.
* g13/call-syshelp.c: Include "call-syshelp.h".
(finddevice_status_cb, call_syshelp_find_device): New.
* g13/g13.c (aFindDevice): New.
(opts): Add "--find-device".
(main): Implement --find-device.
* g13/sh-cmd.c (cmd_finddevice): New.
(register_commands): Register new command.
--
This might be useful for scripting.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g13/call-syshelp.h')
-rw-r--r-- | g13/call-syshelp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g13/call-syshelp.h b/g13/call-syshelp.h index c2578f241..14deb7d18 100644 --- a/g13/call-syshelp.h +++ b/g13/call-syshelp.h @@ -23,6 +23,8 @@ #include "g13tuple.h" void call_syshelp_release (ctrl_t ctrl); +gpg_error_t call_syshelp_find_device (ctrl_t ctrl, + const char *name, char **r_blockdev); gpg_error_t call_syshelp_set_device (ctrl_t ctrl, const char *fname); gpg_error_t call_syshelp_run_create (ctrl_t ctrl, int conttype); gpg_error_t call_syshelp_run_mount (ctrl_t ctrl, int conttype, |