From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: Announce: D_Bus/Ada, talk with your desktop in Ada
Date: Mon, 5 Dec 2011 21:43:30 +0200
Date: 2011-12-05T21:43:30+02:00 [thread overview]
Message-ID: <20111205214330.619e9ae0446845187a444c6e@iki.fi> (raw)
In-Reply-To: slrnjdpa2a.8ba.reet@fenrir.codelabs.ch
Hi,
On Mon, 5 Dec 2011 11:17:30 +0000 (UTC)
Reto Buerki <reet@codelabs.ch> 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.
next prev parent reply other threads:[~2011-12-05 19:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-05 11:17 Announce: D_Bus/Ada, talk with your desktop in Ada Reto Buerki
2011-12-05 11:40 ` Yannick Duchêne (Hibou57)
2011-12-05 12:12 ` Reto Buerki
2011-12-05 11:45 ` Yannick Duchêne (Hibou57)
2011-12-05 12:27 ` Reto Buerki
2011-12-05 19:43 ` Tero Koskinen [this message]
2011-12-06 8:02 ` Reto Buerki
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox