| 100 * |
100 * |
| 101 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery |
101 * Starts a NAT discovery. It returns a PurpleStunNatDiscovery if the discovery |
| 102 * is already done. Otherwise the callback is called when the discovery is over |
102 * is already done. Otherwise the callback is called when the discovery is over |
| 103 * and NULL is returned. |
103 * and NULL is returned. |
| 104 * |
104 * |
| 105 * Returns: a #PurpleStunNatDiscovery which includes the public IP and the type |
105 * Returns: (skip) (transfer none): a #PurpleStunNatDiscovery which includes the public IP and the type |
| 106 * of NAT or NULL if discovery would block |
106 * of NAT or NULL if discovery would block |
| 107 */ |
107 */ |
| 108 PurpleStunNatDiscovery *purple_stun_discover(PurpleStunCallback cb); |
108 PurpleStunNatDiscovery *purple_stun_discover(PurpleStunCallback cb); |
| 109 |
109 |
| 110 void purple_stun_init(void); |
110 void purple_stun_init(void); |