Commit 1f32085
committed
mctpd: Update interface vtables when we change to BusOwner role
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
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>1 parent 07c7a5d commit 1f32085
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
4023 | 4024 | | |
4024 | 4025 | | |
4025 | 4026 | | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
4026 | 4048 | | |
4027 | 4049 | | |
4028 | 4050 | | |
| |||
4063 | 4085 | | |
4064 | 4086 | | |
4065 | 4087 | | |
| 4088 | + | |
| 4089 | + | |
4066 | 4090 | | |
4067 | 4091 | | |
| 4092 | + | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
4068 | 4097 | | |
4069 | 4098 | | |
4070 | 4099 | | |
| |||
4494 | 4523 | | |
4495 | 4524 | | |
4496 | 4525 | | |
| 4526 | + | |
4497 | 4527 | | |
4498 | 4528 | | |
4499 | 4529 | | |
| |||
0 commit comments