* @error: A #GError.
*
* Allocate sysname string for ALSA sequencer and return it when exists.
+ *
+ * Nodes under sound subsystem in sysfs are used to gather the information.
*/
void alsaseq_get_seq_sysname(gchar **sysname, GError **error)
{
* @error: A #GError.
*
* Allocate devnode string for ALSA Sequencer and return it when exists.
+ *
+ * Nodes under sound subsystem in sysfs are used to gather the information.
*/
void alsaseq_get_seq_devnode(gchar **devnode, GError **error)
{
* @error: A #GError.
*
* Get information of ALSA Sequencer.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_SYSTEM_INFO command for ALSA sequencer character device.
*/
void alsaseq_get_system_info(ALSASeqSystemInfo **system_info, GError **error)
{
* @error: A #GError.
*
* Get the list of clients as the numerical ID.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_CLIENT_ID, SNDRV_SEQ_IOCTL_SYSTEM_INFO, and
+ * SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_client_id_list(guint **entries, gsize *entry_count,
GError **error)
* @error: A #GError.
*
* Get the information of client according to the numerical ID.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_CLIENT_INFO command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_client_info(guint client_id, ALSASeqClientInfo **client_info,
GError **error)
* @error: A #GError.
*
* Get the list of numerical IDs for port added by the client.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_CLIENT_INFO and SNDRV_SEQ_IOCTL_QUERY_NEXT_PORT
+ * commands for ALSA sequencer character device.
*/
void alsaseq_get_port_id_list(guint client_id, guint **entries,
gsize *entry_count, GError **error)
* @error: A #GError.
*
* Get the information of port in client.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_PORT_INFO command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_port_info(guint client_id, guint port_id,
ALSASeqPortInfo **port_info, GError **error)
* @error: A #GError.
*
* Get statistical information of memory pool for the given client.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_CLIENT_POOL command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_client_pool(gint client_id, ALSASeqClientPool **client_pool,
GError **error)
* @error: A #GError.
*
* Get the list of subscription for given address and query type.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_QUERY_SUBS command for ALSA sequencer character device.
*/
void alsaseq_get_subscription_list(const ALSASeqAddr *addr,
ALSASeqQuerySubscribeType query_type,
* @error: A #GError.
*
* Get the list of queue in ALSA Sequencer.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_SYSTEM_INFO and SNDRV_SEQ_IOCTL_GET_QUEUE_INFO commands
+ * for ALSA sequencer character device.
*/
void alsaseq_get_queue_id_list(guint **entries, gsize *entry_count,
GError **error)
* @error: A #GError.
*
* Get the information of queue, according to the numerical ID.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_QUEUE_INFO command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_queue_info_by_id(guint queue_id, ALSASeqQueueInfo **queue_info,
GError **error)
* @error: A #GError.
*
* Get the information of queue, according to the name string.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_NAMED_QUEUE command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_queue_info_by_name(const gchar *name,
ALSASeqQueueInfo **queue_info,
* @error: A #GError.
*
* Get current status of queue.
+ *
+ * The call of function executes open(2), close(2), and ioctl(2) system calls
+ * with SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS command for ALSA sequencer character
+ * device.
*/
void alsaseq_get_queue_status(guint queue_id, ALSASeqQueueStatus **queue_status,
GError **error)
* @error: A #GError.
*
* Open ALSA sequencer character device.
+ *
+ * The call of function executes open(2) system call, then executes ioctl(2)
+ * system call with SNDRV_SEQ_IOCTL_CLIENT_ID command for ALSA sequencer
+ * character device.
*/
void alsaseq_user_client_open(ALSASeqUserClient *self, gint open_flag,
GError **error)
* @error: A #GError.
*
* Get client information.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_CLIENT_INFO command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_info(ALSASeqUserClient *self,
ALSASeqClientInfo *client_info,
* @error: A #GError.
*
* Set client information.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_GET_CLIENT_INFO command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_info(ALSASeqUserClient *self,
ALSASeqClientInfo *const *client_info,
* @error: A #GError.
*
* Create a port into the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_CREATE_PORT command for ALSA sequencer character device.
*/
void alsaseq_user_client_create_port(ALSASeqUserClient *self,
ALSASeqPortInfo *port_info,
* @port_id: The numerical ID of port.
* @error: A #GError.
*
+ * Update port information.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_PORT_INFO command for ALSA sequencer character device.
*/
void alsaseq_user_client_update_port(ALSASeqUserClient *self,
ALSASeqPortInfo *port_info,
* @error: A #GError.
*
* Delete a port from the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_DELETE_PORT command for ALSA sequencer character device.
*/
void alsaseq_user_client_delete_port(ALSASeqUserClient *self,
guint8 port_id, GError **error)
* @error: A #GError.
*
* Configure memory pool in the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_CLIENT_POOL command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_pool(ALSASeqUserClient *self,
ALSASeqClientPool *client_pool,
* @error: A #GError.
*
* Get information of memory pool in the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_GET_CLIENT_POOL command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_pool(ALSASeqUserClient *self,
ALSASeqClientPool *const *client_pool,
* @error: A #GError.
*
* Deliver the event immediately, or schedule it into memory pool of the client.
+ *
+ * The call of function executes write(2) system call for ALSA sequencer
+ * character device.
*/
void alsaseq_user_client_schedule_event(ALSASeqUserClient *self,
ALSASeqEventCntr *ev_cntr,
* @error: A #GError.
*
* Allocate GSource structure to handle events from ALSA seq character device.
+ * In each iteration of GMainContext, the read(2) system call is exected to
+ * dispatch sequencer event for 'handle-event' signal, according to the result
+ * of poll(2) system call.
*/
void alsaseq_user_client_create_source(ALSASeqUserClient *self,
GSource **gsrc, GError **error)
* @error: A #GError.
*
* 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.
*/
void alsaseq_user_client_operate_subscription(ALSASeqUserClient *self,
ALSASeqSubscribeData *subs_data,
*
* Create a new queue owned by the client. The content of information is updated
* if success.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_CREATE_QUEUE command for ALSA sequencer character device.
*/
void alsaseq_user_client_create_queue(ALSASeqUserClient *self,
ALSASeqQueueInfo *queue_info, GError **error)
* @error: A #GError.
*
* Delete the queue owned by the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_DELETE_QUEUE command for ALSA sequencer character device.
*/
void alsaseq_user_client_delete_queue(ALSASeqUserClient *self,
guint queue_id, GError **error)
* @error: A #GError.
*
* Update owned queue according to the information.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_QUEUE_INFO command for ALSA sequencer character device.
*/
void alsaseq_user_client_update_queue(ALSASeqUserClient *self,
ALSASeqQueueInfo *queue_info,
* @error: A #GError.
*
* Get usage of the queue by the client.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_GET_QUEUE_CLIENT command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_queue_usage(ALSASeqUserClient *self,
guint queue_id, gboolean *use,
* @error: A #GError.
*
* Start the queue to use or not.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_queue_usage(ALSASeqUserClient *self,
guint queue_id, gboolean use,
* @queue_tempo: The data of tempo for queue.
* @error: A #GError.
*
- *
* Set the data of tempo to the queue.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_queue_tempo(ALSASeqUserClient *self,
guint queue_id, ALSASeqQueueTempo *queue_tempo,
* @error: A #GError.
*
* Get the data of tempo for the queue.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_GET_QUEUE_TEMPO command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_queue_tempo(ALSASeqUserClient *self,
guint queue_id, ALSASeqQueueTempo **queue_tempo,
* @error: A #GError.
*
* Set the data of timer for the queue.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_queue_timer(ALSASeqUserClient *self,
guint queue_id,
* @error: A #GError.
*
* Get the data of timer for the queue.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_queue_timer(ALSASeqUserClient *self,
guint queue_id,
* @error: A #GError.
*
* Remove queued events according to the filter.
+ *
+ * The call of function executes ioctl(2) system call with
+ * SNDRV_SEQ_IOCTL_REMOVE_EVENTS command for ALSA sequencer character device.
*/
void alsaseq_user_client_remove_events(ALSASeqUserClient *self,
ALSASeqRemoveFilter *filter,