Sun, 02 Feb 2014 13:11:51 -0800
Prep for 2.10.9
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
1 | /** |
|
11379
a5a66b0e8b6e
[gaim-migrate @ 13605]
Daniel Atallah <datallah@pidgin.im>
parents:
11374
diff
changeset
|
2 | * @file dnssrv.h |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
3 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | /* purple |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
6 | * |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
7 | * Copyright (C) 2005, Thomas Butter <butter@uni-mannheim.de> |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
8 | * |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
13 | * |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
18 | * |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
20 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15884
diff
changeset
|
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
22 | */ |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
23 | |
| 15884 | 24 | #ifndef _PURPLE_DNSSRV_H |
| 25 | #define _PURPLE_DNSSRV_H | |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
26 | |
|
14988
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
27 | #ifdef __cplusplus |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
28 | extern "C" { |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
29 | #endif |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
30 | |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
31 | typedef struct _PurpleSrvTxtQueryData PurpleSrvTxtQueryData; |
| 15884 | 32 | typedef struct _PurpleSrvResponse PurpleSrvResponse; |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
33 | typedef struct _PurpleTxtResponse PurpleTxtResponse; |
|
12686
ec3e7c4ff045
[gaim-migrate @ 15029]
Richard Laager <rlaager@pidgin.im>
parents:
11501
diff
changeset
|
34 | |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
35 | /* For compatibility, should be removed for 3.0.0 |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
36 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
37 | typedef struct _PurpleSrvTxtQueryData PurpleSrvQueryData; |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
38 | |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
39 | #include <glib.h> |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
40 | |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
41 | enum PurpleDnsType { |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
42 | PurpleDnsTypeTxt = 16, |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
43 | PurpleDnsTypeSrv = 33 |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
44 | }; |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
45 | |
| 15884 | 46 | struct _PurpleSrvResponse { |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
47 | char hostname[256]; |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
48 | int port; |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
49 | int weight; |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
50 | int pref; |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
51 | }; |
|
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
52 | |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
53 | struct _PurpleTxtResponse { |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
54 | char *content; |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
55 | }; |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
56 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
57 | typedef void (*PurpleSrvTxtQueryResolvedCallback) (PurpleSrvTxtQueryData *query_data, GList *records); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
58 | typedef void (*PurpleSrvTxtQueryFailedCallback) (PurpleSrvTxtQueryData *query_data, const gchar *error_message); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
59 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
60 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
61 | * SRV Request UI operations; UIs should implement this if they want to do SRV |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
62 | * lookups themselves, rather than relying on the core. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
63 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
64 | * @see @ref ui-ops |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
65 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
66 | typedef struct |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
67 | { |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
68 | /** If implemented, return TRUE if the UI takes responsibility for SRV |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
69 | * queries. When returning FALSE, the standard implementation is used. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
70 | * These callbacks MUST be called asynchronously. */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
71 | gboolean (*resolve)(PurpleSrvTxtQueryData *query_data, |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
72 | PurpleSrvTxtQueryResolvedCallback resolved_cb, |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
73 | PurpleSrvTxtQueryFailedCallback failed_cb); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
74 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
75 | /** Called just before @a query_data is freed; this should cancel any |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
76 | * further use of @a query_data the UI would make. Unneeded if |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
77 | * #resolve_host is not implemented. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
78 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
79 | void (*destroy)(PurpleSrvTxtQueryData *query_data); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
80 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
81 | void (*_purple_reserved1)(void); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
82 | void (*_purple_reserved2)(void); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
83 | void (*_purple_reserved3)(void); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
84 | void (*_purple_reserved4)(void); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
85 | } PurpleSrvTxtQueryUiOps; |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
86 | |
|
27456
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
87 | /** |
|
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
88 | * @param resp An array of PurpleSrvResponse of size results. The array |
|
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
89 | * is sorted based on the order described in the DNS SRV RFC. |
|
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
90 | * Users of this API should try each record in resp in order, |
|
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
91 | * starting at the beginning. |
|
4f0bc5271712
Changes to our DNS SRV record sorting, care of Vijay Vijay Raghunathan
Mark Doliner <markdoliner@pidgin.im>
parents:
26766
diff
changeset
|
92 | */ |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
93 | typedef void (*PurpleSrvCallback)(PurpleSrvResponse *resp, int results, gpointer data); |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
94 | |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
95 | /** |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
96 | * Callback that returns the data retrieved from a DNS TXT lookup. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
97 | * |
|
27605
b03b418413b0
A couple more s/GSList/GList/ changes as fallout from the last change.
Etan Reisner <deryni@pidgin.im>
parents:
27456
diff
changeset
|
98 | * @param responses A GList of PurpleTxtResponse objects. |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
99 | * @param data The extra data passed to purple_txt_resolve. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
100 | */ |
|
27605
b03b418413b0
A couple more s/GSList/GList/ changes as fallout from the last change.
Etan Reisner <deryni@pidgin.im>
parents:
27456
diff
changeset
|
101 | typedef void (*PurpleTxtCallback)(GList *responses, gpointer data); |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
102 | |
|
11374
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
103 | /** |
|
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
104 | * Queries an SRV record. |
|
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
105 | * |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
106 | * @param account the account that the query is being done for (or NULL) |
|
11374
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
107 | * @param protocol Name of the protocol (e.g. "sip") |
|
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
108 | * @param transport Name of the transport ("tcp" or "udp") |
|
14370
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
109 | * @param domain Domain name to query (e.g. "blubb.com") |
|
11501
a8fc92026134
[gaim-migrate @ 13746]
Richard Laager <rlaager@pidgin.im>
parents:
11444
diff
changeset
|
110 | * @param cb A callback which will be called with the results |
|
a8fc92026134
[gaim-migrate @ 13746]
Richard Laager <rlaager@pidgin.im>
parents:
11444
diff
changeset
|
111 | * @param extradata Extra data to be passed to the callback |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
112 | * |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
113 | * @since 2.8.0 |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
114 | */ |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
115 | PurpleSrvTxtQueryData *purple_srv_resolve_account(PurpleAccount *account, const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata); |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
116 | |
|
31738
c0a7971ce0d2
purple: Fix some compiler warnings related to new API and missing prototypes.
Paul Aurich <darkrain42@pidgin.im>
parents:
31678
diff
changeset
|
117 | #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_DNSSRV_C_) |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
118 | /** |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
119 | * Queries an SRV record. |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
120 | * |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
121 | * @param protocol Name of the protocol (e.g. "sip") |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
122 | * @param transport Name of the transport ("tcp" or "udp") |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
123 | * @param domain Domain name to query (e.g. "blubb.com") |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
124 | * @param cb A callback which will be called with the results |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
125 | * @param extradata Extra data to be passed to the callback |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
126 | * |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
127 | * @deprecated Use purple_srv_resolve_account instead |
|
11374
eb32bdcf2e38
[gaim-migrate @ 13600]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
11373
diff
changeset
|
128 | */ |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
129 | PurpleSrvTxtQueryData *purple_srv_resolve(const char *protocol, const char *transport, const char *domain, PurpleSrvCallback cb, gpointer extradata); |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
130 | #endif |
|
14370
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
131 | |
|
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
132 | /** |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
133 | * Cancel an SRV or DNS query. |
|
14370
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
134 | * |
|
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
135 | * @param query_data The request to cancel. |
|
31969
82e51b0825bc
Fixes to the PurpleSrvTxtQueryUiOps code. Refs #12647
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
31738
diff
changeset
|
136 | * |
|
82e51b0825bc
Fixes to the PurpleSrvTxtQueryUiOps code. Refs #12647
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
31738
diff
changeset
|
137 | * @deprecated Use purple_srv_txt_query_destroy instead |
|
14370
12ef3d4096ee
[gaim-migrate @ 16998]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
138 | */ |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
139 | void purple_srv_cancel(PurpleSrvTxtQueryData *query_data); |
|
11373
80fd6df6fbe0
[gaim-migrate @ 13598]
Thomas Butter <tbutter@users.sourceforge.net>
parents:
diff
changeset
|
140 | |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
141 | /** |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
142 | * Queries an TXT record. |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
143 | * |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
144 | * @param account the account that the query is being done for (or NULL) |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
145 | * @param owner Name of the protocol (e.g. "_xmppconnect") |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
146 | * @param domain Domain name to query (e.g. "blubb.com") |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
147 | * @param cb A callback which will be called with the results |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
148 | * @param extradata Extra data to be passed to the callback |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
149 | * |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
150 | * @since 2.8.0 |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
151 | */ |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
152 | PurpleSrvTxtQueryData *purple_txt_resolve_account(PurpleAccount *account, const char *owner, const char *domain, PurpleTxtCallback cb, gpointer extradata); |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
153 | |
|
31738
c0a7971ce0d2
purple: Fix some compiler warnings related to new API and missing prototypes.
Paul Aurich <darkrain42@pidgin.im>
parents:
31678
diff
changeset
|
154 | #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_DNSSRV_C_) |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
155 | /** |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
156 | * Queries an TXT record. |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
157 | * |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
158 | * @param owner Name of the protocol (e.g. "_xmppconnect") |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
159 | * @param domain Domain name to query (e.g. "blubb.com") |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
160 | * @param cb A callback which will be called with the results |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
161 | * @param extradata Extra data to be passed to the callback |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
162 | * |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
163 | * @deprecated Use purple_txt_resolve_account instead |
|
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
164 | * |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
165 | * @since 2.6.0 |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
166 | */ |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
167 | PurpleSrvTxtQueryData *purple_txt_resolve(const char *owner, const char *domain, PurpleTxtCallback cb, gpointer extradata); |
|
31678
ad8a9a266b05
Add new DNS-related API to perform lookups in the context of an account.
Daniel Atallah <datallah@pidgin.im>
parents:
31625
diff
changeset
|
168 | #endif |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
169 | |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
170 | /** |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
171 | * Cancel an TXT DNS query. |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
172 | * |
|
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
173 | * @param query_data The request to cancel. |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
174 | * @since 2.6.0 |
|
31969
82e51b0825bc
Fixes to the PurpleSrvTxtQueryUiOps code. Refs #12647
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
31738
diff
changeset
|
175 | * |
|
82e51b0825bc
Fixes to the PurpleSrvTxtQueryUiOps code. Refs #12647
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
31738
diff
changeset
|
176 | * @deprecated Use purple_srv_txt_query_destroy instead |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
177 | */ |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
178 | void purple_txt_cancel(PurpleSrvTxtQueryData *query_data); |
|
23604
f34d41640be2
* some code style adjustments in caps.c
Tobias Markmann <tfar@soc.pidgin.im>
parents:
20147
diff
changeset
|
179 | |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
180 | /** |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
181 | * Get the value of the current TXT record. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
182 | * |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27605
diff
changeset
|
183 | * @param response The TXT response record |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
184 | * @returns The value of the current TXT record. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
185 | * @since 2.6.0 |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
186 | */ |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27605
diff
changeset
|
187 | const gchar *purple_txt_response_get_content(PurpleTxtResponse *response); |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
188 | |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
189 | /** |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
190 | * Destroy a TXT DNS response object. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
191 | * |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
192 | * @param response The PurpleTxtResponse to destroy. |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
193 | * @since 2.6.0 |
|
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
194 | */ |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27605
diff
changeset
|
195 | void purple_txt_response_destroy(PurpleTxtResponse *response); |
|
26766
854a2eaa3862
Hide PurpleTxtResponse and use a more purple API
Paul Aurich <darkrain42@pidgin.im>
parents:
26765
diff
changeset
|
196 | |
|
31625
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
197 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
198 | * Cancel a SRV/TXT query and destroy the associated data structure. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
199 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
200 | * @param query_data The SRV/TXT query to cancel. This data structure |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
201 | * is freed by this function. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
202 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
203 | void purple_srv_txt_query_destroy(PurpleSrvTxtQueryData *query_data); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
204 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
205 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
206 | * Sets the UI operations structure to be used when doing a SRV/TXT |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
207 | * resolve. The UI operations need only be set if the UI wants to |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
208 | * handle the resolve itself; otherwise, leave it as NULL. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
209 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
210 | * @param ops The UI operations structure. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
211 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
212 | void purple_srv_txt_query_set_ui_ops(PurpleSrvTxtQueryUiOps *ops); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
213 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
214 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
215 | * Returns the UI operations structure to be used when doing a SRV/TXT |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
216 | * resolve. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
217 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
218 | * @return The UI operations structure. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
219 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
220 | PurpleSrvTxtQueryUiOps *purple_srv_txt_query_get_ui_ops(void); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
221 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
222 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
223 | * Get the query from a PurpleDnsQueryData |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
224 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
225 | * @param query_data The SRV/TXT query |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
226 | * @return The query. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
227 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
228 | char *purple_srv_txt_query_get_query(PurpleSrvTxtQueryData *query_data); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
229 | |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
230 | /** |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
231 | * Get the type from a PurpleDnsQueryData (TXT or SRV) |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
232 | * |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
233 | * @param query_data The query |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
234 | * @return The query. |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
235 | */ |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
236 | int purple_srv_txt_query_get_type(PurpleSrvTxtQueryData *query_data); |
|
1097ed538036
Added PurpleSrvTxtQueryUiOps which allow UIs to specify their own mechanisms
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
28423
diff
changeset
|
237 | |
|
14988
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
238 | #ifdef __cplusplus |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
239 | } |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
240 | #endif |
|
66b34458d49e
[gaim-migrate @ 17698]
Richard Laager <rlaager@pidgin.im>
parents:
14370
diff
changeset
|
241 | |
| 15884 | 242 | #endif /* _PURPLE_DNSSRV_H */ |