Method

IbisCapabilitieslookup_and_request

since: 0.1

Declaration [src]

gboolean
ibis_capabilities_lookup_and_request (
  IbisCapabilities* capabilities,
  const char* name
)

Description [src]

A helper function to call ibis_capabilities_lookup() and if found, call ibis_capabilities_request().

This method ignores the advertised value, so to get that you’ll need to call ibis_capabilities_lookup() yourself.

Also if you need to do something when the server ACK’s or NAK’s your request, you’re probably better off just using the methods yourself.

Available since: 0.1

Parameters

name

Type: const char*

The name of the capability to look for.

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

Return value

Type: gboolean

TRUE if name was found and requested, FALSE otherwise.