[balsa/port-to-pcre2: 4/8] libbalsa: Error domain for LibBalsaRegex




commit fb79b60c3d04fdb29507861bc57e8de44a734d74
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Sep 6 13:48:05 2020 -0400

    libbalsa: Error domain for LibBalsaRegex

 libbalsa/libbalsa.c | 9 +++++++++
 libbalsa/libbalsa.h | 6 ++++++
 2 files changed, 15 insertions(+)
---
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index fe48f1a41..24324fc4a 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -722,6 +722,15 @@ libbalsa_image_error_quark(void)
     return quark;
 }
 
+GQuark
+libbalsa_regex_error_quark(void)
+{
+    static GQuark quark = 0;
+    if (quark == 0)
+        quark = g_quark_from_static_string("libbalsa-regex-error-quark");
+    return quark;
+}
+
 gboolean
 libbalsa_use_headerbar(void)
 {
diff --git a/libbalsa/libbalsa.h b/libbalsa/libbalsa.h
index deac03796..6f14aac98 100644
--- a/libbalsa/libbalsa.h
+++ b/libbalsa/libbalsa.h
@@ -184,6 +184,12 @@ enum LibBalsaImageError {
 #endif                          /* HAVE_COMPFACE */
 };
 
+GQuark libbalsa_regex_error_quark(void);
+#define LIBBALSA_REGEX_ERROR libbalsa_regex_error_quark()
+enum LibBalsaRegexError {
+    LIBBALSA_REGEX_ERROR_COMPILE
+};
+
 gboolean libbalsa_use_headerbar(void);
 GtkDialogFlags libbalsa_dialog_flags(void);
 


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