Age | Commit message (Collapse) | Author | Files | Lines |
|
The word, context, is sometimes written with the word, contest.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
It's time to release the new version.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
It's time to release new version.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
For users' readability.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
It's time to release the new version.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
No dot following to numeric version.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The upstream of libhinoko moves to kernel.org.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
It's time to release the new version.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Hinoko.CycleTimer is not used anymore. Let us delete it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
This commit implements the new abstract method.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit implements the new abstract method.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit implements the new abstract method.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
This commit adds new dependency to libhinawa v2.6.0 or later.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The hosting service is changed to git.kernel.org from github.com.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Rename of object class brings loss of backward compatibility. This commit
adds description about it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
The network connection inner LXC container is unavailable since Nov 20,
2022.
This commit uses docker container instead.
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Fixes: ba857a847170 ("fw_iso_rx_single: add APIs to map/unmap packet buffer")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
It's 4 instead of 2 in Linux system.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: 74854652dce9 ("fw_scode: add the enumerators for speed on IEEE 1394 bus")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
No need to instantiate object to test.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The available methods of boxed structure are available by attributes of
object.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
Fixes: 993deba69909 ("add entry header to aggregate headers")
Fixes: 6a5b484f47e4 ("meson: add support GLib enumerations")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: 2a8eec492132 ("fw_iso_resource: make it GObject interface")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: f2a2e7aaefc6 ("fw_iso_ctx: make it GObject Interface")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: b3704ea77b91 ("bump release version to v0.7.0")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
It's time.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
According to the design of Linux FireWire subsystem.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
According to the design of Linux FireWire subsystem.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
According to the design of Linux FireWire subsystem.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
For my preference.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Fixes: 697bb2d6bcbd ("fw_iso_ctx: code refactoring to dispatch iso interrupt events")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: 087961c0793c ("fw_iso_resource_private: add structure to maintain state")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Some missing error checks are added.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
For convenience.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
This commit adds handlers for event of bus reset.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
For my convenience.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
For my convenience.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
At last, this commit makes Hinoko.FwIsoCtx as GObject Interface after
long preparation.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit moves private implementation to create GSource into specific
file.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
The name, "gsrc", is not user friendly.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
This commit improves current implementation of stopped signal.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
By maintenance POV.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Hinoko.FwIsoResource is now GObject Interface instead of GObject Abstract
Class.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
The name, "gsrc", is not user friendly.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
This commit improves check of argument for GError.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The same name between property and signal brings some trouble.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
It's better to split private header per each.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Without "(in)" annotation, it's handled as a pointer for "(out)" parameter.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
Linux FireWire subsystem don't copy multiple event data in one call.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Linux FireWire subsystem don't copy multiple event data in one call.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
asynchronously/synchronously
This commit moves existent public API from Hinoko.FwIsoResource.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
This commit eliminates duplicated code for event waiter.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
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>
|
|
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>
|
|
Fixes: 31cb439f7b7a ("fw_iso_ctx: emit GObject signal when isochronous context is stopped")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Fixes: 4905daafa2fa ("fw_iso_resource_auto: add GObject object for maintainer of isochronous resource")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
In most subcommands of meson, '-C' option is available to switch current
working directory.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|
|
The gi-docgen supports enhancement of inter-document link. This commit is
optimization to it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
|