Skip to content

Allow custom callbacks in proxy generator - #540

Merged
sangelovic merged 4 commits into
Kistler-Group:masterfrom
mbe9:feat/gen_async_callbacks
Jun 8, 2026
Merged

sangelovic merged 4 commits into
Kistler-Group:masterfrom
mbe9:feat/gen_async_callbacks

Conversation

@mbe9

@mbe9 mbe9 commented May 20, 2026

Copy link
Copy Markdown
Contributor

Adds new value direct-callback for annotation org.freedesktop.DBus.Method.Async.ClientImpl, which generates proxy method interfaces that accept custom callback as an argument.

This (in my opinion) is infinitely more convenient to use than standard callback-generated interfaces that require overriding virtual functions in a derived proxy class to implement a callback, which implies that we need to create a separate derived class for each separate access scenario of the interface.

This change also adds empty default implementation to the signal handlers, removing the need to implement them, in case you don't use them.

@sangelovic
sangelovic merged commit b5c3527 into Kistler-Group:master Jun 8, 2026
10 checks passed
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.

2 participants