aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-05-06fw_iso_ctx: fix speling for contextmainTakashi Sakamoto2-2/+2
The word, context, is sometimes written with the word, contest. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2024-04-06bump release version to 1.0.2v1.0.2Takashi Sakamoto2-6/+6
It's time to release the new version. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2024-03-15ci: use actions/checkout@v4Takashi Sakamoto1-2/+2
To suppress the following warning in github actions: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2024-01-04fw_iso_resource_once: fix support version annotationTakashi Sakamoto1-1/+1
Fixes: edfa5ad1f45d ("fw_iso_resource_once: add derived object to initiate allocation/deallocation by one shot") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-12-14bump release version to 1.0.1v1.0.1Takashi Sakamoto2-5/+5
It's time to release new version. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-12-14fw_iso_ctx: fix FTBFS with gi-docgen 2023.3Takashi Sakamoto1-1/+1
Debian project detects FTBFS in libhinawa 4.0.0 package with gi-docgen 2023.3. This commit fixes it. Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058521 Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-11-26update README.rst with URL in salsa.debian.org for DEB packageTakashi Sakamoto1-1/+6
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30bump release version to 1.0.0v1.0.0Takashi Sakamoto15-140/+21
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30change dependency on libhinawa to version 4.0Takashi Sakamoto7-11/+11
The new version of libhinawa has been released as the final stable release. * https://git.kernel.org/pub/scm/libs/ieee1394/libhinawa.git/tag/?h=4.0.0 This commit switches dependency on libhinawa to 4.0 release. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30fw_iso_ctx: change prototype of FwIsoCtx.read_cycle_time()Takashi Sakamoto8-10/+11
The prototype includes redundant type expression for Hinawa.CycleTime. This commit simplifies it. Fixes: 8255581c2b98 ("fw_iso_ctx: add Hinoko.FwIsoCtx.read_cycle_time() abstract method") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30doc: update desctiption about objectsTakashi Sakamoto6-14/+13
For users' readability. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30doc: use the word '1394 OHCI hardware' for consistencyTakashi Sakamoto10-30/+29
There are several expressions for 1394 OHCI hardware. For consistency, this commit replaces themwith '1394 OHCI hardware'. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30fw_iso_resource: remove async suffix from allocation methodsTakashi Sakamoto8-36/+38
The request of allocation generates completion event. In current implementation, the method for request has async suffix, and the method to wait for the event has sync suffix. However, these two keywords are often heavy use in different contexts and sometimes unfriendly to developers and users. This commit renames async methods without any suffix. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30fw_iso_resource: remove sync suffix from allocation methodsTakashi Sakamoto7-10/+11
The request of allocation generates completion event. In current implementation, the method for request has async suffix, and the method to wait for the event has sync suffix. However, these two keywords are often heavy use in different contexts and sometimes unfriendly to developers and users. This commit renames sync method with wait suffix. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30fw_iso_resource_auto: remove async/sync suffixes from deallocation methodsTakashi Sakamoto5-16/+15
The request of deallocation generates completion event. In current implementation, the method for request has async suffix, and the method to wait for the event has sync suffix. However, these two keywords are often heavy use in different contexts and sometimes unfriendly to developers and users. This commit renames these methods. The name of async method becomes simplier, and the sync method is suffixed with wait. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-30fw_iso_resource_once: remove async/sync suffixes from deallocation methodsTakashi Sakamoto5-16/+19
The request of deallocation generates completion event. In current implementation, the method for request has async suffix, and the method to wait for the event has sync suffix. However, these two keywords are often heavy use in different contexts and sometimes unfriendly to developers and users. This commit renames these methods. The name of async method becomes simplier, and the sync method is suffixed with wait. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-29doc: annotate error domain available in gi-docgen 2023.1Takashi Sakamoto9-31/+54
The gi-docgen 2023.1 includes fix to deal with error domain. This commit adopts the fix towards better documentation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-29update description about provide section of wrap fileTakashi Sakamoto1-2/+2
The usage of meson.override_dependency() allows subprojects to use dependency_names variable in provide section of wrap file. Fixes: 68a5156525ba ("meson: bump minimal version up to 0.54.0 for meson.override_dependency()") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-08meson: use meson.project_build_root() to find built targets for testTakashi Sakamoto2-9/+5
The meson.project_build_root() was newly available to refer to build directory wherever the meson file locates. Reference: https://mesonbuild.com/Release-notes-for-0-56-0.html#mesonbuild_root-and-mesonsource_root-are-deprecated Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-08meson: bump minimal version up to 0.56.0 for meson.global_build_root()Takashi Sakamoto2-4/+4
The meson.global_build_root() was newly available to refer to global build root directory wherever the meson file locates. Reference: https://mesonbuild.com/Release-notes-for-0-56-0.html#mesonbuild_root-and-mesonsource_root-are-deprecated Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-08meson: bump minimal version up to 0.54.0 for meson.override_dependency()Takashi Sakamoto3-3/+4
The meson.override_dependency() was added to meson build 0.54.0 version. It is useful for the case that explicit dependency object is provided from subproject and the dependency in main project fallbacks to it. Reference: https://mesonbuild.com/Release-notes-for-0-54-0.html#override-dependency Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-03bump release version to 0.9.1v0.9.1Takashi Sakamoto2-5/+5
It's time to release the new version. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-03ci: utilize meson subproject to satisfy dependency on libhinawaTakashi Sakamoto1-46/+26
The support for meson subproject enables to satisfy libhinawa dependency without installing it. It is preferable. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-10-03meson: subproject supportTakashi Sakamoto6-5/+65
Current declaration in meson files does not allow user applications to use libhinawa by meson subproject. This is inconvenient. This commit declares libhinawa dependency for exposing purpose. The dependency is available by meson wrap in subproject. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-08-06improve description about PyGObject in READMETakashi Sakamoto1-3/+3
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-23correct format of Since and Deprecated tagsTakashi Sakamoto9-45/+45
No dot following to numeric version. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-23Add ORG_KERNEL prefix into include guardsTakashi Sakamoto11-22/+22
The upstream of libhinoko moves to kernel.org. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17bump release version to 0.9.0v0.9.0Takashi Sakamoto2-3/+15
It's time to release the new version. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17cycle_timer: drop Hinoko.CycleTimerTakashi Sakamoto7-164/+0
Hinoko.CycleTimer is not used anymore. Let us delete it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17fw_iso_ctx: drop Hinoko.FwIsoCtx.get_cycle_timer()Takashi Sakamoto12-136/+0
Hinoko.FwIsoCtx.read_cycle_time() is obsoleted by Hinoko.FwIsoCtx.get_cycle_timer(). Let us delete it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17fw_iso_it: implement Hinoko.FwIsoCtx.read_cycle_time() methodTakashi Sakamoto3-7/+21
This commit implements the new abstract method. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17fw_iso_rx_multiple: implement Hinoko.FwIsoCtx.read_cycle_time() methodTakashi Sakamoto2-0/+17
This commit implements the new abstract method. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17fw_iso_rx_single: implement Hinoko.FwIsoCtx.read_cycle_time() methodTakashi Sakamoto3-7/+22
This commit implements the new abstract method. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17fw_iso_ctx: add Hinoko.FwIsoCtx.read_cycle_time() abstract methodTakashi Sakamoto7-0/+90
This commit adds the new abstract method. The read data is stored to Hinawa.CycleTime passed by applciation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17meson: add dependency to libhinawa v2.6.0 or laterTakashi Sakamoto4-2/+16
This commit adds new dependency to libhinawa v2.6.0 or later. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-07-17ci: update workflow to install libhinawaTakashi Sakamoto1-4/+50
In the following commit, new dependency on libhinawa will be added. This commit updates workflow to install libhinawa into build environment for Github Actions. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-04-24use the same short description between documentation and pkg-configTakashi Sakamoto2-2/+2
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2023-04-23update URL due to being hosted in git.kernel.orgTakashi Sakamoto2-12/+21
The hosting service is changed to git.kernel.org from github.com. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18bump release version to v0.8.0v0.8.0Takashi Sakamoto2-2/+2
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18update README to describe loss of backward compatibility at v0.8 releaseTakashi Sakamoto1-1/+20
Rename of object class brings loss of backward compatibility. This commit adds description about it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18doc: update diagramTakashi Sakamoto2-355/+11
Some GObject classes and enumerations are going to be renamed at v0.8 release. This commit updates diagram so that legends expresses them. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18fw_iso_it: rename to HinokoFwIsoItTakashi Sakamoto8-132/+131
In teminology of device driver development, the choice of word is device-oriented, thus 'rx' is for incoming data path to target device, and 'tx' is for outgoing data path from target device. Current implementation uses the words for different ways. This commit corrects the usage of words with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18fw_iso_rx_multiple: rename to HinokoFwIrMultipleTakashi Sakamoto9-175/+174
In teminology of device driver development, the choice of word is device-oriented, thus 'rx' is for incoming data path to target device, and 'tx' is for outgoing data path from target device. Current implementation uses the words for different ways. This commit corrects the usage of words with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18fw_iso_ir_single: rename to HinokoFwIsoIrSingleTakashi Sakamoto8-145/+146
In teminology of device driver development, the choice of word is device-oriented, thus 'rx' is for incoming data path to target device, and 'tx' is for outgoing data path from target device. Current implementation uses the words for different ways. This commit corrects the usage of words with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-18enums: rename mode of isochronous contextsTakashi Sakamoto6-27/+27
In teminology of device driver development, the choice of word is device-oriented, thus 'rx' is for incoming data path to target device, and 'tx' is for outgoing data path from target device. Current implementation uses the words for different ways. This commit corrects the usage of words with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-11obsolete usage of LXC container for workflow of Github ActionsTakashi Sakamoto1-37/+22
The network connection inner LXC container is unavailable since Nov 20, 2022. This commit uses docker container instead.
2022-12-01bump release version to v0.7.4v0.7.4Takashi Sakamoto2-3/+3
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-12-01fw_iso_rx_multiple: fix failure to call ioctl(2) with FW_CDEV_IOC_FLUSH_ISOTakashi Sakamoto1-1/+5
The ioctl request requires argument of struct fw_cdev_flush_iso, while current implementation call it without any arguments. This commit fixes the bug. Fixes: e6d517c08d2f ("fw_iso_ctx: add API to flush isochronous context") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-11-24bump release version to v0.7.3v0.7.3Takashi Sakamoto2-3/+3
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-11-24fw_iso_rx_single: fix wrong calculation for length of available payload dataTakashi Sakamoto1-0/+2
When the length of context header is greater than 8, the part of payload of isochronous packet is put into context header separated from context payload. The length of context header is the length of context header minus 8. In the case, the length of context payload is less than the length of payload of isochronous packet by the length of context header minus 8. Current implementation has wrong calculation for the length of context payload. When the length of context header is greater than 8, the result of calculation is always greater than actual length by 8. This commit fixes the bug. Fixes: 6887a02c07dc ("fw_iso_rx_single: add a method to retrieve packet payload for an abstract method") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-11-19fw_iso_rx_single: fulfill start sign of comment block for API documentationTakashi Sakamoto1-1/+1
Fixes: ba857a847170 ("fw_iso_rx_single: add APIs to map/unmap packet buffer") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-07-14fw_iso_ctx: fix numeric expression of CLOCK_MONOTONIC_RAWTakashi Sakamoto3-3/+3
It's 4 instead of 2 in Linux system. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-07-10doc: update URL in alsa-project namespaceTakashi Sakamoto1-1/+1
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-30bump release version up to 0.7.2v0.7.2Takashi Sakamoto2-8/+8
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-26ci: remove libudev installationTakashi Sakamoto1-1/+1
The libhinoko library has no dependency on libudev. Fixes: c8abd3751a5a ("fix workflow of Github Actions to clone requested repository") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-26cycle_timer: refine function commentTakashi Sakamoto1-4/+4
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-26enums: refine commentsTakashi Sakamoto1-3/+3
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-26enums: fix speed unitTakashi Sakamoto1-6/+6
Fixes: 74854652dce9 ("fw_scode: add the enumerators for speed on IEEE 1394 bus") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: add test script for object functionsTakashi Sakamoto3-0/+38
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: add test script for Hinoko.FwIsoResource interfaceTakashi Sakamoto2-0/+36
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: add test script for Hinoko.FwIsoCtx interfaceTakashi Sakamoto2-0/+40
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: refine helper function to test objectTakashi Sakamoto6-37/+114
When implementing GObject interface, available properties, virtual methods, and signals are not referred by attributes of object, while available methods are available. This commit expands current helper function to test object interface. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: test object type instead of its instanceTakashi Sakamoto7-17/+17
No need to instantiate object to test. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: add test script for Hinoko.CycleTimer boxed structureTakashi Sakamoto3-0/+30
The available methods of boxed structure are available by attributes of object. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: add helper function to test enumerations and flagsTakashi Sakamoto2-6/+13
This commit adds helper function for enumerations and flags. All of available enumerations and flags are available via object attributes. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-06-19tests: rename helper function to test object interfaceTakashi Sakamoto7-12/+12
It appears that some helper functions are required to test GObject interface, enumerations, and flags. This commit renames current helper function for objects. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-31fix missing usage of declaration macroTakashi Sakamoto1-0/+4
Fixes: 993deba69909 ("add entry header to aggregate headers") Fixes: 6a5b484f47e4 ("meson: add support GLib enumerations") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-26bump release version up to 0.7.1v0.7.1Takashi Sakamoto2-2/+17
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource_private: code refactoring for ioctl error generatorTakashi Sakamoto4-7/+10
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx_private: code refactoring for ioctl error generatorTakashi Sakamoto3-9/+10
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource_private: rename coded error generatorTakashi Sakamoto4-8/+8
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx_private: rename coded error generatorTakashi Sakamoto3-12/+12
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx_private: code refactoring for file error generatorTakashi Sakamoto2-3/+3
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource_auto: add local function to get label of errorTakashi Sakamoto1-8/+37
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource: add local function to get label of errorTakashi Sakamoto3-13/+45
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx: add local function to get label of errorTakashi Sakamoto3-16/+49
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource_auto: fulfill annotation for propertyTakashi Sakamoto1-1/+22
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource: fulfill annotation for vfunc and propertyTakashi Sakamoto2-0/+46
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_rx_multiple: fulfill annotation for propertyTakashi Sakamoto1-1/+6
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx: fulfill annotation for vfunc and propertyTakashi Sakamoto2-0/+83
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource: fix annotation for interfaceTakashi Sakamoto1-4/+4
Fixes: 2a8eec492132 ("fw_iso_resource: make it GObject interface") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_ctx: fix annotation for interfaceTakashi Sakamoto1-2/+2
Fixes: f2a2e7aaefc6 ("fw_iso_ctx: make it GObject Interface") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-25fw_iso_resource: add constant to immutable arrayTakashi Sakamoto4-13/+12
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fix invalid link annotation in READMETakashi Sakamoto1-1/+1
Fixes: b3704ea77b91 ("bump release version to v0.7.0") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08bump release version to v0.7.0v0.7.0Takashi Sakamoto2-2/+11
It's time. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_tx: add function comment for header of packet registrationTakashi Sakamoto1-3/+6
According to the design of Linux FireWire subsystem. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_single: add function comment for context header parameterTakashi Sakamoto2-3/+10
According to the design of Linux FireWire subsystem. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_rx_multiple: add function comment for context header parameterTakashi Sakamoto1-0/+3
According to the design of Linux FireWire subsystem. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_rx_single: add comment about the size of context header for IR contextTakashi Sakamoto1-1/+3
It's preferable for the size of context header in IR context to be greater than 4. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx: use macro for signal nameTakashi Sakamoto5-5/+5
Hinoko.FwIsoCtx::stopped signal is emitted by several classes and interfaces. The STOPPED_SIGNAL_NAME macro was added to share the name of signal but actually not used effectively. This commit uses the macro. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_private: add helper function for control of isoc packetTakashi Sakamoto1-2/+17
Linux FireWire subsystem forces userspace application to compute control field of fw_cdev_iso_packet structure before system call. This commit adds helper function for the purpose. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_private: add macro and helper function for cycle match in IR/IT ↵Takashi Sakamoto5-9/+41
context The layout of cycleMatch field in IT.contextControl and IR.contextMatch registers is defined in 1394 OHCI specification. On the other hand, Linux FireWire subsystem forces userspace application to compute the value of field before system call. This commit adds macro and helper function to operate the value. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_private: add inline function to compute timeStamp field in IR/IT ↵Takashi Sakamoto5-12/+27
descriptors The layout of timeStamp field in descriptor of IT/IR context is defined in 1394 OHCI specification. This commit adds inline functions to parse it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08cycle_timer: add helper functions to compute value of CYCLE_TIMER registerTakashi Sakamoto1-4/+27
The layout of CYCLE_TIMER register is defined in IEEE 1394 specification. This commit adds helper function for constant value. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_private: add helper function to compute data length from isoc ↵Takashi Sakamoto3-2/+10
packet header The layout of isochronous packet header is defined in IEEE 1394 specification. This commit adds helper function for constant values. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-08fw_iso_ctx_private: add macro for maximum channel and sync code define in ↵Takashi Sakamoto8-35/+44
IEEE 1394 The maximum value of channel and sy fields in isochronous packet are defined in IEEE 1394. This commit adds macro for constant values. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07update README according to allocation interfaceTakashi Sakamoto1-4/+5
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07fw_iso_resource: add interface and implementation for resource allocationTakashi Sakamoto7-157/+91
The signature for allocation API is the same in both of Hinoko.FwIsoResourceAuto and Hinoko.FwIsoResourceOnce, therefore they can be defined as interface. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07fw_iso_resource_once: code refactoring to split asynchronous allocation functionTakashi Sakamoto1-30/+40
The signature for allocation API is the same in both of Hinoko.FwIsoResourceAuto and Hinoko.FwIsoResourceOnce, therefore they can be defined as interface. This commit is a preparation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07fw_iso_resource_auto: code refactoring to split asynchronous allocation functionTakashi Sakamoto1-42/+55
The signature for allocation API is the same in both of Hinoko.FwIsoResourceAuto and Hinoko.FwIsoResourceOnce, therefore they can be defined as interface. This commit is a preparation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07meson: minor code refactoring for meson declarationsTakashi Sakamoto2-4/+2
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07all: use otherwise instead of else for documentaionTakashi Sakamoto7-24/+24
For my preference. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-07doc: update overview pageTakashi Sakamoto3-358/+1120
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_ctx: fix signal flag as actionableTakashi Sakamoto1-1/+1
Hinoko.FwIsoCtx::stopped should be emitted by GObject-derived object class which implements the interface. It's the case to add action flag for the signal. Fixes: f2a2e7aaefc6 ("fw_iso_ctx: make it GObject Interface") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06update READMETakashi Sakamoto1-0/+4
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_resource_once: rewrite public API to return gboolean according to ↵Takashi Sakamoto2-53/+69
GNOME convention In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoResourceOnce. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_resource_auto: rewrite public API to return gboolean according to ↵Takashi Sakamoto6-65/+99
GNOME convention In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoResourceAuto. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_resource: rewrite public API to return gboolean according to GNOME ↵Takashi Sakamoto3-18/+22
convention In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoResource. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_tx: rewrite public API to return gboolean according to GNOME conventionTakashi Sakamoto3-57/+61
In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoTx. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_rx_multiple: rewrite public API to return gboolean according to GNOME ↵Takashi Sakamoto3-56/+49
convention In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoRxMultiple. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_rx_single: rewrite public API to return gboolean according to GNOME ↵Takashi Sakamoto3-53/+60
convention In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoRxSingle. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_ctx: rewrite public API to return gbooleanTakashi Sakamoto7-32/+44
In GNOME convention, the throw function to report error at GError argument should return gboolean value to report the overall operation finishes successfully or not. On the other hand, it's implemented to return void in Hinoko.FwIsoCtx. This commit rewrite such public APIs with loss of backward compatibility. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_tx: fix the position of declaration for automatic variablesTakashi Sakamoto1-3/+6
Fixes: 697bb2d6bcbd ("fw_iso_ctx: code refactoring to dispatch iso interrupt events") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-06fw_iso_resource_private: fix inverted condition to close file descriptorTakashi Sakamoto1-1/+1
Fixes: 087961c0793c ("fw_iso_resource_private: add structure to maintain state") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05update READMETakashi Sakamoto1-1/+6
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx_private: code refactoring for coded errorTakashi Sakamoto4-6/+30
Some missing error checks are added. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx_private: code refactoring for error generation macro of ioctlTakashi Sakamoto4-18/+13
For convenience. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: add generation propertyTakashi Sakamoto8-24/+103
This commit adds "generation" property to object classes which implement Hinoko.FwIsoResource interface. The change of property is notified by GObject property notification mechanism. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_resource: handle event of bus resetTakashi Sakamoto4-0/+53
This commit adds handlers for event of bus reset. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_resource_private: add structure to maintain stateTakashi Sakamoto4-34/+57
It's required to have cache for state of IEEE 1394 bus so that object class which implements interface can support property for bus generation. This commit adds private structure to maintain state. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_resource: code refactoring to handle several types of eventTakashi Sakamoto4-57/+102
It's planned to support event of bus reset to detect generation. This commit is a preparation for it so that object class implements interface is allowed to handle several kind of events. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05update READMETakashi Sakamoto1-12/+45
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_resource_private: code refactoring for coded errorTakashi Sakamoto3-22/+14
For my convenience. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx_private: add utility macro to generate error for ioctlTakashi Sakamoto3-7/+10
For my convenience. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: add public API to release isochronous contextTakashi Sakamoto9-72/+69
The signature of functions to release isochronous context is the same between GObject-derived object classes implementing Hinoko.FwIsoCtx. This commit adds public API for the porpose in the interface. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: add public API to unmap shared bufferTakashi Sakamoto9-62/+65
The signature of functions to unmap shared buffer is the same between GObject-derived object classes implementing Hinoko.FwIsoCtx. This commit adds public API for the porpose in the interface. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: remove "registered-chunk-count" propertyTakashi Sakamoto3-15/+0
Now some GObject-derived object classes which implements Hinoko.FwIsoCtx owns private data. It's possible for the classes to access to member in the data, therefore "registered-chunk-count" property is no longer used. This commit removes it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: make it GObject InterfaceTakashi Sakamoto12-126/+71
At last, this commit makes Hinoko.FwIsoCtx as GObject Interface after long preparation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to move GSource create functionTakashi Sakamoto2-121/+122
This commit moves private implementation to create GSource into specific file. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: obsolete instance private data to deligate ownership to derived ↵Takashi Sakamoto10-446/+116
objects This commit is for preparation to make Hinoko.FwIsoCtx as GObject Interface. The interface can not have private data in instance level. The data should be owned by classes implementing the interface. This commit obsoletes such private data in Hinoko.FwIsoCtx so that the derived object classes own it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring for propertiesTakashi Sakamoto6-76/+97
Some properties should be implemented in derived object classes. This commit adds helper function for the properties. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring for state initializationTakashi Sakamoto6-6/+24
The state structure is initialized in inheritance object classes. This commit adds helper function to initialize it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: add class virtual function for future useTakashi Sakamoto4-0/+227
It's planned to make Hinoko.FwIsoCtx as interface. It will provide some virtual functions. This commit adds and implements virtual functions. At present, they are added to base abstraction class. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split GSource create functionTakashi Sakamoto2-20/+53
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function apart from public API to call virtual function. This commit splits current implementaion of Hinoko.FwIsoResource.create_source() into public API part and private implementation. For reasons, the private implementation is still in the same file. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split cycle timer getter functionTakashi Sakamoto3-8/+35
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function apart from public API to call virtual function. This commit splits current implementaion of Hinoko.FwIsoResource.get_cycle_timer() into public API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split flush completions functionTakashi Sakamoto3-2/+22
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function apart from public API to call virtual function. This commit splits current implementaion of Hinoko.FwIsoResource.flush_completions() into public API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to move frame read functionTakashi Sakamoto3-14/+35
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split stop functionTakashi Sakamoto3-18/+24
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.stop() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split start functionTakashi Sakamoto3-51/+78
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.start() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to move chunk queueing functionTakashi Sakamoto3-91/+96
It's convenient to put private implementation into the same file. This commit moves the function to queue chunk into such file. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split chunk registration functionTakashi Sakamoto3-66/+103
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.register_chunk() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split unmap functionTakashi Sakamoto3-10/+21
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.unmap() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split map functionTakashi Sakamoto3-39/+61
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.map() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split release functionTakashi Sakamoto3-8/+18
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.release() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to split allocate functionTakashi Sakamoto4-107/+145
It's planned to make Hinoko.FwIsoCtx as interface. It's convenient for derived object to use private helper function instead of instance method. This commit splits current implementaion of Hinoko.FwIsoCtx.allocate() into internal API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring for event handlerTakashi Sakamoto1-46/+24
This commit uses function pointer embedded to source structure so that each implementation of event handle is called directly. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to dispatch iso interrupt eventsTakashi Sakamoto5-183/+194
This commit moves the position of current implementation of event handler and changes the way to call them. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: rename argument for convenienceTakashi Sakamoto2-20/+18
The name, "gsrc", is not user friendly. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring to add cache of file descriptorTakashi Sakamoto1-9/+5
GSource generated by call of Hinoko.FwIsoCtx.create_source() accesses to private data of Hinoko.FwIsoCtx to refer to file descriptor, however it's necessarily convenient since it's planned to make the class as interface. This commit puts cache of file descriptor to private structure for the source. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_ctx: code refactoring for stopped signalTakashi Sakamoto3-11/+20
This commit improves current implementation of stopped signal. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-05fw_iso_resource: add action flag for signalsTakashi Sakamoto1-2/+2
After heavy code change, the "allocated" and "deallocated" should be emitted by GObject derived object which implements Hinoko.FwIsoResource. It's typical case to use G_SIGNAL_ACTION. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03update READMETakashi Sakamoto3-5/+8
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_priviate: split private implementatino into a fileTakashi Sakamoto6-235/+237
By maintenance POV. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: make it GObject interfaceTakashi Sakamoto12-233/+118
Hinoko.FwIsoResource is now GObject Interface instead of GObject Abstract Class. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_[auto|once]: code refactoring to initialize local file ↵Takashi Sakamoto2-1/+33
descritor for future use The ownership of file descriptor is delegated to derived objects in future. This commit is a preparation for it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: add class virtual function and implementation for future useTakashi Sakamoto4-1/+107
It's planned to make Hinoko.FwIsoResource as interface, therefore some virtual functions are provided. This commit adds and implements them as virtual functions of class. They are not called yet. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_[auto|once]: code refactoring to add private data in ↵Takashi Sakamoto2-3/+9
instance level The type definision is planned to include interface implementation. This commit is for convenient. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: code refactoring to split create_source functionTakashi Sakamoto2-24/+50
It's planned to make Hinoko.FwIsoResource as interface. It's convenient for derived object to use private helper function to create GSource apart from public API to call virtual function. This commit splits current implementaion of Hinoko.FwIsoResource.create_source() into public API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: code refactoring to split open functionTakashi Sakamoto2-16/+29
It's planned to make Hinoko.FwIsoResource as interface. It's convenient for derived object to use private helper function to open file descriptor apart from public API to call virtual function. This commit splits current implementaion of Hinoko.FwIsoResource.open() into public API part and private implementation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: code refactoring to dispatch iso_eventTakashi Sakamoto4-78/+91
The "allocated" and "deallocated" signals are used by derived object of Hinoko.FwIsoResource. This commit adds private macro to share the same name string. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: code refactoring to add cache of file descriptorTakashi Sakamoto1-6/+5
GSource generated by call of Hinoko.FwIsoResource.create_source() accesses to private data of Hinoko.FwIsoResource to refer to file descriptor, however it's necessarily convenient since it's planned to make the class as interface. This commit puts cache of file descriptor for private structure for the source. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: rename argument for convenienceTakashi Sakamoto2-17/+17
The name, "gsrc", is not user friendly. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_once: minor code refactoring to check GError argumentTakashi Sakamoto1-4/+4
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_auto: minor code refactoring to check GError argumentTakashi Sakamoto1-4/+4
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: minor code refactoring to check GError argumentTakashi Sakamoto1-2/+2
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_tx: minor code refactoring to check GError argumentTakashi Sakamoto1-4/+4
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_rx_multiple: minor code refactoring to check GError argumentTakashi Sakamoto1-4/+4
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_rx_single: minor code refactoring to check GError argumentTakashi Sakamoto1-4/+4
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_ctx: minor code refactoring to check GError argumentTakashi Sakamoto1-7/+7
This commit improves check of argument for GError. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource_auto: fix name conflict between 'allocated' property and signalTakashi Sakamoto3-12/+12
The same name between property and signal brings some trouble. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: fix invalid signal signatureTakashi Sakamoto2-3/+3
The parameter of GError should be expressed as BOXED type. Fixes: ce89c010257a ("fw_iso_resource: change signal prototype to receive instance of GError") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03split private header into two partsTakashi Sakamoto11-48/+48
It's better to split private header per each. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: add missing annotation for GError argument of signalTakashi Sakamoto2-8/+8
Without "(in)" annotation, it's handled as a pointer for "(out)" parameter. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_tx: remove unexported symbolTakashi Sakamoto1-1/+0
It's useless to export the symbol of GObject signal. Fixes: d88a13ed8bd4 ("fw_iso_rx_single: add and emit 'received' GObject signal") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_ctx: don't dispatch event recursivelyTakashi Sakamoto5-36/+24
Linux FireWire subsystem don't copy multiple event data in one call. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-05-03fw_iso_resource: don't dispatch event recursivelyTakashi Sakamoto1-21/+11
Linux FireWire subsystem don't copy multiple event data in one call. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18update README with information about backward compatibilityTakashi Sakamoto1-1/+25
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource: make abstract objectTakashi Sakamoto4-22/+6
Hinoko.FwIsoResource have common functionalities for Hinoko.FwIsoResourceOnce and Hinoko.FwIsoResourceAuto. It's worth to become abstract object. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource_once: move public API for allocation/deallocation ↵Takashi Sakamoto8-180/+171
asynchronously/synchronously This commit moves existent public API from Hinoko.FwIsoResource. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource_once: add derived object to initiate allocation/deallocation ↵Takashi Sakamoto7-0/+88
by one shot Current implementataion of Hinoko.FwIsoResource object includes functions one-shot allocation/deallocation as well as basic functions for derived objects. It's inconvenient in the derived object side. This commit adds Hinoko.FwIsoResourceOnce object for future use to move the one-shot functions. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource_auto: change public API to have timeout argumentTakashi Sakamoto4-10/+20
Current implementation of Hinoko.FwIsoResourceAuto has hard-coded 100 milli second for timeout to wait for event. This is slightly inconvenient to applications since it's not flexible at all. This commit changes public API to have an argument for the timeout parameter. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource: internal code refactoring for signal event waiterTakashi Sakamoto5-154/+65
This commit eliminates duplicated code for event waiter. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource: internal code refactoring to dispatch eventTakashi Sakamoto3-22/+30
The parameter of event for allocation/deallocation can be parsed to variables of basic type such like unsigned integer. This commit parses it before calling implementation of derived object. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource: fix GError override warning at error caseTakashi Sakamoto2-10/+9
Unless local variable is not NULL, g_set_error() generates warning. This commit fixes the bug. Fixes: ba2ccbe77cfa ("fw_iso_resource: add GObject signal for allocation and deallocation") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_ctx: fix constant GError annotationTakashi Sakamoto2-2/+2
Fixes: 31cb439f7b7a ("fw_iso_ctx: emit GObject signal when isochronous context is stopped") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-18fw_iso_resource_auto: fix name of inclusion guardTakashi Sakamoto1-2/+2
Fixes: 4905daafa2fa ("fw_iso_resource_auto: add GObject object for maintainer of isochronous resource") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17update READMETakashi Sakamoto1-10/+10
In most subcommands of meson, '-C' option is available to switch current working directory. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_resource_auto: link optimization to gi-docgenTakashi Sakamoto1-33/+30
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_resource_auto: rename exception with errorTakashi Sakamoto2-31/+31
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_resource: link optimization to gi-docgenTakashi Sakamoto2-59/+47
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_resource: replace exception with errorTakashi Sakamoto3-52/+52
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_tx: link optimization to gi-docgenTakashi Sakamoto2-50/+42
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_tx: rename exception with errorTakashi Sakamoto3-23/+23
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_rx_multiple: link optimization to gi-docgenTakashi Sakamoto2-50/+42
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_rx_multiple: replace exception with errorTakashi Sakamoto3-32/+32
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_rx_single: link optimization to gi-docgenTakashi Sakamoto2-55/+45
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_rx_single: rename exception with errorTakashi Sakamoto3-26/+26
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_ctx: link optimization to gi-docgenTakashi Sakamoto2-61/+53
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17fw_iso_ctx: rename exception with errorTakashi Sakamoto3-82/+82
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2022-04-17cycle_timer: link optimization to gi-docgenTakashi Sakamoto1-19/+16
The gi-docgen supports enhancement of inter-document link. This commit is optimization to it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>