dnssrv.h
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _PURPLE_DNSSRV_H
00025 #define _PURPLE_DNSSRV_H
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031 typedef struct _PurpleSrvResponse PurpleSrvResponse;
00032 typedef struct _PurpleSrvQueryData PurpleSrvQueryData;
00033
00034 struct _PurpleSrvResponse {
00035 char hostname[256];
00036 int port;
00037 int weight;
00038 int pref;
00039 };
00040
00041 typedef void (*PurpleSrvCallback)(PurpleSrvResponse *resp, int results, gpointer data);
00042
00052 PurpleSrvQueryData *purple_srv_resolve(const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata);
00053
00059 void purple_srv_cancel(PurpleSrvQueryData *query_data);
00060
00061 #ifdef __cplusplus
00062 }
00063 #endif
00064
00065 #endif