mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
3a75ff65fb
commit
b57f553212
5 changed files with 162 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue