Using a source

Sources are extensions, 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 reference to the source we are interested in has been obtained, the developer can start to use it. The way sources are used is usually this:

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