From 24e6b9de235b5592e7c64651875001cbd1d5590d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Jan 2007 19:51:57 +0000 Subject: Add notify framework --- common/Makefile.am | 10 +++++++++- common/notify-dummy.c | 0 common/notify-inotify.c | 0 common/notify.h | 0 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 common/notify-dummy.c create mode 100644 common/notify-inotify.c create mode 100644 common/notify.h diff --git a/common/Makefile.am b/common/Makefile.am index eb6e62b0..45520838 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -5,6 +5,12 @@ else sdp_sources = sdp-dummy.c endif +if INOTIFY +notify_sources = notify-inotify.c +else +notify_sources = notify-dummy.c +endif + if GLIB glib_sources = glib_cflags = @GLIB_CFLAGS@ @@ -19,6 +25,7 @@ libhelper_a_SOURCES = oui.h oui.c \ textfile.h textfile.c helper.h helper.c \ logging.h logging.c dbus.h dbus.c \ sdp-xml.h sdp-xml.c $(sdp_sources) \ + notify.h $(notify_sources) \ glib-ectomy.h $(glib_sources) noinst_PROGRAMS = test_textfile @@ -27,6 +34,7 @@ test_textfile_LDADD = libhelper.a AM_CFLAGS = @DBUS_CFLAGS@ $(glib_cflags) -EXTRA_DIST = ppoll.h sdp-dummy.c sdp-expat.c glib-ectomy.c +EXTRA_DIST = ppoll.h sdp-dummy.c sdp-expat.c \ + notify-dummy.c notify-inotify.c glib-ectomy.c MAINTAINERCLEANFILES = Makefile.in diff --git a/common/notify-dummy.c b/common/notify-dummy.c new file mode 100644 index 00000000..e69de29b diff --git a/common/notify-inotify.c b/common/notify-inotify.c new file mode 100644 index 00000000..e69de29b diff --git a/common/notify.h b/common/notify.h new file mode 100644 index 00000000..e69de29b -- cgit