| Top |  |  |  |  | 
| GSSDPResourceBrowser * | gssdp_resource_browser_new () | 
| GSSDPClient * | gssdp_resource_browser_get_client () | 
| void | gssdp_resource_browser_set_target () | 
| const char * | gssdp_resource_browser_get_target () | 
| void | gssdp_resource_browser_set_mx () | 
| gushort | gssdp_resource_browser_get_mx () | 
| void | gssdp_resource_browser_set_active () | 
| gboolean | gssdp_resource_browser_get_active () | 
| gboolean | gssdp_resource_browser_rescan () | 
| void | gssdp_resource_group_update () | 
| gboolean | active | Read / Write | 
| GSSDPClient * | client | Read / Write / Construct Only | 
| guint | mx | Read / Write | 
| gchar * | target | Read / Write | 
| void | resource-available | Run Last | 
| void | resource-unavailable | Run Last | 
| void | resource-update | Run Last | 
GSSDPResourceBrowser handles resource discovery. After creating a browser and activating it, the ::resource-available and ::resource-unavailable signals will be emitted whenever the availability of a resource matching the specified discovery target changes. A discovery request is sent out automatically when activating the browser.
GSSDPResourceBrowser * gssdp_resource_browser_new (GSSDPClient *client,const char *target);
target
 is a generic string the resource browser listens for on the SSDP
bus. There are several possible targets such as
"ssdp:all" for everything
"upnp:rootdevice" for UPnP device entry points, not caring about the device type
The UUID of a specific device
Device types such as "urn:schemas-upnp-org:device:MediaServer:1"
Service types such as "urn:schemas-upnp-org:service:ContentDirectory:1"
GSSDPClient *
gssdp_resource_browser_get_client (GSSDPResourceBrowser *resource_browser);
void gssdp_resource_browser_set_target (GSSDPResourceBrowser *resource_browser,const char *target);
Sets the browser target of resource_browser
 to target
.
const char *
gssdp_resource_browser_get_target (GSSDPResourceBrowser *resource_browser);
void gssdp_resource_browser_set_mx (GSSDPResourceBrowser *resource_browser,gushort mx);
Sets the used MX value of resource_browser
 to mx
.
gushort
gssdp_resource_browser_get_mx (GSSDPResourceBrowser *resource_browser);
void gssdp_resource_browser_set_active (GSSDPResourceBrowser *resource_browser,gboolean active);
(De)activates resource_browser
.
gboolean
gssdp_resource_browser_get_active (GSSDPResourceBrowser *resource_browser);
gboolean
gssdp_resource_browser_rescan (GSSDPResourceBrowser *resource_browser);
Begins discovery if resource_browser
 is active and no discovery is
performed. Otherwise does nothing.
void gssdp_resource_group_update (GSSDPResourceGroup *resource_group,guint new_boot_id);
Send an ssdp::update message if the underlying GSSDPClient is running the UDA 1.1 protocol. Does nothing otherwise.
“active” property  “active”                   gboolean
Whether this browser is active or not.
Owner: GSSDPResourceBrowser
Flags: Read / Write
Default value: FALSE
“client” property“client” GSSDPClient *
The GSSDPClient to use.
Owner: GSSDPResourceBrowser
Flags: Read / Write / Construct Only
“mx” property  “mx”                       guint
The maximum number of seconds in which to request other parties to respond.
Owner: GSSDPResourceBrowser
Flags: Read / Write
Allowed values: [1,65535]
Default value: 3
“resource-available” signalvoid user_function (GSSDPResourceBrowser *resource_browser, gchar *usn, gpointer locations, gpointer user_data)
The ::resource-available signal is emitted whenever a new resource has become available.
| resource_browser | The GSSDPResourceBrowser that received the signal | |
| usn | The USN of the discovered resource | |
| locations | A GList of strings describing the locations of the discovered resource. | [type GList*][transfer none][element-type utf8] | 
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“resource-unavailable” signalvoid user_function (GSSDPResourceBrowser *resource_browser, gchar *usn, gpointer user_data)
The ::resource-unavailable signal is emitted whenever a resource is not available any more.
| resource_browser | The GSSDPResourceBrowser that received the signal | |
| usn | The USN of the resource | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last
“resource-update” signalvoid user_function (GSSDPResourceBrowser *resource_browser, gchar *usn, guint boot_id, guint next_boot_id, gpointer user_data)
The ::resource-update signal is emitted whenever an UPnP 1.1 device is about to change it's BOOTID.
| resource_browser | The GSSDPResourceBrowser that received the signal | |
| usn | The USN of the resource | |
| boot_id | The current boot-id | |
| next_boot_id | The next boot-id | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run Last