27#ifndef _PURPLE_UPNP_H_
28#define _PURPLE_UPNP_H_
30typedef struct _UPnPMappingAddRemove UPnPMappingAddRemove;
43typedef void (*PurpleUPnPCallback) (gboolean success, gpointer data);
72const PurpleUPnPControlInfo* purple_upnp_get_control_info(
void);
107 PurpleUPnPCallback cb, gpointer cb_data);
124 const gchar* protocol, PurpleUPnPCallback cb, gpointer cb_data);
UPnPMappingAddRemove * purple_upnp_set_port_mapping(unsigned short portmap, const gchar *protocol, PurpleUPnPCallback cb, gpointer cb_data)
Maps Ports in a UPnP enabled IGD that sits on the local network to this purple client.
void purple_upnp_discover(PurpleUPnPCallback cb, gpointer cb_data)
Sends a discovery request to search for a UPnP enabled IGD that contains the WANIPConnection service ...
UPnPMappingAddRemove * purple_upnp_remove_port_mapping(unsigned short portmap, const gchar *protocol, PurpleUPnPCallback cb, gpointer cb_data)
Deletes a port mapping in a UPnP enabled IGD that sits on the local network to this purple client.
void purple_upnp_init(void)
Initialize UPnP.
void purple_upnp_cancel_port_mapping(UPnPMappingAddRemove *mapping_data)
Cancel a pending port mapping request initiated with either purple_upnp_set_port_mapping() or purple_...
const gchar * purple_upnp_get_public_ip(void)
Gets the IP address from a UPnP enabled IGD that sits on the local network, so when getting the netwo...