hal-sharp/example .cvsignore, NONE, 1.1 ListDevices.cs, NONE,
1.1 Makefile.am, NONE, 1.1
Owen Fraser-Green
ow3n at pdx.freedesktop.org
Sat May 15 14:54:32 PDT 2004
Update of /cvs/hal/hal-sharp/example
In directory pdx:/tmp/cvs-serv17114/example
Added Files:
.cvsignore ListDevices.cs Makefile.am
Log Message:
Added example.
--- NEW FILE: .cvsignore ---
*.exe
Makefile
Makefile.in
--- NEW FILE: ListDevices.cs ---
using System;
using org.freedesktop.Hal;
using DBus;
namespace org.freedesktop.Hal
{
public class Test
{
public static int Main(string [] args)
{
Connection connection = Bus.GetSystemBus();
Service service = Service.Get(connection, "org.freedesktop.Hal");
Manager manager = (Manager)
service.GetObject(typeof(Manager), "/org/freedesktop/Hal/Manager");
foreach (string device in manager.GetAllDevices()) {
System.Console.WriteLine(device);
}
return 0;
}
}
}
--- NEW FILE: Makefile.am ---
DESTDIR=
NOINST_EXES=list-devices.exe
references = \
$(DBUSSHARP_DEPENDENCY_LIBS)
all: $(NOINST_EXES)
list-devices.exe: ListDevices.cs
$(CSC) --target exe -L .. -r:../hal-sharp/hal-sharp.dll $(references) -o list-devices.exe ListDevices.cs
clean:
rm -f $(NOINST_EXES)
install: all
EXTRA_DIST= \
ListDevices.cs
More information about the hal-commit
mailing list