Next: The Grand Finale: Bridging Code and Logic, Previous: Adding Substance: Inputs and Outputs, Up: The starter-core Library: Building Your Own Ecosystem [Contents]
Here is the heartbeat of a living service. STInput and
STOutput are ordinary GObjects with real properties—when
val changes, you do not get a custom val-changed signal;
you get the familiar GObject notify / notify::val, delivered
on the object’s affinity main context so threads stay sane. Inside your
service you connect those notifies (often just notify::val on an
actuator) and STServer forwards the story over D-Bus. The Core, on
the other side of the wire, does not cling to remote notify::
hooks; after the handshake it listens to STClient signals such as
input-changed and output-changed. Property details and the
client signal catalog wait for you at api-io-notify and
api-st-client-signals.