Class
GSSDPResourceBrowser
Description [src]
class GSSDP.ResourceBrowser : GObject.Object {
parent_instance: GObject
}
Class handling resource discovery.
After creating a browser
and activating it, the GSSDPResourceBrowser::resource-available
and
GSSDPResourceBrowser::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.
If the associated GSSDPClient
was configured to support UDA 1.1, it
will also emit the GSSDPResourceBrowser::resource-update
if any of
the UDA 1.1 devices on the nework annouced its upcoming BOOTID change.
Instance methods
gssdp_resource_browser_rescan
Begins discovery if resource_browser
is active and no discovery is
performed. Otherwise does nothing.
Properties
GSSDP.ResourceBrowser:mx
The maximum number of seconds in which to request other parties to respond.
Signals
GSSDP.ResourceBrowser::resource-available
The ::resource-available signal is emitted whenever a new resource has become available.
GSSDP.ResourceBrowser::resource-unavailable
The ::resource-unavailable signal is emitted whenever a resource is not available any more.
GSSDP.ResourceBrowser::resource-update
The ::resource-update signal is emitted whenever an UPnP 1.1 device is about to change it’s BOOTID.
since: 1.2.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GSSDPResourceBrowserClass {
GObjectClass parent_class;
void (* resource_available) (
GSSDPResourceBrowser* resource_browser,
const char* usn,
const GList* locations
);
void (* resource_update) (
GSSDPResourceBrowser* resource_browser,
const char* usn,
guint boot_id,
guint next_boot_id
);
void (* resource_unavailable) (
GSSDPResourceBrowser* resource_browser,
const char* usn
);
void (* _gssdp_reserved1) (
void
);
void (* _gssdp_reserved2) (
void
);
void (* _gssdp_reserved3) (
void
);
void (* _gssdp_reserved4) (
void
);
}
Class members
parent_class: GObjectClass
- No description available.
resource_available: void (* resource_available) ( GSSDPResourceBrowser* resource_browser, const char* usn, const GList* locations )
- No description available.
resource_update: void (* resource_update) ( GSSDPResourceBrowser* resource_browser, const char* usn, guint boot_id, guint next_boot_id )
- No description available.
resource_unavailable: void (* resource_unavailable) ( GSSDPResourceBrowser* resource_browser, const char* usn )
- No description available.
_gssdp_reserved1: void (* _gssdp_reserved1) ( void )
- No description available.
_gssdp_reserved2: void (* _gssdp_reserved2) ( void )
- No description available.
_gssdp_reserved3: void (* _gssdp_reserved3) ( void )
- No description available.
_gssdp_reserved4: void (* _gssdp_reserved4) ( void )
- No description available.