Mercurial > pidgin
diff src/upnp.h @ 11391:d3755a7ddd82
[gaim-migrate @ 13620]
*** empty log message ***
committer: Tailor Script <tailor@pidgin.im>
| author | Adam Warrington <awarring> |
|---|---|
| date | Wed, 31 Aug 2005 18:50:38 +0000 |
| parents | ff728e84d59a |
| children | 9563b768e8e2 |
line wrap: on
line diff
--- a/src/upnp.h Wed Aug 31 18:37:10 2005 +0000 +++ b/src/upnp.h Wed Aug 31 18:50:38 2005 +0000 @@ -26,6 +26,14 @@ #ifndef _GAIM_UPNP_H_ #define _GAIM_UPNP_H_ + +typedef struct +{ + gchar* controlURL; + gchar* serviceType; +} GaimUPnPControlInfo; + + #ifdef __cplusplus extern "C" { #endif @@ -44,7 +52,7 @@ * * @return The control URL for the IGD we'll use to use the IGD services */ -char* gaim_upnp_discover(void); +GaimUPnPControlInfo* gaim_upnp_discover(void); @@ -57,7 +65,7 @@ * * @return The IP address of the network, or NULL if something went wrong */ -char* gaim_upnp_get_public_ip(const char* controlURL); +gchar* gaim_upnp_get_public_ip(const GaimUPnPControlInfo* controlInfo); /** @@ -71,9 +79,9 @@ * * @return TRUE if success, FALSE if something went wrong. */ -gboolean gaim_upnp_set_port_mapping(const char* controlURL, +gboolean gaim_upnp_set_port_mapping(const GaimUPnPControlInfo* controlInfo, unsigned short portMap, - const char* protocol); + const gchar* protocol); /** * Deletes a port mapping in a UPnP enabled IGD that sits on the local network @@ -88,8 +96,9 @@ * @return TRUE if success, FALSE if something went wrong. */ gboolean -gaim_upnp_remove_port_mapping(const char* controlURL, unsigned short portMap, - const char* protocol); +gaim_upnp_remove_port_mapping(const GaimUPnPControlInfo* controlURL, + unsigned short portMap, + const gchar* protocol); /*@}*/
