aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-05-26 21:29:23 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2022-05-26 21:29:23 +0900
commitad1dd763a1c214f63da72d8509c3e0380e3182cb (patch)
treec1d86f9fd4dd54b827fc76be621dbc10ce0fa0d6
parentdf4b3f2d577d4f0d54c64aa8724c6fb6697f43c5 (diff)
downloadhinawa-rs-ad1dd763a1c214f63da72d8509c3e0380e3182cb.tar.gz
hinawa/hinawa-sys: regenerate crates for libhinawa v2.5.0
The crates are regenerated from libhinawa v2.5.0: * https://github.com/alsa-project/libhinawa/releases/tag/2.5.0
-rw-r--r--Hinawa-3.0.gir2503
-rw-r--r--README.rst10
m---------gir0
m---------gir-files0
-rw-r--r--hinawa-sys/Gir.toml2
-rw-r--r--hinawa-sys/src/lib.rs109
-rw-r--r--hinawa-sys/tests/abi.rs19
-rw-r--r--hinawa-sys/tests/constant.c10
-rw-r--r--hinawa-sys/tests/layout.c1
-rw-r--r--hinawa-sys/versions.txt4
-rw-r--r--hinawa/Gir.toml109
-rw-r--r--hinawa/src/auto/enums.rs647
-rw-r--r--hinawa/src/auto/fw_fcp.rs40
-rw-r--r--hinawa/src/auto/fw_req.rs50
-rw-r--r--hinawa/src/auto/fw_resp.rs41
-rw-r--r--hinawa/src/auto/mod.rs33
-rw-r--r--hinawa/src/auto/snd_dg00x.rs93
-rw-r--r--hinawa/src/auto/snd_dice.rs116
-rw-r--r--hinawa/src/auto/snd_efw.rs100
-rw-r--r--hinawa/src/auto/snd_motu.rs93
-rw-r--r--hinawa/src/auto/snd_motu_register_dsp_parameter.rs101
-rw-r--r--hinawa/src/auto/snd_tscm.rs103
-rw-r--r--hinawa/src/auto/snd_unit.rs320
-rw-r--r--hinawa/src/auto/versions.txt4
-rw-r--r--hinawa/src/enums.rs74
-rw-r--r--hinawa/src/lib.rs10
-rw-r--r--hinawa/src/snd_efw.rs134
-rw-r--r--hinawa/src/snd_motu.rs106
-rw-r--r--hinawa/src/snd_motu_register_dsp_parameter.rs108
-rw-r--r--hinawa/src/snd_tscm.rs22
-rw-r--r--hinawa/src/snd_unit.rs26
31 files changed, 1410 insertions, 3578 deletions
diff --git a/Hinawa-3.0.gir b/Hinawa-3.0.gir
index 5242f4b..119034b 100644
--- a/Hinawa-3.0.gir
+++ b/Hinawa-3.0.gir
@@ -15,114 +15,6 @@ and/or use gtk-doc annotations. -->
shared-library="libhinawa.so.2"
c:identifier-prefixes="Hinawa"
c:symbol-prefixes="hinawa_">
- <function-macro name="FW_FCP"
- c:identifier="HINAWA_FW_FCP"
- introspectable="0">
- <source-position filename="../src/fw_fcp.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_FCP_CLASS"
- c:identifier="HINAWA_FW_FCP_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_fcp.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_FCP_GET_CLASS"
- c:identifier="HINAWA_FW_FCP_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_fcp.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_NODE"
- c:identifier="HINAWA_FW_NODE"
- introspectable="0">
- <source-position filename="../src/fw_node.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_NODE_CLASS"
- c:identifier="HINAWA_FW_NODE_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_node.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_NODE_GET_CLASS"
- c:identifier="HINAWA_FW_NODE_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_node.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_REQ"
- c:identifier="HINAWA_FW_REQ"
- introspectable="0">
- <source-position filename="../src/fw_req.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_REQ_CLASS"
- c:identifier="HINAWA_FW_REQ_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_req.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_REQ_GET_CLASS"
- c:identifier="HINAWA_FW_REQ_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_req.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_RESP"
- c:identifier="HINAWA_FW_RESP"
- introspectable="0">
- <source-position filename="../src/fw_resp.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_RESP_CLASS"
- c:identifier="HINAWA_FW_RESP_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_resp.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="FW_RESP_GET_CLASS"
- c:identifier="HINAWA_FW_RESP_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_resp.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
<class name="FwFcp"
c:symbol-prefix="fw_fcp"
c:type="HinawaFwFcp"
@@ -130,27 +22,34 @@ and/or use gtk-doc annotations. -->
glib:type-name="HinawaFwFcp"
glib:get-type="hinawa_fw_fcp_get_type"
glib:type-struct="FwFcpClass">
- <source-position filename="../src/fw_fcp.h" line="63"/>
+ <doc xml:space="preserve"
+ filename="../src/fw_fcp.c"
+ line="7">A FCP transaction executor to node in IEEE 1394 bus.
+A HinawaFwFcp supports Function Control Protocol (FCP) in IEC 61883-1, in which no way is defined
+to match response against command by the contents of frames. In 'AV/C Digital Interface Command
+Set General Specification Version 4.2' (Sep 1 2004, 1394TA), a pair of command and response is
+loosely matched by the contents of frames.
+
+Any of transaction frames should be aligned to 8bit (byte). This class is an application of
+[class@FwReq] / [class@FwResp].</doc>
+ <source-position filename="../src/fw_fcp.h" line="32"/>
<constructor name="new" c:identifier="hinawa_fw_fcp_new" version="1.3.">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="208">Instantiate #HinawaFwFcp object and return the instance.</doc>
- <source-position filename="../src/fw_fcp.h" line="67"/>
+ line="205">Instantiate [class@FwFcp] object and return the instance.</doc>
+ <source-position filename="../src/fw_fcp.h" line="34"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="213">an instance of #HinawaFwFcp.</doc>
+ line="210">an instance of [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</return-value>
</constructor>
<virtual-method name="responded" version="2.1">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="48">When the unit transfers asynchronous packet as response for Echo Audio Fireworks
-protocol, and the process successfully reads the content of packet from ALSA
-Fireworks driver, the #HinawaFwFcpClass::responded signal handler is called with
-parameters of the response.</doc>
- <source-position filename="../src/fw_fcp.h" line="62"/>
+ line="20">Class closure for the [signal@FwFcp::responded] signal.</doc>
+ <source-position filename="../src/fw_fcp.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -158,13 +57,13 @@ parameters of the response.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="50">A #HinawaFwFcp.</doc>
+ line="22">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="51">The array with elements for byte
+ line="23">The array with elements for byte
data of response for Function Control Protocol.</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -173,7 +72,7 @@ parameters of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="53">The number of elements of the array.</doc>
+ line="25">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -184,11 +83,12 @@ parameters of the response.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="283">Finish the pair of AV/C command and response transactions. The timeout_ms parameter is
-used to wait for response transaction since the command transaction is initiated, ignoring
-#HinawaFwFcp:timeout property of instance. The timeout is not expanded in the case that AV/C
-INTERIM status is arrived, thus the caller should expand the timeout in advance for the case.</doc>
- <source-position filename="../src/fw_fcp.h" line="81"/>
+ line="280">Finish the pair of asynchronous transaction for AV/C command and response transactions. The
+timeout_ms parameter is used to wait for response transaction since the command transaction is
+initiated, ignoring [property@FwFcp:timeout] property of instance. The timeout is not expanded in
+the case that AV/C INTERIM status is arrived, thus the caller should expand the timeout in
+advance for the case.</doc>
+ <source-position filename="../src/fw_fcp.h" line="47"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -196,13 +96,13 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="285">A #HinawaFwFcp.</doc>
+ line="282">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
<parameter name="cmd" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="286">An array with elements for request byte data. The value of
+ line="283">An array with elements for request byte data. The value of
this argument should point to the array and immutable.</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
@@ -211,7 +111,7 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
<parameter name="cmd_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="288">The size of array for request in byte unit.</doc>
+ line="285">The size of array for request in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="resp"
@@ -220,7 +120,7 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="289">An array with elements for response byte data. Callers
+ line="286">An array with elements for response byte data. Callers
should give it for buffer with enough space against the request since this library
performs no reallocation. Due to the reason, the value of this argument should point to
the pointer to the array and immutable. The content of array is mutable.</doc>
@@ -234,14 +134,14 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="293">The size of array for response in byte unit. The value of this argument should point to
+ line="290">The size of array for response in byte unit. The value of this argument should point to
the numerical number and mutable.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
<parameter name="timeout_ms" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="295">The timeout to wait for response transaction since command transactions finishes.</doc>
+ line="292">The timeout to wait for response transaction since command transactions finishes.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -252,8 +152,8 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
throws="1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="426">Start to listen to FCP responses.</doc>
- <source-position filename="../src/fw_fcp.h" line="74"/>
+ line="422">Start to listen to FCP responses.</doc>
+ <source-position filename="../src/fw_fcp.h" line="41"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -261,13 +161,13 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="428">A #HinawaFwFcp.</doc>
+ line="424">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="429">A #HinawaFwNode.</doc>
+ line="425">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
</parameters>
@@ -278,9 +178,9 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
throws="1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="221">Transfer command frame for FCP. When receiving response frame for FCP,
-#HinawaFwFcp::responded signal is emitted.</doc>
- <source-position filename="../src/fw_fcp.h" line="78"/>
+ line="218">Transfer command frame for FCP. When receiving response frame for FCP, [signal@FwFcp::responded]
+signal is emitted.</doc>
+ <source-position filename="../src/fw_fcp.h" line="44"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -288,13 +188,13 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="223">A #HinawaFwFcp.</doc>
+ line="220">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
<parameter name="cmd" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="224">An array with elements for request byte data. The value of this
+ line="221">An array with elements for request byte data. The value of this
argument should point to the array and immutable.</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
@@ -303,13 +203,13 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
<parameter name="cmd_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="226">The size of array for request in byte unit.</doc>
+ line="223">The size of array for request in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="timeout_ms" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="227">The timeout to wait for response subaction of transaction for command frame.</doc>
+ line="224">The timeout to wait for response subaction of transaction for command frame.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -322,10 +222,11 @@ INTERIM status is arrived, thus the caller should expand the timeout in advance
throws="1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="370">Finish the pair of command and response transactions for FCP. The value of #HinawaFwFcp:timeout
-property is used to wait for response transaction since the command transaction is initiated.</doc>
- <doc-deprecated xml:space="preserve">Use #hinawa_fw_fcp_avc_transaction(), instead.</doc-deprecated>
- <source-position filename="../src/fw_fcp.h" line="69"/>
+ line="368">Finish the pair of command and response transactions for FCP. The value of
+[property@FwFcp:timeout] property is used to wait for response transaction since the command
+transaction is initiated.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@FwFcp.avc_transaction], instead.</doc-deprecated>
+ <source-position filename="../src/fw_fcp.h" line="36"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -333,15 +234,14 @@ property is used to wait for response transaction since the command transaction
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="372">A #HinawaFwFcp.</doc>
+ line="370">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
<parameter name="req_frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="373">An array with elements for
- request byte data. The value of this argument should point to
- the array and immutable.</doc>
+ line="371">An array with elements for request byte data. The
+ value of this argument should point to the array and immutable.</doc>
<array length="1" zero-terminated="0" c:type="const guint8*">
<type name="guint8" c:type="guint8"/>
</array>
@@ -349,7 +249,7 @@ property is used to wait for response transaction since the command transaction
<parameter name="req_frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="376">The size of array for request in byte unit.</doc>
+ line="373">The size of array for request in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="resp_frame"
@@ -358,12 +258,11 @@ property is used to wait for response transaction since the command transaction
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="377">An array with elements
- for response byte data. Callers should give it for buffer with
- enough space against the request since this library performs no
- reallocation. Due to the reason, the value of this argument
- should point to the pointer to the array and immutable. The
- content of array is mutable.</doc>
+ line="374">An array with elements for response byte
+ data. Callers should give it for buffer with enough space against the request
+ since this library performs no reallocation. Due to the reason, the value of this
+ argument should point to the pointer to the array and immutable. The content of
+ array is mutable.</doc>
<array length="3" zero-terminated="0" c:type="guint8* const*">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -374,9 +273,8 @@ property is used to wait for response transaction since the command transaction
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="383">The size of array for response in byte unit. The value of
- this argument should point to the numerical number and
- mutable.</doc>
+ line="379">The size of array for response in byte unit. The value of this argument should
+ point to the numerical number and mutable.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -384,8 +282,8 @@ property is used to wait for response transaction since the command transaction
<method name="unbind" c:identifier="hinawa_fw_fcp_unbind" version="1.4.">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="457">Stop to listen to FCP responses.</doc>
- <source-position filename="../src/fw_fcp.h" line="76"/>
+ line="452">Stop to listen to FCP responses.</doc>
+ <source-position filename="../src/fw_fcp.h" line="42"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -393,12 +291,15 @@ property is used to wait for response transaction since the command transaction
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="459">A #HinawaFwFcp.</doc>
+ line="454">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</instance-parameter>
</parameters>
</method>
<property name="is-bound" version="2.0" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_fcp.c"
+ line="158">Whether this protocol is bound to any instance of HinawaFwNode.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="timeout"
@@ -409,23 +310,18 @@ property is used to wait for response transaction since the command transaction
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="147">Since 1.4</doc>
- <doc-deprecated xml:space="preserve">Use timeout_ms parameter of #hinawa_fw_fcp_avc_transaction().</doc-deprecated>
+ line="144">Since 1.4</doc>
+ <doc-deprecated xml:space="preserve">Use timeout_ms parameter of [method@FwFcp.avc_transaction].</doc-deprecated>
<type name="guint" c:type="guint"/>
</property>
<field name="parent_instance">
<type name="FwResp" c:type="HinawaFwResp"/>
</field>
- <field name="priv">
- <type name="FwFcpPrivate" c:type="HinawaFwFcpPrivate*"/>
- </field>
<glib:signal name="responded" when="last" version="2.1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="177">When the unit transfers asynchronous packet as response for Echo Audio Fireworks
-protocol, and the process successfully reads the content of packet from ALSA
-Fireworks driver, the #HinawaFwFcp::responded signal handler is called with parameters
-of the response.</doc>
+ line="176">Emitted when the node transfers asynchronous packet as response for FCP and the process
+successfully read the content of packet.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -433,8 +329,8 @@ of the response.</doc>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="180">The array with elements for byte
- data of response for Function Control Protocol.</doc>
+ line="179">The array with elements for byte
+ data of response for FCP.</doc>
<array length="1" zero-terminated="0" c:type="gpointer">
<type name="guint8"/>
</array>
@@ -442,7 +338,7 @@ of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="182">The number of elements of the array.</doc>
+ line="181">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -451,13 +347,13 @@ of the response.</doc>
<record name="FwFcpClass"
c:type="HinawaFwFcpClass"
glib:is-gtype-struct-for="FwFcp">
- <source-position filename="../src/fw_fcp.h" line="63"/>
+ <source-position filename="../src/fw_fcp.h" line="32"/>
<field name="parent_class">
<type name="FwRespClass" c:type="HinawaFwRespClass"/>
</field>
<field name="responded">
<callback name="responded">
- <source-position filename="../src/fw_fcp.h" line="62"/>
+ <source-position filename="../src/fw_fcp.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -465,13 +361,13 @@ of the response.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="50">A #HinawaFwFcp.</doc>
+ line="22">A [class@FwFcp].</doc>
<type name="FwFcp" c:type="HinawaFwFcp*"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="51">The array with elements for byte
+ line="23">The array with elements for byte
data of response for Function Control Protocol.</doc>
<array length="2" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -480,7 +376,7 @@ of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.h"
- line="53">The number of elements of the array.</doc>
+ line="25">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -495,7 +391,7 @@ of the response.</doc>
glib:error-domain="hinawa-fw-fcp-error-quark">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="145">A set of error code for GError with domain which equals to #hinawa_fw_fcp_error_quark().</doc>
+ line="177">A set of error code for [struct@GLib.Error] with domain which equals to Hinawa.FwFcpError.</doc>
<member name="timeout"
value="0"
c:identifier="HINAWA_FW_FCP_ERROR_TIMEOUT"
@@ -503,7 +399,7 @@ of the response.</doc>
glib:name="HINAWA_FW_FCP_ERROR_TIMEOUT">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="147">The transaction is canceled due to response timeout.</doc>
+ line="179">The transaction is canceled due to response timeout.</doc>
</member>
<member name="large_resp"
value="1"
@@ -512,52 +408,54 @@ of the response.</doc>
glib:name="HINAWA_FW_FCP_ERROR_LARGE_RESP">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="148">The size of response is larger than expected.</doc>
+ line="180">The size of response is larger than expected.</doc>
</member>
<function name="quark"
c:identifier="hinawa_fw_fcp_error_quark"
version="2.1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="23">Return the GQuark for error domain of GError which has code in #HinawaFwFcpError.</doc>
+ line="20">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.FwFcpError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="30">A #GQuark.</doc>
+ line="27">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
- <record name="FwFcpPrivate" c:type="HinawaFwFcpPrivate" disguised="1">
- <source-position filename="../src/fw_fcp.h" line="37"/>
- </record>
<class name="FwNode"
c:symbol-prefix="fw_node"
c:type="HinawaFwNode"
+ version="1.4."
parent="GObject.Object"
glib:type-name="HinawaFwNode"
glib:get-type="hinawa_fw_node_get_type"
glib:type-struct="FwNodeClass">
- <source-position filename="../src/fw_node.h" line="71"/>
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="11">An event listener for FireWire node
+A [class@FwNode] is an event listener for a specified node on IEEE 1394 bus. This class is an
+application of Linux FireWire subsystem. All of operations utilize ioctl(2) with subsystem
+specific request commands.</doc>
+ <source-position filename="../src/fw_node.h" line="40"/>
<constructor name="new" c:identifier="hinawa_fw_node_new" version="1.4.">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="277">Instantiate #HinawaFwNode object and return the instance.</doc>
- <source-position filename="../src/fw_node.h" line="75"/>
+ line="288">Instantiate [class@FwNode] object and return the instance.</doc>
+ <source-position filename="../src/fw_node.h" line="42"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="282">an instance of #HinawaFwNode.</doc>
+ line="293">an instance of [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</return-value>
</constructor>
<virtual-method name="bus_update" version="1.4.">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="48">When IEEE 1394 bus is updated, the #HinawaFwNodeClass::bus-update handler is called.
-The handlers can read current generation in the bus via 'generation'
-property.</doc>
- <source-position filename="../src/fw_node.h" line="58"/>
+ line="20">Class closure for the [signal@FwNode::bus-update].</doc>
+ <source-position filename="../src/fw_node.h" line="28"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -565,7 +463,7 @@ property.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="50">A #HinawaFwNode.</doc>
+ line="22">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</instance-parameter>
</parameters>
@@ -573,9 +471,8 @@ property.</doc>
<virtual-method name="disconnected" version="1.4.">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="60">When phicical FireWire devices are disconnected from IEEE 1394 bus,
-the #HinawaFwNodeClass::disconnected handler is called.</doc>
- <source-position filename="../src/fw_node.h" line="69"/>
+ line="30">Class closure for the [signal@FwNode::disconnected].</doc>
+ <source-position filename="../src/fw_node.h" line="38"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -583,7 +480,7 @@ the #HinawaFwNodeClass::disconnected handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="62">A #HinawaFwNode</doc>
+ line="32">A [class@FwNode]</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</instance-parameter>
</parameters>
@@ -594,9 +491,9 @@ the #HinawaFwNodeClass::disconnected handler is called.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="495">Create Gsource for GMainContext to dispatch events for the node on IEEE 1394
-bus.</doc>
- <source-position filename="../src/fw_node.h" line="83"/>
+ line="505">Create [struct@GLib.Source] for [struct@GLib.MainContext] to dispatch events for the node on
+IEEE 1394 bus.</doc>
+ <source-position filename="../src/fw_node.h" line="50"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -604,7 +501,7 @@ bus.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="497">A #HinawaFwNode.</doc>
+ line="507">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</instance-parameter>
<parameter name="gsrc"
@@ -613,7 +510,7 @@ bus.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="498">A #GSource.</doc>
+ line="508">A [struct@GLib.Source].</doc>
<type name="GLib.Source" c:type="GSource**"/>
</parameter>
</parameters>
@@ -624,8 +521,8 @@ bus.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="373">Get cached content of configuration ROM aligned to big-endian.</doc>
- <source-position filename="../src/fw_node.h" line="80"/>
+ line="384">Get cached content of configuration ROM aligned to big-endian.</doc>
+ <source-position filename="../src/fw_node.h" line="47"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -633,7 +530,7 @@ bus.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="375">A #HinawaFwNode</doc>
+ line="386">A [class@FwNode]</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</instance-parameter>
<parameter name="image"
@@ -642,8 +539,7 @@ bus.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="376">The content of
- configuration ROM.</doc>
+ line="387">The content of configuration ROM.</doc>
<array length="1" zero-terminated="0" c:type="const guint8**">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -654,7 +550,7 @@ bus.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="378">The number of bytes consists of the configuration rom.</doc>
+ line="388">The number of bytes consists of the configuration rom.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -665,8 +561,8 @@ bus.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="318">Open Linux FireWire character device to operate node on IEEE 1394 bus.</doc>
- <source-position filename="../src/fw_node.h" line="77"/>
+ line="329">Open Linux FireWire character device to operate node on IEEE 1394 bus.</doc>
+ <source-position filename="../src/fw_node.h" line="44"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -674,13 +570,13 @@ bus.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="320">A #HinawaFwNode</doc>
+ line="331">A [class@FwNode]</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="321">A path to Linux FireWire character device</doc>
+ line="332">A path to Linux FireWire character device</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
@@ -688,37 +584,54 @@ bus.</doc>
<property name="bus-manager-node-id"
version="1.4"
transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="182">Node ID of node which plays role of bus manager at current generation of bus topology.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="generation" version="1.4" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="225">Current generation of bus topology.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="ir-manager-node-id"
version="1.4"
transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="196">Node ID of node which plays role of isochronous resource manager at current generation
+of bus topology.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="local-node-id" version="1.4" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="166">Node ID of node which application uses to communicate to node associated to instance of
+object at current generation of bus topology. In general, it is for 1394 OHCI controller.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="node-id" version="1.4" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="150">Node ID of node associated to instance of object at current generation of bus topology.
+This parameter is effective after the association.</doc>
<type name="guint" c:type="guint"/>
</property>
<property name="root-node-id" version="1.4" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_node.c"
+ line="211">Node ID of root node in bus topology at current generation of the bus topology.</doc>
<type name="guint" c:type="guint"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
- <field name="priv">
- <type name="FwNodePrivate" c:type="HinawaFwNodePrivate*"/>
- </field>
<glib:signal name="bus-update" when="last" version="1.4">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="230">When IEEE 1394 bus is updated, the #HinawaFwNode::bus-update signal is generated.
-Handlers can read current generation in the bus via 'generation'
-property.</doc>
+ line="242">Emitted when IEEE 1394 bus is updated. Handlers can read current generation in the bus
+via [property@FwNode:generation] property.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -726,8 +639,8 @@ property.</doc>
<glib:signal name="disconnected" when="last" version="1.4">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="249">When phicical FireWire devices are disconnected from IEEE 1394 bus,
-the #HinawaFwNode::disconnected signal is generated.</doc>
+ line="260">Emitted when the node is not available anymore due to removal from IEEE 1394 bus. It's
+preferable to call [method@GObject.Object.unref] immediately to release file descriptor.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -736,13 +649,13 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
<record name="FwNodeClass"
c:type="HinawaFwNodeClass"
glib:is-gtype-struct-for="FwNode">
- <source-position filename="../src/fw_node.h" line="71"/>
+ <source-position filename="../src/fw_node.h" line="40"/>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="bus_update">
<callback name="bus_update">
- <source-position filename="../src/fw_node.h" line="58"/>
+ <source-position filename="../src/fw_node.h" line="28"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -750,7 +663,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="50">A #HinawaFwNode.</doc>
+ line="22">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
</parameters>
@@ -758,7 +671,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
</field>
<field name="disconnected">
<callback name="disconnected">
- <source-position filename="../src/fw_node.h" line="69"/>
+ <source-position filename="../src/fw_node.h" line="38"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -766,7 +679,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.h"
- line="62">A #HinawaFwNode</doc>
+ line="32">A [class@FwNode]</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
</parameters>
@@ -781,7 +694,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:error-domain="hinawa-fw-node-error-quark">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="109">A set of error code for GError with domain which equals to #hinawa_fw_node_error_quark().</doc>
+ line="141">A set of error code for [struct@GLib.Error] with domain which equals to Hinawa.FwNodeError.</doc>
<member name="disconnected"
value="0"
c:identifier="HINAWA_FW_NODE_ERROR_DISCONNECTED"
@@ -789,7 +702,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:name="HINAWA_FW_NODE_ERROR_DISCONNECTED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="111">The node associated to the instance is disconnected.</doc>
+ line="143">The node associated to the instance is disconnected.</doc>
</member>
<member name="opened"
value="1"
@@ -798,7 +711,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:name="HINAWA_FW_NODE_ERROR_OPENED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="112">The instance is already associated to node by opening
+ line="144">The instance is already associated to node by opening
firewire character device.</doc>
</member>
<member name="not_opened"
@@ -808,7 +721,7 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:name="HINAWA_FW_NODE_ERROR_NOT_OPENED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="114">The instance is not associated to node by opening
+ line="146">The instance is not associated to node by opening
firewire character device.</doc>
</member>
<member name="failed"
@@ -818,25 +731,22 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:name="HINAWA_FW_NODE_ERROR_FAILED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="116">The system call fails.</doc>
+ line="148">The system call fails.</doc>
</member>
<function name="quark"
c:identifier="hinawa_fw_node_error_quark"
version="2.1">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="44">Return the GQuark for error domain of GError which has code in #HinawaFwNodeError.</doc>
+ line="41">Return the [alias@GLib.Quark] for [struct@GLib.Error] with Hinawa.FwNodeError domain.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="51">A #GQuark.</doc>
+ line="48">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
- <record name="FwNodePrivate" c:type="HinawaFwNodePrivate" disguised="1">
- <source-position filename="../src/fw_node.h" line="37"/>
- </record>
<enumeration name="FwRcode"
version="1.0"
glib:type-name="HinawaFwRcode"
@@ -952,39 +862,32 @@ the #HinawaFwNode::disconnected signal is generated.</doc>
glib:type-name="HinawaFwReq"
glib:get-type="hinawa_fw_req_get_type"
glib:type-struct="FwReqClass">
- <source-position filename="../src/fw_req.h" line="64"/>
+ <doc xml:space="preserve"
+ filename="../src/fw_req.c"
+ line="8">A transaction executor to a FireWire unit.
+A HinawaFwReq supports some types of transactions in IEEE 1212. Mainly for read, write and lock
+operations.
+
+This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2)
+with subsystem specific request commands.</doc>
+ <source-position filename="../src/fw_req.h" line="34"/>
<constructor name="new" c:identifier="hinawa_fw_req_new" version="1.3.">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="152">Instantiate #HinawaFwReq object and return the instance.</doc>
- <source-position filename="../src/fw_req.h" line="68"/>
+ line="158">Instantiate [class@FwReq] object and return the instance.</doc>
+ <source-position filename="../src/fw_req.h" line="36"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="157">an instance of #HinawaFwReq.</doc>
+ line="163">an instance of [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</return-value>
</constructor>
- <function name="error_quark"
- c:identifier="hinawa_fw_req_error_quark"
- version="2.1">
- <doc xml:space="preserve"
- filename="../src/fw_req.c"
- line="21">Return the GQuark for error domain of GError which has code in #HinawaFwRcode.</doc>
- <return-value transfer-ownership="none">
- <doc xml:space="preserve"
- filename="../src/fw_req.c"
- line="28">A #GQuark.</doc>
- <type name="GLib.Quark" c:type="GQuark"/>
- </return-value>
- </function>
<virtual-method name="responded" version="2.1">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="48">When the unit transfers asynchronous packet as response subaction for the transaction,
-and the process successfully reads the content of packet from Linux firewire subsystem,
-the #HinawaFwReqClass::responded handler is called.</doc>
- <source-position filename="../src/fw_req.h" line="62"/>
+ line="20">Class closure for the [signal@FwReq::responded] signal.</doc>
+ <source-position filename="../src/fw_req.h" line="32"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -992,19 +895,19 @@ the #HinawaFwReqClass::responded handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="50">A #HinawaFwReq.</doc>
+ line="22">A [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</instance-parameter>
<parameter name="rcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="51">One of #HinawaFwRcode.</doc>
+ line="23">One of [enum@FwRcode].</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="52">The array with elements for
+ line="24">The array with elements for
byte data of response subaction for transaction.</doc>
<array length="2" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -1013,7 +916,7 @@ the #HinawaFwReqClass::responded handler is called.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="54">The number of elements of the array.</doc>
+ line="26">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1026,10 +929,10 @@ the #HinawaFwReqClass::responded handler is called.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="385">Execute request subaction of transaction to the given node according to given code, then wait
-for response subaction within #HinawaFwReq:timeout.</doc>
- <doc-deprecated xml:space="preserve">Use #hinawa_fw_req_transaction_sync(), instead.</doc-deprecated>
- <source-position filename="../src/fw_req.h" line="80"/>
+ line="383">Execute request subaction of transaction to the given node according to given code, then wait
+for response subaction within the value of timeout argument.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@FwReq.transaction_sync] instead.</doc-deprecated>
+ <source-position filename="../src/fw_req.h" line="48"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1037,31 +940,31 @@ for response subaction within #HinawaFwReq:timeout.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="387">A #HinawaFwReq.</doc>
+ line="385">A [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="388">A #HinawaFwNode.</doc>
+ line="386">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="389">A transaction code of HinawaFwTcode.</doc>
+ line="387">A transaction code of [enum@FwTcode].</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
<parameter name="addr" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="390">A destination address of target device</doc>
+ line="388">A destination address of target device</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="391">The range of address in byte unit.</doc>
+ line="389">The range of address in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="frame"
@@ -1070,12 +973,11 @@ for response subaction within #HinawaFwReq:timeout.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="392">An array with elements for byte
- data. Callers should give it for buffer with enough space against the
- request since this library performs no reallocation. Due to the
- reason, the value of this argument should point to the pointer to the
- array and immutable. The content of array is mutable for read and
- lock transaction.</doc>
+ line="390">An array with elements for byte data. Callers should
+ give it for buffer with enough space against the request since this library performs no
+ reallocation. Due to the reason, the value of this argument should point to the pointer
+ to the array and immutable. The content of array is mutable for read and lock
+ transaction.</doc>
<array length="5" zero-terminated="0" c:type="guint8* const*">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -1086,9 +988,8 @@ for response subaction within #HinawaFwReq:timeout.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="398">The size of array in byte unit. The value of this argument
- should point to the numerical number and mutable for read and
- lock transaction.</doc>
+ line="395">The size of array in byte unit. The value of this argument should point to the
+ numerical number and mutable for read and lock transaction.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -1099,10 +1000,10 @@ for response subaction within #HinawaFwReq:timeout.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="165">Execute request subaction of transactions to the given node according to given code. When the
-response subaction arrives and read the contents, #HinawaFwReq::responded signal handler is called
+ line="171">Execute request subaction of transactions to the given node according to given code. When the
+response subaction arrives and read the contents, [signal@FwReq::responded] signal handler is called
as long as event dispatcher runs.</doc>
- <source-position filename="../src/fw_req.h" line="70"/>
+ <source-position filename="../src/fw_req.h" line="38"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1110,31 +1011,31 @@ as long as event dispatcher runs.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="167">A #HinawaFwReq.</doc>
+ line="173">A [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="168">A #HinawaFwNode.</doc>
+ line="174">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="169">A transaction code of HinawaFwTcode.</doc>
+ line="175">A transaction code of [enum@FwTcode].</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
<parameter name="addr" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="170">A destination address of target device</doc>
+ line="176">A destination address of target device</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="171">The range of address in byte unit.</doc>
+ line="177">The range of address in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="frame"
@@ -1143,12 +1044,11 @@ as long as event dispatcher runs.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="172">An array with elements for byte
- data. Callers should give it for buffer with enough space against the
- request since this library performs no reallocation. Due to the
- reason, the value of this argument should point to the pointer to the
- array and immutable. The content of array is mutable for read and
- lock transaction.</doc>
+ line="178">An array with elements for byte data. Callers should
+ give it for buffer with enough space against the request since this library performs no
+ reallocation. Due to the reason, the value of this argument should point to the pointer
+ to the array and immutable. The content of array is mutable for read and lock
+ transaction.</doc>
<array length="5" zero-terminated="0" c:type="guint8* const*">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -1159,9 +1059,8 @@ as long as event dispatcher runs.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="178">The size of array in byte unit. The value of this argument
- should point to the numerical number and mutable for read and
- lock transaction.</doc>
+ line="183">The size of array in byte unit. The value of this argument should point to the
+ numerical number and mutable for read and lock transaction.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -1172,10 +1071,10 @@ as long as event dispatcher runs.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="282">Execute request subaction of transaction to the given node according to given code, then wait
-for response subaction within the given timeout. The #HinawaFwReq:timeout property of instance
-is ignored.</doc>
- <source-position filename="../src/fw_req.h" line="75"/>
+ line="286">Execute request subaction of transaction to the given node according to given code, then wait
+for response subaction within the given timeout. The [property@FwReq:timeout] property of
+instance is ignored.</doc>
+ <source-position filename="../src/fw_req.h" line="43"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1183,31 +1082,31 @@ is ignored.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="284">A #HinawaFwReq.</doc>
+ line="288">A [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="285">A #HinawaFwNode.</doc>
+ line="289">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="286">A transaction code of HinawaFwTcode.</doc>
+ line="290">A transaction code of [enum@FwTcode].</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
<parameter name="addr" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="287">A destination address of target device</doc>
+ line="291">A destination address of target device</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="288">The range of address in byte unit.</doc>
+ line="292">The range of address in byte unit.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="frame"
@@ -1216,12 +1115,11 @@ is ignored.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="289">An array with elements for byte
- data. Callers should give it for buffer with enough space against the
- request since this library performs no reallocation. Due to the
- reason, the value of this argument should point to the pointer to the
- array and immutable. The content of array is mutable for read and
- lock transaction.</doc>
+ line="293">An array with elements for byte data. Callers should
+ give it for buffer with enough space against the request since this library performs no
+ reallocation. Due to the reason, the value of this argument should point to the pointer
+ to the array and immutable. The content of array is mutable for read and lock
+ transaction.</doc>
<array length="5" zero-terminated="0" c:type="guint8* const*">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -1232,15 +1130,14 @@ is ignored.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="295">The size of array in byte unit. The value of this argument
- should point to the numerical number and mutable for read and
- lock transaction.</doc>
+ line="298">The size of array in byte unit. The value of this argument should point to the
+ numeric number and mutable for read and lock transaction.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
<parameter name="timeout_ms" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="298">The timeout to wait for response subaction of the transaction since request
+ line="300">The timeout to wait for response subaction of the transaction since request
subaction is initiated, in milliseconds.</doc>
<type name="guint" c:type="guint"/>
</parameter>
@@ -1253,21 +1150,18 @@ is ignored.</doc>
writable="1"
construct="1"
transfer-ownership="none">
- <doc-deprecated xml:space="preserve">Use timeout_ms parameter of #hinawa_fw_req_transaction_sync().</doc-deprecated>
+ <doc-deprecated xml:space="preserve">Use timeout_ms parameter of [method@FwReq.transaction_sync].</doc-deprecated>
<type name="guint" c:type="guint"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
- <field name="priv">
- <type name="FwReqPrivate" c:type="HinawaFwReqPrivate*"/>
- </field>
<glib:signal name="responded" when="last" version="2.1">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="122">When the unit transfers asynchronous packet as response subaction for the transaction,
-and the process successfully reads the content of packet from Linux firewire subsystem,
-the #HinawaFwReq::responded signal handler is called.</doc>
+ line="128">Emitted when the unit transfers asynchronous packet as response subaction for the
+transaction and the process successfully reads the content of packet from Linux firewire
+subsystem.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1275,13 +1169,13 @@ the #HinawaFwReq::responded signal handler is called.</doc>
<parameter name="rcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="125">One of #HinawaFwRcode.</doc>
+ line="131">One of [enum@FwRcode].</doc>
<type name="FwRcode"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="126">The array with elements for
+ line="132">The array with elements for
byte data of response subaction for transaction.</doc>
<array length="2" zero-terminated="0" c:type="gpointer">
<type name="guint8"/>
@@ -1290,7 +1184,7 @@ the #HinawaFwReq::responded signal handler is called.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="128">The number of elements of the array.</doc>
+ line="134">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1299,13 +1193,13 @@ the #HinawaFwReq::responded signal handler is called.</doc>
<record name="FwReqClass"
c:type="HinawaFwReqClass"
glib:is-gtype-struct-for="FwReq">
- <source-position filename="../src/fw_req.h" line="64"/>
+ <source-position filename="../src/fw_req.h" line="34"/>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="responded">
<callback name="responded">
- <source-position filename="../src/fw_req.h" line="62"/>
+ <source-position filename="../src/fw_req.h" line="32"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1313,19 +1207,19 @@ the #HinawaFwReq::responded signal handler is called.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="50">A #HinawaFwReq.</doc>
+ line="22">A [class@FwReq].</doc>
<type name="FwReq" c:type="HinawaFwReq*"/>
</parameter>
<parameter name="rcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="51">One of #HinawaFwRcode.</doc>
+ line="23">One of [enum@FwRcode].</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="52">The array with elements for
+ line="24">The array with elements for
byte data of response subaction for transaction.</doc>
<array length="3" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -1334,16 +1228,127 @@ the #HinawaFwReq::responded signal handler is called.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_req.h"
- line="54">The number of elements of the array.</doc>
+ line="26">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
</record>
- <record name="FwReqPrivate" c:type="HinawaFwReqPrivate" disguised="1">
- <source-position filename="../src/fw_req.h" line="37"/>
- </record>
+ <enumeration name="FwReqError"
+ version="2.5."
+ glib:type-name="HinawaFwReqError"
+ glib:get-type="hinawa_fw_req_error_get_type"
+ c:type="HinawaFwReqError"
+ glib:error-domain="hinawa-fw-req-error-quark">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="83">A set of error code for [class@Hinawa.FwReq]. Each of them has the same value as the
+corresponding enumeration in [enum@Hinawa.FwRcode].</doc>
+ <member name="conflict_error"
+ value="4"
+ c:identifier="HINAWA_FW_REQ_ERROR_CONFLICT_ERROR"
+ glib:nick="conflict-error"
+ glib:name="HINAWA_FW_REQ_ERROR_CONFLICT_ERROR">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="85">For error of conflicting.</doc>
+ </member>
+ <member name="data_error"
+ value="5"
+ c:identifier="HINAWA_FW_REQ_ERROR_DATA_ERROR"
+ glib:nick="data-error"
+ glib:name="HINAWA_FW_REQ_ERROR_DATA_ERROR">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="86">For error of data.</doc>
+ </member>
+ <member name="type_error"
+ value="6"
+ c:identifier="HINAWA_FW_REQ_ERROR_TYPE_ERROR"
+ glib:nick="type-error"
+ glib:name="HINAWA_FW_REQ_ERROR_TYPE_ERROR">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="87">For error of type.</doc>
+ </member>
+ <member name="address_error"
+ value="7"
+ c:identifier="HINAWA_FW_REQ_ERROR_ADDRESS_ERROR"
+ glib:nick="address-error"
+ glib:name="HINAWA_FW_REQ_ERROR_ADDRESS_ERROR">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="88">For error of address.</doc>
+ </member>
+ <member name="send_error"
+ value="16"
+ c:identifier="HINAWA_FW_REQ_ERROR_SEND_ERROR"
+ glib:nick="send-error"
+ glib:name="HINAWA_FW_REQ_ERROR_SEND_ERROR">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="89">For error of sending.</doc>
+ </member>
+ <member name="cancelled"
+ value="17"
+ c:identifier="HINAWA_FW_REQ_ERROR_CANCELLED"
+ glib:nick="cancelled"
+ glib:name="HINAWA_FW_REQ_ERROR_CANCELLED">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="90">For cancellation.</doc>
+ </member>
+ <member name="busy"
+ value="18"
+ c:identifier="HINAWA_FW_REQ_ERROR_BUSY"
+ glib:nick="busy"
+ glib:name="HINAWA_FW_REQ_ERROR_BUSY">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="91">For busyness.</doc>
+ </member>
+ <member name="generation"
+ value="19"
+ c:identifier="HINAWA_FW_REQ_ERROR_GENERATION"
+ glib:nick="generation"
+ glib:name="HINAWA_FW_REQ_ERROR_GENERATION">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="92">For generation.</doc>
+ </member>
+ <member name="no_ack"
+ value="20"
+ c:identifier="HINAWA_FW_REQ_ERROR_NO_ACK"
+ glib:nick="no-ack"
+ glib:name="HINAWA_FW_REQ_ERROR_NO_ACK">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="93">For no acknowledge.</doc>
+ </member>
+ <member name="invalid"
+ value="21"
+ c:identifier="HINAWA_FW_REQ_ERROR_INVALID"
+ glib:nick="invalid"
+ glib:name="HINAWA_FW_REQ_ERROR_INVALID">
+ <doc xml:space="preserve"
+ filename="../src/hinawa_enum_types.h"
+ line="94">For rcode out of specification.</doc>
+ </member>
+ <function name="quark"
+ c:identifier="hinawa_fw_req_error_quark"
+ version="2.1">
+ <doc xml:space="preserve"
+ filename="../src/fw_req.c"
+ line="19">Return the [alias@GLib.Quark] for [struct@GLib.Error] with code of [enum@FwRcode].</doc>
+ <return-value transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_req.c"
+ line="26">A [alias@GLib.Quark].</doc>
+ <type name="GLib.Quark" c:type="GQuark"/>
+ </return-value>
+ </function>
+ </enumeration>
<class name="FwResp"
c:symbol-prefix="fw_resp"
c:type="HinawaFwResp"
@@ -1351,48 +1356,50 @@ the #HinawaFwReq::responded signal handler is called.</doc>
glib:type-name="HinawaFwResp"
glib:get-type="hinawa_fw_resp_get_type"
glib:type-struct="FwRespClass">
- <source-position filename="../src/fw_resp.h" line="93"/>
+ <doc xml:space="preserve"
+ filename="../src/fw_resp.c"
+ line="8">A transaction responder for request initiated by node in IEEE 1394 bus.
+The [class@FwResp] responds transaction initiated by node in IEEE 1394 bus.
+
+This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2)
+with subsystem specific request commands.</doc>
+ <source-position filename="../src/fw_resp.h" line="57"/>
<constructor name="new" c:identifier="hinawa_fw_resp_new" version="1.3.">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="218">Instantiate #HinawaFwResp object and return the instance.</doc>
- <source-position filename="../src/fw_resp.h" line="97"/>
+ line="224">Instantiate [class@FwResp] object and return the instance.</doc>
+ <source-position filename="../src/fw_resp.h" line="59"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="223">a new instance of #HinawaFwResp.</doc>
+ line="229">a new instance of [class@FwResp].</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</return-value>
</constructor>
<virtual-method name="requested" deprecated="1" deprecated-version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="48">When any node transfers requests to the range of address to which this object listening,
-the #HinawaFwRespClass::requested signal handler is called with #HinawaFwTcode, without the
-case that #HinawaFwRespClass::requested2 signal handler is already assigned.
-
-The handler can get data frame by a call of #hinawa_fw_resp_get_req_frame() and set data
-frame by a call of #hinawa_fw_resp_set_resp_frame(), then returns rcode.</doc>
- <doc-deprecated xml:space="preserve">Use #HinawaFwRespClass::requested2, instead.</doc-deprecated>
- <source-position filename="../src/fw_resp.h" line="65"/>
+ line="20">Class closure for the [signal@FwResp::requested] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use [vfunc@FwResp.requested2], instead.</doc-deprecated>
+ <source-position filename="../src/fw_resp.h" line="32"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="60">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
-specification.</doc>
+ line="27">One of [enum@FwRcode] enumerations corresponding to rcodes defined in IEEE 1394
+ specification.</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</return-value>
<parameters>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="50">A #HinawaFwResp</doc>
+ line="22">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="51">One of #HinawaTcode enumerators</doc>
+ line="23">One of [enum@FwTcode] enumerations</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
</parameters>
@@ -1400,15 +1407,12 @@ specification.</doc>
<virtual-method name="requested2" version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="67">When any node transfers request subaction to the range of address to which this object
-listening, the #HinawaFwResp::requested signal handler is called with arrived frame for
-the subaction. The handler is expected to call #hinawa_fw_resp_set_resp_frame() with
-frame and return rcode for response subaction.</doc>
- <source-position filename="../src/fw_resp.h" line="90"/>
+ line="34">Class closure for the [signal@FwResp::requested2] signal.</doc>
+ <source-position filename="../src/fw_resp.h" line="54"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="85">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
+ line="49">One of [enum@FwRcode enumerations corresponding to rcodes defined in IEEE 1394
specification.</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</return-value>
@@ -1416,49 +1420,49 @@ frame and return rcode for response subaction.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="69">A #HinawaFwResp</doc>
+ line="36">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="70">One of #HinawaTcode enumerations</doc>
+ line="37">One of [enum@FwTcode] enumerations</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="71">The address offset at which the transaction arrives.</doc>
+ line="38">The address offset at which the transaction arrives.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="src" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="72">The node ID of source for the transaction.</doc>
+ line="39">The node ID of source for the transaction.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="dst" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="73">The node ID of destination for the transaction.</doc>
+ line="40">The node ID of destination for the transaction.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="card" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="74">The index of card corresponding to 1394 OHCI controller.</doc>
+ line="41">The index of card corresponding to 1394 OHCI controller.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="generation" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="75">The generation of bus when the transaction is transferred.</doc>
+ line="42">The generation of bus when the transaction is transferred.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="76">The array with elements for byte
+ line="43">The array with elements for byte
data.</doc>
<array length="7" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -1467,7 +1471,7 @@ frame and return rcode for response subaction.</doc>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="78">The length of bytes for the frame.</doc>
+ line="45">The length of bytes for the frame.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1479,10 +1483,10 @@ frame and return rcode for response subaction.</doc>
deprecated-version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="353">Retrieve byte frame to be requested.</doc>
- <doc-deprecated xml:space="preserve">handler for #HinawaFwResp::requested2 signal can receive the frame in its
+ line="359">Retrieve byte frame to be requested.</doc>
+ <doc-deprecated xml:space="preserve">handler for [signal@FwResp::requested2] signal can receive the frame in its
argument.</doc-deprecated>
- <source-position filename="../src/fw_resp.h" line="106"/>
+ <source-position filename="../src/fw_resp.h" line="68"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1490,7 +1494,7 @@ frame and return rcode for response subaction.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="355">A #HinawaFwResp</doc>
+ line="361">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="frame"
@@ -1499,8 +1503,7 @@ frame and return rcode for response subaction.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="356">a 8bit array for response
- frame.</doc>
+ line="362">a 8bit array for response frame.</doc>
<array length="1" zero-terminated="0" c:type="const guint8**">
<type name="guint8" c:type="guint8*"/>
</array>
@@ -1511,7 +1514,7 @@ frame and return rcode for response subaction.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="358">The length of bytes for the frame.</doc>
+ line="363">The length of bytes for the frame.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -1521,8 +1524,8 @@ frame and return rcode for response subaction.</doc>
version="1.4.">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="313">stop to listen to a range of address in host controller.</doc>
- <source-position filename="../src/fw_resp.h" line="104"/>
+ line="319">stop to listen to a range of address in local node (e.g. OHCI 1394 controller).</doc>
+ <source-position filename="../src/fw_resp.h" line="66"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1530,7 +1533,7 @@ frame and return rcode for response subaction.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="315">A HinawaFwResp.</doc>
+ line="321">A [class@FwResp].</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
</parameters>
@@ -1541,10 +1544,10 @@ frame and return rcode for response subaction.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="292">Start to listen to a range of address in host controller which connects to the node. The function
-is a variant of #hinawa_fw_resp_reserve_within_region() so that the exact range of address should
+ line="298">Start to listen to a range of address in host controller which connects to the node. The function
+is a variant of [method@FwResp.reserve_within_region] so that the exact range of address should
be reserved as given.</doc>
- <source-position filename="../src/fw_resp.h" line="102"/>
+ <source-position filename="../src/fw_resp.h" line="64"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1552,25 +1555,25 @@ be reserved as given.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="294">A #HinawaFwResp.</doc>
+ line="300">A [class@FwResp].</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="295">A #HinawaFwNode.</doc>
+ line="301">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
<parameter name="addr" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="296">A start address to listen to in host controller.</doc>
+ line="302">A start address to listen to in host controller.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="297">The byte width of address to listen to host controller.</doc>
+ line="303">The byte width of address to listen to host controller.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1581,10 +1584,10 @@ be reserved as given.</doc>
throws="1">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="231">Start to listen to range of address equals to #width in local node (e.g. 1394 OHCI host
+ line="237">Start to listen to range of address equals to #width in local node (e.g. 1394 OHCI host
controller), which is used to communicate to the node given as parameter. The range of address
-is looked up in region between #region_start and #region_end.</doc>
- <source-position filename="../src/fw_resp.h" line="99"/>
+is looked up in region between region_start and region_end.</doc>
+ <source-position filename="../src/fw_resp.h" line="61"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1592,31 +1595,31 @@ is looked up in region between #region_start and #region_end.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="233">A #HinawaFwResp.</doc>
+ line="239">A [class@FwResp].</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="node" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="234">A #HinawaFwNode.</doc>
+ line="240">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode*"/>
</parameter>
<parameter name="region_start" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="235">Start offset of address region in which range of address is looked up.</doc>
+ line="241">Start offset of address region in which range of address is looked up.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="region_end" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="236">End offset of address region in which range of address is looked up.</doc>
+ line="242">End offset of address region in which range of address is looked up.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="width" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="237">The width for range of address to be looked up.</doc>
+ line="243">The width for range of address to be looked up.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1626,8 +1629,8 @@ is looked up in region between #region_start and #region_end.</doc>
version="2.0">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="383">Register byte frame as response.</doc>
- <source-position filename="../src/fw_resp.h" line="108"/>
+ line="388">Register byte frame as response.</doc>
+ <source-position filename="../src/fw_resp.h" line="70"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -1635,14 +1638,13 @@ is looked up in region between #region_start and #region_end.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="385">A #HinawaFwResp</doc>
+ line="390">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</instance-parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="386">a 8bit array for response
- frame.</doc>
+ line="391">a 8bit array for response frame.</doc>
<array length="1" zero-terminated="0" c:type="guint8*">
<type name="guint8"/>
</array>
@@ -1650,26 +1652,32 @@ is looked up in region between #region_start and #region_end.</doc>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="388">The length of bytes for the frame.</doc>
+ line="392">The length of bytes for the frame.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
</parameters>
</method>
<property name="is-reserved" version="2.0" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_resp.c"
+ line="111">Whether a range of address is reserved or not in host controller.</doc>
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="offset" version="2.3" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_resp.c"
+ line="125">The start offset of reserved address range.</doc>
<type name="guint64" c:type="guint64"/>
</property>
<property name="width" version="2.3" transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_resp.c"
+ line="139">The width of reserved address range.</doc>
<type name="guint" c:type="guint"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
- <field name="priv">
- <type name="FwRespPrivate" c:type="HinawaFwRespPrivate*"/>
- </field>
<glib:signal name="requested"
when="last"
version="0.3"
@@ -1677,25 +1685,26 @@ is looked up in region between #region_start and #region_end.</doc>
deprecated-version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="152">When any node transfers requests to the range of address to which this object listening,
-the #HinawaFwResp::requested signal handler is called with #HinawaFwTcode, without the
-case that #HinawaFwResp::requested2 signal handler is already assigned.
+ line="157">Emitted when any node transfers requests to the range of address to which this object
+listening, the [signal@FwResp::requested] signal handler is called with [enum@FwTcode],
+without the case that [signal@FwResp::requested2] signal handler is already assigned.
-The handler can get data frame by a call of #hinawa_fw_resp_get_req_frame() and set data
-frame by a call of #hinawa_fw_resp_set_resp_frame(), then returns rcode.</doc>
- <doc-deprecated xml:space="preserve">Use #HinawaFwResp::requested2, instead.</doc-deprecated>
+The handler can get data frame by a call of [method@FwResp.get_req_frame] and set data
+frame by a call of [method@FwResp.set_resp_frame], then returns [enum@FwRcode] for
+response subaction.</doc>
+ <doc-deprecated xml:space="preserve">Use [signal@FwResp::requested2], instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="164">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
-specification.</doc>
+ line="170">One of [enum@FwRcode] enumerations corresponding to rcodes defined in IEEE 1394
+ specification.</doc>
<type name="FwRcode"/>
</return-value>
<parameters>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="155">One of #HinawaTcode enumerators</doc>
+ line="160">One of [enum@FwTcode] enumerations.</doc>
<type name="FwTcode"/>
</parameter>
</parameters>
@@ -1703,14 +1712,14 @@ specification.</doc>
<glib:signal name="requested2" when="last" version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="179">When any node transfers request subaction to the range of address to which this object
-listening, the #HinawaFwResp::requested signal handler is called with arrived frame for
-the subaction. The handler is expected to call #hinawa_fw_resp_set_resp_frame() with
-frame and return rcode for response subaction.</doc>
+ line="185">Emitted when any node transfers request subaction to the range of address to which this
+object listening, the [signal@FwResp::requested] signal handler is called with arrived
+frame for the subaction. The handler is expected to call [method@FwResp.set_resp_frame]
+with frame and return [enum@FwRcode] for response subaction.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="197">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
+ line="203">One of [enum@FwRcode] enumerations corresponding to rcodes defined in IEEE 1394
specification.</doc>
<type name="FwRcode"/>
</return-value>
@@ -1718,43 +1727,43 @@ frame and return rcode for response subaction.</doc>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="182">One of #HinawaTcode enumerations</doc>
+ line="188">One of [enum@FwTcode] enumerations</doc>
<type name="FwTcode"/>
</parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="183">The address offset at which the transaction arrives.</doc>
+ line="189">The address offset at which the transaction arrives.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="src" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="184">The node ID of source for the transaction.</doc>
+ line="190">The node ID of source for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="dst" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="185">The node ID of destination for the transaction.</doc>
+ line="191">The node ID of destination for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="card" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="186">The index of card corresponding to 1394 OHCI controller.</doc>
+ line="192">The index of card corresponding to 1394 OHCI controller.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="generation" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="187">The generation of bus when the transaction is transferred.</doc>
+ line="193">The generation of bus when the transaction is transferred.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="188">The array with elements for byte
+ line="194">The array with elements for byte
data.</doc>
<array length="7" zero-terminated="0" c:type="gpointer">
<type name="guint8"/>
@@ -1763,7 +1772,7 @@ frame and return rcode for response subaction.</doc>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="190">The length of bytes for the frame.</doc>
+ line="196">The length of bytes for the frame.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1772,31 +1781,31 @@ frame and return rcode for response subaction.</doc>
<record name="FwRespClass"
c:type="HinawaFwRespClass"
glib:is-gtype-struct-for="FwResp">
- <source-position filename="../src/fw_resp.h" line="93"/>
+ <source-position filename="../src/fw_resp.h" line="57"/>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="requested">
<callback name="requested">
- <source-position filename="../src/fw_resp.h" line="65"/>
+ <source-position filename="../src/fw_resp.h" line="32"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="60">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
-specification.</doc>
+ line="27">One of [enum@FwRcode] enumerations corresponding to rcodes defined in IEEE 1394
+ specification.</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</return-value>
<parameters>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="50">A #HinawaFwResp</doc>
+ line="22">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="51">One of #HinawaTcode enumerators</doc>
+ line="23">One of [enum@FwTcode] enumerations</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
</parameters>
@@ -1804,11 +1813,11 @@ specification.</doc>
</field>
<field name="requested2">
<callback name="requested2">
- <source-position filename="../src/fw_resp.h" line="90"/>
+ <source-position filename="../src/fw_resp.h" line="54"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="85">One of #HinawaRcode enumerators corresponding to rcodes defined in IEEE 1394
+ line="49">One of [enum@FwRcode enumerations corresponding to rcodes defined in IEEE 1394
specification.</doc>
<type name="FwRcode" c:type="HinawaFwRcode"/>
</return-value>
@@ -1816,49 +1825,49 @@ specification.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="69">A #HinawaFwResp</doc>
+ line="36">A [class@FwResp]</doc>
<type name="FwResp" c:type="HinawaFwResp*"/>
</parameter>
<parameter name="tcode" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="70">One of #HinawaTcode enumerations</doc>
+ line="37">One of [enum@FwTcode] enumerations</doc>
<type name="FwTcode" c:type="HinawaFwTcode"/>
</parameter>
<parameter name="offset" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="71">The address offset at which the transaction arrives.</doc>
+ line="38">The address offset at which the transaction arrives.</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="src" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="72">The node ID of source for the transaction.</doc>
+ line="39">The node ID of source for the transaction.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="dst" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="73">The node ID of destination for the transaction.</doc>
+ line="40">The node ID of destination for the transaction.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="card" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="74">The index of card corresponding to 1394 OHCI controller.</doc>
+ line="41">The index of card corresponding to 1394 OHCI controller.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="generation" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="75">The generation of bus when the transaction is transferred.</doc>
+ line="42">The generation of bus when the transaction is transferred.</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="76">The array with elements for byte
+ line="43">The array with elements for byte
data.</doc>
<array length="8" zero-terminated="0" c:type="const guint8*">
<type name="guint8"/>
@@ -1867,7 +1876,7 @@ specification.</doc>
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.h"
- line="78">The length of bytes for the frame.</doc>
+ line="45">The length of bytes for the frame.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -1882,7 +1891,7 @@ specification.</doc>
glib:error-domain="hinawa-fw-resp-error-quark">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="129">A set of error code for GError with domain which equals to #hinawa_fw_resp_error_quark().</doc>
+ line="161">A set of error code for [struct@GLib.Error] with domain which equals to Hinawa.FwRespError.</doc>
<member name="failed"
value="0"
c:identifier="HINAWA_FW_RESP_ERROR_FAILED"
@@ -1890,7 +1899,7 @@ specification.</doc>
glib:name="HINAWA_FW_RESP_ERROR_FAILED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="131">The generic system call error.</doc>
+ line="163">The generic system call error.</doc>
</member>
<member name="reserved"
value="1"
@@ -1899,7 +1908,7 @@ specification.</doc>
glib:name="HINAWA_FW_RESP_ERROR_RESERVED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="132">The instance is already associated to reserved address range.</doc>
+ line="164">The instance is already associated to reserved address range.</doc>
</member>
<member name="addr_space_used"
value="2"
@@ -1908,25 +1917,23 @@ specification.</doc>
glib:name="HINAWA_FW_RESP_ERROR_ADDR_SPACE_USED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="133">The address space is used exclusively.</doc>
+ line="165">The address space is used exclusively.</doc>
</member>
<function name="quark"
c:identifier="hinawa_fw_resp_error_quark"
version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="20">Return the GQuark for error domain of GError which has code in #HinawaFwRespError.</doc>
+ line="18">Return the [alias@GLib.Quark] for error domain of [struct@GLib.Error] which has code in
+Hinawa.FwRespError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="27">A #GQuark.</doc>
+ line="26">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
- <record name="FwRespPrivate" c:type="HinawaFwRespPrivate" disguised="1">
- <source-position filename="../src/fw_resp.h" line="37"/>
- </record>
<enumeration name="FwTcode"
version="1.0"
glib:type-name="HinawaFwTcode"
@@ -2098,376 +2105,48 @@ specification.</doc>
line="24">For lock request for vendor-dependent.</doc>
</member>
</enumeration>
- <function-macro name="IS_FW_FCP"
- c:identifier="HINAWA_IS_FW_FCP"
- introspectable="0">
- <source-position filename="../src/fw_fcp.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_FCP_CLASS"
- c:identifier="HINAWA_IS_FW_FCP_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_fcp.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_NODE"
- c:identifier="HINAWA_IS_FW_NODE"
- introspectable="0">
- <source-position filename="../src/fw_node.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_NODE_CLASS"
- c:identifier="HINAWA_IS_FW_NODE_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_node.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_REQ"
- c:identifier="HINAWA_IS_FW_REQ"
- introspectable="0">
- <source-position filename="../src/fw_req.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_REQ_CLASS"
- c:identifier="HINAWA_IS_FW_REQ_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_req.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_RESP"
- c:identifier="HINAWA_IS_FW_RESP"
- introspectable="0">
- <source-position filename="../src/fw_resp.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_FW_RESP_CLASS"
- c:identifier="HINAWA_IS_FW_RESP_CLASS"
- introspectable="0">
- <source-position filename="../src/fw_resp.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_DG00X"
- c:identifier="HINAWA_IS_SND_DG00X"
- introspectable="0">
- <source-position filename="../src/snd_dg00x.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_DG00X_CLASS"
- c:identifier="HINAWA_IS_SND_DG00X_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dg00x.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_DICE"
- c:identifier="HINAWA_IS_SND_DICE"
- introspectable="0">
- <source-position filename="../src/snd_dice.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_DICE_CLASS"
- c:identifier="HINAWA_IS_SND_DICE_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dice.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_EFW"
- c:identifier="HINAWA_IS_SND_EFW"
- introspectable="0">
- <source-position filename="../src/snd_efw.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_EFW_CLASS"
- c:identifier="HINAWA_IS_SND_EFW_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_efw.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_MOTU"
- c:identifier="HINAWA_IS_SND_MOTU"
- introspectable="0">
- <source-position filename="../src/snd_motu.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_MOTU_CLASS"
- c:identifier="HINAWA_IS_SND_MOTU_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_motu.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_TSCM"
- c:identifier="HINAWA_IS_SND_TSCM"
- introspectable="0">
- <source-position filename="../src/snd_tscm.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_TSCM_CLASS"
- c:identifier="HINAWA_IS_SND_TSCM_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_tscm.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_UNIT"
- c:identifier="HINAWA_IS_SND_UNIT"
- introspectable="0">
- <source-position filename="../src/snd_unit.h" line="15"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="IS_SND_UNIT_CLASS"
- c:identifier="HINAWA_IS_SND_UNIT_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_unit.h" line="23"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DG00X"
- c:identifier="HINAWA_SND_DG00X"
- introspectable="0">
- <source-position filename="../src/snd_dg00x.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DG00X_CLASS"
- c:identifier="HINAWA_SND_DG00X_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dg00x.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DG00X_GET_CLASS"
- c:identifier="HINAWA_SND_DG00X_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dg00x.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DICE"
- c:identifier="HINAWA_SND_DICE"
- introspectable="0">
- <source-position filename="../src/snd_dice.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DICE_CLASS"
- c:identifier="HINAWA_SND_DICE_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dice.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_DICE_GET_CLASS"
- c:identifier="HINAWA_SND_DICE_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_dice.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_EFW"
- c:identifier="HINAWA_SND_EFW"
- introspectable="0">
- <source-position filename="../src/snd_efw.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_EFW_CLASS"
- c:identifier="HINAWA_SND_EFW_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_efw.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_EFW_GET_CLASS"
- c:identifier="HINAWA_SND_EFW_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_efw.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_MOTU"
- c:identifier="HINAWA_SND_MOTU"
- introspectable="0">
- <source-position filename="../src/snd_motu.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_MOTU_CLASS"
- c:identifier="HINAWA_SND_MOTU_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_motu.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_MOTU_GET_CLASS"
- c:identifier="HINAWA_SND_MOTU_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_motu.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_TSCM"
- c:identifier="HINAWA_SND_TSCM"
- introspectable="0">
- <source-position filename="../src/snd_tscm.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_TSCM_CLASS"
- c:identifier="HINAWA_SND_TSCM_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_tscm.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_TSCM_GET_CLASS"
- c:identifier="HINAWA_SND_TSCM_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_tscm.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_UNIT"
- c:identifier="HINAWA_SND_UNIT"
- introspectable="0">
- <source-position filename="../src/snd_unit.h" line="11"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_UNIT_CLASS"
- c:identifier="HINAWA_SND_UNIT_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_unit.h" line="19"/>
- <parameters>
- <parameter name="klass">
- </parameter>
- </parameters>
- </function-macro>
- <function-macro name="SND_UNIT_GET_CLASS"
- c:identifier="HINAWA_SND_UNIT_GET_CLASS"
- introspectable="0">
- <source-position filename="../src/snd_unit.h" line="26"/>
- <parameters>
- <parameter name="obj">
- </parameter>
- </parameters>
- </function-macro>
<class name="SndDg00x"
c:symbol-prefix="snd_dg00x"
c:type="HinawaSndDg00x"
+ deprecated="1"
+ deprecated-version="2.5."
parent="SndUnit"
glib:type-name="HinawaSndDg00x"
glib:get-type="hinawa_snd_dg00x_get_type"
glib:type-struct="SndDg00xClass">
- <source-position filename="../src/snd_dg00x.h" line="52"/>
+ <doc xml:space="preserve"
+ filename="../src/snd_dg00x.c"
+ line="7">A notification listener for Digidesign Digi 00x models.
+A [class@SndDg00x] listen to Dg00x notification and generates signal when received.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndDigi00x] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_dg00x.h" line="28"/>
<constructor name="new"
c:identifier="hinawa_snd_dg00x_new"
- version="1.3.">
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="53">Instantiate #HinawaSndDg00x object and return the instance.</doc>
- <source-position filename="../src/snd_dg00x.h" line="56"/>
+ line="53">Instantiate [class@SndDg00x] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndDigi00x.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_dg00x.h" line="30"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="58">an instance of #HinawaSndDg00x.</doc>
+ line="58">an instance of [class@SndDg00x].</doc>
<type name="SndDg00x" c:type="HinawaSndDg00x*"/>
</return-value>
</constructor>
- <virtual-method name="message" version="1.2">
+ <virtual-method name="message"
+ version="1.2"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dg00x.h"
- line="41">When Dg00x models transfer notification, the #HinawaSndDg00xClass::message handler is
-called.</doc>
- <source-position filename="../src/snd_dg00x.h" line="51"/>
+ line="16">Class closure for the [signal@SndDg00x::message] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [vfunc@Hitaki.QuadletNotification.notified] in
+ [class@Hitaki.SndDigi00x] instead.</doc-deprecated>
+ <source-position filename="../src/snd_dg00x.h" line="27"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2475,13 +2154,13 @@ called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.h"
- line="43">A #HinawaSndDg00x</doc>
+ line="18">A [class@SndDg00x]</doc>
<type name="SndDg00x" c:type="HinawaSndDg00x*"/>
</instance-parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.h"
- line="44">A message</doc>
+ line="19">A message</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
@@ -2489,11 +2168,15 @@ called.</doc>
<method name="open"
c:identifier="hinawa_snd_dg00x_open"
version="0.7"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="66">Open ALSA hwdep character device and check it for Dg00x devices.</doc>
- <source-position filename="../src/snd_dg00x.h" line="58"/>
+ line="68">Open ALSA hwdep character device and check it for Dg00x devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open]
+ [class@Hitaki.SndDigi00x] for instead.</doc-deprecated>
+ <source-position filename="../src/snd_dg00x.h" line="32"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2501,13 +2184,13 @@ called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="68">A #HinawaSndUnit</doc>
+ line="70">A [class@SndDg00x]</doc>
<type name="SndDg00x" c:type="HinawaSndDg00x*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="69">A full path of a special file for ALSA hwdep character device</doc>
+ line="71">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -2515,11 +2198,16 @@ called.</doc>
<field name="parent_instance">
<type name="SndUnit" c:type="HinawaSndUnit"/>
</field>
- <glib:signal name="message" when="last" version="0.7">
+ <glib:signal name="message"
+ when="last"
+ version="0.7"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="28">When Dg00x models transfer notification, the #HinawaSndDg00x::message signal is
-generated.</doc>
+ line="27">Emitted when Dg00x models transfer notification.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [signal@Hitaki.QuadletNotification::notified] in
+ [class@Hitaki.SndDigi00x] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2527,7 +2215,7 @@ generated.</doc>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.c"
- line="31">A message</doc>
+ line="30">A message</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -2536,13 +2224,13 @@ generated.</doc>
<record name="SndDg00xClass"
c:type="HinawaSndDg00xClass"
glib:is-gtype-struct-for="SndDg00x">
- <source-position filename="../src/snd_dg00x.h" line="52"/>
+ <source-position filename="../src/snd_dg00x.h" line="28"/>
<field name="parent_class">
<type name="SndUnitClass" c:type="HinawaSndUnitClass"/>
</field>
<field name="message">
<callback name="message">
- <source-position filename="../src/snd_dg00x.h" line="51"/>
+ <source-position filename="../src/snd_dg00x.h" line="27"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2550,13 +2238,13 @@ generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.h"
- line="43">A #HinawaSndDg00x</doc>
+ line="18">A [class@SndDg00x]</doc>
<type name="SndDg00x" c:type="HinawaSndDg00x*"/>
</parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dg00x.h"
- line="44">A message</doc>
+ line="19">A message</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
@@ -2566,31 +2254,45 @@ generated.</doc>
<class name="SndDice"
c:symbol-prefix="snd_dice"
c:type="HinawaSndDice"
+ deprecated="1"
+ deprecated-version="2.5."
parent="SndUnit"
glib:type-name="HinawaSndDice"
glib:get-type="hinawa_snd_dice_get_type"
glib:type-struct="SndDiceClass">
- <source-position filename="../src/snd_dice.h" line="59"/>
+ <doc xml:space="preserve"
+ filename="../src/snd_dice.c"
+ line="7">A notification listener for Dice models.
+A [class@SndDice] listen to Dice notification and generates signal when received.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndDice] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_dice.h" line="32"/>
<constructor name="new"
c:identifier="hinawa_snd_dice_new"
- version="1.3.">
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="97">Instantiate #HinawaSndDice object and return the instance.</doc>
- <source-position filename="../src/snd_dice.h" line="63"/>
+ line="98">Instantiate [class@SndDice] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndDice.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_dice.h" line="34"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="102">an instance of #HinawaSndDice.</doc>
+ line="103">an instance of [class@SndDice].</doc>
<type name="SndDice" c:type="HinawaSndDice*"/>
</return-value>
</constructor>
- <virtual-method name="notified" version="1.2">
+ <virtual-method name="notified"
+ version="1.2"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dice.h"
- line="48">When Dice models transfer notification, the #HinawaSndDiceClass::notified handler is
-called.</doc>
- <source-position filename="../src/snd_dice.h" line="58"/>
+ line="20">Class closure for the [signal@SndDice::notified].</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [class@Hitaki.SndDice] for
+ [vfunc@Hitaki.QuadletNotification.notified] instead.</doc-deprecated>
+ <source-position filename="../src/snd_dice.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2598,13 +2300,13 @@ called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.h"
- line="50">A #HinawaSndDice</doc>
+ line="22">A [class@SndDice]</doc>
<type name="SndDice" c:type="HinawaSndDice*"/>
</instance-parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.h"
- line="51">A notification message</doc>
+ line="23">A notification message</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -2612,11 +2314,15 @@ called.</doc>
<method name="open"
c:identifier="hinawa_snd_dice_open"
version="0.4"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="110">Open ALSA hwdep character device and check it for Dice devices.</doc>
- <source-position filename="../src/snd_dice.h" line="65"/>
+ line="113">Open ALSA hwdep character device and check it for Dice devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open] in
+ [class@Hitaki.SndDice] instead.</doc-deprecated>
+ <source-position filename="../src/snd_dice.h" line="36"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2624,13 +2330,13 @@ called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="112">A #HinawaSndUnit</doc>
+ line="115">A [class@SndDice]</doc>
<type name="SndDice" c:type="HinawaSndDice*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="113">A full path of a special file for ALSA hwdep character device</doc>
+ line="116">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -2638,12 +2344,16 @@ called.</doc>
<method name="transaction"
c:identifier="hinawa_snd_dice_transaction"
version="1.4."
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="141">Execute write transactions to the given address, then wait and check
-notification.</doc>
- <source-position filename="../src/snd_dice.h" line="67"/>
+ line="146">Execute write transactions to the given address, then wait and check notification.</doc>
+ <doc-deprecated xml:space="preserve">Use [class@FwReq] to send write request transaction to the unit, then use
+ implementaion of [signal@Hitaki.QuadletNotification::notified] in
+ [class@Hitaki.SndDice] to wait for notification.</doc-deprecated>
+ <source-position filename="../src/snd_dice.h" line="38"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2651,20 +2361,19 @@ notification.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="143">A #HinawaSndDice</doc>
+ line="148">A [class@SndDice]</doc>
<type name="SndDice" c:type="HinawaSndDice*"/>
</instance-parameter>
<parameter name="addr" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="144">A destination address of target device</doc>
+ line="149">A destination address of target device</doc>
<type name="guint64" c:type="guint64"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="145">An array with elements for quadlet
- data to transmit.</doc>
+ line="150">An array with elements for quadlet data to transmit.</doc>
<array length="2" zero-terminated="0" c:type="const guint32*">
<type name="guint32" c:type="guint32"/>
</array>
@@ -2672,13 +2381,13 @@ notification.</doc>
<parameter name="frame_count" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="147">The number of quadlets in the frame.</doc>
+ line="151">The number of quadlets in the frame.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="bit_flag" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="148">bit flag to wait</doc>
+ line="152">bit flag to wait</doc>
<type name="guint32" c:type="guint32"/>
</parameter>
</parameters>
@@ -2686,14 +2395,16 @@ notification.</doc>
<field name="parent_instance">
<type name="SndUnit" c:type="HinawaSndUnit"/>
</field>
- <field name="priv">
- <type name="SndDicePrivate" c:type="HinawaSndDicePrivate*"/>
- </field>
- <glib:signal name="notified" when="last" version="0.3">
+ <glib:signal name="notified"
+ when="last"
+ version="0.3"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="72">When Dice models transfer notification, the #HinawaSndDice::notified signal is
-generated.</doc>
+ line="72">Emitted when Dice unit transfers notification.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [class@Hitaki.SndDice] for
+ [signal@Hitaki.QuadletNotification::notified] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2710,13 +2421,13 @@ generated.</doc>
<record name="SndDiceClass"
c:type="HinawaSndDiceClass"
glib:is-gtype-struct-for="SndDice">
- <source-position filename="../src/snd_dice.h" line="59"/>
+ <source-position filename="../src/snd_dice.h" line="32"/>
<field name="parent_class">
<type name="SndUnitClass" c:type="HinawaSndUnitClass"/>
</field>
<field name="notified">
<callback name="notified">
- <source-position filename="../src/snd_dice.h" line="58"/>
+ <source-position filename="../src/snd_dice.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2724,13 +2435,13 @@ generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.h"
- line="50">A #HinawaSndDice</doc>
+ line="22">A [class@SndDice]</doc>
<type name="SndDice" c:type="HinawaSndDice*"/>
</parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.h"
- line="51">A notification message</doc>
+ line="23">A notification message</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -2739,13 +2450,16 @@ generated.</doc>
</record>
<enumeration name="SndDiceError"
version="2.1"
+ deprecated="1"
+ deprecated-version="2.5."
glib:type-name="HinawaSndDiceError"
glib:get-type="hinawa_snd_dice_error_get_type"
c:type="HinawaSndDiceError"
glib:error-domain="hinawa-snd-dice-error-quark">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="187">A set of error code for GError with domain which equals to #hinawa_snd_dice_error_quark().</doc>
+ line="220">A set of error code for [structGLib.Error] with domain which equals to Hinawa.SndDiceError.</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.AlsaFirewireError in libhitaki library instead.</doc-deprecated>
<member name="timeout"
value="0"
c:identifier="HINAWA_SND_DICE_ERROR_TIMEOUT"
@@ -2753,66 +2467,83 @@ generated.</doc>
glib:name="HINAWA_SND_DICE_ERROR_TIMEOUT">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="189">The transaction is canceled due to response timeout.</doc>
+ line="222">The transaction is canceled due to response timeout.</doc>
</member>
<function name="quark"
c:identifier="hinawa_snd_dice_error_quark"
- version="2.1">
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="17">Return the GQuark for error domain of GError which has code in #HinawaSndDiceError.</doc>
+ line="16">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.SndDiceError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="24">A #GQuark.</doc>
+ line="24">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
- <record name="SndDicePrivate" c:type="HinawaSndDicePrivate" disguised="1">
- <source-position filename="../src/snd_dice.h" line="37"/>
- </record>
<class name="SndEfw"
c:symbol-prefix="snd_efw"
c:type="HinawaSndEfw"
+ deprecated="1"
+ deprecated-version="2.5."
parent="SndUnit"
glib:type-name="HinawaSndEfw"
glib:get-type="hinawa_snd_efw_get_type"
glib:type-struct="SndEfwClass">
- <source-position filename="../src/snd_efw.h" line="68"/>
- <constructor name="new" c:identifier="hinawa_snd_efw_new" version="1.3.">
+ <doc xml:space="preserve"
+ filename="../src/snd_efw.c"
+ line="7">A transaction executor for Fireworks models.
+A [class@SndEfw] is an application of Echo Fireworks Transaction.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndEfw] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="39"/>
+ <constructor name="new"
+ c:identifier="hinawa_snd_efw_new"
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="102">Instantiate #HinawaSndEfw object and return the instance.</doc>
- <source-position filename="../src/snd_efw.h" line="72"/>
+ line="105">Instantiate [class@SndEfw] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndEfw.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="41"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="107">an instance of #HinawaSndEfw.</doc>
+ line="110">an instance of [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</return-value>
</constructor>
<function name="error_quark"
c:identifier="hinawa_snd_efw_error_quark"
- version="2.1">
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="17">Return the GQuark for error domain of GError which has code in #HinawaSndEfwStatus.</doc>
+ line="16">Return the [alias@GLib.Quark] for error domain of [struct@GLib.Error] which has code in
+[enum@SndEfwStatus].</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.EfwProtocolError instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="24">A #GQuark.</doc>
+ line="25">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
- <virtual-method name="responded" version="2.1">
+ <virtual-method name="responded"
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="48">When the unit transfers asynchronous packet as response for Echo Audio Fireworks
-protocol, and the process successfully reads the content of response from ALSA
-Fireworks driver, the #HinawaSndEfwClass::responded signal handler is called with parameters
-of the response.</doc>
- <source-position filename="../src/snd_efw.h" line="66"/>
+ line="20">Class closure for the [signal@SndEfw::responded] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [vfunc@Hitaki.EfwProtocol.responded] in
+ [class@Hitaki.SndEfw] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="37"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2820,37 +2551,37 @@ of the response.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="50">A #HinawaSndEfw.</doc>
+ line="22">A [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</instance-parameter>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="51">One of #HinawaSndEfwStatus.</doc>
+ line="23">One of [enum@SndEfwStatus].</doc>
<type name="SndEfwStatus" c:type="HinawaSndEfwStatus"/>
</parameter>
<parameter name="seqnum" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="52">The sequence number of response.</doc>
+ line="24">The sequence number of response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="53">The value of category field in the response.</doc>
+ line="25">The value of category field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="54">The value of command field in the response.</doc>
+ line="26">The value of command field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="55">The array with elements for
+ line="27">The array with elements for
quadlet data of response for Echo Fireworks protocol.</doc>
<array length="5" zero-terminated="0" c:type="const guint32*">
<type name="guint32"/>
@@ -2859,7 +2590,7 @@ of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="57">The number of elements of the array.</doc>
+ line="29">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -2867,11 +2598,15 @@ of the response.</doc>
<method name="open"
c:identifier="hinawa_snd_efw_open"
version="0.3"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="115">Open ALSA hwdep character device and check it for Fireworks devices.</doc>
- <source-position filename="../src/snd_efw.h" line="74"/>
+ line="120">Open ALSA hwdep character device and check it for Fireworks devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open] in
+ [class@Hitaki.SndEfw] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="43"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2879,13 +2614,13 @@ of the response.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="117">A #HinawaSndUnit</doc>
+ line="122">A [class@SndEfw]</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="118">A full path of a special file for ALSA hwdep character device</doc>
+ line="123">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -2893,12 +2628,16 @@ of the response.</doc>
<method name="transaction"
c:identifier="hinawa_snd_efw_transaction"
version="1.4."
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="328">Transfer request of transaction according to Echo Fireworks Transaction protocol, then wait for
+ line="339">Transfer request of transaction according to Echo Fireworks Transaction protocol, then wait for
the response of transaction within 200 millisecond timeout.</doc>
- <source-position filename="../src/snd_efw.h" line="80"/>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.EfwProtocol.transaction] in
+ [class@Hitaki.SndEfw] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="49"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2906,19 +2645,19 @@ the response of transaction within 200 millisecond timeout.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="330">A #HinawaSndEfw.</doc>
+ line="341">A [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</instance-parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="331">one of category for the transaction.</doc>
+ line="342">one of category for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="332">one of commands for the transaction.</doc>
+ line="343">one of commands for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="args"
@@ -2927,8 +2666,8 @@ the response of transaction within 200 millisecond timeout.</doc>
allow-none="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="333">An array with elements for
- quadlet data as arguments for command.</doc>
+ line="344">An array with elements for quadlet data as
+ arguments for command.</doc>
<array length="3" zero-terminated="0" c:type="const guint32*">
<type name="guint32" c:type="guint32"/>
</array>
@@ -2936,7 +2675,7 @@ the response of transaction within 200 millisecond timeout.</doc>
<parameter name="arg_count" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="335">The number of quadlets in the args array.</doc>
+ line="346">The number of quadlets in the args array.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="params"
@@ -2945,12 +2684,11 @@ the response of transaction within 200 millisecond timeout.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="336">An array with elements for
- quadlet data to save parameters in response. Callers should give it
- for buffer with enough space against the request since this library
- performs no reallocation. Due to the reason, the value of this
- argument should point to the pointer to the array and immutable.
- The content of array is mutable for parameters in response.</doc>
+ line="347">An array with elements for quadlet data to save
+ parameters in response. Callers should give it for buffer with enough space against
+ the request since this library performs no reallocation. Due to the reason, the value
+ of this argument should point to the pointer to the array and immutable. The content
+ of array is mutable for parameters in response.</doc>
<array length="5" zero-terminated="0" c:type="guint32* const*">
<type name="guint32" c:type="guint32*"/>
</array>
@@ -2961,7 +2699,7 @@ the response of transaction within 200 millisecond timeout.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="342">The number of quadlets in the params array.</doc>
+ line="352">The number of quadlets in the params array.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
</parameters>
@@ -2969,12 +2707,17 @@ the response of transaction within 200 millisecond timeout.</doc>
<method name="transaction_async"
c:identifier="hinawa_snd_efw_transaction_async"
version="2.1."
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="145">Transfer asynchronous transaction for command frame of Echo Fireworks protocol. When receiving
-asynchronous transaction for response frame, #HinawaSndEfw::responded GObject signal is emitted.</doc>
- <source-position filename="../src/snd_efw.h" line="76"/>
+ line="152">Transfer asynchronous transaction for command frame of Echo Fireworks protocol. When receiving
+asynchronous transaction for response frame, [signal@SndEfw::responded] GObject signal is
+emitted.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.EfwProtocol.transmit_request] in
+ [class@Hitaki.SndEfw] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="45"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -2982,19 +2725,19 @@ asynchronous transaction for response frame, #HinawaSndEfw::responded GObject si
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="147">A #HinawaSndEfw.</doc>
+ line="154">A [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</instance-parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="148">One of category for the transaction.</doc>
+ line="155">One of category for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="149">One of commands for the transaction.</doc>
+ line="156">One of commands for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="args"
@@ -3003,7 +2746,7 @@ asynchronous transaction for response frame, #HinawaSndEfw::responded GObject si
allow-none="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="150">An array with elements for quadlet data as
+ line="157">An array with elements for quadlet data as
arguments for command.</doc>
<array length="3" zero-terminated="0" c:type="const guint32*">
<type name="guint32" c:type="guint32"/>
@@ -3012,7 +2755,7 @@ asynchronous transaction for response frame, #HinawaSndEfw::responded GObject si
<parameter name="arg_count" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="152">The number of quadlets in the args array.</doc>
+ line="159">The number of quadlets in the args array.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="resp_seqnum"
@@ -3021,7 +2764,7 @@ asynchronous transaction for response frame, #HinawaSndEfw::responded GObject si
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="153">The sequence number for response transaction;</doc>
+ line="160">The sequence number for response transaction;</doc>
<type name="guint32" c:type="guint32*"/>
</parameter>
</parameters>
@@ -3029,12 +2772,16 @@ asynchronous transaction for response frame, #HinawaSndEfw::responded GObject si
<method name="transaction_sync"
c:identifier="hinawa_snd_efw_transaction_sync"
version="2.1."
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="244">Transfer asynchronous transaction for command frame of Echo Fireworks protocol, then wait
+ line="254">Transfer asynchronous transaction for command frame of Echo Fireworks protocol, then wait
asynchronous transaction for response frame within the given timeout.</doc>
- <source-position filename="../src/snd_efw.h" line="86"/>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.EfwProtocol.transaction] in
+ [class@Hitaki.SndEfw] instead.</doc-deprecated>
+ <source-position filename="../src/snd_efw.h" line="55"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3042,19 +2789,19 @@ asynchronous transaction for response frame within the given timeout.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="246">A #HinawaSndEfw.</doc>
+ line="256">A [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</instance-parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="247">one of category for the transaction.</doc>
+ line="257">one of category for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="248">one of commands for the transaction.</doc>
+ line="258">one of commands for the transaction.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="args"
@@ -3063,8 +2810,8 @@ asynchronous transaction for response frame within the given timeout.</doc>
allow-none="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="249">An array with elements for
- quadlet data as arguments for command.</doc>
+ line="259">An array with elements for quadlet data as
+ arguments for command.</doc>
<array length="3" zero-terminated="0" c:type="const guint32*">
<type name="guint32" c:type="guint32"/>
</array>
@@ -3072,7 +2819,7 @@ asynchronous transaction for response frame within the given timeout.</doc>
<parameter name="arg_count" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="251">The number of quadlets in the args array.</doc>
+ line="261">The number of quadlets in the args array.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="params"
@@ -3083,12 +2830,11 @@ asynchronous transaction for response frame within the given timeout.</doc>
allow-none="1">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="252">An array with elements for
- quadlet data to save parameters in response. Callers should give it
- for buffer with enough space against the request since this library
- performs no reallocation. Due to the reason, the value of this
- argument should point to the pointer to the array and immutable.
- The content of array is mutable for parameters in response.</doc>
+ line="262">An array with elements for quadlet data
+ to save parameters in response. Callers should give it for buffer with enough space
+ against the request since this library performs no reallocation. Due to the reason,
+ the value of this argument should point to the pointer to the array and immutable. The
+ content of array is mutable for parameters in response.</doc>
<array length="5" zero-terminated="0" c:type="guint32* const*">
<type name="guint32" c:type="guint32*"/>
</array>
@@ -3099,13 +2845,13 @@ asynchronous transaction for response frame within the given timeout.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="258">The number of quadlets in the params array.</doc>
+ line="267">The number of quadlets in the params array.</doc>
<type name="gsize" c:type="gsize*"/>
</parameter>
<parameter name="timeout_ms" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="259">The timeout to wait for response of the transaction since request is transferred in
+ line="268">The timeout to wait for response of the transaction since request is transferred in
milliseconds.</doc>
<type name="guint" c:type="guint"/>
</parameter>
@@ -3114,16 +2860,19 @@ asynchronous transaction for response frame within the given timeout.</doc>
<field name="parent_instance">
<type name="SndUnit" c:type="HinawaSndUnit"/>
</field>
- <field name="priv">
- <type name="SndEfwPrivate" c:type="HinawaSndEfwPrivate*"/>
- </field>
- <glib:signal name="responded" when="last" version="2.1">
+ <glib:signal name="responded"
+ when="last"
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="68">When the unit transfers asynchronous packet as response for Echo Audio Fireworks
-protocol, and the process successfully reads the content of response from ALSA
-Fireworks driver, the #HinawaSndEfw::responded signal handler is called with parameters
-of the response.</doc>
+ line="69">Emitted when the unit transfers asynchronous packet as response for Echo Audio Fireworks
+protocol, and the process successfully reads the content of response from ALSA Fireworks
+driver, the [signal@SndEfw::responded] signal handler is called with parameters of the
+response.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [class@Hitaki.SndEfw] for
+ [signal@Hitaki.EfwProtocol::responded] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3131,31 +2880,31 @@ of the response.</doc>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="71">One of #HinawaSndEfwStatus.</doc>
+ line="72">One of [enum@SndEfwStatus].</doc>
<type name="SndEfwStatus"/>
</parameter>
<parameter name="seqnum" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="72">The sequence number of response.</doc>
+ line="73">The sequence number of response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="73">The value of category field in the response.</doc>
+ line="74">The value of category field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="74">The value of command field in the response.</doc>
+ line="75">The value of command field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="75">The array with elements for
+ line="76">The array with elements for
quadlet data of response for Echo Fireworks protocol.</doc>
<array length="5" zero-terminated="0" c:type="gpointer">
<type name="guint32"/>
@@ -3164,7 +2913,7 @@ of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.c"
- line="77">The number of elements of the array.</doc>
+ line="78">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -3173,13 +2922,13 @@ of the response.</doc>
<record name="SndEfwClass"
c:type="HinawaSndEfwClass"
glib:is-gtype-struct-for="SndEfw">
- <source-position filename="../src/snd_efw.h" line="68"/>
+ <source-position filename="../src/snd_efw.h" line="39"/>
<field name="parent_class">
<type name="SndUnitClass" c:type="HinawaSndUnitClass"/>
</field>
<field name="responded">
<callback name="responded">
- <source-position filename="../src/snd_efw.h" line="66"/>
+ <source-position filename="../src/snd_efw.h" line="37"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3187,37 +2936,37 @@ of the response.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="50">A #HinawaSndEfw.</doc>
+ line="22">A [class@SndEfw].</doc>
<type name="SndEfw" c:type="HinawaSndEfw*"/>
</parameter>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="51">One of #HinawaSndEfwStatus.</doc>
+ line="23">One of [enum@SndEfwStatus].</doc>
<type name="SndEfwStatus" c:type="HinawaSndEfwStatus"/>
</parameter>
<parameter name="seqnum" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="52">The sequence number of response.</doc>
+ line="24">The sequence number of response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="category" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="53">The value of category field in the response.</doc>
+ line="25">The value of category field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="command" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="54">The value of command field in the response.</doc>
+ line="26">The value of command field in the response.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="frame" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="55">The array with elements for
+ line="27">The array with elements for
quadlet data of response for Echo Fireworks protocol.</doc>
<array length="6" zero-terminated="0" c:type="const guint32*">
<type name="guint32"/>
@@ -3226,24 +2975,24 @@ of the response.</doc>
<parameter name="frame_size" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_efw.h"
- line="57">The number of elements of the array.</doc>
+ line="29">The number of elements of the array.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
</record>
- <record name="SndEfwPrivate" c:type="HinawaSndEfwPrivate" disguised="1">
- <source-position filename="../src/snd_efw.h" line="37"/>
- </record>
<enumeration name="SndEfwStatus"
version="2.1"
+ deprecated="1"
+ deprecated-version="2.5."
glib:type-name="HinawaSndEfwStatus"
glib:get-type="hinawa_snd_efw_status_get_type"
c:type="HinawaSndEfwStatus">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="199">A set of status code for Echo Audio Fireworks Transaction.</doc>
+ line="233">A set of status code for Echo Audio Fireworks Transaction.</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.EfwProtocolError in libhitaki library instead.</doc-deprecated>
<member name="ok"
value="0"
c:identifier="HINAWA_SND_EFW_STATUS_OK"
@@ -3251,7 +3000,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_OK">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="201">The transaction finishes successfully.</doc>
+ line="235">The transaction finishes successfully.</doc>
</member>
<member name="bad"
value="1"
@@ -3260,7 +3009,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="202">The request or response includes invalid header.</doc>
+ line="236">The request or response includes invalid header.</doc>
</member>
<member name="bad_command"
value="2"
@@ -3269,7 +3018,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_COMMAND">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="203">The request includes invalid category or command.</doc>
+ line="237">The request includes invalid category or command.</doc>
</member>
<member name="comm_err"
value="3"
@@ -3278,7 +3027,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_COMM_ERR">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="204">The transaction fails due to communication error.</doc>
+ line="238">The transaction fails due to communication error.</doc>
</member>
<member name="bad_quad_count"
value="4"
@@ -3287,7 +3036,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_QUAD_COUNT">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="205">The number of quadlets in transaction is invalid.</doc>
+ line="239">The number of quadlets in transaction is invalid.</doc>
</member>
<member name="unsupported"
value="5"
@@ -3296,7 +3045,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_UNSUPPORTED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="206">The request is not supported.</doc>
+ line="240">The request is not supported.</doc>
</member>
<member name="timeout"
value="6"
@@ -3305,7 +3054,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_TIMEOUT">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="207">The transaction is canceled due to response timeout.</doc>
+ line="241">The transaction is canceled due to response timeout.</doc>
</member>
<member name="dsp_timeout"
value="7"
@@ -3314,7 +3063,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_DSP_TIMEOUT">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="208">The operation for DSP did not finish within timeout.</doc>
+ line="242">The operation for DSP did not finish within timeout.</doc>
</member>
<member name="bad_rate"
value="8"
@@ -3323,7 +3072,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_RATE">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="209">The request includes invalid value for sampling frequency.</doc>
+ line="243">The request includes invalid value for sampling frequency.</doc>
</member>
<member name="bad_clock"
value="9"
@@ -3332,7 +3081,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_CLOCK">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="210">The request includes invalid value for source of clock.</doc>
+ line="244">The request includes invalid value for source of clock.</doc>
</member>
<member name="bad_channel"
value="10"
@@ -3341,7 +3090,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_CHANNEL">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="211">The request includes invalid value for the number of channel.</doc>
+ line="245">The request includes invalid value for the number of channel.</doc>
</member>
<member name="bad_pan"
value="11"
@@ -3350,7 +3099,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_PAN">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="212">The request includes invalid value for panning.</doc>
+ line="246">The request includes invalid value for panning.</doc>
</member>
<member name="flash_busy"
value="12"
@@ -3359,7 +3108,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_FLASH_BUSY">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="213">The on-board flash is busy and not operable.</doc>
+ line="247">The on-board flash is busy and not operable.</doc>
</member>
<member name="bad_mirror"
value="13"
@@ -3368,7 +3117,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_MIRROR">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="214">The request includes invalid value for mirroring channel.</doc>
+ line="248">The request includes invalid value for mirroring channel.</doc>
</member>
<member name="bad_led"
value="14"
@@ -3377,7 +3126,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_LED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="215">The request includes invalid value for LED.</doc>
+ line="249">The request includes invalid value for LED.</doc>
</member>
<member name="bad_parameter"
value="15"
@@ -3386,7 +3135,7 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_BAD_PARAMETER">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="216">The request includes invalid value of parameter.</doc>
+ line="250">The request includes invalid value of parameter.</doc>
</member>
<member name="large_resp"
value="16"
@@ -3395,37 +3144,52 @@ of the response.</doc>
glib:name="HINAWA_SND_EFW_STATUS_LARGE_RESP">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="217">The size of response is larger than expected.</doc>
+ line="251">The size of response is larger than expected.</doc>
</member>
</enumeration>
<class name="SndMotu"
c:symbol-prefix="snd_motu"
c:type="HinawaSndMotu"
+ deprecated="1"
+ deprecated-version="2.5."
parent="SndUnit"
glib:type-name="HinawaSndMotu"
glib:get-type="hinawa_snd_motu_get_type"
glib:type-struct="SndMotuClass">
- <source-position filename="../src/snd_motu.h" line="73"/>
+ <doc xml:space="preserve"
+ filename="../src/snd_motu.c"
+ line="7">A notification listener for Motu models.
+A [class@SndMotu] is an application of asynchronous notification defined by Mark of the Unicorn
+(MOTU).</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndMotu] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="43"/>
<constructor name="new"
c:identifier="hinawa_snd_motu_new"
- version="1.3.">
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="83">Instantiate #HinawaSndMotu object and return the instance.</doc>
- <source-position filename="../src/snd_motu.h" line="77"/>
+ line="85">Instantiate [class@SndMotu] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotu.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="45"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="88">an instance of #HinawaSndMotu.</doc>
+ line="90">an instance of [class@SndMotu].</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</return-value>
</constructor>
- <virtual-method name="notified" version="1.2">
+ <virtual-method name="notified"
+ version="1.2"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="44">When Motu models transfer notification, the #HinawaSndMotuClass::notified handler is
-called.</doc>
- <source-position filename="../src/snd_motu.h" line="54"/>
+ line="16">Class closure for the [signal@SndMotu::notified] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [vfunc@Hitaki.QuadletNotification.notified]
+ in [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="27"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3433,27 +3197,27 @@ called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="46">A #HinawaSndMotu</doc>
+ line="18">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="47">A notification message</doc>
+ line="19">A notification message</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</virtual-method>
- <virtual-method name="register_dsp_changed" version="2.4">
+ <virtual-method name="register_dsp_changed"
+ version="2.4"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="56">When MOTU register DSP models transfer events by messages in the sequence of isochronous
-packet, the #HinawaSndMotuClass::register_dsp_changed handle is called.
-The event consists of encoded data. The most significant byte is the type of message. The
-next two bytes are identifier 0 and 1. The least significant byte is value. The meaning
-of identifier 0, 1 and value is decided depending on the type. For detail, see
-`sound/firewire/motu/motu-register-dsp-message-parser.c` in Linux kernel.</doc>
- <source-position filename="../src/snd_motu.h" line="72"/>
+ line="29">Class closure for the [signal@SndMotu::register-dsp-changed] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation [vfunc@Hitaki.MotuRegisterDsp.changed] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="42"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3461,13 +3225,13 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="58">A #HinawaSndMotu</doc>
+ line="31">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="events" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="59">The array with element for
+ line="32">The array with element for
unsigned 32 bit encoded data.</doc>
<array length="1" zero-terminated="0" c:type="const guint32*">
<type name="guint32"/>
@@ -3476,7 +3240,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="61">The length of events.</doc>
+ line="34">The length of events.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -3484,11 +3248,15 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<method name="open"
c:identifier="hinawa_snd_motu_open"
version="0.8"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="96">Open ALSA hwdep character device and check it for Motu devices.</doc>
- <source-position filename="../src/snd_motu.h" line="79"/>
+ line="100">Open ALSA hwdep character device and check it for Motu devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="47"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3496,13 +3264,13 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="98">A #HinawaSndUnit</doc>
+ line="102">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="99">A full path of a special file for ALSA hwdep character device</doc>
+ line="103">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -3510,11 +3278,15 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<method name="read_command_dsp_meter"
c:identifier="hinawa_snd_motu_read_command_dsp_meter"
version="2.4"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="171">Read data of meter information for command DSP models.</doc>
- <source-position filename="../src/snd_motu.h" line="88"/>
+ line="181">Read data of meter information for command DSP models.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.MotuCommandDsp.read_float_meter] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="56"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3522,7 +3294,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="173">A #HinawaSndMotu</doc>
+ line="183">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="meter"
@@ -3531,7 +3303,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="174">The data for meter.</doc>
+ line="184">The data for meter.</doc>
<array zero-terminated="0"
c:type="gfloat* const*"
fixed-size="400">
@@ -3543,11 +3315,15 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<method name="read_register_dsp_meter"
c:identifier="hinawa_snd_motu_read_register_dsp_meter"
version="2.4"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="144">Read data of meter information for register DSP models.</doc>
- <source-position filename="../src/snd_motu.h" line="85"/>
+ line="152">Read data of meter information for register DSP models.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.MotuRegisterDsp.read_byte_meter] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="53"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3555,7 +3331,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="146">A #HinawaSndMotu</doc>
+ line="154">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="meter"
@@ -3564,7 +3340,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="147">The data of meter. Index 0 to 23 for inputs and index 24
+ line="155">The data of meter. Index 0 to 23 for inputs and index 24
to 47 for outputs.</doc>
<array zero-terminated="0" c:type="guint8* const*" fixed-size="48">
<type name="guint8" c:type="guint8"/>
@@ -3575,11 +3351,15 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<method name="read_register_dsp_parameter"
c:identifier="hinawa_snd_motu_read_register_dsp_parameter"
version="2.4"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="116">Read parameter for register DSP models.</doc>
- <source-position filename="../src/snd_motu.h" line="81"/>
+ line="122">Read parameter for register DSP models.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.MotuRegisterDsp.read_parameter] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
+ <source-position filename="../src/snd_motu.h" line="49"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3587,7 +3367,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="118">A #HinawaSndMotu.</doc>
+ line="124">A [class@SndMotu].</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</instance-parameter>
<parameter name="param"
@@ -3596,7 +3376,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="119">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="125">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="HinawaSndMotuRegisterDspParameter* const*"/>
</parameter>
@@ -3605,14 +3385,16 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<field name="parent_instance">
<type name="SndUnit" c:type="HinawaSndUnit"/>
</field>
- <field name="priv">
- <type name="SndMotuPrivate" c:type="HinawaSndMotuPrivate*"/>
- </field>
- <glib:signal name="notified" when="last" version="0.8">
+ <glib:signal name="notified"
+ when="last"
+ version="0.8"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="32">When Motu models transfer notification, the #HinawaSndMotu::notified signal is
-generated.</doc>
+ line="32">Emitted when Motu models transfer notification.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [signal@Hitaki.QuadletNotification::notified]
+ in [class@Hitaki.SndMotu] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3625,15 +3407,20 @@ generated.</doc>
</parameter>
</parameters>
</glib:signal>
- <glib:signal name="register-dsp-changed" when="last" version="2.4">
+ <glib:signal name="register-dsp-changed"
+ when="last"
+ version="2.4"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="51">When MOTU register DSP models transfer events by messages in the sequence of isochronous
-packet, the #HinawaSndMotu::register-dsp-changed signal is emit.
-The event consists of encoded data. The most significant byte is the type of message. The
-next two bytes are identifier 0 and 1. The least significant byte is value. The meaning
-of identifier 0, 1 and value is decided depending on the type. For detail, see
-`sound/firewire/motu/motu-register-dsp-message-parser.c` in Linux kernel.</doc>
+ line="52">Emitted when MOTU register DSP models transfer events by messages in the sequence of
+isochronous packet. The event consists of encoded data. The most significant byte is the
+type of message. The next two bytes are identifier 0 and 1. The least significant byte
+is value. The meaning of identifier 0, 1 and value is decided depending on the type.
+For detail, see `sound/firewire/motu/motu-register-dsp-message-parser.c` in Linux kernel.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation [signal@Hitaki.MotuRegisterDsp::changed] in
+ [class@Hitaki.SndMotu] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3641,7 +3428,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="events" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="54">The array with element for
+ line="55">The array with element for
unsigned 32 bit encoded data.</doc>
<array length="1" zero-terminated="0" c:type="gpointer">
<type name="guint32"/>
@@ -3650,7 +3437,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.c"
- line="56">The length of events.</doc>
+ line="57">The length of events.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -3659,13 +3446,13 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<record name="SndMotuClass"
c:type="HinawaSndMotuClass"
glib:is-gtype-struct-for="SndMotu">
- <source-position filename="../src/snd_motu.h" line="73"/>
+ <source-position filename="../src/snd_motu.h" line="43"/>
<field name="parent_class">
<type name="SndUnitClass" c:type="HinawaSndUnitClass"/>
</field>
<field name="notified">
<callback name="notified">
- <source-position filename="../src/snd_motu.h" line="54"/>
+ <source-position filename="../src/snd_motu.h" line="27"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3673,13 +3460,13 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="46">A #HinawaSndMotu</doc>
+ line="18">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</parameter>
<parameter name="message" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="47">A notification message</doc>
+ line="19">A notification message</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -3687,7 +3474,7 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
</field>
<field name="register_dsp_changed">
<callback name="register_dsp_changed">
- <source-position filename="../src/snd_motu.h" line="72"/>
+ <source-position filename="../src/snd_motu.h" line="42"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -3695,13 +3482,13 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="58">A #HinawaSndMotu</doc>
+ line="31">A [class@SndMotu]</doc>
<type name="SndMotu" c:type="HinawaSndMotu*"/>
</parameter>
<parameter name="events" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="59">The array with element for
+ line="32">The array with element for
unsigned 32 bit encoded data.</doc>
<array length="2" zero-terminated="0" c:type="const guint32*">
<type name="guint32"/>
@@ -3710,21 +3497,28 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
<parameter name="length" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu.h"
- line="61">The length of events.</doc>
+ line="34">The length of events.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
</record>
- <record name="SndMotuPrivate" c:type="HinawaSndMotuPrivate" disguised="1">
- <source-position filename="../src/snd_motu.h" line="33"/>
- </record>
<record name="SndMotuRegisterDspParameter"
c:type="HinawaSndMotuRegisterDspParameter"
+ version="2.4."
+ deprecated="1"
+ deprecated-version="2.5."
glib:type-name="HinawaSndMotuRegisterDspParameter"
glib:get-type="hinawa_snd_motu_register_dsp_parameter_get_type"
c:symbol-prefix="snd_motu_register_dsp_parameter">
+ <doc xml:space="preserve"
+ filename="../src/snd_motu_register_dsp_parameter.c"
+ line="4">A boxed object for container of parameter in register DSP model.
+A [struct@SndMotuRegisterDspParameter] is a boxed object for container of parameter in register
+DSP model.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [struct@Hitaki.SndMotuRegisterDspParameter] as the
+ alternative.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="16"/>
<field name="parameter" readable="0" private="1">
@@ -3734,26 +3528,34 @@ of identifier 0, 1 and value is decided depending on the type. For detail, see
</field>
<constructor name="new"
c:identifier="hinawa_snd_motu_register_dsp_parameter_new"
- version="2.4">
+ version="2.4"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="28">Instantiate #HinawaSndMotuRegisterDspParameter object and return the instance.</doc>
+ line="30">Instantiate [struct@SndMotuRegisterDspParameter] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.new] instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="20"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="33">an instance of #HinawaSndMotuRegisterDspParameter.</doc>
+ line="35">an instance of [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="HinawaSndMotuRegisterDspParameter*"/>
</return-value>
</constructor>
<method name="get_headphone_output_paired_assignment"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_assignment">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_assignment"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="244">Get the array with elements for the data of paired headphone output source. The data has index
+ line="273">Get the array with elements for the data of paired headphone output source. The data has index
value of source.</doc>
+ <doc-deprecated xml:space="preserve">Use
+ [method@Hitaki.SndMotuRegisterDspParameter.get_headphone_output_paired_assignment]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="49"/>
<return-value transfer-ownership="none">
@@ -3763,7 +3565,7 @@ value of source.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="246">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="275">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3773,17 +3575,22 @@ value of source.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="247">The value of paired headphone assignment.</doc>
+ line="276">The value of paired headphone assignment.</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="get_headphone_output_paired_volume"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_volume">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_volume"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="224">Get the array with elements for the data of paired headphone output volume. The data has volume
+ line="249">Get the array with elements for the data of paired headphone output volume. The data has volume
value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use
+ [method@Hitaki.SndMotuRegisterDspParameter.get_headphone_output_paired_volume]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="46"/>
<return-value transfer-ownership="none">
@@ -3793,7 +3600,7 @@ value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="226">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="251">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3803,21 +3610,24 @@ value between 0x00 and 0x80.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="227">The value of paired headphone output.</doc>
+ line="252">The value of paired headphone output.</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="get_input_flag"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_input_flag">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_input_flag"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="333">Get the array with elements for the data of input flags. The data consists of bit flags below:
+ line="376">Get the array with elements for the data of input flags. The data consists of bit flags below:
- 0x01: whether to make paired input
- 0x02: whether to enable phantom powering
- 0x04: whether to enable attenuation pad
- 0x08: whether to detect plug insert to jack</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_input_flag] instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="61"/>
<return-value transfer-ownership="none">
@@ -3827,7 +3637,7 @@ value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="335">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="378">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3837,7 +3647,7 @@ value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="336">The array with elements for the data of input
+ line="379">The array with elements for the data of input
flags.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="10">
<type name="guint8" c:type="guint8"/>
@@ -3846,10 +3656,12 @@ value between 0x00 and 0x80.</doc>
</parameters>
</method>
<method name="get_input_gain_and_invert"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_input_gain_and_invert">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_input_gain_and_invert"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="305">Get the array with elements for input gain and invert flags. The interpretation of data is
+ line="345">Get the array with elements for input gain and invert flags. The interpretation of data is
different in below two groups:
- Ultralite
@@ -3858,6 +3670,8 @@ different in below two groups:
- Audio Express and 4 pre
- 0x3f: the gain
- 0x40: whether to invert phase of the input</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_input_gain_and_invert]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="58"/>
<return-value transfer-ownership="none">
@@ -3867,7 +3681,7 @@ different in below two groups:
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="307">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="347">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3877,7 +3691,7 @@ different in below two groups:
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="308">The array with elements for the data
+ line="348">The array with elements for the data
of input gain and invert flags.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="10">
<type name="guint8" c:type="guint8"/>
@@ -3886,11 +3700,15 @@ different in below two groups:
</parameters>
</method>
<method name="get_line_input_boost_flag"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_line_input_boost_flag">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_line_input_boost_flag"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="264">Get the data for flags of line input boost. The data consists of bit flags for corresponding line
+ line="297">Get the data for flags of line input boost. The data consists of bit flags for corresponding line
input channel. When the flag stands, the input is boosted.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_line_input_boost_flag]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="52"/>
<return-value transfer-ownership="none">
@@ -3900,7 +3718,7 @@ input channel. When the flag stands, the input is boosted.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="266">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="299">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3910,18 +3728,23 @@ input channel. When the flag stands, the input is boosted.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="267">The flag of boost for line input.</doc>
+ line="300">The flag of boost for line input.</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="get_line_input_nominal_level_flag"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_line_input_nominal_level_flag">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_line_input_nominal_level_flag"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="284">Get the data for flags of line input nominal level. The data consists of bit flags for
+ line="320">Get the data for flags of line input nominal level. The data consists of bit flags for
corresponding line input channel. When the flag stands, the nominal level of input is +4 dBu,
else -10 dBV.</doc>
+ <doc-deprecated xml:space="preserve">Use
+ [method@Hitaki.SndMotuRegisterDspParameter.get_line_input_nominal_level_flag]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="55"/>
<return-value transfer-ownership="none">
@@ -3931,7 +3754,7 @@ else -10 dBV.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="286">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="322">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3941,17 +3764,21 @@ else -10 dBV.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="287">The flag of boost for line input.</doc>
+ line="323">The flag of boost for line input.</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="get_main_output_paired_volume"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_main_output_paired_volume">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_main_output_paired_volume"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="204">Get the array with elements for the data of paired main output volume. The data has volume value
+ line="226">Get the array with elements for the data of paired main output volume. The data has volume value
between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_main_output_paired_volume]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="43"/>
<return-value transfer-ownership="none">
@@ -3961,7 +3788,7 @@ between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="206">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="228">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -3971,20 +3798,24 @@ between 0x00 and 0x80.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="207">The value of paired main output.</doc>
+ line="229">The value of paired main output.</doc>
<type name="guint8" c:type="guint8*"/>
</parameter>
</parameters>
</method>
<method name="get_mixer_output_paired_flag"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_flag">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_flag"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="180">Get the array with elements for the data of paired output flags in indicated mixer. The data
+ line="199">Get the array with elements for the data of paired output flags in indicated mixer. The data
consists of bit flags and masks below:
- 0x0f: the mask for destination of paired output
- 0x10: whether to enable mute for paired output</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_output_paired_flag]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="40"/>
<return-value transfer-ownership="none">
@@ -3994,7 +3825,7 @@ consists of bit flags and masks below:
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="182">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="201">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -4004,7 +3835,7 @@ consists of bit flags and masks below:
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="183">The array with elements for the data of paired
+ line="202">The array with elements for the data of paired
output flag.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="4">
<type name="guint8" c:type="guint8"/>
@@ -4013,11 +3844,15 @@ consists of bit flags and masks below:
</parameters>
</method>
<method name="get_mixer_output_paired_volume"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_volume">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_volume"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="159">Get the array with elements for the data of paired output volume in indicated mixer. The data
+ line="175">Get the array with elements for the data of paired output volume in indicated mixer. The data
has gain value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_output_paired_volume]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="37"/>
<return-value transfer-ownership="none">
@@ -4027,7 +3862,7 @@ has gain value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="161">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="177">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
@@ -4037,7 +3872,7 @@ has gain value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="162">The array with elements for the data of
+ line="178">The array with elements for the data of
paired output volume.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="4">
<type name="guint8" c:type="guint8"/>
@@ -4046,14 +3881,17 @@ has gain value between 0x00 and 0x80.</doc>
</parameters>
</method>
<method name="get_mixer_source_flag"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_flag">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_flag"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="87">Get the array with elements for the data of source flags in indicated mixer. The data consists of
+ line="95">Get the array with elements for the data of source flags in indicated mixer. The data consists of
bit flags below:
- 0x01: whether to enable mute function for the source.
- 0x02: whether to enable solo function for the source.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_source_flag] instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="28"/>
<return-value transfer-ownership="none">
@@ -4063,14 +3901,14 @@ bit flags below:
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="89">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="97">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
<parameter name="mixer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="90">the numeric index of mixer, up to 4.</doc>
+ line="98">the numeric index of mixer, up to 4.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="flag"
@@ -4079,7 +3917,7 @@ bit flags below:
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="91">The array with elements for the data of source
+ line="99">The array with elements for the data of source
flag.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="20">
<type name="guint8" c:type="guint8"/>
@@ -4088,11 +3926,14 @@ bit flags below:
</parameters>
</method>
<method name="get_mixer_source_gain"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_gain">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_gain"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="41">Get the array with elements for the data of source gains in indicated mixer. The data has gain
+ line="45">Get the array with elements for the data of source gains in indicated mixer. The data has gain
value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_source_gain] instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="22"/>
<return-value transfer-ownership="none">
@@ -4102,14 +3943,14 @@ value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="43">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="47">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
<parameter name="mixer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="44">the numeric index of mixer, up to 4.</doc>
+ line="48">the numeric index of mixer, up to 4.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="gain"
@@ -4118,7 +3959,7 @@ value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="45">The array with elements for the data of source
+ line="49">The array with elements for the data of source
gains.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="20">
<type name="guint8" c:type="guint8"/>
@@ -4127,11 +3968,15 @@ value between 0x00 and 0x80.</doc>
</parameters>
</method>
<method name="get_mixer_source_paired_balance"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_balance">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_balance"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="113">Get the array with elements for the data of paired source L/R balance in indicated mixer. The
+ line="123">Get the array with elements for the data of paired source L/R balance in indicated mixer. The
data has L/R balance value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_source_paired_balance]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="31"/>
<return-value transfer-ownership="none">
@@ -4141,14 +3986,14 @@ data has L/R balance value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="115">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="125">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
<parameter name="mixer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="116">the numeric index of mixer, up to 4.</doc>
+ line="126">the numeric index of mixer, up to 4.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="balance"
@@ -4157,7 +4002,7 @@ data has L/R balance value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="117">The array with elements for the data of
+ line="127">The array with elements for the data of
paired source L/R balance.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="20">
<type name="guint8" c:type="guint8"/>
@@ -4166,11 +4011,15 @@ data has L/R balance value between 0x00 and 0x80.</doc>
</parameters>
</method>
<method name="get_mixer_source_paired_width"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_width">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_width"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="136">Get the array with elements for the data of paired source width in indicated mixer. The data
+ line="149">Get the array with elements for the data of paired source width in indicated mixer. The data
has width value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_source_paired_width]
+ instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="34"/>
<return-value transfer-ownership="none">
@@ -4180,14 +4029,14 @@ has width value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="138">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="151">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
<parameter name="mixer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="139">the numeric index of mixer, up to 4.</doc>
+ line="152">the numeric index of mixer, up to 4.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="width"
@@ -4196,7 +4045,7 @@ has width value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="140">The array with elements for the data of
+ line="153">The array with elements for the data of
paired source width.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="20">
<type name="guint8" c:type="guint8"/>
@@ -4205,11 +4054,14 @@ has width value between 0x00 and 0x80.</doc>
</parameters>
</method>
<method name="get_mixer_source_pan"
- c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_pan">
+ c:identifier="hinawa_snd_motu_register_dsp_parameter_get_mixer_source_pan"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="64">Get the array with elements for the data of source pans in indicated mixer. The data has pan
+ line="70">Get the array with elements for the data of source pans in indicated mixer. The data has pan
value between 0x00 and 0x80.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndMotuRegisterDspParameter.get_mixer_source_pan] instead.</doc-deprecated>
<source-position filename="../src/snd_motu_register_dsp_parameter.h"
line="25"/>
<return-value transfer-ownership="none">
@@ -4219,14 +4071,14 @@ value between 0x00 and 0x80.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="66">A #HinawaSndMotuRegisterDspParameter.</doc>
+ line="72">A [struct@SndMotuRegisterDspParameter].</doc>
<type name="SndMotuRegisterDspParameter"
c:type="const HinawaSndMotuRegisterDspParameter*"/>
</instance-parameter>
<parameter name="mixer" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="67">the numeric index of mixer, up to 4.</doc>
+ line="73">the numeric index of mixer, up to 4.</doc>
<type name="gsize" c:type="gsize"/>
</parameter>
<parameter name="pan"
@@ -4235,7 +4087,7 @@ value between 0x00 and 0x80.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_motu_register_dsp_parameter.c"
- line="68">The array with elements for the data of source
+ line="74">The array with elements for the data of source
pan.</doc>
<array zero-terminated="0" c:type="const guint8**" fixed-size="20">
<type name="guint8" c:type="guint8"/>
@@ -4247,31 +4099,45 @@ value between 0x00 and 0x80.</doc>
<class name="SndTscm"
c:symbol-prefix="snd_tscm"
c:type="HinawaSndTscm"
+ deprecated="1"
+ deprecated-version="2.5."
parent="SndUnit"
glib:type-name="HinawaSndTscm"
glib:get-type="hinawa_snd_tscm_get_type"
glib:type-struct="SndTscmClass">
- <source-position filename="../src/snd_tscm.h" line="58"/>
+ <doc xml:space="preserve"
+ filename="../src/snd_tscm.c"
+ line="7">A state reader for Tascam FireWire models
+A [class@SndTscm] is an application of protocol defined by TASCAM.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndTascam] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_tscm.h" line="30"/>
<constructor name="new"
c:identifier="hinawa_snd_tscm_new"
- version="1.3.">
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="60">Instantiate #HinawaSndTscm object and return the instance.</doc>
- <source-position filename="../src/snd_tscm.h" line="62"/>
+ line="61">Instantiate [class@SndTscm] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndTascam.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_tscm.h" line="32"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="65">an instance of #HinawaSndTscm.</doc>
+ line="66">an instance of [class@SndTscm].</doc>
<type name="SndTscm" c:type="HinawaSndTscm*"/>
</return-value>
</constructor>
- <virtual-method name="control" version="1.2">
+ <virtual-method name="control"
+ version="1.2"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="44">When TASCAM FireWire unit transfer control message, the #HinawaSndTscmClass::control
-handler is emitted.</doc>
- <source-position filename="../src/snd_tscm.h" line="56"/>
+ line="16">Class closure for the [signal@SndTscm::control] signal.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [vfunc@Hitaki.TascamProtocol.changed] in
+ [class@Hitaki.SndTascam] instead.</doc-deprecated>
+ <source-position filename="../src/snd_tscm.h" line="29"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4279,25 +4145,25 @@ handler is emitted.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="46">A #HinawaSndTscm</doc>
+ line="18">A [class@SndTscm]</doc>
<type name="SndTscm" c:type="HinawaSndTscm*"/>
</instance-parameter>
<parameter name="index" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="47">the numerical index on image of status and control info.</doc>
+ line="19">the numeric index on image of status and control info.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="before" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="48">the value of info before changed.</doc>
+ line="20">the value of info before changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="after" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="49">the value of info after changed.</doc>
+ line="21">the value of info after changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -4305,15 +4171,19 @@ handler is emitted.</doc>
<method name="get_state"
c:identifier="hinawa_snd_tscm_get_state"
version="1.1"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="93">Get the latest states of target device.</doc>
- <source-position filename="../src/snd_tscm.h" line="66"/>
+ line="98">Get the latest states of target device.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.TascamProtocol.read_state] in
+ [class@Hitaki.SndTascam] instead.</doc-deprecated>
+ <source-position filename="../src/snd_tscm.h" line="36"/>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="100">state image.</doc>
+ line="105">state image.</doc>
<array zero-terminated="0" c:type="const guint32*" fixed-size="64">
<type name="guint32"/>
</array>
@@ -4322,7 +4192,7 @@ handler is emitted.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="95">A #HinawaSndTscm</doc>
+ line="100">A [class@SndTscm]</doc>
<type name="SndTscm" c:type="HinawaSndTscm*"/>
</instance-parameter>
</parameters>
@@ -4330,11 +4200,15 @@ handler is emitted.</doc>
<method name="open"
c:identifier="hinawa_snd_tscm_open"
version="1.1"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="73">Open ALSA hwdep character device and check it for Dg00x devices.</doc>
- <source-position filename="../src/snd_tscm.h" line="64"/>
+ line="76">Open ALSA hwdep character device and check it for Tascam devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open] in
+ [class@Hitaki.SndTascam] instead.</doc-deprecated>
+ <source-position filename="../src/snd_tscm.h" line="34"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4342,13 +4216,13 @@ handler is emitted.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="75">A #HinawaSndUnit</doc>
+ line="78">A [class@SndTscm]</doc>
<type name="SndTscm" c:type="HinawaSndTscm*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="76">A full path of a special file for ALSA hwdep character device</doc>
+ line="79">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -4356,14 +4230,17 @@ handler is emitted.</doc>
<field name="parent_instance">
<type name="SndUnit" c:type="HinawaSndUnit"/>
</field>
- <field name="priv">
- <type name="SndTscmPrivate" c:type="HinawaSndTscmPrivate*"/>
- </field>
- <glib:signal name="control" when="last" version="1.1">
+ <glib:signal name="control"
+ when="last"
+ version="1.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="32">When TASCAM FireWire unit transfer control message, the #HinawaSndTscm::control
-signal is emitted.</doc>
+ line="31">Emitted when TASCAM FireWire unit transfer control message.
+is emitted.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [signal@Hitaki.TascamProtocol::changed] in
+ [class@Hitaki.SndTascam] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4371,19 +4248,19 @@ signal is emitted.</doc>
<parameter name="index" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="35">the numerical index on image of status and control info.</doc>
+ line="34">the numeric index on image of status and control info.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="before" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="36">the value of info before changed.</doc>
+ line="35">the value of info before changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="after" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.c"
- line="37">the value of info after changed.</doc>
+ line="36">the value of info after changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
@@ -4392,13 +4269,13 @@ signal is emitted.</doc>
<record name="SndTscmClass"
c:type="HinawaSndTscmClass"
glib:is-gtype-struct-for="SndTscm">
- <source-position filename="../src/snd_tscm.h" line="58"/>
+ <source-position filename="../src/snd_tscm.h" line="30"/>
<field name="parent_class">
<type name="SndUnitClass" c:type="HinawaSndUnitClass"/>
</field>
<field name="control">
<callback name="control">
- <source-position filename="../src/snd_tscm.h" line="56"/>
+ <source-position filename="../src/snd_tscm.h" line="29"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4406,64 +4283,74 @@ signal is emitted.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="46">A #HinawaSndTscm</doc>
+ line="18">A [class@SndTscm]</doc>
<type name="SndTscm" c:type="HinawaSndTscm*"/>
</parameter>
<parameter name="index" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="47">the numerical index on image of status and control info.</doc>
+ line="19">the numeric index on image of status and control info.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="before" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="48">the value of info before changed.</doc>
+ line="20">the value of info before changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
<parameter name="after" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_tscm.h"
- line="49">the value of info after changed.</doc>
+ line="21">the value of info after changed.</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</callback>
</field>
</record>
- <record name="SndTscmPrivate" c:type="HinawaSndTscmPrivate" disguised="1">
- <source-position filename="../src/snd_tscm.h" line="33"/>
- </record>
<class name="SndUnit"
c:symbol-prefix="snd_unit"
c:type="HinawaSndUnit"
+ deprecated="1"
+ deprecated-version="2.5."
parent="GObject.Object"
glib:type-name="HinawaSndUnit"
glib:get-type="hinawa_snd_unit_get_type"
glib:type-struct="SndUnitClass">
- <source-position filename="../src/snd_unit.h" line="72"/>
+ <doc xml:space="preserve"
+ filename="../src/snd_unit.c"
+ line="15">An event listener for ALSA FireWire sound devices.
+This class is an application of ALSA FireWire stack. Any functionality which ALSA drivers in the
+stack can be available.</doc>
+ <doc-deprecated xml:space="preserve">libhitaki library provides [class@Hitaki.SndUnit] as the alternative.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="44"/>
<constructor name="new"
c:identifier="hinawa_snd_unit_new"
- version="1.3.">
+ version="1.3."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="250">Instantiate #HinawaSndUnit object and return the instance.</doc>
- <source-position filename="../src/snd_unit.h" line="76"/>
+ line="259">Instantiate [class@SndUnit] object and return the instance.</doc>
+ <doc-deprecated xml:space="preserve">Use [method@Hitaki.SndUnit.new] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="46"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="255">an instance of #HinawaSndUnit.</doc>
+ line="264">an instance of [class@SndUnit].</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</return-value>
</constructor>
- <virtual-method name="disconnected" version="2.0">
+ <virtual-method name="disconnected"
+ version="2.0"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="60">When the sound card is not available anymore due to unbinding driver
-or hot unplugging, this signal is emit. The owner of this object
-should call g_object_free() as quickly as possible to release ALSA
-hwdep character device.</doc>
- <source-position filename="../src/snd_unit.h" line="71"/>
+ line="33">Class closure for the [signal@SndUnit::disconnected].</doc>
+ <doc-deprecated xml:space="preserve">Use change notify signal of
+ [property@Hitaki.AlsaFirewire:is-disconnected] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="43"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4471,17 +4358,21 @@ hwdep character device.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="62">A #HinawaSndUnit</doc>
+ line="35">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
</parameters>
</virtual-method>
- <virtual-method name="lock_status" version="1.2">
+ <virtual-method name="lock_status"
+ version="1.2"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="48">When ALSA kernel-streaming status is changed, this #HinawaSndUnitClass::lock_status
-handler is called.</doc>
- <source-position filename="../src/snd_unit.h" line="58"/>
+ line="20">Class closure for the [signal@SndUnit::lock-status],</doc>
+ <doc-deprecated xml:space="preserve">Use change notify signal of [property@Hitaki.AlsaFirewire:is-locked]
+ instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4489,13 +4380,13 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="50">A #HinawaSndUnit</doc>
+ line="22">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
<parameter name="state" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="51">%TRUE when locked, %FALSE when unlocked.</doc>
+ line="23">%TRUE when locked, %FALSE when unlocked.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@@ -4503,11 +4394,16 @@ handler is called.</doc>
<method name="create_source"
c:identifier="hinawa_snd_unit_create_source"
version="1.4."
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="594">Create Gsource for GMainContext to dispatch events for the sound device.</doc>
- <source-position filename="../src/snd_unit.h" line="85"/>
+ line="613">Create [struct@GLib.Source] for [struct@GLib.MainContext] to dispatch events for the sound
+device.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.create_source] in
+ [class@Hitaki.SndUnit] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="55"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4515,7 +4411,7 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="596">A #HinawaSndUnit.</doc>
+ line="615">A [class@SndUnit].</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
<parameter name="gsrc"
@@ -4524,18 +4420,22 @@ handler is called.</doc>
transfer-ownership="full">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="597">A #GSource.</doc>
+ line="616">A [struct@GLib.Source].</doc>
<type name="GLib.Source" c:type="GSource**"/>
</parameter>
</parameters>
</method>
<method name="get_node"
c:identifier="hinawa_snd_unit_get_node"
- version="2.0.">
+ version="2.0."
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="344">Retrieve an instance of #HinawaFwNode associated to the given unit.</doc>
- <source-position filename="../src/snd_unit.h" line="80"/>
+ line="357">Retrieve an instance of [class@FwNode] associated to the given unit.</doc>
+ <doc-deprecated xml:space="preserve">Instantiate [class@FwNode] according to
+ [property@Hitaki.AlsaFirewire:node-device] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="50"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4543,7 +4443,7 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="346">A #HinawaSndUnit.</doc>
+ line="359">A [class@SndUnit].</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
<parameter name="node"
@@ -4552,7 +4452,7 @@ handler is called.</doc>
transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="347">A #HinawaFwNode.</doc>
+ line="360">A [class@FwNode].</doc>
<type name="FwNode" c:type="HinawaFwNode**"/>
</parameter>
</parameters>
@@ -4560,11 +4460,15 @@ handler is called.</doc>
<method name="lock"
c:identifier="hinawa_snd_unit_lock"
version="0.3"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="365">Disallow ALSA to start kernel-streaming.</doc>
- <source-position filename="../src/snd_unit.h" line="82"/>
+ line="380">Disallow corresponding ALSA driver to start packet streaming.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.lock] in
+ [class@Hitaki.SndUnit] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="52"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4572,7 +4476,7 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="367">A #HinawaSndUnit</doc>
+ line="382">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
</parameters>
@@ -4580,11 +4484,15 @@ handler is called.</doc>
<method name="open"
c:identifier="hinawa_snd_unit_open"
version="0.4"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="263">Open ALSA hwdep character device and check it for FireWire sound devices.</doc>
- <source-position filename="../src/snd_unit.h" line="78"/>
+ line="274">Open ALSA hwdep character device and check it for FireWire sound devices.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.open] in
+ [class@Hitaki.SndUnit] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="48"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4592,13 +4500,13 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="265">A #HinawaSndUnit</doc>
+ line="276">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
<parameter name="path" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="266">A full path of a special file for ALSA hwdep character device</doc>
+ line="277">A full path of a special file for ALSA hwdep character device</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
@@ -4606,11 +4514,15 @@ handler is called.</doc>
<method name="unlock"
c:identifier="hinawa_snd_unit_unlock"
version="0.3"
+ deprecated="1"
+ deprecated-version="2.5."
throws="1">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="397">Allow ALSA to start kernel-streaming.</doc>
- <source-position filename="../src/snd_unit.h" line="83"/>
+ line="414">Allow corresponding ALSA driver to start packet streaming.</doc>
+ <doc-deprecated xml:space="preserve">Use implementation of [method@Hitaki.AlsaFirewire.unlock] in
+ [class@Hitaki.SndUnit] instead.</doc-deprecated>
+ <source-position filename="../src/snd_unit.h" line="53"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4618,48 +4530,81 @@ handler is called.</doc>
<instance-parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="399">A #HinawaSndUnit</doc>
+ line="416">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</instance-parameter>
</parameters>
</method>
- <property name="card" version="2.0" transfer-ownership="none">
+ <property name="card"
+ version="2.0"
+ deprecated="1"
+ deprecated-version="2.5."
+ transfer-ownership="none">
+ <doc-deprecated xml:space="preserve">Use [property@Hitaki.AlsaFirewire:card_id] instead.</doc-deprecated>
<type name="guint" c:type="guint"/>
</property>
- <property name="device" version="0.3" transfer-ownership="none">
+ <property name="device"
+ version="0.3"
+ deprecated="1"
+ deprecated-version="2.5."
+ transfer-ownership="none">
+ <doc-deprecated xml:space="preserve">Use [property@Hitaki.AlsaFirewire:node-device] instead.</doc-deprecated>
<type name="utf8" c:type="gchar*"/>
</property>
- <property name="guid" version="0.4" transfer-ownership="none">
+ <property name="guid"
+ version="0.4"
+ deprecated="1"
+ deprecated-version="2.5."
+ transfer-ownership="none">
+ <doc-deprecated xml:space="preserve">Use [property@Hitaki.AlsaFirewire:guid] instead.</doc-deprecated>
<type name="guint64" c:type="guint64"/>
</property>
- <property name="streaming" version="0.4" transfer-ownership="none">
+ <property name="streaming"
+ version="0.4"
+ deprecated="1"
+ deprecated-version="2.5."
+ transfer-ownership="none">
+ <doc-deprecated xml:space="preserve">Use [property@Hitaki.AlsaFirewire:is-locked] instead.</doc-deprecated>
<type name="gboolean" c:type="gboolean"/>
</property>
- <property name="type" version="1.0" transfer-ownership="none">
+ <property name="type"
+ version="1.0"
+ deprecated="1"
+ deprecated-version="2.5."
+ transfer-ownership="none">
+ <doc-deprecated xml:space="preserve">Use [property@Hitaki.AlsaFirewire:unit-type] instead.</doc-deprecated>
<type name="SndUnitType"/>
</property>
<field name="parent_instance">
<type name="GObject.Object" c:type="GObject"/>
</field>
- <field name="priv">
- <type name="SndUnitPrivate" c:type="HinawaSndUnitPrivate*"/>
- </field>
- <glib:signal name="disconnected" when="last" version="2.0">
+ <glib:signal name="disconnected"
+ when="last"
+ version="2.0"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="221">When the sound card is not available anymore due to unbinding driver
-or hot unplugging, this signal is emit. The owner of this object
-should call g_object_free() as quickly as possible to release ALSA
-hwdep character device.</doc>
+ line="229">Emitted when the sound card is not available anymore due to unbinding driver or hot
+unplugging. The owner of this object should call [method@GObject.Object.unref] as
+quickly as possible to release ALSA hwdep character device.</doc>
+ <doc-deprecated xml:space="preserve">Use change notify signal of
+ [property@Hitaki.AlsaFirewire:is-disconnected] instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
</glib:signal>
- <glib:signal name="lock-status" when="last" version="0.3">
+ <glib:signal name="lock-status"
+ when="last"
+ version="0.3"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="202">When ALSA kernel-streaming status is changed, this #HinawaSndUnit::lock-status
-signal is generated.</doc>
+ line="208">Emitted when corresponding ALSA driver changes status of lock by starting/stopping
+packet streaming requested by ALSA PCM/Rawmidi applications.</doc>
+ <doc-deprecated xml:space="preserve">Use change notify signal of [property@Hitaki.AlsaFirewire:is-locked]
+ instead.</doc-deprecated>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4667,7 +4612,7 @@ signal is generated.</doc>
<parameter name="state" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="205">%TRUE when locked, %FALSE when unlocked.</doc>
+ line="211">%TRUE when locked, %FALSE when unlocked.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@@ -4676,13 +4621,13 @@ signal is generated.</doc>
<record name="SndUnitClass"
c:type="HinawaSndUnitClass"
glib:is-gtype-struct-for="SndUnit">
- <source-position filename="../src/snd_unit.h" line="72"/>
+ <source-position filename="../src/snd_unit.h" line="44"/>
<field name="parent_class">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</field>
<field name="lock_status">
<callback name="lock_status">
- <source-position filename="../src/snd_unit.h" line="58"/>
+ <source-position filename="../src/snd_unit.h" line="31"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4690,13 +4635,13 @@ signal is generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="50">A #HinawaSndUnit</doc>
+ line="22">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</parameter>
<parameter name="state" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="51">%TRUE when locked, %FALSE when unlocked.</doc>
+ line="23">%TRUE when locked, %FALSE when unlocked.</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
@@ -4704,7 +4649,7 @@ signal is generated.</doc>
</field>
<field name="disconnected">
<callback name="disconnected">
- <source-position filename="../src/snd_unit.h" line="71"/>
+ <source-position filename="../src/snd_unit.h" line="43"/>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
@@ -4712,7 +4657,7 @@ signal is generated.</doc>
<parameter name="self" transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.h"
- line="62">A #HinawaSndUnit</doc>
+ line="35">A [class@SndUnit]</doc>
<type name="SndUnit" c:type="HinawaSndUnit*"/>
</parameter>
</parameters>
@@ -4721,13 +4666,16 @@ signal is generated.</doc>
</record>
<enumeration name="SndUnitError"
version="2.1"
+ deprecated="1"
+ deprecated-version="2.5."
glib:type-name="HinawaSndUnitError"
glib:get-type="hinawa_snd_unit_error_get_type"
c:type="HinawaSndUnitError"
glib:error-domain="hinawa-snd-unit-error-quark">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="159">A set of error code for GError with domain which equals to #hinawa_snd_unit_error_quark().</doc>
+ line="191">A set of error code for [struct@GLib.Error] with domain which equals to Hinawa.SndUnitError.</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.AlsaFirewireError in libhitaki library instead.</doc-deprecated>
<member name="disconnected"
value="0"
c:identifier="HINAWA_SND_UNIT_ERROR_DISCONNECTED"
@@ -4735,7 +4683,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_DISCONNECTED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="161">The hwdep device associated to the instance is disconnected.</doc>
+ line="193">The hwdep device associated to the instance is disconnected.</doc>
</member>
<member name="used"
value="1"
@@ -4744,7 +4692,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_USED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="162">The hedep device is already in use.</doc>
+ line="194">The hedep device is already in use.</doc>
</member>
<member name="opened"
value="2"
@@ -4753,7 +4701,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_OPENED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="163">The instance is already associated to unit by opening hwdep
+ line="195">The instance is already associated to unit by opening hwdep
character device.</doc>
</member>
<member name="not_opened"
@@ -4763,7 +4711,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_NOT_OPENED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="165">The instance is not associated to unit yet by opening hwdep
+ line="197">The instance is not associated to unit yet by opening hwdep
character device.</doc>
</member>
<member name="locked"
@@ -4773,7 +4721,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_LOCKED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="167">The hwdep device is already locked for kernel packet streaming.</doc>
+ line="199">The hwdep device is already locked for kernel packet streaming.</doc>
</member>
<member name="unlocked"
value="5"
@@ -4782,7 +4730,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_UNLOCKED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="168">The hwdep device is not locked for kernel packet streaming yet.</doc>
+ line="200">The hwdep device is not locked for kernel packet streaming yet.</doc>
</member>
<member name="wrong_class"
value="6"
@@ -4791,7 +4739,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_WRONG_CLASS">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="169">The hwdep device is not for the unit expected by the class.</doc>
+ line="201">The hwdep device is not for the unit expected by the class.</doc>
</member>
<member name="failed"
value="7"
@@ -4800,33 +4748,36 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_ERROR_FAILED">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="170">The system call fails.</doc>
+ line="202">The system call fails.</doc>
</member>
<function name="quark"
c:identifier="hinawa_snd_unit_error_quark"
- version="2.1">
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="25">Return the GQuark for error domain of GError which has code in #HinawaSndUnitError.</doc>
+ line="25">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.SndUnitError.</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.AlsaFirewireError instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="32">A #GQuark.</doc>
+ line="33">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
</enumeration>
- <record name="SndUnitPrivate" c:type="HinawaSndUnitPrivate" disguised="1">
- <source-position filename="../src/snd_unit.h" line="37"/>
- </record>
<enumeration name="SndUnitType"
version="1.0"
+ deprecated="1"
+ deprecated-version="2.5."
glib:type-name="HinawaSndUnitType"
glib:get-type="hinawa_snd_unit_type_get_type"
c:type="HinawaSndUnitType">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="83">A representation of type for sound unit defined by Linux sound subsystem.</doc>
+ line="114">A representation of type for sound unit defined by Linux sound subsystem.</doc>
+ <doc-deprecated xml:space="preserve">Use [enum@Hitaki.AlsaFirewireType] in libhitaki library instead.</doc-deprecated>
<member name="dice"
value="1"
c:identifier="HINAWA_SND_UNIT_TYPE_DICE"
@@ -4834,7 +4785,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_DICE">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="85">The type of DICE ASIC.</doc>
+ line="116">The type of DICE ASIC.</doc>
</member>
<member name="fireworks"
value="2"
@@ -4843,7 +4794,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_FIREWORKS">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="86">The type of Fireworks board module.</doc>
+ line="117">The type of Fireworks board module.</doc>
</member>
<member name="bebob"
value="3"
@@ -4852,7 +4803,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_BEBOB">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="87">The type of BeBoB ASIC.</doc>
+ line="118">The type of BeBoB ASIC.</doc>
</member>
<member name="oxfw"
value="4"
@@ -4861,7 +4812,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_OXFW">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="88">The type of OXFW ASIC</doc>
+ line="119">The type of OXFW ASIC</doc>
</member>
<member name="digi00x"
value="5"
@@ -4870,7 +4821,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_DIGI00X">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="89">The type of Digi00x series.</doc>
+ line="120">The type of Digi00x series.</doc>
</member>
<member name="tascam"
value="6"
@@ -4879,7 +4830,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_TASCAM">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="90">The type of Tascam FireWire series.</doc>
+ line="121">The type of Tascam FireWire series.</doc>
</member>
<member name="motu"
value="7"
@@ -4888,7 +4839,7 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_MOTU">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="91">The type of MOTU FireWire series.</doc>
+ line="122">The type of MOTU FireWire series.</doc>
</member>
<member name="fireface"
value="8"
@@ -4897,154 +4848,96 @@ signal is generated.</doc>
glib:name="HINAWA_SND_UNIT_TYPE_FIREFACE">
<doc xml:space="preserve"
filename="../src/hinawa_enum_types.h"
- line="92">The type of RME Fireface series.</doc>
+ line="123">The type of RME Fireface series.</doc>
</member>
</enumeration>
- <docsection name="fw_fcp">
- <doc xml:space="preserve"
- filename="../src/fw_fcp.c"
- line="7">A HinawaFwFcp supports Function Control Protocol (FCP) in IEC 61883-1, in which no way is defined
-to match response against command by the contents of frames. In 'AV/C Digital Interface Command
-Set General Specification Version 4.2' (Sep 1 2004, 1394TA), a pair of command and response is
-loosely matched by the contents of frames. For convenience, HinawaFwFcp supports synchronous API
-of command and response for AV/C specification.
-
-Any of transaction frames should be aligned to 8bit (byte).
-This class is an application of #HinawaFwReq / #HinawaFwResp.</doc>
- </docsection>
<function name="fw_fcp_error_quark"
c:identifier="hinawa_fw_fcp_error_quark"
moved-to="FwFcpError.quark"
version="2.1">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="23">Return the GQuark for error domain of GError which has code in #HinawaFwFcpError.</doc>
+ line="20">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.FwFcpError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_fcp.c"
- line="30">A #GQuark.</doc>
+ line="27">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
- <docsection name="fw_node">
- <doc xml:space="preserve"
- filename="../src/fw_node.c"
- line="11">A #HinawaFwNode is an event listener for a specified node on IEEE 1394 bus.
-This class is an application of Linux FireWire subsystem.
-All of operations utilize ioctl(2) with subsystem specific request commands.</doc>
- </docsection>
<function name="fw_node_error_quark"
c:identifier="hinawa_fw_node_error_quark"
moved-to="FwNodeError.quark"
version="2.1">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="44">Return the GQuark for error domain of GError which has code in #HinawaFwNodeError.</doc>
+ line="41">Return the [alias@GLib.Quark] for [struct@GLib.Error] with Hinawa.FwNodeError domain.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_node.c"
- line="51">A #GQuark.</doc>
+ line="48">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
- <docsection name="fw_req">
+ <function name="fw_req_error_quark"
+ c:identifier="hinawa_fw_req_error_quark"
+ moved-to="FwReqError.quark"
+ version="2.1">
<doc xml:space="preserve"
filename="../src/fw_req.c"
- line="8">A HinawaFwReq supports some types of transactions in IEEE 1212. Mainly for
-read, write and lock operations.
-
-This class is an application of Linux FireWire subsystem. All of operations
-utilize ioctl(2) with subsystem specific request commands.</doc>
- </docsection>
- <docsection name="fw_resp">
- <doc xml:space="preserve"
- filename="../src/fw_resp.c"
- line="8">A HinawaFwResp responds requests from any units.
-
-This class is an application of Linux FireWire subsystem. All of operations
-utilize ioctl(2) with subsystem specific request commands.</doc>
- </docsection>
+ line="19">Return the [alias@GLib.Quark] for [struct@GLib.Error] with code of [enum@FwRcode].</doc>
+ <return-value transfer-ownership="none">
+ <doc xml:space="preserve"
+ filename="../src/fw_req.c"
+ line="26">A [alias@GLib.Quark].</doc>
+ <type name="GLib.Quark" c:type="GQuark"/>
+ </return-value>
+ </function>
<function name="fw_resp_error_quark"
c:identifier="hinawa_fw_resp_error_quark"
moved-to="FwRespError.quark"
version="2.2">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="20">Return the GQuark for error domain of GError which has code in #HinawaFwRespError.</doc>
+ line="18">Return the [alias@GLib.Quark] for error domain of [struct@GLib.Error] which has code in
+Hinawa.FwRespError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/fw_resp.c"
- line="27">A #GQuark.</doc>
+ line="26">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
- <docsection name="snd_dg00x">
- <doc xml:space="preserve"
- filename="../src/snd_dg00x.c"
- line="7">A #HinawaSndDg00x listen to Dg00x notification and generates signal when
-received. This inherits #HinawaSndUnit.</doc>
- </docsection>
- <docsection name="snd_dice">
- <doc xml:space="preserve"
- filename="../src/snd_dice.c"
- line="7">A #HinawaSndDice listen to Dice notification and generates signal when
-received. This inherits #HinawaSndUnit.</doc>
- </docsection>
<function name="snd_dice_error_quark"
c:identifier="hinawa_snd_dice_error_quark"
moved-to="SndDiceError.quark"
- version="2.1">
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="17">Return the GQuark for error domain of GError which has code in #HinawaSndDiceError.</doc>
+ line="16">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.SndDiceError.</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_dice.c"
- line="24">A #GQuark.</doc>
+ line="24">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
- <docsection name="snd_efw">
- <doc xml:space="preserve"
- filename="../src/snd_efw.c"
- line="7">A #HinawaSndEfw is an application of Echo Fireworks Transaction (EFT).
-This inherits #HinawaSndUnit.</doc>
- </docsection>
- <docsection name="snd_motu">
- <doc xml:space="preserve"
- filename="../src/snd_motu.c"
- line="7">A #HinawaSndMotu is an application of asynchronous notification defined by
-Mark of the Unicorn (MOTU). This inherits #HinawaSndUnit.</doc>
- </docsection>
- <docsection name="snd_motu_register_dsp_parameter">
- <doc xml:space="preserve"
- filename="../src/snd_motu_register_dsp_parameter.c"
- line="4">A #HinawaSndMotuRegisterDspParameter is a boxed object for container of parameter in register
-DSP model.</doc>
- </docsection>
- <docsection name="snd_tscm">
- <doc xml:space="preserve"
- filename="../src/snd_tscm.c"
- line="7">A #HinawaSndTscm is an application of protocol defined by TASCAM. This
-inherits #HinawaSndUnit.</doc>
- </docsection>
- <docsection name="snd_unit">
- <doc xml:space="preserve"
- filename="../src/snd_unit.c"
- line="15">This class is an application of ALSA FireWire stack. Any functionality which
-ALSA drivers in the stack can be available.</doc>
- </docsection>
<function name="snd_unit_error_quark"
c:identifier="hinawa_snd_unit_error_quark"
moved-to="SndUnitError.quark"
- version="2.1">
+ version="2.1"
+ deprecated="1"
+ deprecated-version="2.5.">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="25">Return the GQuark for error domain of GError which has code in #HinawaSndUnitError.</doc>
+ line="25">Return the [alias@GLib.Quark] for [struct@GLib.Error] which has code in Hinawa.SndUnitError.</doc>
+ <doc-deprecated xml:space="preserve">Use Hitaki.AlsaFirewireError instead.</doc-deprecated>
<return-value transfer-ownership="none">
<doc xml:space="preserve"
filename="../src/snd_unit.c"
- line="32">A #GQuark.</doc>
+ line="33">A [alias@GLib.Quark].</doc>
<type name="GLib.Quark" c:type="GQuark"/>
</return-value>
</function>
diff --git a/README.rst b/README.rst
index 870d05e..076bd25 100644
--- a/README.rst
+++ b/README.rst
@@ -2,17 +2,19 @@
hinawa Rust bindings
====================
-2022/03/17
+2022/05/26
Takashi Sakamoto
Introduction
============
-* This repository includes FFI and API bindings for ``libhinawa2`` which provides ``Hinawa-3.0.gir``.
+* This repository includes FFI and API bindings for ``libhinawa2`` v2.5.0 or later which
+ provides ``Hinawa-3.0.gir``.
* `<https://github.com/alsa-project/libhinawa>`_
-* Unfortunately, it includes no support for ``libhinawa 1`` or former (``Hinawa-2.0.gir`` or ``Hinawa-1.0.gir``).
+* Unfortunately, it includes no support for ``libhinawa 1`` or former (``Hinawa-2.0.gir`` or
+ ``Hinawa-1.0.gir``) as well as sound unit support deprecated at libhinawa v2.5.0.
License
=======
@@ -23,7 +25,7 @@ Dependencies
============
* Rust version 1.57 or later (edition 2021)
-* `libhinawa <https://github.com/alsa-project/libhinawa>`_
+* `libhinawa 2.5.0 or later <https://github.com/alsa-project/libhinawa>`_
* FFI crate (``hinawa-sys``)
* ``libc`` >= 0.2
diff --git a/gir b/gir
-Subproject 78e3d3c223436bd056b312fe54d845eea8d29f2
+Subproject c8a7a13d2c4d3a57ae646e38a821d57243cf798
diff --git a/gir-files b/gir-files
-Subproject 5ca60543e148201f01474866273c35a2c79fc6d
+Subproject 7ebd4478b4a575ebe733bce9a39e0ded27eac7d
diff --git a/hinawa-sys/Gir.toml b/hinawa-sys/Gir.toml
index d8b08fa..f54c3e5 100644
--- a/hinawa-sys/Gir.toml
+++ b/hinawa-sys/Gir.toml
@@ -3,7 +3,7 @@ girs_directories = ["../gir-files", ".."]
work_mode = "sys"
library = "Hinawa"
version = "3.0"
-min_cfg_version = "2.4"
+min_cfg_version = "2.5"
single_version_file = "."
external_libraries = [
"GLib",
diff --git a/hinawa-sys/src/lib.rs b/hinawa-sys/src/lib.rs
index 32e4d0e..2bb7bb5 100644
--- a/hinawa-sys/src/lib.rs
+++ b/hinawa-sys/src/lib.rs
@@ -45,6 +45,18 @@ pub const HINAWA_FW_RCODE_GENERATION: HinawaFwRcode = 19;
pub const HINAWA_FW_RCODE_NO_ACK: HinawaFwRcode = 20;
pub const HINAWA_FW_RCODE_INVALID: HinawaFwRcode = 21;
+pub type HinawaFwReqError = c_int;
+pub const HINAWA_FW_REQ_ERROR_CONFLICT_ERROR: HinawaFwReqError = 4;
+pub const HINAWA_FW_REQ_ERROR_DATA_ERROR: HinawaFwReqError = 5;
+pub const HINAWA_FW_REQ_ERROR_TYPE_ERROR: HinawaFwReqError = 6;
+pub const HINAWA_FW_REQ_ERROR_ADDRESS_ERROR: HinawaFwReqError = 7;
+pub const HINAWA_FW_REQ_ERROR_SEND_ERROR: HinawaFwReqError = 16;
+pub const HINAWA_FW_REQ_ERROR_CANCELLED: HinawaFwReqError = 17;
+pub const HINAWA_FW_REQ_ERROR_BUSY: HinawaFwReqError = 18;
+pub const HINAWA_FW_REQ_ERROR_GENERATION: HinawaFwReqError = 19;
+pub const HINAWA_FW_REQ_ERROR_NO_ACK: HinawaFwReqError = 20;
+pub const HINAWA_FW_REQ_ERROR_INVALID: HinawaFwReqError = 21;
+
pub type HinawaFwRespError = c_int;
pub const HINAWA_FW_RESP_ERROR_FAILED: HinawaFwRespError = 0;
pub const HINAWA_FW_RESP_ERROR_RESERVED: HinawaFwRespError = 1;
@@ -129,14 +141,6 @@ impl ::std::fmt::Debug for HinawaFwFcpClass {
}
}
-#[repr(C)]
-pub struct _HinawaFwFcpPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaFwFcpPrivate = *mut _HinawaFwFcpPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaFwNodeClass {
@@ -155,14 +159,6 @@ impl ::std::fmt::Debug for HinawaFwNodeClass {
}
}
-#[repr(C)]
-pub struct _HinawaFwNodePrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaFwNodePrivate = *mut _HinawaFwNodePrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaFwReqClass {
@@ -179,14 +175,6 @@ impl ::std::fmt::Debug for HinawaFwReqClass {
}
}
-#[repr(C)]
-pub struct _HinawaFwReqPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaFwReqPrivate = *mut _HinawaFwReqPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaFwRespClass {
@@ -217,14 +205,6 @@ impl ::std::fmt::Debug for HinawaFwRespClass {
}
}
-#[repr(C)]
-pub struct _HinawaFwRespPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaFwRespPrivate = *mut _HinawaFwRespPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaSndDg00xClass {
@@ -257,14 +237,6 @@ impl ::std::fmt::Debug for HinawaSndDiceClass {
}
}
-#[repr(C)]
-pub struct _HinawaSndDicePrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaSndDicePrivate = *mut _HinawaSndDicePrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaSndEfwClass {
@@ -291,14 +263,6 @@ impl ::std::fmt::Debug for HinawaSndEfwClass {
}
}
-#[repr(C)]
-pub struct _HinawaSndEfwPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaSndEfwPrivate = *mut _HinawaSndEfwPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaSndMotuClass {
@@ -317,14 +281,6 @@ impl ::std::fmt::Debug for HinawaSndMotuClass {
}
}
-#[repr(C)]
-pub struct _HinawaSndMotuPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaSndMotuPrivate = *mut _HinawaSndMotuPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaSndMotuRegisterDspParameter {
@@ -354,14 +310,6 @@ impl ::std::fmt::Debug for HinawaSndTscmClass {
}
}
-#[repr(C)]
-pub struct _HinawaSndTscmPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaSndTscmPrivate = *mut _HinawaSndTscmPrivate;
-
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaSndUnitClass {
@@ -380,27 +328,17 @@ impl ::std::fmt::Debug for HinawaSndUnitClass {
}
}
-#[repr(C)]
-pub struct _HinawaSndUnitPrivate {
- _data: [u8; 0],
- _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
-}
-
-pub type HinawaSndUnitPrivate = *mut _HinawaSndUnitPrivate;
-
// Classes
#[derive(Copy, Clone)]
#[repr(C)]
pub struct HinawaFwFcp {
pub parent_instance: HinawaFwResp,
- pub priv_: *mut HinawaFwFcpPrivate,
}
impl ::std::fmt::Debug for HinawaFwFcp {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaFwFcp @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -409,14 +347,12 @@ impl ::std::fmt::Debug for HinawaFwFcp {
#[repr(C)]
pub struct HinawaFwNode {
pub parent_instance: gobject::GObject,
- pub priv_: *mut HinawaFwNodePrivate,
}
impl ::std::fmt::Debug for HinawaFwNode {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaFwNode @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -425,14 +361,12 @@ impl ::std::fmt::Debug for HinawaFwNode {
#[repr(C)]
pub struct HinawaFwReq {
pub parent_instance: gobject::GObject,
- pub priv_: *mut HinawaFwReqPrivate,
}
impl ::std::fmt::Debug for HinawaFwReq {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaFwReq @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -441,14 +375,12 @@ impl ::std::fmt::Debug for HinawaFwReq {
#[repr(C)]
pub struct HinawaFwResp {
pub parent_instance: gobject::GObject,
- pub priv_: *mut HinawaFwRespPrivate,
}
impl ::std::fmt::Debug for HinawaFwResp {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaFwResp @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -471,14 +403,12 @@ impl ::std::fmt::Debug for HinawaSndDg00x {
#[repr(C)]
pub struct HinawaSndDice {
pub parent_instance: HinawaSndUnit,
- pub priv_: *mut HinawaSndDicePrivate,
}
impl ::std::fmt::Debug for HinawaSndDice {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaSndDice @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -487,14 +417,12 @@ impl ::std::fmt::Debug for HinawaSndDice {
#[repr(C)]
pub struct HinawaSndEfw {
pub parent_instance: HinawaSndUnit,
- pub priv_: *mut HinawaSndEfwPrivate,
}
impl ::std::fmt::Debug for HinawaSndEfw {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaSndEfw @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -503,14 +431,12 @@ impl ::std::fmt::Debug for HinawaSndEfw {
#[repr(C)]
pub struct HinawaSndMotu {
pub parent_instance: HinawaSndUnit,
- pub priv_: *mut HinawaSndMotuPrivate,
}
impl ::std::fmt::Debug for HinawaSndMotu {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaSndMotu @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -519,14 +445,12 @@ impl ::std::fmt::Debug for HinawaSndMotu {
#[repr(C)]
pub struct HinawaSndTscm {
pub parent_instance: HinawaSndUnit,
- pub priv_: *mut HinawaSndTscmPrivate,
}
impl ::std::fmt::Debug for HinawaSndTscm {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaSndTscm @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -535,14 +459,12 @@ impl ::std::fmt::Debug for HinawaSndTscm {
#[repr(C)]
pub struct HinawaSndUnit {
pub parent_instance: gobject::GObject,
- pub priv_: *mut HinawaSndUnitPrivate,
}
impl ::std::fmt::Debug for HinawaSndUnit {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("HinawaSndUnit @ {:p}", self))
.field("parent_instance", &self.parent_instance)
- .field("priv_", &self.priv_)
.finish()
}
}
@@ -568,6 +490,12 @@ extern "C" {
pub fn hinawa_fw_rcode_get_type() -> GType;
//=========================================================================
+ // HinawaFwReqError
+ //=========================================================================
+ pub fn hinawa_fw_req_error_get_type() -> GType;
+ pub fn hinawa_fw_req_error_quark() -> glib::GQuark;
+
+ //=========================================================================
// HinawaFwRespError
//=========================================================================
pub fn hinawa_fw_resp_error_get_type() -> GType;
@@ -730,7 +658,6 @@ extern "C" {
//=========================================================================
pub fn hinawa_fw_req_get_type() -> GType;
pub fn hinawa_fw_req_new() -> *mut HinawaFwReq;
- pub fn hinawa_fw_req_error_quark() -> glib::GQuark;
pub fn hinawa_fw_req_transaction(
self_: *mut HinawaFwReq,
node: *mut HinawaFwNode,
diff --git a/hinawa-sys/tests/abi.rs b/hinawa-sys/tests/abi.rs
index a13a804..b784982 100644
--- a/hinawa-sys/tests/abi.rs
+++ b/hinawa-sys/tests/abi.rs
@@ -111,6 +111,7 @@ impl Results {
}
#[test]
+#[cfg(target_os = "linux")]
fn cross_validate_constants_with_c() {
let mut c_constants: Vec<(String, String)> = Vec::new();
@@ -151,6 +152,7 @@ fn cross_validate_constants_with_c() {
}
#[test]
+#[cfg(target_os = "linux")]
fn cross_validate_layout_with_c() {
let mut c_layouts = Vec::new();
@@ -275,6 +277,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
},
),
(
+ "HinawaFwReqError",
+ Layout {
+ size: size_of::<HinawaFwReqError>(),
+ alignment: align_of::<HinawaFwReqError>(),
+ },
+ ),
+ (
"HinawaFwResp",
Layout {
size: size_of::<HinawaFwResp>(),
@@ -441,6 +450,16 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) HINAWA_FW_RCODE_NO_ACK", "20"),
("(gint) HINAWA_FW_RCODE_SEND_ERROR", "16"),
("(gint) HINAWA_FW_RCODE_TYPE_ERROR", "6"),
+ ("(gint) HINAWA_FW_REQ_ERROR_ADDRESS_ERROR", "7"),
+ ("(gint) HINAWA_FW_REQ_ERROR_BUSY", "18"),
+ ("(gint) HINAWA_FW_REQ_ERROR_CANCELLED", "17"),
+ ("(gint) HINAWA_FW_REQ_ERROR_CONFLICT_ERROR", "4"),
+ ("(gint) HINAWA_FW_REQ_ERROR_DATA_ERROR", "5"),
+ ("(gint) HINAWA_FW_REQ_ERROR_GENERATION", "19"),
+ ("(gint) HINAWA_FW_REQ_ERROR_INVALID", "21"),
+ ("(gint) HINAWA_FW_REQ_ERROR_NO_ACK", "20"),
+ ("(gint) HINAWA_FW_REQ_ERROR_SEND_ERROR", "16"),
+ ("(gint) HINAWA_FW_REQ_ERROR_TYPE_ERROR", "6"),
("(gint) HINAWA_FW_RESP_ERROR_ADDR_SPACE_USED", "2"),
("(gint) HINAWA_FW_RESP_ERROR_FAILED", "0"),
("(gint) HINAWA_FW_RESP_ERROR_RESERVED", "1"),
diff --git a/hinawa-sys/tests/constant.c b/hinawa-sys/tests/constant.c
index 3cc3e8e..fa2b2b1 100644
--- a/hinawa-sys/tests/constant.c
+++ b/hinawa-sys/tests/constant.c
@@ -46,6 +46,16 @@ int main() {
PRINT_CONSTANT((gint) HINAWA_FW_RCODE_NO_ACK);
PRINT_CONSTANT((gint) HINAWA_FW_RCODE_SEND_ERROR);
PRINT_CONSTANT((gint) HINAWA_FW_RCODE_TYPE_ERROR);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_ADDRESS_ERROR);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_BUSY);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_CANCELLED);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_CONFLICT_ERROR);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_DATA_ERROR);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_GENERATION);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_INVALID);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_NO_ACK);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_SEND_ERROR);
+ PRINT_CONSTANT((gint) HINAWA_FW_REQ_ERROR_TYPE_ERROR);
PRINT_CONSTANT((gint) HINAWA_FW_RESP_ERROR_ADDR_SPACE_USED);
PRINT_CONSTANT((gint) HINAWA_FW_RESP_ERROR_FAILED);
PRINT_CONSTANT((gint) HINAWA_FW_RESP_ERROR_RESERVED);
diff --git a/hinawa-sys/tests/layout.c b/hinawa-sys/tests/layout.c
index 568b53c..6dbc21a 100644
--- a/hinawa-sys/tests/layout.c
+++ b/hinawa-sys/tests/layout.c
@@ -17,6 +17,7 @@ int main() {
printf("%s;%zu;%zu\n", "HinawaFwRcode", sizeof(HinawaFwRcode), alignof(HinawaFwRcode));
printf("%s;%zu;%zu\n", "HinawaFwReq", sizeof(HinawaFwReq), alignof(HinawaFwReq));
printf("%s;%zu;%zu\n", "HinawaFwReqClass", sizeof(HinawaFwReqClass), alignof(HinawaFwReqClass));
+ printf("%s;%zu;%zu\n", "HinawaFwReqError", sizeof(HinawaFwReqError), alignof(HinawaFwReqError));
printf("%s;%zu;%zu\n", "HinawaFwResp", sizeof(HinawaFwResp), alignof(HinawaFwResp));
printf("%s;%zu;%zu\n", "HinawaFwRespClass", sizeof(HinawaFwRespClass), alignof(HinawaFwRespClass));
printf("%s;%zu;%zu\n", "HinawaFwRespError", sizeof(HinawaFwRespError), alignof(HinawaFwRespError));
diff --git a/hinawa-sys/versions.txt b/hinawa-sys/versions.txt
index 00e8a32..1313169 100644
--- a/hinawa-sys/versions.txt
+++ b/hinawa-sys/versions.txt
@@ -1,3 +1,3 @@
-Generated by gir (https://github.com/gtk-rs/gir @ 78e3d3c22343)
+Generated by gir (https://github.com/gtk-rs/gir @ c8a7a13d2c4d)
from
-from gir-files (https://github.com/gtk-rs/gir-files @ 5ca60543e148)
+from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)
diff --git a/hinawa/Gir.toml b/hinawa/Gir.toml
index 2d7a43a..5f3717e 100644
--- a/hinawa/Gir.toml
+++ b/hinawa/Gir.toml
@@ -4,21 +4,17 @@ work_mode = "normal"
library = "Hinawa"
version = "3.0"
use_gi_docgen = true
-min_cfg_version = "3.0"
+min_cfg_version = "2.5"
+deprecate_by_min_version = true
single_version_file = true
generate = [
"Hinawa.FwRcode",
"Hinawa.FwTcode",
- "Hinawa.SndUnitType",
"Hinawa.FwNodeError",
+ "Hinawa.FwReqError",
"Hinawa.FwRespError",
"Hinawa.FwFcpError",
- "Hinawa.SndUnitError",
- "Hinawa.SndDiceError",
- "Hinawa.SndEfwStatus",
- "Hinawa.SndDice",
- "Hinawa.SndDg00x",
]
manual = [
@@ -88,102 +84,3 @@ manual_traits = ["FwFcpExtManual"]
pattern = "responded"
ignore = true
doc_trait_name = "FwFcpExtManual"
-
-[[object]]
-name = "Hinawa.SndUnit"
-status = "generate"
-manual_traits = ["SndUnitExtManual"]
- [[object.function]]
- pattern = "open"
- ignore = true
- doc_trait_name = "SndUnitExtManual"
-
-[[object]]
-name = "Hinawa.SndEfw"
-status = "generate"
-manual_traits = ["SndEfwExtManual"]
- [[object.function]]
- pattern = "transaction_sync"
- ignore = true
- doc_trait_name = "SndEfwExtManual"
- [[object.function]]
- pattern = "transaction"
- ignore = true
- doc_trait_name = "SndEfwExtManual"
- [[object.signal]]
- pattern = "responded"
- ignore = true
- doc_trait_name = "SndEfwExtManual"
- [[object.function]]
- pattern = "error_quark"
- ignore = true
-
-[[object]]
-name = "Hinawa.SndTscm"
-status = "generate"
-manual_traits = ["SndTscmExtManual"]
- [[object.function]]
- pattern = "get_state"
- ignore = true
- doc_trait_name = "SndTscmExtManual"
-
-[[object]]
-name = "Hinawa.SndMotu"
-status = "generate"
-manual_traits = ["SndMotuExtManual"]
- [[object.signal]]
- pattern = "register-dsp-changed"
- ignore = true
- [[object.function]]
- pattern = "read_register_dsp_parameter"
- ignore = true
- doc_trait_name = "SndMotuExtManual"
- [[object.function]]
- pattern = "read_register_dsp_meter"
- ignore = true
- doc_trait_name = "SndMotuExtManual"
- [[object.function]]
- pattern = "read_command_dsp_meter"
- ignore = true
- doc_trait_name = "SndMotuExtManual"
-
-[[object]]
-name = "Hinawa.SndMotuRegisterDspParameter"
-status = "generate"
-manual_traits = ["SndMotuRegisterDspParameterExtManual"]
- [[object.function]]
- pattern = "get_input_flag"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_input_gain_and_invert"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_output_paired_flag"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_output_paired_volume"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_source_flag"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_source_gain"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_source_paired_balance"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_source_paired_width"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
- [[object.function]]
- pattern = "get_mixer_source_pan"
- ignore = true
- doc_trait_name = "SndMotuRegisterDspParameterExtManual"
diff --git a/hinawa/src/auto/enums.rs b/hinawa/src/auto/enums.rs
index a0f1279..0333087 100644
--- a/hinawa/src/auto/enums.rs
+++ b/hinawa/src/auto/enums.rs
@@ -353,6 +353,154 @@ impl ToValue for FwRcode {
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
#[non_exhaustive]
+#[doc(alias = "HinawaFwReqError")]
+pub enum FwReqError {
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_CONFLICT_ERROR")]
+ ConflictError,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_DATA_ERROR")]
+ DataError,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_TYPE_ERROR")]
+ TypeError,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_ADDRESS_ERROR")]
+ AddressError,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_SEND_ERROR")]
+ SendError,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_CANCELLED")]
+ Cancelled,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_BUSY")]
+ Busy,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_GENERATION")]
+ Generation,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_NO_ACK")]
+ NoAck,
+ #[doc(alias = "HINAWA_FW_REQ_ERROR_INVALID")]
+ Invalid,
+ #[doc(hidden)]
+ __Unknown(i32),
+}
+
+impl fmt::Display for FwReqError {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(
+ f,
+ "FwReqError::{}",
+ match *self {
+ Self::ConflictError => "ConflictError",
+ Self::DataError => "DataError",
+ Self::TypeError => "TypeError",
+ Self::AddressError => "AddressError",
+ Self::SendError => "SendError",
+ Self::Cancelled => "Cancelled",
+ Self::Busy => "Busy",
+ Self::Generation => "Generation",
+ Self::NoAck => "NoAck",
+ Self::Invalid => "Invalid",
+ _ => "Unknown",
+ }
+ )
+ }
+}
+
+#[doc(hidden)]
+impl IntoGlib for FwReqError {
+ type GlibType = ffi::HinawaFwReqError;
+
+ fn into_glib(self) -> ffi::HinawaFwReqError {
+ match self {
+ Self::ConflictError => ffi::HINAWA_FW_REQ_ERROR_CONFLICT_ERROR,
+ Self::DataError => ffi::HINAWA_FW_REQ_ERROR_DATA_ERROR,
+ Self::TypeError => ffi::HINAWA_FW_REQ_ERROR_TYPE_ERROR,
+ Self::AddressError => ffi::HINAWA_FW_REQ_ERROR_ADDRESS_ERROR,
+ Self::SendError => ffi::HINAWA_FW_REQ_ERROR_SEND_ERROR,
+ Self::Cancelled => ffi::HINAWA_FW_REQ_ERROR_CANCELLED,
+ Self::Busy => ffi::HINAWA_FW_REQ_ERROR_BUSY,
+ Self::Generation => ffi::HINAWA_FW_REQ_ERROR_GENERATION,
+ Self::NoAck => ffi::HINAWA_FW_REQ_ERROR_NO_ACK,
+ Self::Invalid => ffi::HINAWA_FW_REQ_ERROR_INVALID,
+ Self::__Unknown(value) => value,
+ }
+ }
+}
+
+#[doc(hidden)]
+impl FromGlib<ffi::HinawaFwReqError> for FwReqError {
+ unsafe fn from_glib(value: ffi::HinawaFwReqError) -> Self {
+ match value {
+ ffi::HINAWA_FW_REQ_ERROR_CONFLICT_ERROR => Self::ConflictError,
+ ffi::HINAWA_FW_REQ_ERROR_DATA_ERROR => Self::DataError,
+ ffi::HINAWA_FW_REQ_ERROR_TYPE_ERROR => Self::TypeError,
+ ffi::HINAWA_FW_REQ_ERROR_ADDRESS_ERROR => Self::AddressError,
+ ffi::HINAWA_FW_REQ_ERROR_SEND_ERROR => Self::SendError,
+ ffi::HINAWA_FW_REQ_ERROR_CANCELLED => Self::Cancelled,
+ ffi::HINAWA_FW_REQ_ERROR_BUSY => Self::Busy,
+ ffi::HINAWA_FW_REQ_ERROR_GENERATION => Self::Generation,
+ ffi::HINAWA_FW_REQ_ERROR_NO_ACK => Self::NoAck,
+ ffi::HINAWA_FW_REQ_ERROR_INVALID => Self::Invalid,
+ value => Self::__Unknown(value),
+ }
+ }
+}
+
+impl ErrorDomain for FwReqError {
+ fn domain() -> Quark {
+ unsafe { from_glib(ffi::hinawa_fw_req_error_quark()) }
+ }
+
+ fn code(self) -> i32 {
+ self.into_glib()
+ }
+
+ fn from(code: i32) -> Option<Self> {
+ match code {
+ ffi::HINAWA_FW_REQ_ERROR_CONFLICT_ERROR => Some(Self::ConflictError),
+ ffi::HINAWA_FW_REQ_ERROR_DATA_ERROR => Some(Self::DataError),
+ ffi::HINAWA_FW_REQ_ERROR_TYPE_ERROR => Some(Self::TypeError),
+ ffi::HINAWA_FW_REQ_ERROR_ADDRESS_ERROR => Some(Self::AddressError),
+ ffi::HINAWA_FW_REQ_ERROR_SEND_ERROR => Some(Self::SendError),
+ ffi::HINAWA_FW_REQ_ERROR_CANCELLED => Some(Self::Cancelled),
+ ffi::HINAWA_FW_REQ_ERROR_BUSY => Some(Self::Busy),
+ ffi::HINAWA_FW_REQ_ERROR_GENERATION => Some(Self::Generation),
+ ffi::HINAWA_FW_REQ_ERROR_NO_ACK => Some(Self::NoAck),
+ ffi::HINAWA_FW_REQ_ERROR_INVALID => Some(Self::Invalid),
+ value => Some(Self::__Unknown(value)),
+ }
+ }
+}
+
+impl StaticType for FwReqError {
+ fn static_type() -> Type {
+ unsafe { from_glib(ffi::hinawa_fw_req_error_get_type()) }
+ }
+}
+
+impl glib::value::ValueType for FwReqError {
+ type Type = Self;
+}
+
+unsafe impl<'a> FromValue<'a> for FwReqError {
+ type Checker = glib::value::GenericValueTypeChecker<Self>;
+
+ unsafe fn from_value(value: &'a glib::Value) -> Self {
+ from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
+ }
+}
+
+impl ToValue for FwReqError {
+ fn to_value(&self) -> glib::Value {
+ let mut value = glib::Value::for_value_type::<Self>();
+ unsafe {
+ glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
+ }
+ value
+ }
+
+ fn value_type(&self) -> glib::Type {
+ Self::static_type()
+ }
+}
+
+#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
+#[non_exhaustive]
#[doc(alias = "HinawaFwRespError")]
pub enum FwRespError {
#[doc(alias = "HINAWA_FW_RESP_ERROR_FAILED")]
@@ -618,502 +766,3 @@ impl ToValue for FwTcode {
Self::static_type()
}
}
-
-#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
-#[non_exhaustive]
-#[doc(alias = "HinawaSndDiceError")]
-pub enum SndDiceError {
- #[doc(alias = "HINAWA_SND_DICE_ERROR_TIMEOUT")]
- Timeout,
- #[doc(hidden)]
- __Unknown(i32),
-}
-
-impl fmt::Display for SndDiceError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(
- f,
- "SndDiceError::{}",
- match *self {
- Self::Timeout => "Timeout",
- _ => "Unknown",
- }
- )
- }
-}
-
-#[doc(hidden)]
-impl IntoGlib for SndDiceError {
- type GlibType = ffi::HinawaSndDiceError;
-
- fn into_glib(self) -> ffi::HinawaSndDiceError {
- match self {
- Self::Timeout => ffi::HINAWA_SND_DICE_ERROR_TIMEOUT,
- Self::__Unknown(value) => value,
- }
- }
-}
-
-#[doc(hidden)]
-impl FromGlib<ffi::HinawaSndDiceError> for SndDiceError {
- unsafe fn from_glib(value: ffi::HinawaSndDiceError) -> Self {
- match value {
- ffi::HINAWA_SND_DICE_ERROR_TIMEOUT => Self::Timeout,
- value => Self::__Unknown(value),
- }
- }
-}
-
-impl ErrorDomain for SndDiceError {
- fn domain() -> Quark {
- unsafe { from_glib(ffi::hinawa_snd_dice_error_quark()) }
- }
-
- fn code(self) -> i32 {
- self.into_glib()
- }
-
- fn from(code: i32) -> Option<Self> {
- match code {
- ffi::HINAWA_SND_DICE_ERROR_TIMEOUT => Some(Self::Timeout),
- value => Some(Self::__Unknown(value)),
- }
- }
-}
-
-impl StaticType for SndDiceError {
- fn static_type() -> Type {
- unsafe { from_glib(ffi::hinawa_snd_dice_error_get_type()) }
- }
-}
-
-impl glib::value::ValueType for SndDiceError {
- type Type = Self;
-}
-
-unsafe impl<'a> FromValue<'a> for SndDiceError {
- type Checker = glib::value::GenericValueTypeChecker<Self>;
-
- unsafe fn from_value(value: &'a glib::Value) -> Self {
- from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
- }
-}
-
-impl ToValue for SndDiceError {
- fn to_value(&self) -> glib::Value {
- let mut value = glib::Value::for_value_type::<Self>();
- unsafe {
- glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
- }
- value
- }
-
- fn value_type(&self) -> glib::Type {
- Self::static_type()
- }
-}
-
-#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
-#[non_exhaustive]
-#[doc(alias = "HinawaSndEfwStatus")]
-pub enum SndEfwStatus {
- #[doc(alias = "HINAWA_SND_EFW_STATUS_OK")]
- Ok,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD")]
- Bad,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_COMMAND")]
- BadCommand,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_COMM_ERR")]
- CommErr,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_QUAD_COUNT")]
- BadQuadCount,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_UNSUPPORTED")]
- Unsupported,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_TIMEOUT")]
- Timeout,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_DSP_TIMEOUT")]
- DspTimeout,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_RATE")]
- BadRate,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_CLOCK")]
- BadClock,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_CHANNEL")]
- BadChannel,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_PAN")]
- BadPan,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_FLASH_BUSY")]
- FlashBusy,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_MIRROR")]
- BadMirror,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_LED")]
- BadLed,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_BAD_PARAMETER")]
- BadParameter,
- #[doc(alias = "HINAWA_SND_EFW_STATUS_LARGE_RESP")]
- LargeResp,
- #[doc(hidden)]
- __Unknown(i32),
-}
-
-impl fmt::Display for SndEfwStatus {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(
- f,
- "SndEfwStatus::{}",
- match *self {
- Self::Ok => "Ok",
- Self::Bad => "Bad",
- Self::BadCommand => "BadCommand",
- Self::CommErr => "CommErr",
- Self::BadQuadCount => "BadQuadCount",
- Self::Unsupported => "Unsupported",
- Self::Timeout => "Timeout",
- Self::DspTimeout => "DspTimeout",
- Self::BadRate => "BadRate",
- Self::BadClock => "BadClock",
- Self::BadChannel => "BadChannel",
- Self::BadPan => "BadPan",
- Self::FlashBusy => "FlashBusy",
- Self::BadMirror => "BadMirror",
- Self::BadLed => "BadLed",
- Self::BadParameter => "BadParameter",
- Self::LargeResp => "LargeResp",
- _ => "Unknown",
- }
- )
- }
-}
-
-#[doc(hidden)]
-impl IntoGlib for SndEfwStatus {
- type GlibType = ffi::HinawaSndEfwStatus;
-
- fn into_glib(self) -> ffi::HinawaSndEfwStatus {
- match self {
- Self::Ok => ffi::HINAWA_SND_EFW_STATUS_OK,
- Self::Bad => ffi::HINAWA_SND_EFW_STATUS_BAD,
- Self::BadCommand => ffi::HINAWA_SND_EFW_STATUS_BAD_COMMAND,
- Self::CommErr => ffi::HINAWA_SND_EFW_STATUS_COMM_ERR,
- Self::BadQuadCount => ffi::HINAWA_SND_EFW_STATUS_BAD_QUAD_COUNT,
- Self::Unsupported => ffi::HINAWA_SND_EFW_STATUS_UNSUPPORTED,
- Self::Timeout => ffi::HINAWA_SND_EFW_STATUS_TIMEOUT,
- Self::DspTimeout => ffi::HINAWA_SND_EFW_STATUS_DSP_TIMEOUT,
- Self::BadRate => ffi::HINAWA_SND_EFW_STATUS_BAD_RATE,
- Self::BadClock => ffi::HINAWA_SND_EFW_STATUS_BAD_CLOCK,
- Self::BadChannel => ffi::HINAWA_SND_EFW_STATUS_BAD_CHANNEL,
- Self::BadPan => ffi::HINAWA_SND_EFW_STATUS_BAD_PAN,
- Self::FlashBusy => ffi::HINAWA_SND_EFW_STATUS_FLASH_BUSY,
- Self::BadMirror => ffi::HINAWA_SND_EFW_STATUS_BAD_MIRROR,
- Self::BadLed => ffi::HINAWA_SND_EFW_STATUS_BAD_LED,
- Self::BadParameter => ffi::HINAWA_SND_EFW_STATUS_BAD_PARAMETER,
- Self::LargeResp => ffi::HINAWA_SND_EFW_STATUS_LARGE_RESP,
- Self::__Unknown(value) => value,
- }
- }
-}
-
-#[doc(hidden)]
-impl FromGlib<ffi::HinawaSndEfwStatus> for SndEfwStatus {
- unsafe fn from_glib(value: ffi::HinawaSndEfwStatus) -> Self {
- match value {
- ffi::HINAWA_SND_EFW_STATUS_OK => Self::Ok,
- ffi::HINAWA_SND_EFW_STATUS_BAD => Self::Bad,
- ffi::HINAWA_SND_EFW_STATUS_BAD_COMMAND => Self::BadCommand,
- ffi::HINAWA_SND_EFW_STATUS_COMM_ERR => Self::CommErr,
- ffi::HINAWA_SND_EFW_STATUS_BAD_QUAD_COUNT => Self::BadQuadCount,
- ffi::HINAWA_SND_EFW_STATUS_UNSUPPORTED => Self::Unsupported,
- ffi::HINAWA_SND_EFW_STATUS_TIMEOUT => Self::Timeout,
- ffi::HINAWA_SND_EFW_STATUS_DSP_TIMEOUT => Self::DspTimeout,
- ffi::HINAWA_SND_EFW_STATUS_BAD_RATE => Self::BadRate,
- ffi::HINAWA_SND_EFW_STATUS_BAD_CLOCK => Self::BadClock,
- ffi::HINAWA_SND_EFW_STATUS_BAD_CHANNEL => Self::BadChannel,
- ffi::HINAWA_SND_EFW_STATUS_BAD_PAN => Self::BadPan,
- ffi::HINAWA_SND_EFW_STATUS_FLASH_BUSY => Self::FlashBusy,
- ffi::HINAWA_SND_EFW_STATUS_BAD_MIRROR => Self::BadMirror,
- ffi::HINAWA_SND_EFW_STATUS_BAD_LED => Self::BadLed,
- ffi::HINAWA_SND_EFW_STATUS_BAD_PARAMETER => Self::BadParameter,
- ffi::HINAWA_SND_EFW_STATUS_LARGE_RESP => Self::LargeResp,
- value => Self::__Unknown(value),
- }
- }
-}
-
-impl StaticType for SndEfwStatus {
- fn static_type() -> Type {
- unsafe { from_glib(ffi::hinawa_snd_efw_status_get_type()) }
- }
-}
-
-impl glib::value::ValueType for SndEfwStatus {
- type Type = Self;
-}
-
-unsafe impl<'a> FromValue<'a> for SndEfwStatus {
- type Checker = glib::value::GenericValueTypeChecker<Self>;
-
- unsafe fn from_value(value: &'a glib::Value) -> Self {
- from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
- }
-}
-
-impl ToValue for SndEfwStatus {
- fn to_value(&self) -> glib::Value {
- let mut value = glib::Value::for_value_type::<Self>();
- unsafe {
- glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
- }
- value
- }
-
- fn value_type(&self) -> glib::Type {
- Self::static_type()
- }
-}
-
-#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
-#[non_exhaustive]
-#[doc(alias = "HinawaSndUnitError")]
-pub enum SndUnitError {
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_DISCONNECTED")]
- Disconnected,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_USED")]
- Used,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_OPENED")]
- Opened,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_NOT_OPENED")]
- NotOpened,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_LOCKED")]
- Locked,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_UNLOCKED")]
- Unlocked,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_WRONG_CLASS")]
- WrongClass,
- #[doc(alias = "HINAWA_SND_UNIT_ERROR_FAILED")]
- Failed,
- #[doc(hidden)]
- __Unknown(i32),
-}
-
-impl fmt::Display for SndUnitError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(
- f,
- "SndUnitError::{}",
- match *self {
- Self::Disconnected => "Disconnected",
- Self::Used => "Used",
- Self::Opened => "Opened",
- Self::NotOpened => "NotOpened",
- Self::Locked => "Locked",
- Self::Unlocked => "Unlocked",
- Self::WrongClass => "WrongClass",
- Self::Failed => "Failed",
- _ => "Unknown",
- }
- )
- }
-}
-
-#[doc(hidden)]
-impl IntoGlib for SndUnitError {
- type GlibType = ffi::HinawaSndUnitError;
-
- fn into_glib(self) -> ffi::HinawaSndUnitError {
- match self {
- Self::Disconnected => ffi::HINAWA_SND_UNIT_ERROR_DISCONNECTED,
- Self::Used => ffi::HINAWA_SND_UNIT_ERROR_USED,
- Self::Opened => ffi::HINAWA_SND_UNIT_ERROR_OPENED,
- Self::NotOpened => ffi::HINAWA_SND_UNIT_ERROR_NOT_OPENED,
- Self::Locked => ffi::HINAWA_SND_UNIT_ERROR_LOCKED,
- Self::Unlocked => ffi::HINAWA_SND_UNIT_ERROR_UNLOCKED,
- Self::WrongClass => ffi::HINAWA_SND_UNIT_ERROR_WRONG_CLASS,
- Self::Failed => ffi::HINAWA_SND_UNIT_ERROR_FAILED,
- Self::__Unknown(value) => value,
- }
- }
-}
-
-#[doc(hidden)]
-impl FromGlib<ffi::HinawaSndUnitError> for SndUnitError {
- unsafe fn from_glib(value: ffi::HinawaSndUnitError) -> Self {
- match value {
- ffi::HINAWA_SND_UNIT_ERROR_DISCONNECTED => Self::Disconnected,
- ffi::HINAWA_SND_UNIT_ERROR_USED => Self::Used,
- ffi::HINAWA_SND_UNIT_ERROR_OPENED => Self::Opened,
- ffi::HINAWA_SND_UNIT_ERROR_NOT_OPENED => Self::NotOpened,
- ffi::HINAWA_SND_UNIT_ERROR_LOCKED => Self::Locked,
- ffi::HINAWA_SND_UNIT_ERROR_UNLOCKED => Self::Unlocked,
- ffi::HINAWA_SND_UNIT_ERROR_WRONG_CLASS => Self::WrongClass,
- ffi::HINAWA_SND_UNIT_ERROR_FAILED => Self::Failed,
- value => Self::__Unknown(value),
- }
- }
-}
-
-impl ErrorDomain for SndUnitError {
- fn domain() -> Quark {
- unsafe { from_glib(ffi::hinawa_snd_unit_error_quark()) }
- }
-
- fn code(self) -> i32 {
- self.into_glib()
- }
-
- fn from(code: i32) -> Option<Self> {
- match code {
- ffi::HINAWA_SND_UNIT_ERROR_DISCONNECTED => Some(Self::Disconnected),
- ffi::HINAWA_SND_UNIT_ERROR_USED => Some(Self::Used),
- ffi::HINAWA_SND_UNIT_ERROR_OPENED => Some(Self::Opened),
- ffi::HINAWA_SND_UNIT_ERROR_NOT_OPENED => Some(Self::NotOpened),
- ffi::HINAWA_SND_UNIT_ERROR_LOCKED => Some(Self::Locked),
- ffi::HINAWA_SND_UNIT_ERROR_UNLOCKED => Some(Self::Unlocked),
- ffi::HINAWA_SND_UNIT_ERROR_WRONG_CLASS => Some(Self::WrongClass),
- ffi::HINAWA_SND_UNIT_ERROR_FAILED => Some(Self::Failed),
- _ => Some(Self::Failed),
- }
- }
-}
-
-impl StaticType for SndUnitError {
- fn static_type() -> Type {
- unsafe { from_glib(ffi::hinawa_snd_unit_error_get_type()) }
- }
-}
-
-impl glib::value::ValueType for SndUnitError {
- type Type = Self;
-}
-
-unsafe impl<'a> FromValue<'a> for SndUnitError {
- type Checker = glib::value::GenericValueTypeChecker<Self>;
-
- unsafe fn from_value(value: &'a glib::Value) -> Self {
- from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
- }
-}
-
-impl ToValue for SndUnitError {
- fn to_value(&self) -> glib::Value {
- let mut value = glib::Value::for_value_type::<Self>();
- unsafe {
- glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
- }
- value
- }
-
- fn value_type(&self) -> glib::Type {
- Self::static_type()
- }
-}
-
-#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
-#[non_exhaustive]
-#[doc(alias = "HinawaSndUnitType")]
-pub enum SndUnitType {
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_DICE")]
- Dice,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_FIREWORKS")]
- Fireworks,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_BEBOB")]
- Bebob,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_OXFW")]
- Oxfw,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_DIGI00X")]
- Digi00x,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_TASCAM")]
- Tascam,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_MOTU")]
- Motu,
- #[doc(alias = "HINAWA_SND_UNIT_TYPE_FIREFACE")]
- Fireface,
- #[doc(hidden)]
- __Unknown(i32),
-}
-
-impl fmt::Display for SndUnitType {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(
- f,
- "SndUnitType::{}",
- match *self {
- Self::Dice => "Dice",
- Self::Fireworks => "Fireworks",
- Self::Bebob => "Bebob",
- Self::Oxfw => "Oxfw",
- Self::Digi00x => "Digi00x",
- Self::Tascam => "Tascam",
- Self::Motu => "Motu",
- Self::Fireface => "Fireface",
- _ => "Unknown",
- }
- )
- }
-}
-
-#[doc(hidden)]
-impl IntoGlib for SndUnitType {
- type GlibType = ffi::HinawaSndUnitType;
-
- fn into_glib(self) -> ffi::HinawaSndUnitType {
- match self {
- Self::Dice => ffi::HINAWA_SND_UNIT_TYPE_DICE,
- Self::Fireworks => ffi::HINAWA_SND_UNIT_TYPE_FIREWORKS,
- Self::Bebob => ffi::HINAWA_SND_UNIT_TYPE_BEBOB,
- Self::Oxfw => ffi::HINAWA_SND_UNIT_TYPE_OXFW,
- Self::Digi00x => ffi::HINAWA_SND_UNIT_TYPE_DIGI00X,
- Self::Tascam => ffi::HINAWA_SND_UNIT_TYPE_TASCAM,
- Self::Motu => ffi::HINAWA_SND_UNIT_TYPE_MOTU,
- Self::Fireface => ffi::HINAWA_SND_UNIT_TYPE_FIREFACE,
- Self::__Unknown(value) => value,
- }
- }
-}
-
-#[doc(hidden)]
-impl FromGlib<ffi::HinawaSndUnitType> for SndUnitType {
- unsafe fn from_glib(value: ffi::HinawaSndUnitType) -> Self {
- match value {
- ffi::HINAWA_SND_UNIT_TYPE_DICE => Self::Dice,
- ffi::HINAWA_SND_UNIT_TYPE_FIREWORKS => Self::Fireworks,
- ffi::HINAWA_SND_UNIT_TYPE_BEBOB => Self::Bebob,
- ffi::HINAWA_SND_UNIT_TYPE_OXFW => Self::Oxfw,
- ffi::HINAWA_SND_UNIT_TYPE_DIGI00X => Self::Digi00x,
- ffi::HINAWA_SND_UNIT_TYPE_TASCAM => Self::Tascam,
- ffi::HINAWA_SND_UNIT_TYPE_MOTU => Self::Motu,
- ffi::HINAWA_SND_UNIT_TYPE_FIREFACE => Self::Fireface,
- value => Self::__Unknown(value),
- }
- }
-}
-
-impl StaticType for SndUnitType {
- fn static_type() -> Type {
- unsafe { from_glib(ffi::hinawa_snd_unit_type_get_type()) }
- }
-}
-
-impl glib::value::ValueType for SndUnitType {
- type Type = Self;
-}
-
-unsafe impl<'a> FromValue<'a> for SndUnitType {
- type Checker = glib::value::GenericValueTypeChecker<Self>;
-
- unsafe fn from_value(value: &'a glib::Value) -> Self {
- from_glib(glib::gobject_ffi::g_value_get_enum(value.to_glib_none().0))
- }
-}
-
-impl ToValue for SndUnitType {
- fn to_value(&self) -> glib::Value {
- let mut value = glib::Value::for_value_type::<Self>();
- unsafe {
- glib::gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, self.into_glib());
- }
- value
- }
-
- fn value_type(&self) -> glib::Type {
- Self::static_type()
- }
-}
diff --git a/hinawa/src/auto/fw_fcp.rs b/hinawa/src/auto/fw_fcp.rs
index 969d17a..a99ceb6 100644
--- a/hinawa/src/auto/fw_fcp.rs
+++ b/hinawa/src/auto/fw_fcp.rs
@@ -52,18 +52,8 @@ pub trait FwFcpExt: 'static {
#[doc(alias = "is-bound")]
fn is_bound(&self) -> bool;
- #[cfg_attr(feature = "v2_1", deprecated = "Since 2.1")]
- fn timeout(&self) -> u32;
-
- #[cfg_attr(feature = "v2_1", deprecated = "Since 2.1")]
- fn set_timeout(&self, timeout: u32);
-
#[doc(alias = "is-bound")]
fn connect_is_bound_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[deprecated = "Since 2.1"]
- #[doc(alias = "timeout")]
- fn connect_timeout_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<FwFcp>> FwFcpExt for O {
@@ -112,14 +102,6 @@ impl<O: IsA<FwFcp>> FwFcpExt for O {
glib::ObjectExt::property(self.as_ref(), "is-bound")
}
- fn timeout(&self) -> u32 {
- glib::ObjectExt::property(self.as_ref(), "timeout")
- }
-
- fn set_timeout(&self, timeout: u32) {
- glib::ObjectExt::set_property(self.as_ref(), "timeout", &timeout)
- }
-
fn connect_is_bound_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_is_bound_trampoline<P: IsA<FwFcp>, F: Fn(&P) + 'static>(
this: *mut ffi::HinawaFwFcp,
@@ -141,28 +123,6 @@ impl<O: IsA<FwFcp>> FwFcpExt for O {
)
}
}
-
- fn connect_timeout_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_timeout_trampoline<P: IsA<FwFcp>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaFwFcp,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(FwFcp::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::timeout\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_timeout_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
}
impl fmt::Display for FwFcp {
diff --git a/hinawa/src/auto/fw_req.rs b/hinawa/src/auto/fw_req.rs
index 738c1f6..18fad3f 100644
--- a/hinawa/src/auto/fw_req.rs
+++ b/hinawa/src/auto/fw_req.rs
@@ -3,14 +3,8 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
use glib::translate::*;
-use std::boxed::Box as Box_;
use std::fmt;
-use std::mem::transmute;
glib::wrapper! {
#[doc(alias = "HinawaFwReq")]
@@ -36,50 +30,6 @@ impl Default for FwReq {
}
}
-pub trait FwReqExt: 'static {
- #[cfg_attr(feature = "v2_1", deprecated = "Since 2.1")]
- fn timeout(&self) -> u32;
-
- #[cfg_attr(feature = "v2_1", deprecated = "Since 2.1")]
- fn set_timeout(&self, timeout: u32);
-
- #[deprecated = "Since 2.1"]
- #[doc(alias = "timeout")]
- fn connect_timeout_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<FwReq>> FwReqExt for O {
- fn timeout(&self) -> u32 {
- glib::ObjectExt::property(self.as_ref(), "timeout")
- }
-
- fn set_timeout(&self, timeout: u32) {
- glib::ObjectExt::set_property(self.as_ref(), "timeout", &timeout)
- }
-
- fn connect_timeout_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_timeout_trampoline<P: IsA<FwReq>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaFwReq,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(FwReq::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::timeout\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_timeout_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
impl fmt::Display for FwReq {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("FwReq")
diff --git a/hinawa/src/auto/fw_resp.rs b/hinawa/src/auto/fw_resp.rs
index 26229f1..2c5493a 100644
--- a/hinawa/src/auto/fw_resp.rs
+++ b/hinawa/src/auto/fw_resp.rs
@@ -4,8 +4,6 @@
// DO NOT EDIT
use crate::FwNode;
-use crate::FwRcode;
-use crate::FwTcode;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
@@ -66,13 +64,6 @@ pub trait FwRespExt: 'static {
fn width(&self) -> u32;
- #[deprecated = "Since 2.2"]
- #[doc(alias = "requested")]
- fn connect_requested<F: Fn(&Self, FwTcode) -> FwRcode + 'static>(
- &self,
- f: F,
- ) -> SignalHandlerId;
-
#[doc(alias = "is-reserved")]
fn connect_is_reserved_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
@@ -156,38 +147,6 @@ impl<O: IsA<FwResp>> FwRespExt for O {
glib::ObjectExt::property(self.as_ref(), "width")
}
- fn connect_requested<F: Fn(&Self, FwTcode) -> FwRcode + 'static>(
- &self,
- f: F,
- ) -> SignalHandlerId {
- unsafe extern "C" fn requested_trampoline<
- P: IsA<FwResp>,
- F: Fn(&P, FwTcode) -> FwRcode + 'static,
- >(
- this: *mut ffi::HinawaFwResp,
- tcode: ffi::HinawaFwTcode,
- f: glib::ffi::gpointer,
- ) -> ffi::HinawaFwRcode {
- let f: &F = &*(f as *const F);
- f(
- FwResp::from_glib_borrow(this).unsafe_cast_ref(),
- from_glib(tcode),
- )
- .into_glib()
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"requested\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- requested_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
fn connect_is_reserved_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_is_reserved_trampoline<P: IsA<FwResp>, F: Fn(&P) + 'static>(
this: *mut ffi::HinawaFwResp,
diff --git a/hinawa/src/auto/mod.rs b/hinawa/src/auto/mod.rs
index 6ad08fc..e0b9a32 100644
--- a/hinawa/src/auto/mod.rs
+++ b/hinawa/src/auto/mod.rs
@@ -15,48 +15,17 @@ pub use self::fw_req::FwReq;
mod fw_resp;
pub use self::fw_resp::FwResp;
-mod snd_dg00x;
-pub use self::snd_dg00x::SndDg00x;
-
-mod snd_dice;
-pub use self::snd_dice::SndDice;
-
-mod snd_efw;
-pub use self::snd_efw::SndEfw;
-
-mod snd_motu;
-pub use self::snd_motu::SndMotu;
-
-mod snd_tscm;
-pub use self::snd_tscm::SndTscm;
-
-mod snd_unit;
-pub use self::snd_unit::SndUnit;
-
-mod snd_motu_register_dsp_parameter;
-pub use self::snd_motu_register_dsp_parameter::SndMotuRegisterDspParameter;
-
mod enums;
pub use self::enums::FwFcpError;
pub use self::enums::FwNodeError;
pub use self::enums::FwRcode;
+pub use self::enums::FwReqError;
pub use self::enums::FwRespError;
pub use self::enums::FwTcode;
-pub use self::enums::SndDiceError;
-pub use self::enums::SndEfwStatus;
-pub use self::enums::SndUnitError;
-pub use self::enums::SndUnitType;
#[doc(hidden)]
pub mod traits {
pub use super::fw_fcp::FwFcpExt;
pub use super::fw_node::FwNodeExt;
- pub use super::fw_req::FwReqExt;
pub use super::fw_resp::FwRespExt;
- pub use super::snd_dg00x::SndDg00xExt;
- pub use super::snd_dice::SndDiceExt;
- pub use super::snd_efw::SndEfwExt;
- pub use super::snd_motu::SndMotuExt;
- pub use super::snd_tscm::SndTscmExt;
- pub use super::snd_unit::SndUnitExt;
}
diff --git a/hinawa/src/auto/snd_dg00x.rs b/hinawa/src/auto/snd_dg00x.rs
deleted file mode 100644
index a3e9ae9..0000000
--- a/hinawa/src/auto/snd_dg00x.rs
+++ /dev/null
@@ -1,93 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::SndUnit;
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
-use glib::translate::*;
-use std::boxed::Box as Box_;
-use std::fmt;
-use std::mem::transmute;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndDg00x")]
- pub struct SndDg00x(Object<ffi::HinawaSndDg00x, ffi::HinawaSndDg00xClass>) @extends SndUnit;
-
- match fn {
- type_ => || ffi::hinawa_snd_dg00x_get_type(),
- }
-}
-
-impl SndDg00x {
- pub const NONE: Option<&'static SndDg00x> = None;
-
- #[doc(alias = "hinawa_snd_dg00x_new")]
- pub fn new() -> SndDg00x {
- unsafe { from_glib_full(ffi::hinawa_snd_dg00x_new()) }
- }
-}
-
-impl Default for SndDg00x {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndDg00xExt: 'static {
- #[doc(alias = "hinawa_snd_dg00x_open")]
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-
- #[doc(alias = "message")]
- fn connect_message<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<SndDg00x>> SndDg00xExt for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_dg00x_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_message<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn message_trampoline<P: IsA<SndDg00x>, F: Fn(&P, u32) + 'static>(
- this: *mut ffi::HinawaSndDg00x,
- message: libc::c_uint,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndDg00x::from_glib_borrow(this).unsafe_cast_ref(), message)
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"message\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- message_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
-impl fmt::Display for SndDg00x {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndDg00x")
- }
-}
diff --git a/hinawa/src/auto/snd_dice.rs b/hinawa/src/auto/snd_dice.rs
deleted file mode 100644
index 9009f4e..0000000
--- a/hinawa/src/auto/snd_dice.rs
+++ /dev/null
@@ -1,116 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::SndUnit;
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
-use glib::translate::*;
-use std::boxed::Box as Box_;
-use std::fmt;
-use std::mem::transmute;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndDice")]
- pub struct SndDice(Object<ffi::HinawaSndDice, ffi::HinawaSndDiceClass>) @extends SndUnit;
-
- match fn {
- type_ => || ffi::hinawa_snd_dice_get_type(),
- }
-}
-
-impl SndDice {
- pub const NONE: Option<&'static SndDice> = None;
-
- #[doc(alias = "hinawa_snd_dice_new")]
- pub fn new() -> SndDice {
- unsafe { from_glib_full(ffi::hinawa_snd_dice_new()) }
- }
-}
-
-impl Default for SndDice {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndDiceExt: 'static {
- #[doc(alias = "hinawa_snd_dice_open")]
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-
- #[doc(alias = "hinawa_snd_dice_transaction")]
- fn transaction(&self, addr: u64, frame: &[u32], bit_flag: u32) -> Result<(), glib::Error>;
-
- #[doc(alias = "notified")]
- fn connect_notified<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<SndDice>> SndDiceExt for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_dice_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn transaction(&self, addr: u64, frame: &[u32], bit_flag: u32) -> Result<(), glib::Error> {
- let frame_count = frame.len() as usize;
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_dice_transaction(
- self.as_ref().to_glib_none().0,
- addr,
- frame.to_glib_none().0,
- frame_count,
- bit_flag,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_notified<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notified_trampoline<P: IsA<SndDice>, F: Fn(&P, u32) + 'static>(
- this: *mut ffi::HinawaSndDice,
- message: libc::c_uint,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndDice::from_glib_borrow(this).unsafe_cast_ref(), message)
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notified\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notified_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
-impl fmt::Display for SndDice {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndDice")
- }
-}
diff --git a/hinawa/src/auto/snd_efw.rs b/hinawa/src/auto/snd_efw.rs
deleted file mode 100644
index 0baefb1..0000000
--- a/hinawa/src/auto/snd_efw.rs
+++ /dev/null
@@ -1,100 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::SndUnit;
-use glib::object::IsA;
-use glib::translate::*;
-use std::fmt;
-use std::mem;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndEfw")]
- pub struct SndEfw(Object<ffi::HinawaSndEfw, ffi::HinawaSndEfwClass>) @extends SndUnit;
-
- match fn {
- type_ => || ffi::hinawa_snd_efw_get_type(),
- }
-}
-
-impl SndEfw {
- pub const NONE: Option<&'static SndEfw> = None;
-
- #[doc(alias = "hinawa_snd_efw_new")]
- pub fn new() -> SndEfw {
- unsafe { from_glib_full(ffi::hinawa_snd_efw_new()) }
- }
-}
-
-impl Default for SndEfw {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndEfwExt: 'static {
- #[doc(alias = "hinawa_snd_efw_open")]
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-
- #[doc(alias = "hinawa_snd_efw_transaction_async")]
- fn transaction_async(
- &self,
- category: u32,
- command: u32,
- args: &[u32],
- ) -> Result<u32, glib::Error>;
-}
-
-impl<O: IsA<SndEfw>> SndEfwExt for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_efw_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn transaction_async(
- &self,
- category: u32,
- command: u32,
- args: &[u32],
- ) -> Result<u32, glib::Error> {
- let arg_count = args.len() as usize;
- unsafe {
- let mut resp_seqnum = mem::MaybeUninit::uninit();
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_efw_transaction_async(
- self.as_ref().to_glib_none().0,
- category,
- command,
- args.to_glib_none().0,
- arg_count,
- resp_seqnum.as_mut_ptr(),
- &mut error,
- );
- let resp_seqnum = resp_seqnum.assume_init();
- if error.is_null() {
- Ok(resp_seqnum)
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-}
-
-impl fmt::Display for SndEfw {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndEfw")
- }
-}
diff --git a/hinawa/src/auto/snd_motu.rs b/hinawa/src/auto/snd_motu.rs
deleted file mode 100644
index 48b7806..0000000
--- a/hinawa/src/auto/snd_motu.rs
+++ /dev/null
@@ -1,93 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::SndUnit;
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
-use glib::translate::*;
-use std::boxed::Box as Box_;
-use std::fmt;
-use std::mem::transmute;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndMotu")]
- pub struct SndMotu(Object<ffi::HinawaSndMotu, ffi::HinawaSndMotuClass>) @extends SndUnit;
-
- match fn {
- type_ => || ffi::hinawa_snd_motu_get_type(),
- }
-}
-
-impl SndMotu {
- pub const NONE: Option<&'static SndMotu> = None;
-
- #[doc(alias = "hinawa_snd_motu_new")]
- pub fn new() -> SndMotu {
- unsafe { from_glib_full(ffi::hinawa_snd_motu_new()) }
- }
-}
-
-impl Default for SndMotu {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndMotuExt: 'static {
- #[doc(alias = "hinawa_snd_motu_open")]
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-
- #[doc(alias = "notified")]
- fn connect_notified<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<SndMotu>> SndMotuExt for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_motu_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_notified<F: Fn(&Self, u32) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notified_trampoline<P: IsA<SndMotu>, F: Fn(&P, u32) + 'static>(
- this: *mut ffi::HinawaSndMotu,
- message: libc::c_uint,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndMotu::from_glib_borrow(this).unsafe_cast_ref(), message)
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notified\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notified_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
-impl fmt::Display for SndMotu {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndMotu")
- }
-}
diff --git a/hinawa/src/auto/snd_motu_register_dsp_parameter.rs b/hinawa/src/auto/snd_motu_register_dsp_parameter.rs
deleted file mode 100644
index 673c8ec..0000000
--- a/hinawa/src/auto/snd_motu_register_dsp_parameter.rs
+++ /dev/null
@@ -1,101 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use glib::translate::*;
-use std::mem;
-
-glib::wrapper! {
- #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
- pub struct SndMotuRegisterDspParameter(Boxed<ffi::HinawaSndMotuRegisterDspParameter>);
-
- match fn {
- copy => |ptr| glib::gobject_ffi::g_boxed_copy(ffi::hinawa_snd_motu_register_dsp_parameter_get_type(), ptr as *mut _) as *mut ffi::HinawaSndMotuRegisterDspParameter,
- free => |ptr| glib::gobject_ffi::g_boxed_free(ffi::hinawa_snd_motu_register_dsp_parameter_get_type(), ptr as *mut _),
- type_ => || ffi::hinawa_snd_motu_register_dsp_parameter_get_type(),
- }
-}
-
-impl SndMotuRegisterDspParameter {
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_new")]
- pub fn new() -> SndMotuRegisterDspParameter {
- unsafe { from_glib_full(ffi::hinawa_snd_motu_register_dsp_parameter_new()) }
- }
-
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_assignment")]
- #[doc(alias = "get_headphone_output_paired_assignment")]
- pub fn headphone_output_paired_assignment(&self) -> u8 {
- unsafe {
- let mut assignment = mem::MaybeUninit::uninit();
- ffi::hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_assignment(
- self.to_glib_none().0,
- assignment.as_mut_ptr(),
- );
- let assignment = assignment.assume_init();
- assignment
- }
- }
-
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_volume")]
- #[doc(alias = "get_headphone_output_paired_volume")]
- pub fn headphone_output_paired_volume(&self) -> u8 {
- unsafe {
- let mut volume = mem::MaybeUninit::uninit();
- ffi::hinawa_snd_motu_register_dsp_parameter_get_headphone_output_paired_volume(
- self.to_glib_none().0,
- volume.as_mut_ptr(),
- );
- let volume = volume.assume_init();
- volume
- }
- }
-
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_get_line_input_boost_flag")]
- #[doc(alias = "get_line_input_boost_flag")]
- pub fn line_input_boost_flag(&self) -> u8 {
- unsafe {
- let mut boost_flag = mem::MaybeUninit::uninit();
- ffi::hinawa_snd_motu_register_dsp_parameter_get_line_input_boost_flag(
- self.to_glib_none().0,
- boost_flag.as_mut_ptr(),
- );
- let boost_flag = boost_flag.assume_init();
- boost_flag
- }
- }
-
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_get_line_input_nominal_level_flag")]
- #[doc(alias = "get_line_input_nominal_level_flag")]
- pub fn line_input_nominal_level_flag(&self) -> u8 {
- unsafe {
- let mut nominal_level_flag = mem::MaybeUninit::uninit();
- ffi::hinawa_snd_motu_register_dsp_parameter_get_line_input_nominal_level_flag(
- self.to_glib_none().0,
- nominal_level_flag.as_mut_ptr(),
- );
- let nominal_level_flag = nominal_level_flag.assume_init();
- nominal_level_flag
- }
- }
-
- #[doc(alias = "hinawa_snd_motu_register_dsp_parameter_get_main_output_paired_volume")]
- #[doc(alias = "get_main_output_paired_volume")]
- pub fn main_output_paired_volume(&self) -> u8 {
- unsafe {
- let mut volume = mem::MaybeUninit::uninit();
- ffi::hinawa_snd_motu_register_dsp_parameter_get_main_output_paired_volume(
- self.to_glib_none().0,
- volume.as_mut_ptr(),
- );
- let volume = volume.assume_init();
- volume
- }
- }
-}
-
-impl Default for SndMotuRegisterDspParameter {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/hinawa/src/auto/snd_tscm.rs b/hinawa/src/auto/snd_tscm.rs
deleted file mode 100644
index 140742b..0000000
--- a/hinawa/src/auto/snd_tscm.rs
+++ /dev/null
@@ -1,103 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::SndUnit;
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
-use glib::translate::*;
-use std::boxed::Box as Box_;
-use std::fmt;
-use std::mem::transmute;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndTscm")]
- pub struct SndTscm(Object<ffi::HinawaSndTscm, ffi::HinawaSndTscmClass>) @extends SndUnit;
-
- match fn {
- type_ => || ffi::hinawa_snd_tscm_get_type(),
- }
-}
-
-impl SndTscm {
- pub const NONE: Option<&'static SndTscm> = None;
-
- #[doc(alias = "hinawa_snd_tscm_new")]
- pub fn new() -> SndTscm {
- unsafe { from_glib_full(ffi::hinawa_snd_tscm_new()) }
- }
-}
-
-impl Default for SndTscm {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndTscmExt: 'static {
- #[doc(alias = "hinawa_snd_tscm_open")]
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-
- #[doc(alias = "control")]
- fn connect_control<F: Fn(&Self, u32, u32, u32) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<SndTscm>> SndTscmExt for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_tscm_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_control<F: Fn(&Self, u32, u32, u32) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn control_trampoline<
- P: IsA<SndTscm>,
- F: Fn(&P, u32, u32, u32) + 'static,
- >(
- this: *mut ffi::HinawaSndTscm,
- index: libc::c_uint,
- before: libc::c_uint,
- after: libc::c_uint,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(
- SndTscm::from_glib_borrow(this).unsafe_cast_ref(),
- index,
- before,
- after,
- )
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"control\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- control_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
-impl fmt::Display for SndTscm {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndTscm")
- }
-}
diff --git a/hinawa/src/auto/snd_unit.rs b/hinawa/src/auto/snd_unit.rs
deleted file mode 100644
index ce3d671..0000000
--- a/hinawa/src/auto/snd_unit.rs
+++ /dev/null
@@ -1,320 +0,0 @@
-// This file was generated by gir (https://github.com/gtk-rs/gir)
-// from
-// from gir-files (https://github.com/gtk-rs/gir-files)
-// DO NOT EDIT
-
-use crate::FwNode;
-use crate::SndUnitType;
-use glib::object::Cast;
-use glib::object::IsA;
-use glib::signal::connect_raw;
-use glib::signal::SignalHandlerId;
-use glib::translate::*;
-use std::boxed::Box as Box_;
-use std::fmt;
-use std::mem::transmute;
-use std::ptr;
-
-glib::wrapper! {
- #[doc(alias = "HinawaSndUnit")]
- pub struct SndUnit(Object<ffi::HinawaSndUnit, ffi::HinawaSndUnitClass>);
-
- match fn {
- type_ => || ffi::hinawa_snd_unit_get_type(),
- }
-}
-
-impl SndUnit {
- pub const NONE: Option<&'static SndUnit> = None;
-
- #[doc(alias = "hinawa_snd_unit_new")]
- pub fn new() -> SndUnit {
- unsafe { from_glib_full(ffi::hinawa_snd_unit_new()) }
- }
-}
-
-impl Default for SndUnit {
- fn default() -> Self {
- Self::new()
- }
-}
-
-pub trait SndUnitExt: 'static {
- #[doc(alias = "hinawa_snd_unit_create_source")]
- fn create_source(&self) -> Result<glib::Source, glib::Error>;
-
- #[doc(alias = "hinawa_snd_unit_get_node")]
- #[doc(alias = "get_node")]
- fn node(&self) -> FwNode;
-
- #[doc(alias = "hinawa_snd_unit_lock")]
- fn lock(&self) -> Result<(), glib::Error>;
-
- #[doc(alias = "hinawa_snd_unit_unlock")]
- fn unlock(&self) -> Result<(), glib::Error>;
-
- fn card(&self) -> u32;
-
- fn device(&self) -> Option<glib::GString>;
-
- fn guid(&self) -> u64;
-
- fn is_streaming(&self) -> bool;
-
- #[doc(alias = "type")]
- fn type_(&self) -> SndUnitType;
-
- #[doc(alias = "disconnected")]
- fn connect_disconnected<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "lock-status")]
- fn connect_lock_status<F: Fn(&Self, bool) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "card")]
- fn connect_card_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "device")]
- fn connect_device_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "guid")]
- fn connect_guid_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "streaming")]
- fn connect_streaming_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-
- #[doc(alias = "type")]
- fn connect_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
-}
-
-impl<O: IsA<SndUnit>> SndUnitExt for O {
- fn create_source(&self) -> Result<glib::Source, glib::Error> {
- unsafe {
- let mut gsrc = ptr::null_mut();
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_unit_create_source(
- self.as_ref().to_glib_none().0,
- &mut gsrc,
- &mut error,
- );
- if error.is_null() {
- Ok(from_glib_full(gsrc))
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn node(&self) -> FwNode {
- unsafe {
- let mut node = ptr::null_mut();
- ffi::hinawa_snd_unit_get_node(self.as_ref().to_glib_none().0, &mut node);
- from_glib_none(node)
- }
- }
-
- fn lock(&self) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_unit_lock(self.as_ref().to_glib_none().0, &mut error);
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn unlock(&self) -> Result<(), glib::Error> {
- unsafe {
- let mut error = ptr::null_mut();
- let _ = ffi::hinawa_snd_unit_unlock(self.as_ref().to_glib_none().0, &mut error);
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn card(&self) -> u32 {
- glib::ObjectExt::property(self.as_ref(), "card")
- }
-
- fn device(&self) -> Option<glib::GString> {
- glib::ObjectExt::property(self.as_ref(), "device")
- }
-
- fn guid(&self) -> u64 {
- glib::ObjectExt::property(self.as_ref(), "guid")
- }
-
- fn is_streaming(&self) -> bool {
- glib::ObjectExt::property(self.as_ref(), "streaming")
- }
-
- fn type_(&self) -> SndUnitType {
- glib::ObjectExt::property(self.as_ref(), "type")
- }
-
- fn connect_disconnected<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn disconnected_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"disconnected\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- disconnected_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_lock_status<F: Fn(&Self, bool) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn lock_status_trampoline<P: IsA<SndUnit>, F: Fn(&P, bool) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- state: glib::ffi::gboolean,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(
- SndUnit::from_glib_borrow(this).unsafe_cast_ref(),
- from_glib(state),
- )
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"lock-status\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- lock_status_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_card_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_card_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::card\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_card_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_device_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_device_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::device\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_device_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_guid_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_guid_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::guid\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_guid_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_streaming_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_streaming_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::streaming\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_streaming_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-
- fn connect_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
- unsafe extern "C" fn notify_type_trampoline<P: IsA<SndUnit>, F: Fn(&P) + 'static>(
- this: *mut ffi::HinawaSndUnit,
- _param_spec: glib::ffi::gpointer,
- f: glib::ffi::gpointer,
- ) {
- let f: &F = &*(f as *const F);
- f(SndUnit::from_glib_borrow(this).unsafe_cast_ref())
- }
- unsafe {
- let f: Box_<F> = Box_::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"notify::type\0".as_ptr() as *const _,
- Some(transmute::<_, unsafe extern "C" fn()>(
- notify_type_trampoline::<Self, F> as *const (),
- )),
- Box_::into_raw(f),
- )
- }
- }
-}
-
-impl fmt::Display for SndUnit {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str("SndUnit")
- }
-}
diff --git a/hinawa/src/auto/versions.txt b/hinawa/src/auto/versions.txt
index 00e8a32..1313169 100644
--- a/hinawa/src/auto/versions.txt
+++ b/hinawa/src/auto/versions.txt
@@ -1,3 +1,3 @@
-Generated by gir (https://github.com/gtk-rs/gir @ 78e3d3c22343)
+Generated by gir (https://github.com/gtk-rs/gir @ c8a7a13d2c4d)
from
-from gir-files (https://github.com/gtk-rs/gir-files @ 5ca60543e148)
+from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)
diff --git a/hinawa/src/enums.rs b/hinawa/src/enums.rs
deleted file mode 100644
index 255c1fb..0000000
--- a/hinawa/src/enums.rs
+++ /dev/null
@@ -1,74 +0,0 @@
-// SPDX-License-Identifier: MIT
-use glib::error::ErrorDomain;
-use glib::translate::*;
-use glib::Quark;
-use hinawa_sys;
-
-use FwRcode;
-use SndEfwStatus;
-
-pub type FwReqError = FwRcode;
-
-impl ErrorDomain for FwReqError {
- fn domain() -> Quark {
- unsafe { from_glib(hinawa_sys::hinawa_fw_req_error_quark()) }
- }
-
- fn code(self) -> i32 {
- self.to_glib()
- }
-
- fn from(code: i32) -> Option<Self> {
- let val = match code {
- 0 => Self::Complete,
- 4 => Self::ConflictError,
- 5 => Self::DataError,
- 6 => Self::TypeError,
- 7 => Self::AddressError,
- 16 => Self::SendError,
- 17 => Self::Cancelled,
- 18 => Self::Busy,
- 19 => Self::Generation,
- 20 => Self::NoAck,
- 21 => Self::Invalid,
- value => Self::__Unknown(value),
- };
- Some(val)
- }
-}
-
-pub type SndEfwError = SndEfwStatus;
-
-impl ErrorDomain for SndEfwError {
- fn domain() -> Quark {
- unsafe { from_glib(hinawa_sys::hinawa_snd_efw_error_quark()) }
- }
-
- fn code(self) -> i32 {
- self.to_glib()
- }
-
- fn from(code: i32) -> Option<Self> {
- let val = match code {
- 0 => Self::Ok,
- 1 => Self::Bad,
- 2 => Self::BadCommand,
- 3 => Self::CommErr,
- 4 => Self::BadQuadCount,
- 5 => Self::Unsupported,
- 6 => Self::Timeout,
- 7 => Self::DspTimeout,
- 8 => Self::BadRate,
- 9 => Self::BadClock,
- 10 => Self::BadChannel,
- 11 => Self::BadPan,
- 12 => Self::FlashBusy,
- 13 => Self::BadMirror,
- 14 => Self::BadLed,
- 15 => Self::BadParameter,
- 16 => Self::LargeResp,
- code => Self::__Unknown(code),
- };
- Some(val)
- }
-}
diff --git a/hinawa/src/lib.rs b/hinawa/src/lib.rs
index 595cc32..1f93ca9 100644
--- a/hinawa/src/lib.rs
+++ b/hinawa/src/lib.rs
@@ -4,18 +4,10 @@ mod fw_fcp;
mod fw_node;
mod fw_req;
mod fw_resp;
-mod snd_efw;
-mod snd_motu;
-mod snd_motu_register_dsp_parameter;
-mod snd_tscm;
-mod snd_unit;
pub mod subclass;
-pub use crate::{
- auto::*, fw_node::*, fw_req::*, fw_resp::*, snd_efw::*, snd_motu::*,
- snd_motu_register_dsp_parameter::*, snd_tscm::*, snd_unit::*,
-};
+pub use crate::{auto::*, fw_node::*, fw_req::*, fw_resp::*};
pub use ffi;
use glib::{signal::*, translate::*, Cast, IsA, SignalHandlerId};
diff --git a/hinawa/src/snd_efw.rs b/hinawa/src/snd_efw.rs
deleted file mode 100644
index 5a1fb7d..0000000
--- a/hinawa/src/snd_efw.rs
+++ /dev/null
@@ -1,134 +0,0 @@
-// SPDX-License-Identifier: MIT
-use crate::*;
-
-pub trait SndEfwExtManual {
- fn transaction(
- &self,
- category: u32,
- command: u32,
- args: &[u32],
- params: &mut [u32],
- ) -> Result<usize, glib::Error>;
- fn transaction_sync(
- &self,
- category: u32,
- command: u32,
- args: Option<&[u32]>,
- params: Option<&mut [u32]>,
- timeout_ms: u32,
- ) -> Result<usize, glib::Error>;
- fn connect_responded<F>(&self, f: F) -> SignalHandlerId
- where
- F: Fn(&Self, SndEfwStatus, u32, u32, u32, &[u32]) + 'static;
-}
-
-impl<O: IsA<SndEfw>> SndEfwExtManual for O {
- fn transaction(
- &self,
- category: u32,
- command: u32,
- args: &[u32],
- params: &mut [u32],
- ) -> Result<usize, glib::Error> {
- unsafe {
- let mut param_count = params.len();
- let mut error = std::ptr::null_mut();
-
- ffi::hinawa_snd_efw_transaction(
- self.as_ref().to_glib_none().0,
- category,
- command,
- args.as_ptr(),
- args.len() as usize,
- &mut params.as_mut_ptr(),
- &mut param_count,
- &mut error,
- );
-
- if error.is_null() {
- Ok(param_count)
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn transaction_sync(
- &self,
- category: u32,
- command: u32,
- args: Option<&[u32]>,
- params: Option<&mut [u32]>,
- timeout_ms: u32,
- ) -> Result<usize, glib::Error> {
- unsafe {
- let (arg_ptr, arg_count) = match args {
- Some(a) => (a.as_ptr(), a.len()),
- None => (std::ptr::null(), 0),
- };
- let (mut param_ptr, mut param_count) = match params {
- Some(p) => (p.as_mut_ptr(), p.len()),
- None => (std::ptr::null_mut(), 0),
- };
- let mut error = std::ptr::null_mut();
-
- ffi::hinawa_snd_efw_transaction_sync(
- self.as_ref().to_glib_none().0,
- category,
- command,
- arg_ptr,
- arg_count,
- &mut param_ptr,
- &mut param_count,
- timeout_ms,
- &mut error,
- );
-
- if error.is_null() {
- Ok(param_count)
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_responded<F>(&self, f: F) -> SignalHandlerId
- where
- F: Fn(&Self, SndEfwStatus, u32, u32, u32, &[u32]) + 'static,
- {
- unsafe extern "C" fn responded_trampoline<P, F>(
- this: *mut ffi::HinawaSndEfw,
- status: ffi::HinawaSndEfwStatus,
- seqnum: u32,
- command: u32,
- category: u32,
- frame: *const u32,
- length: libc::c_uint,
- f: glib::ffi::gpointer,
- ) where
- P: IsA<SndEfw>,
- F: Fn(&P, SndEfwStatus, u32, u32, u32, &[u32]) + 'static,
- {
- let f: &F = &*(f as *const F);
- f(
- &SndEfw::from_glib_borrow(this).unsafe_cast_ref(),
- from_glib(status),
- seqnum,
- command,
- category,
- std::slice::from_raw_parts(frame, length as usize),
- )
- }
- unsafe {
- let f: std::boxed::Box<F> = std::boxed::Box::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"responded\0".as_ptr() as *const _,
- Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
- responded_trampoline::<Self, F> as *const (),
- )),
- std::boxed::Box::into_raw(f),
- )
- }
- }
-}
diff --git a/hinawa/src/snd_motu.rs b/hinawa/src/snd_motu.rs
deleted file mode 100644
index fd69acb..0000000
--- a/hinawa/src/snd_motu.rs
+++ /dev/null
@@ -1,106 +0,0 @@
-// SPDX-License-Identifier: MIT
-use crate::*;
-
-pub trait SndMotuExtManual {
- fn read_register_dsp_parameter(
- &self,
- param: &mut SndMotuRegisterDspParameter,
- ) -> Result<(), glib::Error>;
- fn read_register_dsp_meter(&self, meter: &mut [u8; 48]) -> Result<(), glib::Error>;
- fn read_command_dsp_meter(&self, meter: &mut [f32; 400]) -> Result<(), glib::Error>;
- fn connect_register_dsp_changed<F: Fn(&Self, &[u32]) + 'static>(&self, f: F)
- -> SignalHandlerId;
-}
-
-impl<O: IsA<SndMotu>> SndMotuExtManual for O {
- fn read_register_dsp_parameter(
- &self,
- param: &mut SndMotuRegisterDspParameter,
- ) -> Result<(), glib::Error> {
- unsafe {
- let mut error = std::ptr::null_mut();
-
- ffi::hinawa_snd_motu_read_register_dsp_parameter(
- self.as_ref().to_glib_none().0,
- &param.to_glib_none_mut().0,
- &mut error,
- );
-
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn read_register_dsp_meter(&self, meter: &mut [u8; 48]) -> Result<(), glib::Error> {
- unsafe {
- let ptr: *mut [u8; 48] = meter;
- let mut error = std::ptr::null_mut();
-
- ffi::hinawa_snd_motu_read_register_dsp_meter(
- self.as_ref().to_glib_none().0,
- &ptr,
- &mut error,
- );
-
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn read_command_dsp_meter(&self, meter: &mut [f32; 400]) -> Result<(), glib::Error> {
- unsafe {
- let ptr: *mut [f32; 400] = meter;
- let mut error = std::ptr::null_mut();
-
- ffi::hinawa_snd_motu_read_command_dsp_meter(
- self.as_ref().to_glib_none().0,
- &ptr,
- &mut error,
- );
-
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-
- fn connect_register_dsp_changed<F>(&self, f: F) -> SignalHandlerId
- where
- F: Fn(&Self, &[u32]) + 'static,
- {
- unsafe extern "C" fn register_dsp_changed_trampoline<P, F>(
- this: *mut ffi::HinawaSndMotu,
- events: *const u32,
- length: libc::c_uint,
- f: glib::ffi::gpointer,
- ) where
- P: IsA<SndMotu>,
- F: Fn(&P, &[u32]) + 'static,
- {
- let f: &F = &*(f as *const F);
- f(
- &SndMotu::from_glib_borrow(this).unsafe_cast_ref(),
- std::slice::from_raw_parts(events, length as usize),
- )
- }
- unsafe {
- let f: std::boxed::Box<F> = std::boxed::Box::new(f);
- connect_raw(
- self.as_ptr() as *mut _,
- b"register-dsp-changed\0".as_ptr() as *const _,
- Some(std::mem::transmute::<_, unsafe extern "C" fn()>(
- register_dsp_changed_trampoline::<Self, F> as *const (),
- )),
- std::boxed::Box::into_raw(f),
- )
- }
- }
-}
diff --git a/hinawa/src/snd_motu_register_dsp_parameter.rs b/hinawa/src/snd_motu_register_dsp_parameter.rs
deleted file mode 100644
index 1c1ab38..0000000
--- a/hinawa/src/snd_motu_register_dsp_parameter.rs
+++ /dev/null
@@ -1,108 +0,0 @@
-// SPDX-License-Identifier: MIT
-use crate::*;
-
-impl SndMotuRegisterDspParameter {
- pub fn get_input_flag(&self) -> &[u8; 10] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 10];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_input_flag(
- self.to_glib_none().0,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_input_gain_and_invert(&self) -> &[u8; 10] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 10];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_input_gain_and_invert(
- self.to_glib_none().0,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_output_paired_flag(&self) -> &[u8; 4] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 4];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_flag(
- self.to_glib_none().0,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_output_paired_volume(&self) -> &[u8; 4] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 4];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_output_paired_volume(
- self.to_glib_none().0,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_source_flag(&self, mixer: usize) -> &[u8; 20] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 20];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_source_flag(
- self.to_glib_none().0,
- mixer,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_source_gain(&self, mixer: usize) -> &[u8; 20] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 20];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_source_gain(
- self.to_glib_none().0,
- mixer,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_source_paired_balance(&self, mixer: usize) -> &[u8; 20] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 20];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_balance(
- self.to_glib_none().0,
- mixer,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_source_paired_width(&self, mixer: usize) -> &[u8; 20] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 20];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_source_paired_width(
- self.to_glib_none().0,
- mixer,
- &mut ptr,
- );
- &*ptr
- }
- }
-
- pub fn get_mixer_source_pan(&self, mixer: usize) -> &[u8; 20] {
- unsafe {
- let mut ptr = std::ptr::null_mut() as *const [u8; 20];
- ffi::hinawa_snd_motu_register_dsp_parameter_get_mixer_source_pan(
- self.to_glib_none().0,
- mixer,
- &mut ptr,
- );
- &*ptr
- }
- }
-}
diff --git a/hinawa/src/snd_tscm.rs b/hinawa/src/snd_tscm.rs
deleted file mode 100644
index 7097c13..0000000
--- a/hinawa/src/snd_tscm.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// SPDX-License-Identifier: MIT
-use crate::*;
-
-pub trait SndTscmExtManual {
- fn get_state(&self) -> Result<&[u32; 64], glib::Error>;
-}
-
-impl<O: IsA<SndTscm>> SndTscmExtManual for O {
- fn get_state(&self) -> Result<&[u32; 64], glib::Error> {
- unsafe {
- let mut error = std::ptr::null_mut();
-
- let image = ffi::hinawa_snd_tscm_get_state(self.as_ref().to_glib_none().0, &mut error);
-
- if error.is_null() {
- Ok(&*image)
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-}
diff --git a/hinawa/src/snd_unit.rs b/hinawa/src/snd_unit.rs
deleted file mode 100644
index 373367a..0000000
--- a/hinawa/src/snd_unit.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-// SPDX-License-Identifier: MIT
-use crate::*;
-
-pub trait SndUnitExtManual {
- fn open(&self, path: &str) -> Result<(), glib::Error>;
-}
-
-impl<O: IsA<SndUnit>> SndUnitExtManual for O {
- fn open(&self, path: &str) -> Result<(), glib::Error> {
- unsafe {
- let mut error = std::ptr::null_mut();
-
- let _ = ffi::hinawa_snd_unit_open(
- self.as_ref().to_glib_none().0,
- path.to_glib_none().0,
- &mut error,
- );
-
- if error.is_null() {
- Ok(())
- } else {
- Err(from_glib_full(error))
- }
- }
- }
-}