g13: Consider g13tab for a mount command.
[gnupg.git] / g13 / call-syshelp.h
1 /* call-syshelp.h - Communication with g13-syshelp
2  * Copyright (C) 2015 Werner Koch
3  *
4  * This file is part of GnuPG.
5  *
6  * GnuPG is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * GnuPG is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef GNUPG_G13_CALL_SYSHELP_H
21 #define GNUPG_G13_CALL_SYSHELP_H
22
23 #include "g13tuple.h"
24
25 void call_syshelp_release (ctrl_t ctrl);
26 gpg_error_t call_syshelp_find_device (ctrl_t ctrl,
27                                       const char *name, char **r_blockdev);
28 gpg_error_t call_syshelp_get_keyblob (ctrl_t ctrl,
29                                       void **r_enckeyblob,
30                                       size_t *r_enckeybloblen);
31 gpg_error_t call_syshelp_set_device (ctrl_t ctrl, const char *fname);
32 gpg_error_t call_syshelp_run_create (ctrl_t ctrl, int conttype);
33 gpg_error_t call_syshelp_run_mount (ctrl_t ctrl, int conttype,
34                                     const char *mountpoint,
35                                     tupledesc_t tuples);
36 gpg_error_t call_syshelp_run_suspend (ctrl_t ctrl, int conttype);
37 gpg_error_t call_syshelp_run_resume (ctrl_t ctrl, int conttype,
38                                      tupledesc_t tuples);
39
40
41 #endif /*GNUPG_G13_CALL_SYSHELP_H*/