Mercurial > pidgin
comparison libpurple/stun.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 98520ee78f12 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
23 * along with this program; if not, write to the Free Software | 23 * along with this program; if not, write to the Free Software |
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
25 */ | 25 */ |
26 #ifndef _PURPLE_STUN_H_ | 26 #ifndef _PURPLE_STUN_H_ |
27 #define _PURPLE_STUN_H_ | 27 #define _PURPLE_STUN_H_ |
28 | |
29 #ifdef __cplusplus | |
30 extern "C" { | |
31 #endif | |
32 | 28 |
33 /**************************************************************************/ | 29 /**************************************************************************/ |
34 /** @name STUN API */ | 30 /** @name STUN API */ |
35 /**************************************************************************/ | 31 /**************************************************************************/ |
36 /*@{*/ | 32 /*@{*/ |
61 time_t lookup_time; | 57 time_t lookup_time; |
62 }; | 58 }; |
63 | 59 |
64 typedef void (*StunCallback) (PurpleStunNatDiscovery *); | 60 typedef void (*StunCallback) (PurpleStunNatDiscovery *); |
65 | 61 |
62 G_BEGIN_DECLS | |
63 | |
66 /** | 64 /** |
67 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery | 65 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery |
68 * is already done. Otherwise the callback is called when the discovery is over | 66 * is already done. Otherwise the callback is called when the discovery is over |
69 * and NULL is returned. | 67 * and NULL is returned. |
70 * | 68 * |
79 | 77 |
80 void purple_stun_init(void); | 78 void purple_stun_init(void); |
81 | 79 |
82 /*@}*/ | 80 /*@}*/ |
83 | 81 |
84 #ifdef __cplusplus | 82 G_END_DECLS |
85 } | |
86 #endif | |
87 | 83 |
88 #endif /* _PURPLE_STUN_H_ */ | 84 #endif /* _PURPLE_STUN_H_ */ |