22#ifndef __G_RESOLVER_H__
23#define __G_RESOLVER_H__
25#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
26#error "Only <gio/gio.h> can be included directly."
33#define G_TYPE_RESOLVER (g_resolver_get_type ())
34#define G_RESOLVER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_RESOLVER, GResolver))
35#define G_RESOLVER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_RESOLVER, GResolverClass))
36#define G_IS_RESOLVER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_RESOLVER))
37#define G_IS_RESOLVER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_RESOLVER))
38#define G_RESOLVER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_RESOLVER, GResolverClass))
73 const gchar *hostname,
77 const gchar *hostname,
144 const gchar *hostname,
179 const gchar *hostname,
194 const gchar *hostname,
199 const gchar *hostname,
209 const gchar *hostname,
220 const gchar *hostname,
243 const gchar *service,
244 const gchar *protocol,
250 const gchar *service,
251 const gchar *protocol,
284 unsigned timeout_ms);
293#define G_RESOLVER_ERROR (g_resolver_error_quark ())
#define GIO_AVAILABLE_IN_ALL
#define GIO_AVAILABLE_IN_2_78
#define GIO_AVAILABLE_IN_2_60
#define GIO_AVAILABLE_IN_2_34
struct _GAsyncResult GAsyncResult
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
typedefG_BEGIN_DECLS struct _GList GList
G_BEGIN_DECLS typedef guint32 GQuark
GIO_AVAILABLE_IN_2_60 void g_resolver_lookup_by_name_with_flags_async(GResolver *resolver, const gchar *hostname, GResolverNameLookupFlags flags, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GList * g_resolver_lookup_by_name(GResolver *resolver, const gchar *hostname, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_34 void g_resolver_lookup_records_async(GResolver *resolver, const gchar *rrname, GResolverRecordType record_type, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_resolver_lookup_by_name_async(GResolver *resolver, const gchar *hostname, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_2_60 GList * g_resolver_lookup_by_name_with_flags_finish(GResolver *resolver, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_60 GList * g_resolver_lookup_by_name_with_flags(GResolver *resolver, const gchar *hostname, GResolverNameLookupFlags flags, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL void g_resolver_lookup_service_async(GResolver *resolver, const gchar *service, const gchar *protocol, const gchar *domain, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GQuark g_resolver_error_quark(void)
GIO_AVAILABLE_IN_ALL GList * g_resolver_lookup_by_name_finish(GResolver *resolver, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_2_34 GList * g_resolver_lookup_records(GResolver *resolver, const gchar *rrname, GResolverRecordType record_type, GCancellable *cancellable, GError **error)
struct _GResolverPrivate GResolverPrivate
GIO_AVAILABLE_IN_ALL gchar * g_resolver_lookup_by_address(GResolver *resolver, GInetAddress *address, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL void g_resolver_free_addresses(GList *addresses)
GIO_AVAILABLE_IN_ALL gchar * g_resolver_lookup_by_address_finish(GResolver *resolver, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL GResolver * g_resolver_get_default(void)
GIO_AVAILABLE_IN_ALL GList * g_resolver_lookup_service_finish(GResolver *resolver, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL void g_resolver_lookup_by_address_async(GResolver *resolver, GInetAddress *address, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_2_34 GList * g_resolver_lookup_records_finish(GResolver *resolver, GAsyncResult *result, GError **error)
GIO_AVAILABLE_IN_ALL GList * g_resolver_lookup_service(GResolver *resolver, const gchar *service, const gchar *protocol, const gchar *domain, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_2_78 unsigned g_resolver_get_timeout(GResolver *resolver)
GIO_AVAILABLE_IN_ALL void g_resolver_free_targets(GList *targets)
@ G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY
@ G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT
@ G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY
GIO_AVAILABLE_IN_ALL void g_resolver_set_default(GResolver *resolver)
GIO_AVAILABLE_IN_2_78 void g_resolver_set_timeout(GResolver *resolver, unsigned timeout_ms)
GIO_AVAILABLE_IN_ALL GType g_resolver_get_type(void) G_GNUC_CONST
G_BEGIN_DECLS typedef char gchar
static void error(LoadState *S, const char *why)
GObjectClass parent_class
void(* lookup_by_name_async)(GResolver *resolver, const gchar *hostname, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* reload)(GResolver *resolver)
void(* lookup_by_name_with_flags_async)(GResolver *resolver, const gchar *hostname, GResolverNameLookupFlags flags, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* lookup_records_async)(GResolver *resolver, const gchar *rrname, GResolverRecordType record_type, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* lookup_service_async)(GResolver *resolver, const gchar *rrname, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* lookup_by_address_async)(GResolver *resolver, GInetAddress *address, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)