Fix GPGME

This commit is contained in:
LAGonauta 2023-10-09 10:54:55 -04:00
parent f6fe383ce8
commit 1c156e8c9f

View file

@ -665,6 +665,9 @@ namespace GPG {
[CCode (cname = "gpgme_strerror")]
public unowned string strerror(GPGError.Error err);
[CCode (cname = "gpgme_set_global_flag")]
public int set_global_flag(string name, string value);
private void throw_if_error(GPGError.Error error) throws GLib.Error {
if (error.code != GPGError.ErrorCode.NO_ERROR) {
throw new GLib.Error(-1, error.code, "%s", error.to_string());