* 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,
+void alsaseq_get_queue_info_by_id(guint8 queue_id, ALSASeqQueueInfo **queue_info,
GError **error)
{
struct snd_seq_queue_info *info;
* with SNDRV_SEQ_IOCTL_GET_QUEUE_STATUS command for ALSA sequencer character
* device.
*/
-void alsaseq_get_queue_status(guint queue_id,
+void alsaseq_get_queue_status(guint8 queue_id,
ALSASeqQueueStatus *const *queue_status,
GError **error)
{
void alsaseq_get_queue_id_list(guint **entries, gsize *entry_count,
GError **error);
-void alsaseq_get_queue_info_by_id(guint queue_id, ALSASeqQueueInfo **queue_info,
+void alsaseq_get_queue_info_by_id(guint8 queue_id, ALSASeqQueueInfo **queue_info,
GError **error);
void alsaseq_get_queue_info_by_name(const gchar *name,
ALSASeqQueueInfo **queue_info,
GError **error);
-void alsaseq_get_queue_status(guint queue_id,
+void alsaseq_get_queue_status(guint8 queue_id,
ALSASeqQueueStatus *const *queue_status,
GError **error);
switch (id) {
case SEQ_QUEUE_INFO_PROP_QUEUE_ID:
- priv->info.queue = g_value_get_int(val);
+ priv->info.queue = (int)g_value_get_uchar(val);
break;
case SEQ_QUEUE_INFO_PROP_CLIENT_ID:
priv->info.owner = g_value_get_int(val);
switch (id) {
case SEQ_QUEUE_INFO_PROP_QUEUE_ID:
- g_value_set_int(val, priv->info.queue);
+ g_value_set_uchar(val, (guint8)priv->info.queue);
break;
case SEQ_QUEUE_INFO_PROP_CLIENT_ID:
g_value_set_int(val, priv->info.owner);
gobject_class->get_property = seq_queue_info_get_property;
seq_queue_info_props[SEQ_QUEUE_INFO_PROP_QUEUE_ID] =
- g_param_spec_int("queue-id", "queue-id",
- "The numerical ID of queue, except for one of "
- "ALSASeqSpecificClientId.",
- G_MININT, G_MAXINT,
- -1,
- G_PARAM_READWRITE);
+ g_param_spec_uchar("queue-id", "queue-id",
+ "The numerical ID of queue, except for one of "
+ "ALSASeqSpecificClientId.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READWRITE);
seq_queue_info_props[SEQ_QUEUE_INFO_PROP_CLIENT_ID] =
g_param_spec_int("client-id", "client-id",
gobject_class->get_property = seq_queue_status_get_property;
seq_queue_status_props[SEQ_QUEUE_STATUS_PROP_QUEUE_ID] =
- g_param_spec_int("queue-id", "queue-id",
- "The numerical ID of queue, except for entries in "
- "ALSASeqSpecificQueueId.",
- G_MININT, G_MAXINT,
- -1,
- G_PARAM_READABLE);
+ g_param_spec_uchar("queue-id", "queue-id",
+ "The numerical ID of queue, except for entries in "
+ "ALSASeqSpecificQueueId.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READABLE);
seq_queue_status_props[SEQ_QUEUE_STATUS_PROP_EVENT_COUNT] =
g_param_spec_int("event-count", "event-count",
switch (id) {
case SEQ_QUEUE_TEMPO_PROP_QUEUE_ID:
- priv->tempo.queue = g_value_get_int(val);
+ priv->tempo.queue = (int)g_value_get_uchar(val);
break;
case SEQ_QUEUE_TEMPO_PROP_TEMPO:
priv->tempo.tempo = g_value_get_int(val);
switch (id) {
case SEQ_QUEUE_TEMPO_PROP_QUEUE_ID:
- g_value_set_int(val, priv->tempo.queue);
+ g_value_set_uchar(val, (guint8)priv->tempo.queue);
break;
case SEQ_QUEUE_TEMPO_PROP_TEMPO:
g_value_set_uint(val, priv->tempo.tempo);
gobject_class->get_property = seq_queue_tempo_get_property;
seq_queue_tempo_props[SEQ_QUEUE_TEMPO_PROP_QUEUE_ID] =
- g_param_spec_int("queue-id", "queue-id",
- "The numerical ID of queue, except for one of "
- "ALSASeqSpecificClientId.",
- G_MININT, G_MAXINT,
- -1,
- G_PARAM_READWRITE);
+ g_param_spec_uchar("queue-id", "queue-id",
+ "The numerical ID of queue, except for one of "
+ "ALSASeqSpecificClientId.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READWRITE);
seq_queue_tempo_props[SEQ_QUEUE_TEMPO_PROP_TEMPO] =
g_param_spec_uint("tempo", "tempo",
gobject_class->get_property = seq_queue_timer_get_property;
seq_queue_timer_props[SEQ_QUEUE_TIMER_PROP_QUEUE_ID] =
- g_param_spec_int("queue-id", "queue-id",
- "The numerical ID of queue, except for one of "
- "ALSASeqSpecificClientId.",
- G_MININT, G_MAXINT,
- -1,
- G_PARAM_READABLE);
+ g_param_spec_uchar("queue-id", "queue-id",
+ "The numerical ID of queue, except for one of "
+ "ALSASeqSpecificClientId.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READABLE);
seq_queue_timer_props[SEQ_QUEUE_TIMER_PROP_TIMER_TYPE] =
g_param_spec_enum("type", "type",
* SNDRV_SEQ_IOCTL_DELETE_QUEUE command for ALSA sequencer character device.
*/
void alsaseq_user_client_delete_queue(ALSASeqUserClient *self,
- guint queue_id, GError **error)
+ guint8 queue_id, GError **error)
{
ALSASeqUserClientPrivate *priv;
struct snd_seq_queue_info info = {0};
* 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,
+ guint8 queue_id, gboolean *use,
GError **error)
{
ALSASeqUserClientPrivate *priv;
* 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,
+ guint8 queue_id, gboolean use,
GError **error)
{
ALSASeqUserClientPrivate *priv;
* 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,
+ guint8 queue_id, ALSASeqQueueTempo *queue_tempo,
GError **error)
{
ALSASeqUserClientPrivate *priv;
* 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,
+ guint8 queue_id, ALSASeqQueueTempo **queue_tempo,
GError **error)
{
ALSASeqUserClientPrivate *priv;
* SNDRV_SEQ_IOCTL_SET_QUEUE_TIMER command for ALSA sequencer character device.
*/
void alsaseq_user_client_set_queue_timer(ALSASeqUserClient *self,
- guint queue_id,
+ guint8 queue_id,
ALSASeqQueueTimer *queue_timer,
GError **error)
{
* SNDRV_SEQ_IOCTL_GET_QUEUE_TIMER command for ALSA sequencer character device.
*/
void alsaseq_user_client_get_queue_timer(ALSASeqUserClient *self,
- guint queue_id,
+ guint8 queue_id,
ALSASeqQueueTimer **queue_timer,
GError **error)
{
ALSASeqQueueInfo *const *queue_info,
GError **error);
void alsaseq_user_client_delete_queue(ALSASeqUserClient *self,
- guint queue_id, GError **error);
+ guint8 queue_id, GError **error);
void alsaseq_user_client_update_queue(ALSASeqUserClient *self,
ALSASeqQueueInfo *queue_info, GError **error);
void alsaseq_user_client_get_queue_usage(ALSASeqUserClient *self,
- guint queue_id, gboolean *use,
+ guint8 queue_id, gboolean *use,
GError **error);
void alsaseq_user_client_set_queue_usage(ALSASeqUserClient *self,
- guint queue_id, gboolean use,
+ guint8 queue_id, gboolean use,
GError **error);
void alsaseq_user_client_set_queue_tempo(ALSASeqUserClient *self,
- guint queue_id, ALSASeqQueueTempo *queue_tempo,
+ guint8 queue_id, ALSASeqQueueTempo *queue_tempo,
GError **error);
void alsaseq_user_client_get_queue_tempo(ALSASeqUserClient *self,
- guint queue_id, ALSASeqQueueTempo **queue_tempo,
+ guint8 queue_id, ALSASeqQueueTempo **queue_tempo,
GError **error);
void alsaseq_user_client_set_queue_timer(ALSASeqUserClient *self,
- guint queue_id,
+ guint8 queue_id,
ALSASeqQueueTimer *queue_timer,
GError **error);
void alsaseq_user_client_get_queue_timer(ALSASeqUserClient *self,
- guint queue_id,
+ guint8 queue_id,
ALSASeqQueueTimer **queue_timer,
GError **error);