Skip to content

Add Connect* functions#185

Merged
jsouthworth merged 4 commits into
godbus:masterfrom
amenzhinsky:add-connect-methods
Dec 4, 2019
Merged

Add Connect* functions#185
jsouthworth merged 4 commits into
godbus:masterfrom
amenzhinsky:add-connect-methods

Conversation

@amenzhinsky
Copy link
Copy Markdown

Hi there.

This partially solves problems described in #179 giving a shortcuts to establish connection with the system/session bus without calling Auth and Hello explicitly.

There's still number of SystemBus and SessionBus calls in examples and tests we need to decide connecting which way will be recommended to users.

P.S. I'd still recommend to get rid of the conception of shared/private connections.

@jsouthworth
Copy link
Copy Markdown
Member

I like the new API here, it makes things generally easier. I'd rather not break compatibility with existing clients again. Leaving the shared vs. private connection doesn't hurt anything. If you wish, you can add documentation to the old bus access methods to say they are deprecated in favor of the new Connect functions to make it clear the new functions are preferred for new clients.

@jsouthworth
Copy link
Copy Markdown
Member

To address another comment in your description; I will support having these new functions be the recommended mechanism for new clients and updating the examples accordingly.

@amenzhinsky
Copy link
Copy Markdown
Author

@jsouthworth updated tests and examples, please have a look

@jsouthworth
Copy link
Copy Markdown
Member

Looks great! Thanks for following through on this.

@jsouthworth jsouthworth merged commit a8b3a8e into godbus:master Dec 4, 2019
@amenzhinsky amenzhinsky deleted the add-connect-methods branch January 7, 2022 10:24
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