1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "scope.h"
int
unity_scope_module_get_version ()
{
return UNITY_SCOPE_API_VERSION;
}
GList *
unity_scope_module_load_scopes (GError **error)
{
grl_init (NULL, NULL);
GrlRegistry *registry = grl_registry_get_default ();
if (!grl_registry_load_plugin_directory (
registry, "/home/james/src/unity/prefix/lib/grilo-0.2", error)) {
return NULL;
}
GrlSource *source = grl_registry_lookup_source (registry, "grl-hollywood");
UnityAbstractScope *scope = make_music_scope (source);
return g_list_append(NULL, scope);
}
|