From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dba59192f3dc208f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.35.68 with SMTP id f4mr24001177pbj.5.1323114250005; Mon, 05 Dec 2011 11:44:10 -0800 (PST) Path: lh20ni73055pbb.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!feeder.erje.net!fi.sn.net!newsfeed1.tdcnet.fi!news.song.fi!not-for-mail Date: Mon, 5 Dec 2011 21:43:30 +0200 From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Announce: D_Bus/Ada, talk with your desktop in Ada Message-Id: <20111205214330.619e9ae0446845187a444c6e@iki.fi> References: X-Newsreader: Sylpheed 3.2.0beta3 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1323114210 news.nbl.fi 3097 217.30.184.161:37420 X-Complaints-To: abuse@nblnetworks.fi Xref: news1.google.com comp.lang.ada:19357 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 2011-12-05T21:43:30+02:00 List-Id: Hi, On Mon, 5 Dec 2011 11:17:30 +0000 (UTC) Reto Buerki wrote: > I'm proud to announce the first release of D_Bus/Ada. > > The D_Bus/Ada library provides an Ada binding to the D-Bus message bus > used for inter-process communication on most modern Linux desktop > systems. For those who are wondering what to do with this, here is an example: http://iki.fi/tero.koskinen/dbus-ada/notify/ In summary: Name_A : Arguments.Basic.String_Type := +"ada.notify"; Replaces_ID_A : Arguments.Basic.U_Int32_Type := +33; App_Icon_A : Arguments.Basic.String_Type := +""; Summary_A : Arguments.Basic.String_Type := +"Hello"; Body_A : Arguments.Basic.String_Type := +"Hello, World from Ada!"; ... begin -- Arguments Args.Append (Name_A); ... Result := Connection.Call_Blocking (Connection => Conn, Destination => "org.freedesktop.Notifications", Path => "/org/freedesktop/Notifications", Iface => "org.freedesktop.Notifications", Method => "Notify", Args => Args); After running the program, you should see a notification with text "Hello, World from Ada!" on your GNOME/KDE desktop. -- Tero Koskinen - http://iki.fi/tero.koskinen/ PS. For some reason dbus-ada does not allow me to use/serialize empty arrays, so I fill the arrays with dummy data in my code.