switch (id) {
case SEQ_CLIENT_INFO_PROP_CLIENT_ID:
- priv->info.client = g_value_get_int(val);
+ priv->info.client = (int)g_value_get_uchar(val);
break;
case SEQ_CLIENT_INFO_PROP_CLIENT_TYPE:
priv->info.type = (snd_seq_client_type_t)g_value_get_enum(val);
switch (id) {
case SEQ_CLIENT_INFO_PROP_CLIENT_ID:
- g_value_set_int(val, priv->info.client);
+ g_value_set_uchar(val, (guint8)priv->info.client);
break;
case SEQ_CLIENT_INFO_PROP_CLIENT_TYPE:
g_value_set_enum(val, (ALSASeqClientType)priv->info.type);
gobject_class->get_property = seq_client_info_get_property;
seq_client_info_props[SEQ_CLIENT_INFO_PROP_CLIENT_ID] =
- g_param_spec_int("client-id", "client-id",
- "The numerical ID of client. One of "
- "ALSASeqSpecificClientId is available as well as "
- "any numerical value.",
- 0, G_MAXINT,
- 0,
- G_PARAM_READWRITE);
+ g_param_spec_uchar("client-id", "client-id",
+ "The numerical ID of client. One of "
+ "ALSASeqSpecificClientId is available as well as "
+ "any numerical value.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READWRITE);
seq_client_info_props[SEQ_CLIENT_INFO_PROP_CLIENT_TYPE] =
g_param_spec_enum("type", "type",
switch (id) {
case SEQ_CLIENT_POOL_PROP_CLIENT_ID:
- g_value_set_int(val, priv->pool.client);
+ g_value_set_uchar(val, (guint8)priv->pool.client);
break;
case SEQ_CLIENT_POOL_PROP_OUTPUT_POOL:
g_value_set_int(val, priv->pool.output_pool);
gobject_class->get_property = seq_client_pool_get_property;
seq_client_pool_props[SEQ_CLIENT_POOL_PROP_CLIENT_ID] =
- g_param_spec_int("client-id", "client-id",
- "The numerical ID of client. One of "
- "ALSASeqSpecificClientId is available as well as "
- "any numerical value.",
- 0, G_MAXINT,
- 0,
- G_PARAM_READABLE);
+ g_param_spec_uchar("client-id", "client-id",
+ "The numerical ID of client. One of "
+ "ALSASeqSpecificClientId is available as well as "
+ "any numerical value.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READABLE);
seq_client_pool_props[SEQ_CLIENT_POOL_PROP_OUTPUT_POOL] =
g_param_spec_int("output-pool", "output-pool",
* with SNDRV_SEQ_IOCTL_GET_CLIENT_INFO command for ALSA sequencer character
* device.
*/
-void alsaseq_get_client_info(guint client_id, ALSASeqClientInfo **client_info,
+void alsaseq_get_client_info(guint8 client_id, ALSASeqClientInfo **client_info,
GError **error)
{
char *devnode;
* 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,
+void alsaseq_get_port_id_list(guint8 client_id, guint **entries,
gsize *entry_count, GError **error)
{
char *devnode;
* with SNDRV_SEQ_IOCTL_GET_PORT_INFO command for ALSA sequencer character
* device.
*/
-void alsaseq_get_port_info(guint client_id, guint port_id,
+void alsaseq_get_port_info(guint8 client_id, guint port_id,
ALSASeqPortInfo **port_info, GError **error)
{
char *devnode;
* with SNDRV_SEQ_IOCTL_GET_CLIENT_POOL command for ALSA sequencer character
* device.
*/
-void alsaseq_get_client_pool(gint client_id, ALSASeqClientPool **client_pool,
+void alsaseq_get_client_pool(guint8 client_id, ALSASeqClientPool **client_pool,
GError **error)
{
char *devnode;
void alsaseq_get_client_id_list(guint **entries, gsize *entry_count,
GError **error);
-void alsaseq_get_client_info(guint client_id, ALSASeqClientInfo **client_info,
+void alsaseq_get_client_info(guint8 client_id, ALSASeqClientInfo **client_info,
GError **error);
-void alsaseq_get_port_id_list(guint client_id, guint **entries,
+void alsaseq_get_port_id_list(guint8 client_id, guint **entries,
gsize *entry_count, GError **error);
-void alsaseq_get_port_info(guint client_id, guint port_id,
+void alsaseq_get_port_info(guint8 client_id, guint port_id,
ALSASeqPortInfo **port_info, GError **error);
-void alsaseq_get_client_pool(gint client_id, ALSASeqClientPool **client_pool,
+void alsaseq_get_client_pool(guint8 client_id, ALSASeqClientPool **client_pool,
GError **error);
void alsaseq_get_subscription_list(const ALSASeqAddr *addr,
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);
+ priv->info.owner = (int)g_value_get_uchar(val);
break;
case SEQ_QUEUE_INFO_PROP_LOCKED:
priv->info.locked = g_value_get_boolean(val);
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);
+ g_value_set_uchar(val, (guint8)priv->info.owner);
break;
case SEQ_QUEUE_INFO_PROP_LOCKED:
g_value_set_boolean(val, priv->info.locked);
G_PARAM_READWRITE);
seq_queue_info_props[SEQ_QUEUE_INFO_PROP_CLIENT_ID] =
- g_param_spec_int("client-id", "client-id",
- "The numerical ID of client which owns the queue, "
- "except for one of ALSASeqSpecificClientId.",
- G_MININT, G_MAXINT,
- -1,
- G_PARAM_READWRITE);
+ g_param_spec_uchar("client-id", "client-id",
+ "The numerical ID of client which owns the queue, "
+ "except for one of ALSASeqSpecificClientId.",
+ 0, G_MAXUINT8,
+ 0,
+ G_PARAM_READWRITE);
seq_queue_info_props[SEQ_QUEUE_INFO_PROP_LOCKED] =
g_param_spec_boolean("locked", "locked",