inotify: Move inotify code into its own file
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 2 Nov 2012 16:26:12 +0000 (17:26 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:45:10 +0000 (13:45 +0100)
commitdb2a311c9f4c77fec8f7baca6cd075ebf4806832
tree6d909e45f9e29ee18d98ce4362e749affcf187d2
parentb49360d9485fc5d003e167f18333ac2e59b8573b
inotify: Move inotify code into its own file

The inotify code will be used by the core (config.c) and the session
policy plugin. We introduce a new API for file modifcation
notifcation.

We move the factored out code part from the last patch into a new file
and also change the inotify code so that it allows to monitor not only
STORAGEDIR. When registering a new observer, the callee has to tell
which directory should be watched. inotify.c will group the observers
together.
Makefile.am
include/inotify.h [new file with mode: 0644]
src/config.c
src/connman.h
src/inotify.c [new file with mode: 0644]
src/main.c