Method

EDataServerSourceRegistrylist_sources

since: 3.6

Declaration [src]

GList*
e_source_registry_list_sources (
  ESourceRegistry* registry,
  const gchar* extension_name
)

Description [src]

Returns a list of registered sources, sorted by display name. If extension_name is given, restrict the list to sources having that extension name.

The sources returned in the list are referenced for thread-safety. They must each be unreferenced with g_object_unref() when finished with them. Free the returned list itself with g_list_free().

An easy way to free the list properly in one step is as follows:

  g_list_free_full (list, g_object_unref);

Available since: 3.6

Parameters

extension_name

Type: const gchar*

An extension name, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: A list of ESource*

A sorted list of sources.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.