Skip to content

Commit

Permalink
seq: optimize to gi-docgen 2023.3
Browse files Browse the repository at this point in the history
The version of gi-docgen applies the restrict rule for the version
expression. In the rule, the dot following to the number causes failure.
This commit fixes the failure.

Signed-off-by: Takashi Sakamoto <[email protected]>
  • Loading branch information
takaswie committed Mar 15, 2024
1 parent 08631de commit 1d796d9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
24 changes: 12 additions & 12 deletions src/seq/port-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The address of port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_ADDR] =
g_param_spec_boxed("addr", "addr",
Expand All @@ -169,7 +169,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The name of port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_NAME] =
g_param_spec_string("name", "name",
Expand All @@ -182,7 +182,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The capabilities of port, a set of [flags@PortCapFlag].
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_CAPS] =
g_param_spec_flags("caps", "caps",
Expand All @@ -196,7 +196,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The attributes of port, a set of [flags@PortAttrFlag].
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_ATTRS] =
g_param_spec_flags("attrs", "attrs",
Expand All @@ -210,7 +210,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The number of channels per MIDI port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_MIDI_CHANNELS] =
g_param_spec_int("midi-channels", "midi-channels",
Expand All @@ -224,7 +224,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The number of voices per MIDI port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_MIDI_VOICES] =
g_param_spec_int("midi-voices", "midi-voices",
Expand All @@ -238,7 +238,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The number of voices per synth port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_SYNTH_VOICES] =
g_param_spec_int("synth-voices", "synth-voices",
Expand All @@ -252,7 +252,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The current number of subscribers to read.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_READ_USERS] =
g_param_spec_int("read-users", "read-users",
Expand All @@ -266,7 +266,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The current number of subscribers to write.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_WRITE_USERS] =
g_param_spec_int("write-users", "write-users",
Expand All @@ -280,7 +280,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
*
* The mode whether to overwrite time stamp for event when the event is delivered from the port.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_TSTAMP_OVERWRITE] =
g_param_spec_boolean("tstamp-overwrite", "tstamp-overwrite",
Expand All @@ -295,7 +295,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
* The mode of time stamp. This is effective when the [property@PortInfo:tstamp-overwrite] is
* enabled.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_TSTAMP_MODE] =
g_param_spec_enum("tstamp-mode", "tstamp-mode",
Expand All @@ -311,7 +311,7 @@ static void alsaseq_port_info_class_init(ALSASeqPortInfoClass *klass)
* The numeric ID of queue to update time stamp when [property@PortInfo:tstamp-overwrite] is
* set to True. One of [enum@SpecificQueueId] is available as well.
*
* Since: 0.3.
* Since: 0.3
*/
seq_port_info_props[SEQ_PORT_INFO_PROP_TIME_QUEUE] =
g_param_spec_uchar("queue-id", "queue-id",
Expand Down
4 changes: 2 additions & 2 deletions src/seq/queue-timer-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static void alsaseq_queue_timer_alsa_class_init(ALSASeqQueueTimerAlsaClass *klas
*
* The identifier of associated timer instance in ALSA Timer.
*
* Since: 0.3.
* Since: 0.3
*/
g_object_class_install_property(gobject_class, QUEUE_TIMER_ALSA_PROP_DEVICE_ID,
g_param_spec_boxed("device-id", "device-id",
Expand All @@ -95,7 +95,7 @@ static void alsaseq_queue_timer_alsa_class_init(ALSASeqQueueTimerAlsaClass *klas
*
* The number of ticks as resolution of timer.
*
* Since: 0.3.
* Since: 0.3
*/
g_object_class_install_property(gobject_class, QUEUE_TIMER_ALSA_PROP_RESOLUTION_TICKS,
g_param_spec_uint("resolution-ticks", "resolution-ticks",
Expand Down
6 changes: 3 additions & 3 deletions src/seq/queue-timer-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* The object wraps `struct snd_seq_queue_timer` in UAPI of Linux sound subsystem.
*
* Since: 0.3.
* Since: 0.3
*/

static void alsaseq_queue_timer_common_default_init(ALSASeqQueueTimerCommonInterface *iface);
Expand All @@ -23,7 +23,7 @@ static void alsaseq_queue_timer_common_default_init(ALSASeqQueueTimerCommonInter
*
* The numeric identifier of queue. An entry of [enum@SpecificClientId] is available as well.
*
* Since: 0.3.
* Since: 0.3
*/
g_object_interface_install_property(iface,
g_param_spec_uchar(QUEUE_ID_PROP_NAME, QUEUE_ID_PROP_NAME,
Expand All @@ -36,7 +36,7 @@ static void alsaseq_queue_timer_common_default_init(ALSASeqQueueTimerCommonInter
*
* The type of timer for the queue, one of [enum@QueueTimerType].
*
* Since: 0.3.
* Since: 0.3
*/
g_object_interface_install_property(iface,
g_param_spec_enum(TIMER_TYPE_PROP_NAME, TIMER_TYPE_PROP_NAME,
Expand Down
12 changes: 6 additions & 6 deletions src/seq/remove-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The set of flags to filter events. They decide how to evaluate included data at call of
* [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_FLAGS] =
g_param_spec_flags("flags", "flags",
Expand All @@ -122,7 +122,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The numeric identifier of queue as filter condition. This is always evaluated at call of
* [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_QUEUE_ID] =
g_param_spec_uchar("queue-id", "queue-id",
Expand All @@ -137,7 +137,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The destionation of event as filter condition. This is evaluated with
* [flags@RemoveFilterFlag].DEST at call of [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_DST] =
g_param_spec_boxed("destination", "destination",
Expand All @@ -151,7 +151,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The channel of event as filter condition. This is evaluated with
* [flags@RemoveFilterFlag].DEST_CHANNEL at call of [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_CHANNEL] =
g_param_spec_uchar("channel", "channel",
Expand All @@ -166,7 +166,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The type of event as filter condition. This is evaluated with
* [flags@RemoveFilterFlag].EVENT_TYPE at call of [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_EVENT_TYPE] =
g_param_spec_enum("event-type", "event-type",
Expand All @@ -181,7 +181,7 @@ static void alsaseq_remove_filter_class_init(ALSASeqRemoveFilterClass *klass)
* The tag of event as filter condition. This is evaluated with
* [flags@RemoveFilterFlag].TAG_MATCH at call of [[email protected]_events].
*
* Since: 0.3.
* Since: 0.3
*/
seq_remove_filter_props[SEQ_REMOVE_FILTER_PROP_TAG] =
g_param_spec_char("tag", "tag",
Expand Down
12 changes: 6 additions & 6 deletions src/seq/subscribe-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
*
* The address of sender.
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_SENDER] =
g_param_spec_boxed("sender", "sender",
Expand All @@ -137,7 +137,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
*
* The address of destination.
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_DEST] =
g_param_spec_boxed("dest", "dest",
Expand All @@ -150,7 +150,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
*
* Whether the subscription can be changed by originator only,
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_IS_EXCLUSIVE] =
g_param_spec_boolean("is-exclusive", "is-exclusive",
Expand All @@ -163,7 +163,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
*
* Any event for the subscription has time stamp,
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_HAS_TSTAMP] =
g_param_spec_boolean("has-tstamp", "has-tstamp",
Expand All @@ -176,7 +176,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
*
* The type of time stamp. This is effective when the has-tstamp property enabled.
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_TSTAMP_MODE] =
g_param_spec_enum("tstamp-mode", "tstamp-mode",
Expand All @@ -192,7 +192,7 @@ static void alsaseq_subscribe_data_class_init(ALSASeqSubscribeDataClass *klass)
* The numeric ID of queue to deliver. One of ALSASeqSpecificQueueId is available as well as
* any numeric value.
*
* Since: 0.3.
* Since: 0.3
*/
seq_subscribe_data_props[SEQ_SUBSCRIBE_DATA_PROP_QUEUE_ID] =
g_param_spec_uchar("queue-id", "queue-id",
Expand Down

0 comments on commit 1d796d9

Please sign in to comment.