From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] [PATCH]
Date: Tue, 20 Dec 2005 19:59:17 +0100 [thread overview]
Message-ID: <1135105157.3627.13.camel@localhost.localdomain> (raw)
In-Reply-To: <pan.2005.12.20.13.54.45.442703@esaurito.net>
Hi Filippo,
> dbus 0.60 has removed the DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT flag for
> dbus_bus_request_name and now that is the default behaviour, the following
> patch should work:
>
> --- dbus.c (revision 116)
> +++ dbus.c (working copy)
> @@ -874,7 +874,7 @@
> dbus_connection_set_exit_on_disconnect(connection, FALSE);
>
> dbus_bus_request_name(connection, BASE_INTERFACE,
> - DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT, &error);
> + 0, &error);
>
> if (dbus_error_is_set(&error)) {
> syslog(LOG_ERR, "Can't get system message bus name: %s",
>
>
> unfortunately I can't find a DBUS_VERSION #define to be backward
> compatible with dbus < 0.60
when D-Bus 1.0 has been released, I am going to drop support for older
versions anyway. However what you need to add is something like:
#ifndef DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT
#define DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT 0x00
#endif
This will work perfect instead of using your patch and is still backward
compatible.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-12-20 18:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-20 13:54 [Bluez-devel] [PATCH] Filippo Giunchedi
2005-12-20 18:59 ` Marcel Holtmann [this message]
2005-12-21 13:51 ` [Bluez-devel] [PATCH] Filippo Giunchedi
2005-12-21 14:11 ` Marcel Holtmann
2005-12-21 15:28 ` [Bluez-devel] " Filippo Giunchedi
-- strict thread matches above, loose matches on Subject: below --
2006-11-07 16:20 [Bluez-devel] [patch] Frédéric DALLEAU
2006-11-08 3:41 ` Brad Midgley
2006-11-08 10:05 ` Frédéric DALLEAU
2006-11-10 13:18 ` Marcel Hilzinger
2006-11-10 13:34 ` Marcel Hilzinger
2006-11-10 13:49 ` Frédéric DALLEAU
2006-11-10 14:01 ` Marcel Hilzinger
2006-11-14 3:56 ` Brad Midgley
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=1135105157.3627.13.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).