Top |
void | grl_multiple_get_media_from_uri () |
guint | grl_multiple_search () |
GList * | grl_multiple_search_sync () |
These helper functions are due to ease the search in multiple sources. You can specify the list of sources to use for the searching. Those sources must have enabled the search capability.
Also you can set NULL
that sources list, so the function will use all
the available sources with the search capability.
void grl_multiple_get_media_from_uri (const gchar *uri
,const GList *keys
,GrlOperationOptions *options
,GrlSourceResolveCb callback
,gpointer user_data
);
Goes though all available media sources until it finds one capable of
constructing a GrlMedia object representing the media resource exposed
by uri
.
This method is asynchronous.
uri |
A URI that can be used to identify a media resource |
|
keys |
List of metadata keys we want to obtain. |
[element-type GrlKeyID] |
options |
options wanted for that operation |
|
callback |
the user defined callback. |
[scope notified] |
user_data |
the user data to pass to the user callback |
Since: 0.2.0
guint grl_multiple_search (const GList *sources
,const gchar *text
,const GList *keys
,GrlOperationOptions *options
,GrlSourceResultCb callback
,gpointer user_data
);
Search for text
in all the sources specified in sources
.
If text
is NULL
then NULL-text searchs will be used for each searchable
plugin (see grl_source_search for more details).
This method is asynchronous.
sources |
a GList of GrlSources to search from ( |
[element-type GrlSource][allow-none] |
text |
the text to search for |
|
keys |
the GList of GrlKeyID to retrieve. |
[element-type GrlKeyID] |
options |
options wanted for that operation |
|
callback |
the user defined callback. |
[scope notified] |
user_data |
the user data to pass to the user callback |
Since: 0.2.0
GList * grl_multiple_search_sync (const GList *sources
,const gchar *text
,const GList *keys
,GrlOperationOptions *options
,GError **error
);
Search for text
in all the sources specified in sources
.
This method is synchronous.
sources |
a GList of GrlSources where to search from ( |
[element-type GrlSource][allow-none] |
text |
the text to search for |
|
keys |
the GList of GrlKeyID to retrieve. |
[element-type GrlKeyID] |
options |
options wanted for that operation |
|
error |
a GError, or |
Since: 0.2.0