Commit 297d698
Use "named" parameters for subscribe_to_signal
The signal_subscribe callback signature is hard to understand and easy
to get subtly wrong, with its four unnamed str arguments.
In subscribe_to_signal introduce a new DBusSignalRef struct and put all
received parameters into this struct, to provide callback users with
"named" arguments which are easier to understand and play well with e.g.
editor auto-completion.1 parent 0d133f6 commit 297d698
2 files changed
+37
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
190 | 214 | | |
191 | 215 | | |
192 | 216 | | |
| |||
515 | 539 | | |
516 | 540 | | |
517 | 541 | | |
518 | | - | |
519 | | - | |
520 | | - | |
| 542 | + | |
521 | 543 | | |
522 | 544 | | |
523 | 545 | | |
| |||
535 | 557 | | |
536 | 558 | | |
537 | 559 | | |
538 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
539 | 570 | | |
540 | 571 | | |
541 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments