Using a source

Sources are plugins, therefore, the first step is to obtain a reference to them using the framework registry, like this:

MafwProxyRegistry *registry = MAFW_REGISTRY(mafw_registry_get_instance());
if (registry) {
        GList *sources = mafw_registry_get_sources(MAFW_REGISTRY(registry));
}

The code above allows the application developer to obtain a list of available sources. The developer can use this list to show the available sources to the users, allowing them to select the ones they are interested in.

Once we have got a reference to the source we are interested in, then the application developer can start using it. The way sources are used is usually this:

For more information about the source API, please check the Mafw API reference.