From 9ea16b6d8568cb383eb1f469d1dc54bfcad4f188 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 16 Oct 2017 00:23:51 +0200 Subject: PGP encrypted file transfers --- plugins/gpgme-vala/vapi/gpgme.vapi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/gpgme-vala/vapi/gpgme.vapi') diff --git a/plugins/gpgme-vala/vapi/gpgme.vapi b/plugins/gpgme-vala/vapi/gpgme.vapi index 0b14185c..51823a15 100644 --- a/plugins/gpgme-vala/vapi/gpgme.vapi +++ b/plugins/gpgme-vala/vapi/gpgme.vapi @@ -464,7 +464,13 @@ namespace GPG { } [CCode (cname = "gpgme_data_new_from_file")] - public static GPGError.Error create_from_file(out Data d, string filename, int copy = 1); + public static GPGError.Error new_from_file(out Data d, string filename, int copy = 1); + + public static Data create_from_file(string filename, int copy = 1) { + Data data; + throw_if_error(new_from_file(out data, filename, copy)); + return data; + } [CCode (cname = "gpgme_data_release_and_get_mem")] public string release_and_get_mem(out size_t len); -- cgit v1.2.3-54-g00ecf