![]() |
![]() |
![]() |
librygel-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gboolean rygel_writable_container_can_create (RygelWritableContainer *self
,const gchar *upnp_class
); void rygel_writable_container_add_item (RygelWritableContainer *self
,RygelMediaItem *item
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); void rygel_writable_container_add_item_finish (RygelWritableContainer *self
,GAsyncResult *_res_
,GError **error
); void rygel_writable_container_remove_item (RygelWritableContainer *self
,const gchar *id
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
); void rygel_writable_container_remove_item_finish (RygelWritableContainer *self
,GAsyncResult *_res_
,GError **error
); GeeArrayList * rygel_writable_container_get_create_classes (RygelWritableContainer *self
); void rygel_writable_container_set_create_classes (RygelWritableContainer *self
,GeeArrayList *value
); RygelWritableContainer;
In addition to implementing this interface, a writable container must also:
1. Provide one URI that points to a writable folder on a GIO supported filesystem. 2. Monitor not only it's own URI but also that of it's child items, though the latter is implied in the former if you use GIO for monitoring.
gboolean rygel_writable_container_can_create (RygelWritableContainer *self
,const gchar *upnp_class
);
Check if this container claims to be able to create an item with the given upnp class.
|
the RygelWritableContainer instance |
|
The class of an item to check. [in] |
Returns : |
true if it can, false, if not.¨ |
void rygel_writable_container_add_item (RygelWritableContainer *self
,RygelMediaItem *item
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Add a new item directly under this container.
This doesn't imply creation of file(s) pointed to by item's URI(s), that is handled for you.
See also: rygel_writable_container_add_item_finish()
|
the RygelWritableContainer instance |
|
The item to add to this container. [in] |
|
optional cancellable for this operation. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
void rygel_writable_container_add_item_finish (RygelWritableContainer *self
,GAsyncResult *_res_
,GError **error
);
Add a new item directly under this container.
This doesn't imply creation of file(s) pointed to by item's URI(s), that is handled for you.
See also: rygel_writable_container_add_item()
|
the RygelWritableContainer instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
Returns : |
nothing. |
void rygel_writable_container_remove_item (RygelWritableContainer *self
,const gchar *id
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
Remove an item directly under this container that has the ID id
.
This doesn't imply deletion of file(s) pointed to by item's URI(s), that is handled for you.
See also: rygel_writable_container_remove_item_finish()
|
the RygelWritableContainer instance |
|
The ID of the item to remove from this container. [in] |
|
optional cancellable for this operation. [in][allow-none] |
|
callback to call when the request is satisfied. [scope async] |
|
the data to pass to _callback_ function. [closure]
|
void rygel_writable_container_remove_item_finish (RygelWritableContainer *self
,GAsyncResult *_res_
,GError **error
);
Remove an item directly under this container that has the ID id
.
This doesn't imply deletion of file(s) pointed to by item's URI(s), that is handled for you.
See also: rygel_writable_container_remove_item()
|
the RygelWritableContainer instance |
|
a GAsyncResult |
|
location to store the error occuring, or NULL to ignore |
Returns : |
nothing. |
GeeArrayList * rygel_writable_container_get_create_classes
(RygelWritableContainer *self
);
|
the RygelWritableContainer instance to query |
Returns : |
the value of the "create-classes" property |
void rygel_writable_container_set_create_classes (RygelWritableContainer *self
,GeeArrayList *value
);
|
the RygelWritableContainer instance to modify |
|
the new value of the "create-classes" property |
typedef struct _RygelWritableContainer RygelWritableContainer;
Interface to be implemented by 'writable' container: ones that allow creation, removal and editing of items directly under them. Currently, only addition and removal is supported.
In addition to implementing this interface, a writable container must also:
1. Provide one URI that points to a writable folder on a GIO supported filesystem. 2. Monitor not only it's own URI but also that of it's child items, though the latter is implied in the former if you use GIO for monitoring.