gthreadedresolver: Only declare private test APIs on Unix

They’re only defined on Unix anyway. `GThreadedResolver` has an entirely
different code path for handling DNS replies on Windows.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-22 12:41:08 +00:00
parent e8e8aebcbe
commit f9ef3bec68

View File

@ -43,6 +43,7 @@ GLIB_AVAILABLE_IN_ALL
GType g_threaded_resolver_get_type (void) G_GNUC_CONST;
/* Used for a private test API */
#ifdef G_OS_UNIX
GLIB_AVAILABLE_IN_ALL
GList *g_resolver_records_from_res_query (const gchar *rrname,
gint rrtype,
@ -52,6 +53,7 @@ GList *g_resolver_records_from_res_query (const gchar *rrname,
GError **error);
GLIB_AVAILABLE_IN_ALL
gint g_resolver_record_type_to_rrtype (GResolverRecordType type);
#endif
G_END_DECLS