Method

ClapperEnhancerProxyextra_data_lists_value

since: 0.10

Declaration [src]

gboolean
clapper_enhancer_proxy_extra_data_lists_value (
  ClapperEnhancerProxy* proxy,
  const gchar* key,
  const gchar* value
)

Description [src]

A convenience function to check whether proxy plugin file has an extra data field with key that among separated list of values includes value (works on single value lists too).

For example, when extra data in the plugin is X-Schemes=https;http, calling this function with “X-Schemes” as key and “http” as value will return TRUE.

It is also safe to call this function when there is no such key in plugin info file. Use clapper_enhancer_proxy_get_extra_data() if you need to know whether key exists.

Available since: 0.10

Parameters

key

Type: const gchar*

Name of the data to lookup.

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

Type: const gchar*

String to check for.

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

Return value

Type: gboolean

Whether list named with key existed and contained value.