]> git.ipfire.org Git - thirdparty/plymouth.git/commit
trigger: Add the ability to trigger data with an associated instance
authorRay Strode <rstrode@redhat.com>
Wed, 16 Nov 2022 18:57:56 +0000 (13:57 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 14:22:06 +0000 (09:22 -0500)
commitdacf2dd9f33b2b357977ba5fe6ba8c2979e5b330
treed56903b549251ea33f47d87777ef234e64490c8e
parent123d07afd3a938e7a58d721593579a4f09940d83
trigger: Add the ability to trigger data with an associated instance

Right now triggers can only fire off handlers that have one piece
of data associated with them, but sometimes it's useful to have
an object associated with the data too.

This commit adds new api for adding "instance handlers" that have
an additional parameter and a new method `ply_trigger_set_instance`
that allows an object to be associated with the trigger and get
used for the additional parameter of the instance handlers.
src/libply/ply-trigger.c
src/libply/ply-trigger.h