[glib: 4/13] gthreadedresolver: Expose g_resolver_record_type_to_rrtype()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/13] gthreadedresolver: Expose g_resolver_record_type_to_rrtype()
- Date: Tue, 22 Mar 2022 15:18:52 +0000 (UTC)
commit 2a7b4db243188f4500947138bbede1cf5d9110ef
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Mar 21 17:45:17 2022 +0000
gthreadedresolver: Expose g_resolver_record_type_to_rrtype()
So that it can be used in the tests.
It’s not part of the public, documented, supported API.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/gthreadedresolver.c | 2 +-
gio/gthreadedresolver.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
index 2ae354bc58..59f229a16c 100644
--- a/gio/gthreadedresolver.c
+++ b/gio/gthreadedresolver.c
@@ -633,7 +633,7 @@ parse_res_txt (const guint8 *answer,
return record;
}
-static gint
+gint
g_resolver_record_type_to_rrtype (GResolverRecordType type)
{
switch (type)
diff --git a/gio/gthreadedresolver.h b/gio/gthreadedresolver.h
index 95a5fe55f3..c4d6dc28d5 100644
--- a/gio/gthreadedresolver.h
+++ b/gio/gthreadedresolver.h
@@ -50,6 +50,8 @@ GList *g_resolver_records_from_res_query (const gchar *rrname,
gssize len,
gint herr,
GError **error);
+GLIB_AVAILABLE_IN_ALL
+gint g_resolver_record_type_to_rrtype (GResolverRecordType type);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]