RygelConfiguration

RygelConfiguration — Interface for dealing with Rygel configuration.

Synopsis

enum                RygelConfigurationError;
gboolean            rygel_configuration_get_upnp_enabled
                                                        (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_interface   (RygelConfiguration *self,
                                                         GError **error);
gint                rygel_configuration_get_port        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_transcoding (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_mp3_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_mp2ts_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_lpcm_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_wmv_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_aac_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_avc_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_allow_upload
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_allow_deletion
                                                        (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_log_levels  (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_plugin_path (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_video_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_music_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gchar *             rygel_configuration_get_picture_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);
gboolean            rygel_configuration_get_enabled     (RygelConfiguration *self,
                                                         const gchar *section,
                                                         GError **error);
gchar *             rygel_configuration_get_title       (RygelConfiguration *self,
                                                         const gchar *section,
                                                         GError **error);
gchar *             rygel_configuration_get_string      (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);
GeeArrayList *      rygel_configuration_get_string_list (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);
gint                rygel_configuration_get_int         (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         gint min,
                                                         gint max,
                                                         GError **error);
GeeArrayList *      rygel_configuration_get_int_list    (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);
gboolean            rygel_configuration_get_bool        (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);
                    RygelConfiguration;
struct              RygelConfigurationIface;

Object Hierarchy

  GInterface
   +----RygelConfiguration

Prerequisites

RygelConfiguration requires GObject.

Known Implementations

RygelConfiguration is implemented by RygelCmdlineConfig, RygelMetaConfig and RygelUserConfig.

Description

Details

enum RygelConfigurationError

typedef enum {
	RYGEL_CONFIGURATION_ERROR_NO_VALUE_SET,
	RYGEL_CONFIGURATION_ERROR_VALUE_OUT_OF_RANGE
} RygelConfigurationError;

rygel_configuration_get_upnp_enabled ()

gboolean            rygel_configuration_get_upnp_enabled
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_interface ()

gchar *             rygel_configuration_get_interface   (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_port ()

gint                rygel_configuration_get_port        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_transcoding ()

gboolean            rygel_configuration_get_transcoding (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_mp3_transcoder ()

gboolean            rygel_configuration_get_mp3_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_mp2ts_transcoder ()

gboolean            rygel_configuration_get_mp2ts_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_lpcm_transcoder ()

gboolean            rygel_configuration_get_lpcm_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_wmv_transcoder ()

gboolean            rygel_configuration_get_wmv_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_aac_transcoder ()

gboolean            rygel_configuration_get_aac_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_avc_transcoder ()

gboolean            rygel_configuration_get_avc_transcoder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_allow_upload ()

gboolean            rygel_configuration_get_allow_upload
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_allow_deletion ()

gboolean            rygel_configuration_get_allow_deletion
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_log_levels ()

gchar *             rygel_configuration_get_log_levels  (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_plugin_path ()

gchar *             rygel_configuration_get_plugin_path (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_video_upload_folder ()

gchar *             rygel_configuration_get_video_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_music_upload_folder ()

gchar *             rygel_configuration_get_music_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_picture_upload_folder ()

gchar *             rygel_configuration_get_picture_upload_folder
                                                        (RygelConfiguration *self,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_enabled ()

gboolean            rygel_configuration_get_enabled     (RygelConfiguration *self,
                                                         const gchar *section,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_title ()

gchar *             rygel_configuration_get_title       (RygelConfiguration *self,
                                                         const gchar *section,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_string ()

gchar *             rygel_configuration_get_string      (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_string_list ()

GeeArrayList *      rygel_configuration_get_string_list (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_int ()

gint                rygel_configuration_get_int         (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         gint min,
                                                         gint max,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_int_list ()

GeeArrayList *      rygel_configuration_get_int_list    (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

rygel_configuration_get_bool ()

gboolean            rygel_configuration_get_bool        (RygelConfiguration *self,
                                                         const gchar *section,
                                                         const gchar *key,
                                                         GError **error);

self :

the RygelConfiguration instance

error :

location to store the error occuring, or NULL to ignore

RygelConfiguration

typedef struct _RygelConfiguration RygelConfiguration;

Interface for dealing with Rygel configuration.


struct RygelConfigurationIface

struct RygelConfigurationIface {
	GTypeInterface parent_iface;
	gboolean (*get_upnp_enabled) (RygelConfiguration* self, GError** error);
	gchar* (*get_interface) (RygelConfiguration* self, GError** error);
	gint (*get_port) (RygelConfiguration* self, GError** error);
	gboolean (*get_transcoding) (RygelConfiguration* self, GError** error);
	gboolean (*get_mp3_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_mp2ts_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_lpcm_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_wmv_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_aac_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_avc_transcoder) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_upload) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_deletion) (RygelConfiguration* self, GError** error);
	gchar* (*get_log_levels) (RygelConfiguration* self, GError** error);
	gchar* (*get_plugin_path) (RygelConfiguration* self, GError** error);
	gchar* (*get_video_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_music_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_picture_upload_folder) (RygelConfiguration* self, GError** error);
	gboolean (*get_enabled) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_title) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_string) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	GeeArrayList* (*get_string_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gint (*get_int) (RygelConfiguration* self, const gchar* section, const gchar* key, gint min, gint max, GError** error);
	GeeArrayList* (*get_int_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gboolean (*get_bool) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
};

Interface for creating RygelConfiguration implementations.

GTypeInterface parent_iface;

the parent interface structure

get_upnp_enabled ()

virtual method called by rygel_configuration_get_upnp_enabled()

get_interface ()

virtual method called by rygel_configuration_get_interface()

get_port ()

virtual method called by rygel_configuration_get_port()

get_transcoding ()

virtual method called by rygel_configuration_get_transcoding()

get_mp3_transcoder ()

virtual method called by rygel_configuration_get_mp3_transcoder()

get_mp2ts_transcoder ()

virtual method called by rygel_configuration_get_mp2ts_transcoder()

get_lpcm_transcoder ()

virtual method called by rygel_configuration_get_lpcm_transcoder()

get_wmv_transcoder ()

virtual method called by rygel_configuration_get_wmv_transcoder()

get_aac_transcoder ()

virtual method called by rygel_configuration_get_aac_transcoder()

get_avc_transcoder ()

virtual method called by rygel_configuration_get_avc_transcoder()

get_allow_upload ()

virtual method called by rygel_configuration_get_allow_upload()

get_allow_deletion ()

virtual method called by rygel_configuration_get_allow_deletion()

get_log_levels ()

virtual method called by rygel_configuration_get_log_levels()

get_plugin_path ()

virtual method called by rygel_configuration_get_plugin_path()

get_video_upload_folder ()

virtual method called by rygel_configuration_get_video_upload_folder()

get_music_upload_folder ()

virtual method called by rygel_configuration_get_music_upload_folder()

get_picture_upload_folder ()

virtual method called by rygel_configuration_get_picture_upload_folder()

get_enabled ()

virtual method called by rygel_configuration_get_enabled()

get_title ()

virtual method called by rygel_configuration_get_title()

get_string ()

virtual method called by rygel_configuration_get_string()

get_string_list ()

virtual method called by rygel_configuration_get_string_list()

get_int ()

virtual method called by rygel_configuration_get_int()

get_int_list ()

virtual method called by rygel_configuration_get_int_list()

get_bool ()

virtual method called by rygel_configuration_get_bool()