From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Moringen Newsgroups: gmane.emacs.devel Subject: Re: DBus methods without name grabbing Date: Wed, 05 Jan 2011 11:46:45 +0100 Message-ID: <14948_1294224411_ZZh0g4f4aX6LO.00_1294224405.12211.4.camel@steed.robot-madness> References: <19384_1294002375_ZZh0g13mCbLkV.00_1294002364.12635.44.camel@gunhead> <87lj32kuyz.fsf@gmx.de> <7758_1294108975_ZZh0g0_f99~qx.00_1294108972.8785.33.camel@gunhead> <87zkrhf081.fsf@gmx.de> <1294201048.2508.1.camel@gunhead> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1294225389 26074 80.91.229.12 (5 Jan 2011 11:03:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 11:03:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 05 12:03:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaR8x-0000m8-Dv for ged-emacs-devel@m.gmane.org; Wed, 05 Jan 2011 12:03:03 +0100 Original-Received: from localhost ([127.0.0.1]:59481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaQuO-0005b2-Of for ged-emacs-devel@m.gmane.org; Wed, 05 Jan 2011 05:48:00 -0500 Original-Received: from [140.186.70.92] (port=46721 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaQu9-0005YF-Kb for emacs-devel@gnu.org; Wed, 05 Jan 2011 05:47:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaQtJ-0004DG-GT for emacs-devel@gnu.org; Wed, 05 Jan 2011 05:46:55 -0500 Original-Received: from mux2-unibi-smtp.hrz.uni-bielefeld.de ([129.70.204.73]:39374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaQtJ-0004CO-An for emacs-devel@gnu.org; Wed, 05 Jan 2011 05:46:53 -0500 Original-Received: from pmxchannel-daemon.mux2-unibi-smtp.hrz.uni-bielefeld.de by mux2-unibi-smtp.hrz.uni-bielefeld.de (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0LEJ00I00PY35Y00@mux2-unibi-smtp.hrz.uni-bielefeld.de> for emacs-devel@gnu.org; Wed, 05 Jan 2011 11:46:51 +0100 (CET) Original-Received: from [129.70.236.43] ([129.70.236.43]) by mux2-unibi-smtp.hrz.uni-bielefeld.de (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPPSA id <0LEJ00F37PY2OX10@mux2-unibi-smtp.hrz.uni-bielefeld.de>; Wed, 05 Jan 2011 11:46:50 +0100 (CET) In-reply-to: <1294201048.2508.1.camel@gunhead> X-Mailer: Evolution 2.30.3 X-EnvFrom: jan.moringen@uni-bielefeld.de X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.1.5.103618, pmx10 X-Connecting-IP: 129.70.236.43 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134280 Archived-At: > > >> - We might introduce a new function `dbus-register-service' (in dbusbind.c). > > >> It could offer optional argument flags, a list of the supported flags > > >> of "org.freedesktop.DBus.RequestName" > > >> (DBUS_NAME_FLAG_ALLOW_REPLACEMENT, DBUS_NAME_FLAG_REPLACE_EXISTING, > > >> DBUS_NAME_FLAG_DO_NOT_QUEUE). This function shall be called in > > >> `dbus-register-method' and `dbus-register-property' when > > >> `dont-register-service' is nil. Btw, the function > > >> `dbus-unregister-service' exists already ... > > > > > > I would rather tackle this change in a separate patch later. > > > > OK, I'll do it next days (except you want to do it yourself :-) > > I gave it a shot. See attached patch. Like the last patch, this probably > needs revision. I forgot to check dont_register_service in dbus_register_method, but I can't make an updated patch right now. Kind regards, Jan