aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpgme-vala/vapi/gpgme.vapi
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gpgme-vala/vapi/gpgme.vapi')
-rw-r--r--plugins/gpgme-vala/vapi/gpgme.vapi8
1 files changed, 7 insertions, 1 deletions
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);