RygelMediaFileItem

RygelMediaFileItem — Represents a file-accessible or http-accessible media item (music file, image file, video file, etc) with some pre-established metadata or a content placeholder for uploaded content.

Types and Values

Description

Items representing non-file-accessible content should create their own MediaItem subclass.

Functions

Types and Values

RYGEL_TYPE_MEDIA_FILE_ITEM

#define RYGEL_TYPE_MEDIA_FILE_ITEM (rygel_media_file_item_get_type ())

The type for RygelMediaFileItem.


struct RygelMediaFileItem

struct RygelMediaFileItem {
	RygelMediaItem parent_instance;
	RygelMediaFileItemPrivate * priv;
};

Represents a file-accessible or http-accessible media item (music file, image file, video file, etc) with some pre-established metadata or a content placeholder for uploaded content.

Items representing non-file-accessible content should create their own MediaItem subclass.


struct RygelMediaFileItemClass

struct RygelMediaFileItemClass {
	RygelMediaItemClass parent_class;
	RygelMediaResource* (*get_primary_resource) (RygelMediaFileItem* self);
	gchar* (*get_extension) (RygelMediaFileItem* self);
	void (*add_engine_resources) (RygelMediaFileItem* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*add_engine_resources_finish) (RygelMediaFileItem* self, GAsyncResult* _res_);
	void (*add_additional_resources) (RygelMediaFileItem* self, RygelHTTPServer* server);
};

The class structure for RYGEL_TYPE_MEDIA_FILE_ITEM. All the fields in this structure are private and should never be accessed directly.

Members

get_primary_resource ()

virtual method called by rygel_media_file_item_get_primary_resource()

 

get_extension ()

virtual method called by rygel_media_file_item_get_extension()

 

add_engine_resources ()

virtual method called by rygel_media_file_item_add_engine_resources()

 

add_engine_resources_finish ()

asynchronous finish function for add_engine_resources, called by rygel_media_file_item_add_engine_resources()

 

add_additional_resources ()