Method

ALSAHwdepDeviceCommoncreate_source

Declaration [src]

gboolean
alsahwdep_device_common_create_source (
  ALSAHwdepDeviceCommon* self,
  GSource** source,
  GError** error
)

Description [src]

Allocate GSource structure to handle events from ALSA hwdep character device. In each iteration of GMainContext, the read(2) system call is executed to dispatch hwdep event, according to the result of poll(2) system call.

Parameters

source GSource
 

A GSource to handle events from ALSA hwdep character device.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.