get_parent_with_subsystem


Description:

public Device? get_parent_with_subsystem (string subsystem, string? devtype)

Walks up the chain of parents of this and returns the first device encountered where subsystem and devtype matches, if any.

Parameters:

this

A Device.

subsystem

The subsystem of the parent to get.

devtype

The devtype of the parent to get or null.

Returns:

A Device or null if this has no parent with subsystem and devtype. Free with unref.




2022 vala-language.org