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>
This commit is contained in:
Philip Withnall 2022-03-21 17:45:17 +00:00
parent 8b73d7bbf9
commit 2a7b4db243
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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