![]() |
![]() |
![]() |
Grilo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <grilo.h> #define GRL_MEDIA_PLUGIN_NAME #define GRL_MEDIA_PLUGIN_DESCRIPTION #define GRL_MEDIA_PLUGIN_VERSION #define GRL_MEDIA_PLUGIN_LICENSE #define GRL_MEDIA_PLUGIN_AUTHOR #define GRL_MEDIA_PLUGIN_SITE struct GrlMediaPlugin; struct GrlMediaPluginClass; const gchar * grl_media_plugin_get_name (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_description (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_version (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_license (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_author (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_site (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_id (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_filename (GrlMediaPlugin *plugin
); gint grl_media_plugin_get_rank (GrlMediaPlugin *plugin
); GList * grl_media_plugin_get_info_keys (GrlMediaPlugin *plugin
); const gchar * grl_media_plugin_get_info (GrlMediaPlugin *plugin
,const gchar *key
);
Grilo is extensible, so GrlMetadataSource or GrlMediaSource instances can be loaded at runtime. A plugin system can provide one or more of the basic Grilo GrlMediaPlugin subclasses.
This is a base class for anything that can be added to a Grilo Plugin.
struct GrlMediaPluginClass { GObjectClass parent_class; };
GObjectClass |
the parent class structure |
const gchar * grl_media_plugin_get_name (GrlMediaPlugin *plugin
);
Get the name of the plugin
|
a plugin |
Returns : |
the name of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_description (GrlMediaPlugin *plugin
);
Get the description of the plugin
|
a plugin |
Returns : |
the description of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_version (GrlMediaPlugin *plugin
);
Get the version of the plugin
|
a plugin |
Returns : |
the version of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_license (GrlMediaPlugin *plugin
);
Get the license of the plugin
|
a plugin |
Returns : |
the license of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_author (GrlMediaPlugin *plugin
);
Get the author of the plugin
|
a plugin |
Returns : |
the author of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_site (GrlMediaPlugin *plugin
);
Get the site of the plugin
|
a plugin |
Returns : |
the site of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_id (GrlMediaPlugin *plugin
);
Get the id of the plugin
|
a plugin |
Returns : |
the id of the plugin
|
Since 0.1.1
const gchar * grl_media_plugin_get_filename (GrlMediaPlugin *plugin
);
Get the filename containing the plugin
|
a plugin |
Returns : |
the filename containing plugin
|
Since 0.1.6
gint grl_media_plugin_get_rank (GrlMediaPlugin *plugin
);
Get the GrlPluginRank of the plugin
|
a plugin |
Returns : |
the rank of the plugin |
Since 0.1.3
GList * grl_media_plugin_get_info_keys (GrlMediaPlugin *plugin
);
Returns a list of keys that can be queried to retrieve information about the plugin.
|
a plugin |
Returns : |
a GList of strings containing the keys. The content of the list is
owned by the plugin and should not be modified or freed. Use g_list_free()
when done using the list. [transfer container][element-type utf8]
|
Since 0.1.6
const gchar * grl_media_plugin_get_info (GrlMediaPlugin *plugin
,const gchar *key
);
Get the information of the plugin
that is associated with the given key
|
a plugin |
|
a key representing information about this plugin |
Returns : |
the information assigned to the given key or NULL if there is no such information |
Since 0.1.6