hwdep: device-common: add interface for common feature of ALSA HwDep device
The protocol in ALSA HwDep character device has common feature. It's
suitable for userspace implementation to have GObject interface for such
features.
This commit adds the interface. The implementation of interface should
have four methods; open, get_protocol_version, get_device_info, and
create_source. Additionally, it should emit handle-disconnection signal
when detecting ENODEV error in the interation of source. It requires to
notify userspace application since the application should release
character device immediately.
seq: user-client: use QueueTimerCommon interface instead of QueueTimer
Current implementation to handle queue timer is by ALSASeq.QueueTimer
gobject class, and uses boxed object (=structure) to express actual data
of the timer. The implementation is not necessarily convenient to add
more type of queue timer since it requires to add getter/setter of data
to the class.
This commit uses ALSASeq.QueueTimerCommon interface to handle any type
of queue timer in ALSASeq.UserInstance for system call.
ctl: card: use ALSACtl.ElemInfoCommon instead of ElemInfo
Current implementation to handle element information is by ALSACtl.ElemInfo
gobject class, and uses some helper functions for setter/getter properties
of information. The implementation is not necessarily convenient to add
more type of element information since it requires to add such helper
functions per each.
This commit uses ALSACtl.ElemInfoCommon interface to handle any type of
element information in ALSACtl.Card for system call.
ctl: elem-info-integer64: add class for element information of integer64 type
The element information of integer64 type delivers additional three
properties; the minimum, maximum, and step of value for element of
value array. The value of property is 64 bit signed integer.
This commit adds gobject class for the information.
ctl: elem-info-integer: add class for element information of integer type
The element information of integer type delivers additional three
properties; the minimum, maximum, and step of value for element of
value array. The value of property is 32 bit integer.
This commit adds gobject class for the information.
ctl: elem-info-iec60958: add class for element information of IEC60958 type
The element information of IEC60958 type doesn't deliver the count of
value since the element has two types of data array according to IEC60958;
channel status and user data.
This commit adds gobject class for the information.
ctl: elem-info-common: add common interface for element information
In UAPI of ALSA, element information is expressed with union to support
several types of element.
This commit adds common interface for the information. It should
implements four properties; the identifier, the type, the set of access
flags, and PID of owner.
Fixes: b298bc9afe11 ("ctl: card: rewrite public API to return gboolean according to GNOME convention") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
seq: event_cntr: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
seq: client_info: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
seq: user_client: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
seq: query: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
timer: instance-params: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
timer: user_instance: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
timer: query: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
hwdep: query: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
rawmidi: stream_pair: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
rawmidi: query: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
ctl: elem_info: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
ctl: card: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
ctl: query: rewrite public API to return gboolean according to GNOME convention
In GNOME convention, the throw function to report error at GError argument
should return gboolean value to report the overall operation finishes
successfully or not.
This commit rewrite such public APIs with loss of backward compatibility.
Takashi Sakamoto [Tue, 31 May 2022 01:41:31 +0000 (10:41 +0900)]
seq: port-info: fix pair of declaration macro
Fixes: 2ce823529df8 ("seq: port_info: add object to represent information of port for ALSA Sequencer") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Thu, 26 May 2022 11:01:50 +0000 (20:01 +0900)]
doc: change URL for help pages
After discussion about help pages for software under gobject-introspection
team of alsa-project organization in github.com, new repository is used
for the new URL to aggregate them.
This commit changes URL for the help pages and adds minor integration.