Mercurial > pidgin
comparison libpurple/dnssrv.h @ 15822:32c366eeeb99
sed -ie 's/gaim/purple/g'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 19 Mar 2007 07:01:17 +0000 |
parents | 5fe8042783c1 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
15821:84b0f9b23ede | 15822:32c366eeeb99 |
---|---|
1 /** | 1 /** |
2 * @file dnssrv.h | 2 * @file dnssrv.h |
3 * | 3 * |
4 * gaim | 4 * purple |
5 * | 5 * |
6 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de> | 6 * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de> |
7 *i | 7 *i |
8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | 9 * it under the terms of the GNU General Public License as published by |
18 * You should have received a copy of the GNU General Public License | 18 * You should have received a copy of the GNU General Public License |
19 * along with this program; if not, write to the Free Software | 19 * along with this program; if not, write to the Free Software |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 */ | 21 */ |
22 | 22 |
23 #ifndef _GAIM_DNSSRV_H | 23 #ifndef _PURPLE_DNSSRV_H |
24 #define _GAIM_DNSSRV_H | 24 #define _PURPLE_DNSSRV_H |
25 | 25 |
26 #ifdef __cplusplus | 26 #ifdef __cplusplus |
27 extern "C" { | 27 extern "C" { |
28 #endif | 28 #endif |
29 | 29 |
30 typedef struct _GaimSrvResponse GaimSrvResponse; | 30 typedef struct _PurpleSrvResponse PurpleSrvResponse; |
31 typedef struct _GaimSrvQueryData GaimSrvQueryData; | 31 typedef struct _PurpleSrvQueryData PurpleSrvQueryData; |
32 | 32 |
33 struct _GaimSrvResponse { | 33 struct _PurpleSrvResponse { |
34 char hostname[256]; | 34 char hostname[256]; |
35 int port; | 35 int port; |
36 int weight; | 36 int weight; |
37 int pref; | 37 int pref; |
38 }; | 38 }; |
39 | 39 |
40 typedef void (*GaimSrvCallback)(GaimSrvResponse *resp, int results, gpointer data); | 40 typedef void (*PurpleSrvCallback)(PurpleSrvResponse *resp, int results, gpointer data); |
41 | 41 |
42 /** | 42 /** |
43 * Queries an SRV record. | 43 * Queries an SRV record. |
44 * | 44 * |
45 * @param protocol Name of the protocol (e.g. "sip") | 45 * @param protocol Name of the protocol (e.g. "sip") |
46 * @param transport Name of the transport ("tcp" or "udp") | 46 * @param transport Name of the transport ("tcp" or "udp") |
47 * @param domain Domain name to query (e.g. "blubb.com") | 47 * @param domain Domain name to query (e.g. "blubb.com") |
48 * @param cb A callback which will be called with the results | 48 * @param cb A callback which will be called with the results |
49 * @param extradata Extra data to be passed to the callback | 49 * @param extradata Extra data to be passed to the callback |
50 */ | 50 */ |
51 GaimSrvQueryData *gaim_srv_resolve(const char *protocol, const char *transport, const char *domain, GaimSrvCallback cb, gpointer extradata); | 51 PurpleSrvQueryData *purple_srv_resolve(const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata); |
52 | 52 |
53 /** | 53 /** |
54 * Cancel an SRV DNS query. | 54 * Cancel an SRV DNS query. |
55 * | 55 * |
56 * @param query_data The request to cancel. | 56 * @param query_data The request to cancel. |
57 */ | 57 */ |
58 void gaim_srv_cancel(GaimSrvQueryData *query_data); | 58 void purple_srv_cancel(PurpleSrvQueryData *query_data); |
59 | 59 |
60 #ifdef __cplusplus | 60 #ifdef __cplusplus |
61 } | 61 } |
62 #endif | 62 #endif |
63 | 63 |
64 #endif /* _GAIM_DNSSRV_H */ | 64 #endif /* _PURPLE_DNSSRV_H */ |