HinawaFwUnit

HinawaFwUnit — An event listener for FireWire unit

Functions

Properties

Signals

Object Hierarchy

    GObject
    ╰── HinawaFwUnit
        ╰── HinawaSndUnit

Description

A HinawaFwUnit is an event listener for a certain FireWire unit. This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2) with subsystem specific request commands.

Functions

hinawa_fw_unit_open ()

void
hinawa_fw_unit_open (HinawaFwUnit *self,
                     gchar *path,
                     GError **exception);

Parameters

self

A HinawaFwUnit

 

path

A path to Linux FireWire character device

 

exception

A GError

 

hinawa_fw_unit_get_config_rom ()

const guint32 *
hinawa_fw_unit_get_config_rom (HinawaFwUnit *self,
                               guint *quads);

Parameters

self

A HinawaFwUnit

 

quads

the number of quadlet consists of the config rom.

[out][optional]

Returns

config rom image.

[element-type guint32][array length=quads][transfer none]


hinawa_fw_unit_listen ()

void
hinawa_fw_unit_listen (HinawaFwUnit *self,
                       GError **exception);

Start to listen to any events from the unit.

Parameters

self

A HinawaFwUnit

 

exception

A GError

 

hinawa_fw_unit_unlisten ()

void
hinawa_fw_unit_unlisten (HinawaFwUnit *self);

Stop to listen to any events from the unit.

Parameters

self

A HinawaFwUnit

 

Types and Values

Property Details

The “bus-manager-node-id” property

  “bus-manager-node-id”      gulong

Node-ID for bus manager on the bus at this generation.

Flags: Read


The “generation” property

  “generation”               gulong

current level of generation on this bus.

Flags: Read


The “ir-manager-node-id” property

  “ir-manager-node-id”       gulong

Node-ID for isochronous resource manager on the bus at this generation.

Flags: Read


The “listening” property

  “listening”                gboolean

Whether this device is under listening.

Flags: Read

Default value: FALSE


The “local-node-id” property

  “local-node-id”            gulong

Node-ID for a unit which this unit use to communicate to the other units on the bus at this generation.

Flags: Read


The “node-id” property

  “node-id”                  gulong

Node-ID of this unit at this generation.

Flags: Read


The “root-node-id” property

  “root-node-id”             gulong

Node-ID for root of bus topology at this generation.

Flags: Read

Signal Details

The “bus-update” signal

void
user_function (HinawaFwUnit *self,
               gpointer      user_data)

When IEEE 1394 bus is updated, the ::bus-update signal is generated. Handlers can read current generation in the bus via 'generation' property.

Parameters

self

A HinawaFwUnit

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last


The “disconnected” signal

void
user_function (HinawaFwUnit *self,
               gpointer      user_data)

When phicical FireWire devices are disconnected from IEEE 1394 bus, the HinawaFwUnit becomes unlostening and emits this signal.

Parameters

self

A HinawaFwUnit

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last