[glib: 12/13] gthreadedresolver: Only declare private test APIs on Unix
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 12/13] gthreadedresolver: Only declare private test APIs on Unix
- Date: Tue, 22 Mar 2022 15:18:53 +0000 (UTC)
commit f9ef3bec68981db2b476d5c6cd455ec00606bf94
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Mar 22 12:41:08 2022 +0000
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>
gio/gthreadedresolver.h | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/gthreadedresolver.h b/gio/gthreadedresolver.h
index c4d6dc28d5..8d2ca19bf0 100644
--- a/gio/gthreadedresolver.h
+++ b/gio/gthreadedresolver.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]