Skip to content

Add methods to create proxy on arbitrary connections#91

Open
mardy wants to merge 1 commit into
Pelagicore:masterfrom
mardy:proxy-on-any-connection
Open

Add methods to create proxy on arbitrary connections#91
mardy wants to merge 1 commit into
Pelagicore:masterfrom
mardy:proxy-on-any-connection

Conversation

@mardy

@mardy mardy commented Nov 1, 2019

Copy link
Copy Markdown
Contributor

This allows, for example, the creation of a peer to peer D-Bus connection over a socket.

Comment on lines +17 to +38
static void create(const Glib::RefPtr<Gio::DBus::Connection> &connection,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Gio::SlotAsyncReady &slot,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});
static void createForBus(Gio::DBus::BusType busType,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Gio::SlotAsyncReady &slot,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});

static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result);
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createFinish(const Glib::RefPtr<Gio::AsyncResult> &result);
static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> create_sync(
const Glib::RefPtr<Gio::DBus::Connection> &connection,
Gio::DBus::ProxyFlags proxyFlags,
const std::string &name,
const std::string &objectPath,
const Glib::RefPtr<Gio::Cancellable> &cancellable = {});

static Glib::RefPtr<{{ interface.cpp_class_name_proxy }}> createForBusFinish (const Glib::RefPtr<Gio::AsyncResult> &result);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe reorder so that "create()" and "createForBus()" methods are kept together (and in same order as in proxy.cpp.tmpl)?

@martin-ejdestig

Copy link
Copy Markdown
Contributor

Looks good to me except for minor nit.

@kursatkobya

Copy link
Copy Markdown
Contributor

Can you add a tag to commit message before merging please. looks good to me.

@kursatkobya kursatkobya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add commit message tag.

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.

3 participants