From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rahguzar Newsgroups: gmane.emacs.help Subject: Re: dbus-register-method and introspection Date: Sun, 21 May 2023 18:41:15 +0200 Message-ID: <871qj9eick.fsf@zohomail.eu> References: <87mt1xuchq.fsf@math.uu.se> <87bkidofys.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24864"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.3; emacs 29.0.91 Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 23:31:17 2023 Return-path: Envelope-to: geh-help-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 1q1D7d-0006KH-7j for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 23:31:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1D75-0004tA-0g; Mon, 22 May 2023 17:30:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0mMS-0003gb-6b for help-gnu-emacs@gnu.org; Sun, 21 May 2023 12:56:48 -0400 Original-Received: from sender11-pp-o91.zoho.eu ([31.186.226.249]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0mLx-0005p7-8u for help-gnu-emacs@gnu.org; Sun, 21 May 2023 12:56:47 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1684688030; cv=none; d=zohomail.eu; s=zohoarc; b=R4qxVlUM7VogsTHZtsC32neYUW/SCqce0NvLkTjmy09pQyMH6lRop5+Z15Rx7qFCEroNGbVnIJt0leLIUEp26N+iMsWYA5o83WlIegWNQX8LHNxmII47ERnEmuCKxvVlYZAajNu0qP3RHJQEk9HiTUWsnf645xlqKZQUE0yBY+8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1684688030; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Mzgp4/ZKpQJCPktsAuNiTGpejAOk+UQ6hrdbwZc7/qo=; b=h4gWu+LWtG6LYgt8NOY9f+7zLefkiRYFL3Wrt55Yd+LYEX79jQGJUtPls/2yTdnOWuBBjrPN7xZIRRYIkb4odcjjhFiwoi3HH2ngzhdYIt+luiNvGjUVzDP08XDOi6dD+kB0HZfFpw6u8lnMV0OWhgMN4K0r4xhryajs3l0T5YI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1684688030; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=Mzgp4/ZKpQJCPktsAuNiTGpejAOk+UQ6hrdbwZc7/qo=; b=P/eixFuRpwkhVfUo4lUqBQk4x2kKss2gOlg9sEvdxcMTMzTVWX1EDYGx14x9JHH9 Y+lOdLcT92bx7VyaeGuTO2MmaSe1zRqYQDvZF/oIwKjfHW6W8gqPZLj1qBVGm8DZ+DG 8RK9lXKIP0XutdJxnJgrgMUBgJEnULOLfz/Xcizg= Original-Received: from localhost (81-231-79-170-no600.tbcn.telia.com [81.231.79.170]) by mx.zoho.eu with SMTPS id 1684688029315613.293858116273; Sun, 21 May 2023 18:53:49 +0200 (CEST) In-reply-to: <87bkidofys.fsf@gmx.de> X-ZohoMailClient: External Received-SPF: pass client-ip=31.186.226.249; envelope-from=rahguzar@zohomail.eu; helo=sender11-pp-o91.zoho.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 22 May 2023 17:30:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143705 Archived-At: Hi Michael, Thanks for the reply. Michael Albinus writes: > The dbus-introspect-* methods work over the > "org.freedesktop.DBus.Introspectable" interface. You must provide an own > implementation for this with your "org.freedesktop.TextEditor" service, > if you want to see the introspection data. > > Most existing D-Bus services provide an own file with that data, see > directory /usr/share/dbus-1/interfaces (on my Fedora system, it could be > somewhere else on your system). When this interface is called, they > simply dump out the respective file. > I was somehow hoping that since the methods need to be registered, d-bus had some magical way of determining at least which methods a service provided. That not being the case, is there some way of using the information provided to `dbus-register-method` to provide a rudimentary implementation of introspection methods? > Best regards, Michael. Thanks again, Rahguzar