summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-13 19:51:57 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-13 19:51:57 +0000
commit24e6b9de235b5592e7c64651875001cbd1d5590d (patch)
tree4e36805e446b2c2dc24ee2b914609baedfc11e83 /common
parented9fed4f59f37c15ed54347f2ad81e85f0ec9ce1 (diff)
Add notify framework
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am10
-rw-r--r--common/notify-dummy.c0
-rw-r--r--common/notify-inotify.c0
-rw-r--r--common/notify.h0
4 files changed, 9 insertions, 1 deletions
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
--- /dev/null
+++ b/common/notify-dummy.c
diff --git a/common/notify-inotify.c b/common/notify-inotify.c
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/common/notify-inotify.c
diff --git a/common/notify.h b/common/notify.h
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/common/notify.h