RygelTrackableContainer

RygelTrackableContainer — The base class for containers that provide automatic change tracking.

Types and Values

Description

Derived classes should implement the add_child() and remove_child() virtual functions to keep track of child items and child containers.

Rygel server plugins (See RygelMediaServer) may then call rygel_trackable_container_add_child_tracked() and rygel_trackable_container_remove_child_tracked() to add and remove items, which will then cause the “container_updated” signal to be emitted.

Functions

Types and Values

RygelTrackableContainer

typedef struct _RygelTrackableContainer RygelTrackableContainer;

The base class for containers that provide automatic change tracking.

Derived classes should implement the add_child() and remove_child() virtual functions to keep track of child items and child containers.

Rygel server plugins (See RygelMediaServer) may then call rygel_trackable_container_add_child_tracked() and rygel_trackable_container_remove_child_tracked() to add and remove items, which will then cause the “container_updated” signal to be emitted.


struct RygelTrackableContainerIface

struct RygelTrackableContainerIface {
	GTypeInterface parent_iface;
	void (*add_child) (RygelTrackableContainer* self, RygelMediaObject* object, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*add_child_finish) (RygelTrackableContainer* self, GAsyncResult* _res_);
	void (*remove_child) (RygelTrackableContainer* self, RygelMediaObject* object, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*remove_child_finish) (RygelTrackableContainer* self, GAsyncResult* _res_);
	gchar* (*get_service_reset_token) (RygelTrackableContainer* self);
	void (*set_service_reset_token) (RygelTrackableContainer* self, const gchar* token);
	guint32 (*get_system_update_id) (RygelTrackableContainer* self);
};

Interface for creating RygelTrackableContainer implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

add_child ()

virtual method used internally

 

add_child_finish ()

asynchronous finish function used internally

 

remove_child ()

virtual method used internally

 

remove_child_finish ()

asynchronous finish function used internally

 

get_service_reset_token ()

virtual method called by rygel_trackable_container_get_service_reset_token()

 

set_service_reset_token ()

virtual method called by rygel_trackable_container_set_service_reset_token()

 

get_system_update_id ()

virtual method called by rygel_trackable_container_get_system_update_id()