[vala/staging: 3/3] glib-2.0: Add more Error bindings



commit 256332d3273ece830bc7d4ff2b4d9c6f08353fbf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Feb 26 10:29:36 2017 +0100

    glib-2.0: Add more Error bindings

 vapi/glib-2.0.vapi |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 6e4391c..8617968 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2352,8 +2352,21 @@ namespace GLib {
        public class Error {
                [PrintfFormat]
                public Error (Quark domain, int code, string format, ...);
+               public Error.literal (Quark domain, int code, string message);
+               [PrintfFormat]
+               public Error.valist (Quark domain, int code, string format, va_list args);
                public Error copy ();
                public bool matches (Quark domain, int code);
+               [CCode (cname = "g_prefix_error")]
+               public static prefix (out Error? dest, string format, ...);
+               [CCode (cname = "g_propagate_error")]
+               public static propagate (out Error? dest, owned Error src);
+               [CCode (cname = "g_propagate_prefixed_error")]
+               public static propagate_prefixed (out Error? dest, owned Error src, string format, ...);
+               [CCode (cname = "g_set_error")]
+               public static @set (out Error? dest, Quark domain, int code, string format, ...);
+               [CCode (cname = "g_set_error_literal")]
+               public static set_literal (out Error? dest, Quark domain, int code, string message);
 
                public Quark domain;
                public int code;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]