From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#43252: 27.1; DBus properties lack type hints or overrides Date: Mon, 07 Sep 2020 09:48:27 +0200 Message-ID: <87imcqdo38.fsf@gmx.de> References: <87v9gqquct.fsf@ccss.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4239"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43252@debbugs.gnu.org To: Hugh Daschbach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 07 09:49:37 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFBuD-00010f-38 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 09:49:37 +0200 Original-Received: from localhost ([::1]:42386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFBuB-0003IY-VB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 03:49:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFBte-0003IK-3f for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 03:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFBtd-0004ac-QR for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 03:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kFBtd-0003qC-Nw for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 03:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Sep 2020 07:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43252 X-GNU-PR-Package: emacs Original-Received: via spool by 43252-submit@debbugs.gnu.org id=B43252.159946491914731 (code B ref 43252); Mon, 07 Sep 2020 07:49:01 +0000 Original-Received: (at 43252) by debbugs.gnu.org; 7 Sep 2020 07:48:39 +0000 Original-Received: from localhost ([127.0.0.1]:47806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFBtH-0003pX-En for submit@debbugs.gnu.org; Mon, 07 Sep 2020 03:48:39 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:43875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFBtE-0003pJ-UY for 43252@debbugs.gnu.org; Mon, 07 Sep 2020 03:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599464909; bh=HtgWfcc/luNl1+FJfYsvpcdsdhnbJo+jiY3lHuXPpV0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lbptgYuutSHey02O2GD1wi+tanQIYH7ZfOSjZkKInSMFk0iRpuOW7wSBicxYc/R+/ 2xfTdGc/6CGAUw95DbPkuh4Slu/lE8II4wKEcxJMGovrAKF6k+JTWP/UDk3UZWeLvN seeQVGh45s/w0jcGbzQG/seuVFi1t1e87BTSfLOo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.238.230]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MOA3P-1jv4ZZ3me1-00OaOR; Mon, 07 Sep 2020 09:48:29 +0200 In-Reply-To: <87v9gqquct.fsf@ccss.com> (Hugh Daschbach's message of "Sun, 06 Sep 2020 17:54:42 -0700") X-Provags-ID: V03:K1:zIs5pQ1hQsUwitc1NxUxmR+Dm/0vb/PDKGchF1rjKTB30yTb7tb TT8MbxpjHL/uwrTaC0sDavjngFRylmyoCpE5wZdYC/PpJ3/shPrj5AmF24t9qDUk5rKC3g2 ueMx5vE5rykHHfLSFjgCE+bh+eX0NOnzxRBtJP+pS0/gOjD3xqGpzMGhxPi3i4dFFvDTsCD EaUJ3TKw1zxnkrszQ3eSA== X-UI-Out-Filterresults: notjunk:1;V03:K0:kFVltS1Wbvs=:j1p+gtUMRVw10jHTwV0Qne NzuBd+jrFc24/e10r5X5ag7YrFqAUl98lQgqsCqdSHctvr2zqSdOEDOTbGOHhZr8ZdMyYj1gE 02l2F86h5J5OZnRsVwLsgwgxtewmI4IhtCzjbyW1WEMYfInsC3SfS+DQh1sZN4lpkIY6Hpal/ 8UHFpQalVX+PV1llH067r6VxQPm9EYDk3zZrTkIpJQurvgekuHCOv0ac5NSQG/3VJNvMFhji+ e8qNGpTkZO7a+p0CJBtsLSc7MvsFJBCV/aQ1PN8KFEVcNJqfnRngrk4yCPJs8/2ItxElJEWik Aq0hn2V0AOMBHHhyLAAlbwgbYovtbMSy5oIOfjLHx2CiWGs/95ZVGRBFxa2UtZ/snwAYrg6LH x13y14mqdMpBC/G9Fq46ZBYuqAV1W22PypczTFSnCmzsWFVBLRnzGXRLWOdsvbkG5twRjFxPq dQu/py5zJo2SWRBJmiEztstaQm2cWDbeb+mm/UpIcPQFZmv5jpIfSK64AVPScwGi87GIIEgmz aflaIK3RSkesdvzNIZwJUhVneXitzIvFgiXNEpgCI7sG7OVBAGC7A/+zHyLVE8a7d9YxH90qs E0n87VIPx2bTaklVsPJxz4mgE8+xHvDgWKn/6RfBwKTFRNceZUW9bRg+JxmS8xAEZFdw+yNga 2ezSkT58OnSV5aXj2ESowigNix/LYe5i9AxWHvDVjF3AV6FhSEAYGk4TjvnlUTyUSqRjIKRw9 LIqKlSqUI5rohRqqbEsidOSXD1msNtT7ftNl46Po8y+jIH6b7AT4D7eBYfbIoc/UvqtPAS8l X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187413 Archived-At: Hugh Daschbach writes: Hi Hugh, > In order to implement a service exposing interface > "org.bluez.GattService1", I need to export the properties defined for > that interface. (See, > https://kernel.googlesource.com/pub/scm/bluetooth/bluez/+/refs/tags/5.55/doc/gatt-api.txt) > > There are two properties that require an object path: "Device", and > "Includes". Since there is no type information associated with the > registered property, introspection supplies its best guess. If the > value is a string it is described as a :string, not an :object-path > > There doesn't seem to be any mechanism to register the property and have > introspection describe it as as an :object-path. > > Am I missing something? Is this out of scope? Is there anyway to > specify simple types for parameter values? Confirmed. In `dbus-registered-objects-table', properties are stored w/o signature. An object path is stored as string, and dbus-get-property returns a string. Introspection data could be used if exists (like in your case). But they are optional, so one cannot trust on their existence. Maybe we could say that, in absence of introspection data, ofD.Properties.Get and ofD.Properties.GetAll shall return a default type, like string in case of object paths? Then it would be the responsibility of the user to provide proper introspection data if needed. > Thanks, > Hugh Best regards, Michael.