Skip to content

Conversation

@jk-ozlabs
Copy link
Member

@jk-ozlabs jk-ozlabs commented Feb 12, 2026

Currently, setting an interface's Role property only sets the link->role.

However, we also want to expose the BusOwner1 interface when changing from Unknown to BusOwner, so register the bus_link_owner_vtable on the interface object when this happens.

dbus does not like the vtables changing during a call, so we defer this to the main loop context.

Fixes: #130

Currently, setting an interface's Role property only sets the
link->role.

However, we also want to expose the BusOwner1 interface when changing
from Unknown to BusOwner, so register the bus_link_owner_vtable on the
interface object when this happens.

dbus does not like the vtables changing during a call, so we defer this
to the main loop context.

Fixes: CodeConstruct#130
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting role from Unknown to BusOwner does not create D-Bus interfaces

1 participant