aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-01-22 10:15:20 +0000
committerJustus Winter <[email protected]>2016-06-17 09:38:00 +0000
commit55275b8e2b43a3420d85a1a931e02febaa1113e7 (patch)
treefdde08017475641963eca6b13d531e2eb42ec0f4 /tests/gpgscm/scheme.h
parenttests/gpgscm: Nicer error message. (diff)
downloadgnupg-55275b8e2b43a3420d85a1a931e02febaa1113e7.tar.gz
gnupg-55275b8e2b43a3420d85a1a931e02febaa1113e7.zip
tests/gpgscm: Expose function to open streams as Scheme ports.
* tests/gpgscm/scheme.c (vtbl): Add 'port_from_file' to the vtable. * tests/gpgscm/scheme.h (struct scheme_interface): New field 'mk_port_from_file'. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/scheme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gpgscm/scheme.h b/tests/gpgscm/scheme.h
index 05ae7feb0..4ba2daa76 100644
--- a/tests/gpgscm/scheme.h
+++ b/tests/gpgscm/scheme.h
@@ -224,6 +224,7 @@ struct scheme_interface {
void (*setimmutable)(pointer p);
void (*load_file)(scheme *sc, FILE *fin);
void (*load_string)(scheme *sc, const char *input);
+ pointer (*mk_port_from_file)(scheme *sc, FILE *f, int kind);
};
#endif