Method

PhocOutputis_match

Declaration [src]

gboolean
phoc_output_is_match (
  PhocOutput* self,
  const char* make,
  const char* model,
  const char* serial
)

Description [src]

Checks if an output matches the given vendor/product/serial information. This is usually used to match on an outputs EDID information.

Parameters

make

Type: const char*

The make / vendor name.

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

Type: const char*

The model / product name.

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

Type: const char*

The serial number.

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 the output matches the given information, otherwise FALSE.