26#ifndef _PURPLE_DNSQUERY_H_
27#define _PURPLE_DNSQUERY_H_
51typedef void (*PurpleDnsQueryFailedCallback) (
PurpleDnsQueryData *query_data,
const gchar *error_message);
65 PurpleDnsQueryFailedCallback failed_cb);
73 void (*_purple_reserved1)(void);
74 void (*_purple_reserved2)(void);
75 void (*_purple_reserved3)(void);
76 void (*_purple_reserved4)(void);
105#if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_DNSQUERY_C_)
char * purple_dnsquery_get_host(PurpleDnsQueryData *query_data)
Get the host associated with a PurpleDnsQueryData.
void purple_dnsquery_set_ui_ops(PurpleDnsQueryUiOps *ops)
Sets the UI operations structure to be used when doing a DNS resolve.
PurpleDnsQueryData * purple_dnsquery_a(const char *hostname, int port, PurpleDnsQueryConnectFunction callback, gpointer data)
Perform an asynchronous DNS query.
PurpleDnsQueryData * purple_dnsquery_a_account(PurpleAccount *account, const char *hostname, int port, PurpleDnsQueryConnectFunction callback, gpointer data)
Perform an asynchronous DNS query.
void purple_dnsquery_init(void)
Initializes the DNS query subsystem.
void purple_dnsquery_destroy(PurpleDnsQueryData *query_data)
Cancel a DNS query and destroy the associated data structure.
void(* PurpleDnsQueryResolvedCallback)(PurpleDnsQueryData *query_data, GSList *hosts)
Callbacks used by the UI if it handles resolving DNS.
void purple_dnsquery_uninit(void)
Uninitializes the DNS query subsystem.
struct _PurpleDnsQueryData PurpleDnsQueryData
An opaque structure representing a DNS query.
void(* PurpleDnsQueryConnectFunction)(GSList *hosts, gpointer data, const char *error_message)
The "hosts" parameter is a linked list containing pairs of one size_t addrlen and one struct sockaddr...
unsigned short purple_dnsquery_get_port(PurpleDnsQueryData *query_data)
Get the port associated with a PurpleDnsQueryData.
PurpleDnsQueryUiOps * purple_dnsquery_get_ui_ops(void)
Returns the UI operations structure to be used when doing a DNS resolve.
DNS Request UI operations; UIs should implement this if they want to do DNS lookups themselves,...
Structure representing an account.