From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hugh Daschbach Newsgroups: gmane.emacs.bugs Subject: bug#43252: 27.1; DBus properties lack type hints or overrides Date: Mon, 07 Sep 2020 10:35:27 -0700 Message-ID: <87sgbtqylc.fsf@ccss.com> References: <87v9gqquct.fsf@ccss.com> <87imcqdo38.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33676"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.5; emacs 27.1 Cc: 43252@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 07 19:36:23 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 1kFL42-0008dz-9V for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 19:36:22 +0200 Original-Received: from localhost ([::1]:39338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFL40-00024b-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 13:36:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFL3n-00024Q-Bo for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 13:36:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFL3i-0007CR-Fp for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 13:36:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kFL3i-0000e2-By for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 13:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hugh Daschbach Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Sep 2020 17:36:02 +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.15995001412449 (code B ref 43252); Mon, 07 Sep 2020 17:36:02 +0000 Original-Received: (at 43252) by debbugs.gnu.org; 7 Sep 2020 17:35:41 +0000 Original-Received: from localhost ([127.0.0.1]:50722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFL3N-0000dR-L3 for submit@debbugs.gnu.org; Mon, 07 Sep 2020 13:35:41 -0400 Original-Received: from mail1.ccss.com ([159.203.255.73]:53540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFL3M-0000dD-7f for 43252@debbugs.gnu.org; Mon, 07 Sep 2020 13:35:40 -0400 Original-Received: by mail1.ccss.com (Postfix, from userid 114) id 7DF51BF879; Mon, 7 Sep 2020 10:35:34 -0700 (PDT) Original-Received: from ccss.com (unknown [192.168.76.11]) by mail1.ccss.com (Postfix) with ESMTP id 20941BF486; Mon, 7 Sep 2020 10:35:34 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by ccss.com (Postfix) with ESMTP id E76411760655; Mon, 7 Sep 2020 10:35:33 -0700 (PDT) Original-Received: from ccss.com ([127.0.0.1]) by localhost (ccss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OQyofxijN4Vy; Mon, 7 Sep 2020 10:35:28 -0700 (PDT) Original-Received: from klaatu (klaatu.lan [192.168.42.3]) (Authenticated sender: hugh) by ccss.com (Postfix) with ESMTPSA id 26BC31760578; Mon, 7 Sep 2020 10:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ccss.com; s=mail; t=1599500128; bh=H4ysLufYcTCxtoIuMhSoF9tJgJIT8hPJnloiRNItSwQ=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=Z1C5gO+QVSRj8caUvhbYgUW+TuB46PJJ2LyxcDrUiB1MYj3eO4MJ/GgqgwtU7ZUH/ QNo2eExGY0Va2Nl4Ssd6rGW1T2tsBMhpXWnLAE5lz5+8TSv1AzownZRIvPmP0NFGdZ ohn+mim9u4qZ0FCaRga3yDcxK1H3bQo9DD2S3iyUEHojRrdRKX6eS0H6OahctqA/iR 5bTk9ETjRFnyS3aRY9cmOhSxWaN1bpgHWo/sI3MxVV3rQ1fTfu2TGpfBycjhoBxIcy RgZfb4x0uGcjfdMzw/yB0K0mV0OgOkpzPCDB+BTi0QgGL2lE4zr8H6BebLg7bTwpE7 QSXz41q0Ps8qw== In-reply-to: <87imcqdo38.fsf@gmx.de> 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:187463 Archived-At: Michael Albinus writes: > Hugh Daschbach writes: > > Hi Hugh, > >> There doesn't seem to be any mechanism to register the property >> and have >> introspection describe it as as an :object-path. >> > > 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. > I had considered an optional or keyword argument to dbus-register-property, but I like introspection even more. Then the application simply registers ofD.Introspectable.Introspect for each of its objects? Introspect returns XML. The SEXP that dbus-introspect-xml returns is easier to work with. So do you memoize the returned value? There may not be enough overhead to be concerned. I'm just trying to imagine what overhead would be introduced. I'm looking at emulating a Bluetooth keyboard. So I'm anticipating bursty property updates on the order of tens per second. User initiated, rather than continuous background activity. But I don't want to bog the system down. An introspection per property update probably isn't much to worry about. Sounds good to me. Cheer, Hugh