EDataServer.SourceRegistry.new
Description: Reference for EDataServer.SourceRegistry.new

### Function

# EDataServer SourceRegistrynew

since: 3.6

#### Declaration [src]

    void
    e_source_registry_new (
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronously creates a new `ESourceRegistry` front-end for the registry D-Bus service.

When the operation is finished, `callback` will be called. You can then call `e_source_registry_new_finish()` to get the result of the operation.

Since 3.12 a singleton will be returned. No strong reference is kept internally, so it is the caller’s responsibility to keep one.

Available since: 3.6

This function completes asynchronously. Use `e_source_registry_new_finish()` inside the `GAsyncReadyCallback` to obtain the result of the operation.

#### Parameters

`cancellable`

  Type: `GCancellable`

  Optional `GCancellable` object, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`callback`

  Type: `GAsyncReadyCallback`

  A `GAsyncReadyCallback` to call when the request is satisfied.

`user_data`

  Type: `gpointer`

  Data to pass to the callback function.

  The argument can be `NULL`.
  The data is owned by the caller of the function.