Commit 4df64d5
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 6082872 commit 4df64d5
2 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
4207 | 4208 | | |
4208 | 4209 | | |
4209 | 4210 | | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
4210 | 4232 | | |
4211 | 4233 | | |
4212 | 4234 | | |
| |||
4247 | 4269 | | |
4248 | 4270 | | |
4249 | 4271 | | |
| 4272 | + | |
| 4273 | + | |
4250 | 4274 | | |
4251 | 4275 | | |
| 4276 | + | |
| 4277 | + | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
4252 | 4281 | | |
4253 | 4282 | | |
4254 | 4283 | | |
| |||
4683 | 4712 | | |
4684 | 4713 | | |
4685 | 4714 | | |
| 4715 | + | |
4686 | 4716 | | |
4687 | 4717 | | |
4688 | 4718 | | |
| |||
0 commit comments