enhancer_check


Description:


[ Version ( deprecated = true , deprecated_since = "0.10" , since = "0.8" ) ]
public bool enhancer_check (Type iface_type, string scheme, string? host, out unowned string name)

Warning: enhancer_check is deprecated since 0.10.

Check if an enhancer of type is available for given scheme and host.

Note:

Use list of enhancer proxies from [func@Clapper.get_global_enhancer_proxies] or [property@Clapper.Player:enhancer-proxies] and check if any proxy matches your search criteria.

A check that compares requested capabilites of all available Clapper enhancers, thus it is fast but does not guarantee that the found one will succeed. Please note that this function will always return false if Clapper was built without enhancers loader functionality. To check that, use [const@Clapper.WITH_ENHANCERS_LOADER].

This function can be used to quickly determine early if Clapper will at least try to handle URI and with one of its enhancers and which one.

Example:

```c gboolean supported = clapper_enhancer_check (CLAPPER_TYPE_EXTRACTABLE, "https", "example.com", NULL); ```

For self hosted services a custom URI scheme without host can be used. Enhancers should announce support for such schemes by defining them in their plugin info files.

```c gboolean supported = clapper_enhancer_check (CLAPPER_TYPE_EXTRACTABLE, "example", NULL, NULL); ```

Parameters:

iface_type

an interface Type

scheme

an URI scheme

host

an URI host

name

return location for found enhancer name

Returns:

whether a plausible enhancer was found.


Namespace: Clapper
Package: clapper-0.0