pidgin 2.14.14dev
|
#include <glib.h>
Go to the source code of this file.
Data Structures | |
struct | _PurpleSrvResponse |
struct | _PurpleTxtResponse |
struct | PurpleSrvTxtQueryUiOps |
SRV Request UI operations; UIs should implement this if they want to do SRV lookups themselves, rather than relying on the core. More... | |
Typedefs | |
typedef struct _PurpleSrvTxtQueryData | PurpleSrvTxtQueryData |
typedef struct _PurpleSrvResponse | PurpleSrvResponse |
typedef struct _PurpleTxtResponse | PurpleTxtResponse |
typedef struct _PurpleSrvTxtQueryData | PurpleSrvQueryData |
typedef void(* | PurpleSrvTxtQueryResolvedCallback) (PurpleSrvTxtQueryData *query_data, GList *records) |
typedef void(* | PurpleSrvTxtQueryFailedCallback) (PurpleSrvTxtQueryData *query_data, const gchar *error_message) |
typedef void(* | PurpleSrvCallback) (PurpleSrvResponse *resp, int results, gpointer data) |
typedef void(* | PurpleTxtCallback) (GList *responses, gpointer data) |
Callback that returns the data retrieved from a DNS TXT lookup. More... | |
Enumerations | |
enum | PurpleDnsType { PurpleDnsTypeTxt = 16 , PurpleDnsTypeSrv = 33 } |
Functions | |
PurpleSrvTxtQueryData * | purple_srv_resolve_account (PurpleAccount *account, const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata) |
Queries an SRV record. More... | |
PurpleSrvTxtQueryData * | purple_srv_resolve (const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata) |
Queries an SRV record. More... | |
void | purple_srv_cancel (PurpleSrvTxtQueryData *query_data) |
Cancel an SRV or DNS query. More... | |
PurpleSrvTxtQueryData * | purple_txt_resolve_account (PurpleAccount *account, const char *owner, const char *domain, PurpleTxtCallback cb, gpointer extradata) |
Queries an TXT record. More... | |
PurpleSrvTxtQueryData * | purple_txt_resolve (const char *owner, const char *domain, PurpleTxtCallback cb, gpointer extradata) |
Queries an TXT record. More... | |
void | purple_txt_cancel (PurpleSrvTxtQueryData *query_data) |
Cancel an TXT DNS query. More... | |
const gchar * | purple_txt_response_get_content (PurpleTxtResponse *response) |
Get the value of the current TXT record. More... | |
void | purple_txt_response_destroy (PurpleTxtResponse *response) |
Destroy a TXT DNS response object. More... | |
void | purple_srv_txt_query_destroy (PurpleSrvTxtQueryData *query_data) |
Cancel a SRV/TXT query and destroy the associated data structure. More... | |
void | purple_srv_txt_query_set_ui_ops (PurpleSrvTxtQueryUiOps *ops) |
Sets the UI operations structure to be used when doing a SRV/TXT resolve. More... | |
PurpleSrvTxtQueryUiOps * | purple_srv_txt_query_get_ui_ops (void) |
Returns the UI operations structure to be used when doing a SRV/TXT resolve. More... | |
char * | purple_srv_txt_query_get_query (PurpleSrvTxtQueryData *query_data) |
Get the query from a PurpleDnsQueryData. More... | |
int | purple_srv_txt_query_get_type (PurpleSrvTxtQueryData *query_data) |
Get the type from a PurpleDnsQueryData (TXT or SRV) More... | |
typedef void(* PurpleSrvCallback) (PurpleSrvResponse *resp, int results, gpointer data) |
typedef struct _PurpleSrvResponse PurpleSrvResponse |
typedef void(* PurpleSrvTxtQueryFailedCallback) (PurpleSrvTxtQueryData *query_data, const gchar *error_message) |
typedef void(* PurpleSrvTxtQueryResolvedCallback) (PurpleSrvTxtQueryData *query_data, GList *records) |
typedef void(* PurpleTxtCallback) (GList *responses, gpointer data) |
typedef struct _PurpleTxtResponse PurpleTxtResponse |
void purple_srv_cancel | ( | PurpleSrvTxtQueryData * | query_data | ) |
Cancel an SRV or DNS query.
query_data | The request to cancel. |
PurpleSrvTxtQueryData * purple_srv_resolve | ( | const char * | protocol, |
const char * | transport, | ||
const char * | domain, | ||
PurpleSrvCallback | cb, | ||
gpointer | extradata | ||
) |
Queries an SRV record.
protocol | Name of the protocol (e.g. "sip") |
transport | Name of the transport ("tcp" or "udp") |
domain | Domain name to query (e.g. "blubb.com") |
cb | A callback which will be called with the results |
extradata | Extra data to be passed to the callback |
PurpleSrvTxtQueryData * purple_srv_resolve_account | ( | PurpleAccount * | account, |
const char * | protocol, | ||
const char * | transport, | ||
const char * | domain, | ||
PurpleSrvCallback | cb, | ||
gpointer | extradata | ||
) |
Queries an SRV record.
account | the account that the query is being done for (or NULL) |
protocol | Name of the protocol (e.g. "sip") |
transport | Name of the transport ("tcp" or "udp") |
domain | Domain name to query (e.g. "blubb.com") |
cb | A callback which will be called with the results |
extradata | Extra data to be passed to the callback |
void purple_srv_txt_query_destroy | ( | PurpleSrvTxtQueryData * | query_data | ) |
Cancel a SRV/TXT query and destroy the associated data structure.
query_data | The SRV/TXT query to cancel. This data structure is freed by this function. |
char * purple_srv_txt_query_get_query | ( | PurpleSrvTxtQueryData * | query_data | ) |
Get the query from a PurpleDnsQueryData.
query_data | The SRV/TXT query |
int purple_srv_txt_query_get_type | ( | PurpleSrvTxtQueryData * | query_data | ) |
Get the type from a PurpleDnsQueryData (TXT or SRV)
query_data | The query |
PurpleSrvTxtQueryUiOps * purple_srv_txt_query_get_ui_ops | ( | void | ) |
Returns the UI operations structure to be used when doing a SRV/TXT resolve.
void purple_srv_txt_query_set_ui_ops | ( | PurpleSrvTxtQueryUiOps * | ops | ) |
Sets the UI operations structure to be used when doing a SRV/TXT resolve.
The UI operations need only be set if the UI wants to handle the resolve itself; otherwise, leave it as NULL.
ops | The UI operations structure. |
void purple_txt_cancel | ( | PurpleSrvTxtQueryData * | query_data | ) |
Cancel an TXT DNS query.
query_data | The request to cancel. |
PurpleSrvTxtQueryData * purple_txt_resolve | ( | const char * | owner, |
const char * | domain, | ||
PurpleTxtCallback | cb, | ||
gpointer | extradata | ||
) |
Queries an TXT record.
owner | Name of the protocol (e.g. "_xmppconnect") |
domain | Domain name to query (e.g. "blubb.com") |
cb | A callback which will be called with the results |
extradata | Extra data to be passed to the callback |
PurpleSrvTxtQueryData * purple_txt_resolve_account | ( | PurpleAccount * | account, |
const char * | owner, | ||
const char * | domain, | ||
PurpleTxtCallback | cb, | ||
gpointer | extradata | ||
) |
Queries an TXT record.
account | the account that the query is being done for (or NULL) |
owner | Name of the protocol (e.g. "_xmppconnect") |
domain | Domain name to query (e.g. "blubb.com") |
cb | A callback which will be called with the results |
extradata | Extra data to be passed to the callback |
void purple_txt_response_destroy | ( | PurpleTxtResponse * | response | ) |
Destroy a TXT DNS response object.
response | The PurpleTxtResponse to destroy. |
const gchar * purple_txt_response_get_content | ( | PurpleTxtResponse * | response | ) |
Get the value of the current TXT record.
response | The TXT response record |