| librygel-server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define RYGEL_TYPE_SIMPLE_CONTAINER void rygel_simple_container_add_child_item (RygelSimpleContainer *self,RygelMediaItem *child); RygelMediaObjects * rygel_simple_container_get_all_children (RygelSimpleContainer *self); void rygel_simple_container_add_child_container (RygelSimpleContainer *self,RygelMediaContainer *child); void rygel_simple_container_remove_child (RygelSimpleContainer *self,RygelMediaObject *child); void rygel_simple_container_clear (RygelSimpleContainer *self); gboolean rygel_simple_container_is_child_id_unique (RygelSimpleContainer *self,const gchar *child_id); RygelSimpleContainer * rygel_simple_container_new (const gchar *id,RygelMediaContainer *parent,const gchar *title); RygelSimpleContainer * rygel_simple_container_new_root (const gchar *title); struct RygelSimpleContainer;
#define RYGEL_TYPE_SIMPLE_CONTAINER (rygel_simple_container_get_type ())
The type for RygelSimpleContainer.
void rygel_simple_container_add_child_item (RygelSimpleContainer *self,RygelMediaItem *child);
|
the RygelSimpleContainer instance |
RygelMediaObjects * rygel_simple_container_get_all_children
(RygelSimpleContainer *self);
|
the RygelSimpleContainer instance |
void rygel_simple_container_add_child_container (RygelSimpleContainer *self,RygelMediaContainer *child);
NOTE: This method only actually adds the child container to the hierarchy until it has any children to offer.
|
the RygelSimpleContainer instance |
void rygel_simple_container_remove_child (RygelSimpleContainer *self,RygelMediaObject *child);
|
the RygelSimpleContainer instance |
void rygel_simple_container_clear (RygelSimpleContainer *self);
|
the RygelSimpleContainer instance |
gboolean rygel_simple_container_is_child_id_unique (RygelSimpleContainer *self,const gchar *child_id);
|
the RygelSimpleContainer instance |
RygelSimpleContainer * rygel_simple_container_new (const gchar *id,RygelMediaContainer *parent,const gchar *title);
RygelSimpleContainer * rygel_simple_container_new_root (const gchar *title);
struct RygelSimpleContainer {
RygelMediaContainer parent_instance;
RygelSimpleContainerPrivate * priv;
RygelMediaObjects* children;
};
A simple implementation of MediaContainer that keeps all MediaObjects in memory. In order for it to be of any use, you must add children to children ArrayList field.