summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-11-02 17:26:12 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-11-23 13:45:10 +0100
commitdb2a311c9f4c77fec8f7baca6cd075ebf4806832 (patch)
tree6d909e45f9e29ee18d98ce4362e749affcf187d2 /src/main.c
parentb49360d9485fc5d003e167f18333ac2e59b8573b (diff)
downloadconnman-db2a311c9f4c77fec8f7baca6cd075ebf4806832.tar.gz
connman-db2a311c9f4c77fec8f7baca6cd075ebf4806832.tar.bz2
connman-db2a311c9f4c77fec8f7baca6cd075ebf4806832.zip
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 77a071a5..a7afa444 100644
--- a/src/main.c
+++ b/src/main.c
@@ -557,6 +557,7 @@ int main(int argc, char *argv[])
config_init(option_config);
__connman_storage_migrate();
+ __connman_inotify_init();
__connman_technology_init();
__connman_notifier_init();
__connman_agent_init();
@@ -636,6 +637,7 @@ int main(int argc, char *argv[])
__connman_ipconfig_cleanup();
__connman_notifier_cleanup();
__connman_technology_cleanup();
+ __connman_inotify_cleanup();
__connman_dbus_cleanup();