Move to object oriented model

There is now a single Manager class shared between all apps.
Apps then share a collection of Device objects.
This commit is contained in:
Daniel Drake
2008-03-05 20:00:28 +00:00
parent 98c936dbdd
commit 080e427651
10 changed files with 813 additions and 653 deletions

View File

@ -1,4 +1,4 @@
BUILT_SOURCES = server-bindings.h
BUILT_SOURCES = manager-dbus-glue.h device-dbus-glue.h
noinst_HEADERS = $(BUILT_SOURCES)
CLEANFILES = $(BUILT_SOURCES)
@ -6,10 +6,13 @@ EXTRA_DIST = fprintd.xml
bin_PROGRAMS = fprintd
fprintd_SOURCES = main.c
fprintd_SOURCES = main.c manager.c device.c
fprintd_LDADD = $(GLIB_LIBS) $(DBUS_GLIB_LIBS) $(FPRINT_LIBS)
fprintd_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS) $(FPRINT_CFLAGS)
server-bindings.h: fprintd.xml
dbus-binding-tool --prefix=fprint --mode=glib-server $< --output=$@
manager-dbus-glue.h: manager.xml
dbus-binding-tool --prefix=fprint_manager --mode=glib-server $< --output=$@
device-dbus-glue.h: device.xml
dbus-binding-tool --prefix=fprint_device --mode=glib-server $< --output=$@