EDataServer.webdav_discover_sources
Description: Reference for EDataServer.webdav_discover_sources

### Function

# EDataServerwebdav_discover_sources

since: 3.18

#### Declaration [src]

    void
    e_webdav_discover_sources (
      ESource* source,
      const gchar* url_use_path,
      guint32 only_supports,
      const ENamedParameters* credentials,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Asynchronously runs discovery of the WebDAV sources (CalDAV and CardDAV), eventually limited by the `only_supports` filter, which can be `E_WEBDAV_DISCOVER_SUPPORTS_NONE` to search all types. Note that the list of returned calendars can be more general, thus check for its actual support type for further filtering of the results. The `url_use_path` can be used to override actual server path, or even complete URL, for the given `source`.

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

Available since: 3.18

#### Parameters

`source`

  Type: `ESource`

  An `ESource` from which to take connection details.

  The data is owned by the caller of the function.

`url_use_path`

  Type: `const gchar*`

  Optional URL override, or `NULL`.

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

`only_supports`

  Type: `guint32`

  Bit-or of EWebDAVDiscoverSupports, to limit what type of sources to search.

`credentials`

  Type: `ENamedParameters`

  Credentials to use for authentication to the server.

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

`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.

  The argument can be `NULL`.

`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.