Method

ALSASeqUserClientoperate_subscription

Declaration [src]

gboolean
alsaseq_user_client_operate_subscription (
  ALSASeqUserClient* self,
  ALSASeqSubscribeData* subs_data,
  gboolean establish,
  GError** error
)

Description [src]

Operate subscription between two ports pointed by the data.

The call of function executes ioctl(2) system call with SNDRV_SEQ_IOCTL_SUBSCRIBE_PORT and SNDRV_SEQ_IOCTL_UNSUBSCRIBE_PORT commands for ALSA sequencer character device.

Parameters

subs_data ALSASeqSubscribeData
 

A ALSASeqSubscribeData.

 The data is owned by the caller of the function.
establish gboolean
 

Whether to establish subscription between two ports, or break it.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.