From: Johan Hedberg <johan.hedberg@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Add send_method_call to g_dbus
Date: Tue, 27 Apr 2010 14:14:41 +0300 [thread overview]
Message-ID: <20100427111441.GA7453@jh-x301> (raw)
In-Reply-To: <1272335616.22838.121.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
Hi,
On Tue, Apr 27, 2010, Marcel Holtmann wrote:
> > +gboolean g_dbus_send_method_call(DBusConnection *connection, const char *dest,
> > + const char *path, const char *interface,
> > + const char *method, int type, ...);
> > +gboolean g_dbus_send_method_call_with_reply(DBusConnection *connection,
> > + const char *dest, const char *path,
> > + const char *interface, const char *method,
> > + DBusPendingCallNotifyFunction cb,
> > + void *user_data, DBusFreeFunction free_func,
> > + int timeout, int type, ...);
>
> Is there any real reason to export send_method_call and
> create_method_call? What are these good for and what are your expected
> users of these?
>
> I think that a g_dbus_method_call which is always async and take a
> pending call notifier is just enough.
In many cases you also want/need the ability to cancel the method call
before a reply has been received. If the DBusPendingCall object isn't
exposed to the caller then it seems canceling wouldn't be possible with
this API.
Johan
next prev parent reply other threads:[~2010-04-27 11:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 6:51 [PATCH] Add send_method_call to g_dbus Gustavo F. Padovan
2010-04-20 9:32 ` Kalle Valo
2010-04-20 9:41 ` Zhenhua Zhang
2010-04-20 16:20 ` Denis Kenzior
2010-04-21 6:51 ` Kalle Valo
2010-04-27 2:33 ` Marcel Holtmann
2010-04-27 11:14 ` Johan Hedberg [this message]
2010-04-30 23:40 ` Gustavo F. Padovan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100427111441.GA7453@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox