[PATCH v3 04/18] gweb: Add 'G_WEB_ERROR' domain status codes.
Grant Erickson <[email protected]> Thu, 20 Mar 2025 16:38:55 -0700
| Newsgroups | dev.linux.lists.connman |
|---|---|
| Message-ID | <ae0d6856f80b5ac95f23626d9af0ce3638a92717.1742513884.git.gerickson@nuovations.com> |
These allow instantiating and setting GWeb-specific GLib GError
structures for G_WEB_ERROR host not found and chunked response
decoding errors.
---
gweb/gweb.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gweb/gweb.h b/gweb/gweb.h
index 6768601d6c69..fb29498e90ad 100644
--- a/gweb/gweb.h
+++ b/gweb/gweb.h
@@ -101,6 +101,22 @@ enum GWebStatusCode {
GWEB_HTTP_STATUS_CODE_NETWORK_AUTHENTICATION_REQUIRED = 511
};
+/**
+ * GWeb-specific error enumerations potentially set when
+ * #GWebResultFunc is invoked on a failure.
+ */
+enum GWebErrorEnum {
+ /**
+ * An error occorred when decoding a chunked HTTP response.
+ */
+ G_WEB_ERROR_CHUNK_DECODE,
+
+ /**
+ * A host could not be resolved.
+ */
+ G_WEB_ERROR_HOST_NOT_FOUND,
+};
+
struct _GWeb;
struct _GWebResult;
struct _GWebParser;
--
2.45.0