![]() |
![]() |
![]() |
GUPnP Reference Manual | ![]() |
---|---|---|---|---|
GUPnPRootDevice; GUPnPRootDevice* gupnp_root_device_new (GUPnPContext *context,xmlDoc *description_doc, constchar *relative_location); GUPnPRootDevice* gupnp_root_device_new_full (GUPnPContext *context, GUPnPResourceFactory *factory,xmlDoc *description_doc, constchar *relative_location);void gupnp_root_device_set_available (GUPnPRootDevice *root_device,gboolean available);gboolean gupnp_root_device_get_available (GUPnPRootDevice *root_device); constchar * gupnp_root_device_get_relative_location (GUPnPRootDevice *root_device);
"available"gboolean : Read / Write "description-doc"gpointer : Write / Construct Only "relative-location"gchar * : Read / Write / Construct Only
typedef struct _GUPnPRootDevice GUPnPRootDevice;
This struct contains private data only, and should be accessed using the functions below.
GUPnPRootDevice* gupnp_root_device_new (GUPnPContext *context,xmlDoc *description_doc, constchar *relative_location);
Create a new GUPnPRootDevice object.
|
The GUPnPContext |
|
Pointer to the device description document |
|
Location to use for this device, relative to the HTTP root |
Returns : |
A new GUPnPRootDevice object.
|
GUPnPRootDevice* gupnp_root_device_new_full (GUPnPContext *context, GUPnPResourceFactory *factory,xmlDoc *description_doc, constchar *relative_location);
Create a new GUPnPRootDevice.
|
A GUPnPContext |
|
A GUPnPResourceFactory |
|
Pointer to the device description document |
|
Location to use for this device, relative to the HTTP root |
Returns : |
A new GUPnPRootDevice object. |
void gupnp_root_device_set_available (GUPnPRootDevice *root_device,gboolean available);
Controls whether or not root_device
is available (announcing
its presence).
|
A GUPnPRootDevice |
|
TRUE if root_device should be available
|
gboolean gupnp_root_device_get_available (GUPnPRootDevice *root_device);
Get whether or not root_device
is available (announcing its presence).
|
A GUPnPRootDevice |
Returns : |
TRUE root_device is available, FALSE |
constchar * gupnp_root_device_get_relative_location (GUPnPRootDevice *root_device);
Get the relative location of root_device
.
|
A GUPnPRootDevice |
Returns : |
The relative location of root_device .
|