From: Adam Moore <adam.moore@savantsystems.com>
To: "Othman, Ossama" <ossama.othman@intel.com>,
Adam Moore <adam.moore@savantsystems.com>
Cc: Nathaniel McCallum <npmccallum@redhat.com>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: GATT service DBus interface violates DBus spec
Date: Fri, 31 Jul 2015 18:00:24 +0000 [thread overview]
Message-ID: <D1E10436.AD77%adam.moore@savant.com> (raw)
In-Reply-To: <CAPyD+=BTGLzEKanLSS7kV8bz7mr7BL5ed0GHuXEKxCJYuTpPVg@mail.gmail.com>
Ossama, thanks for sharing - I didn¹t have the heart to go down that path
:) Nice to have that solution available too.
Just a thought - since the Characteristic objects must provide their
service path via DBus Property, forcing their paths to be children of the
service path may be redundant, unless some logic is planned to be based on
the structure of the OM tree in the future.
On 7/31/15, 10:47 AM, "Othman, Ossama" <ossama.othman@intel.com> wrote:
>On Fri, Jul 31, 2015 at 10:30 AM, Adam Moore
><adam.moore@savantsystems.com> wrote:
>> I ran into this as well when trying to build a an external service with
>> GLibžs GDBusObjectManagerServer. As I was highly motivated not to
>>rewrite
>> what I had, I have a little patch that relaxes the unwritten
>>expectation,
>> but it comes at the expense of being unable to enforce that
>> characteristics reside under the service object. (I think the proxy
>> callback orderings are not guaranteed) However, it does allow the
>>service
>> and characteristics to reside anywhere in the ObjectManager hierarchy.
>>
>> Ižll pass it along in case it helps accelerate a real fix, and perhaps
>>it
>> can unblock someone in the meantime.
>
>I ran into a similar problem with GLib, and ended up reluctantly
>replacing my use of GDBusObjectManagerServer with a hand-coded
>implementation (except for the signals) of the ObjectManager interface
>that was exported on the same object path as the
>org.bluez.GattService1 skeleton via
>g_dbus_interface_skeleton_export():
>https://git.iotivity.org/cgit/iotivity/tree/resource/csdk/connectivity/src
>/bt_le_adapter/linux/service.c#n213
>
>-Ossama
Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any.
next prev parent reply other threads:[~2015-07-31 18:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 15:37 GATT service DBus interface violates DBus spec Nathaniel McCallum
2015-07-31 17:18 ` Nathaniel McCallum
2015-07-31 17:30 ` Adam Moore
2015-07-31 17:47 ` Othman, Ossama
2015-07-31 18:00 ` Adam Moore [this message]
2015-07-31 19:45 ` Othman, Ossama
2015-07-31 19:50 ` Adam Moore
2015-08-02 8:57 ` Luiz Augusto von Dentz
2015-08-10 22:55 ` Adam Moore
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=D1E10436.AD77%adam.moore@savant.com \
--to=adam.moore@savantsystems.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=npmccallum@redhat.com \
--cc=ossama.othman@intel.com \
/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).