diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-11-02 17:26:12 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-11-23 13:45:10 +0100 |
commit | db2a311c9f4c77fec8f7baca6cd075ebf4806832 (patch) | |
tree | 6d909e45f9e29ee18d98ce4362e749affcf187d2 /src/main.c | |
parent | b49360d9485fc5d003e167f18333ac2e59b8573b (diff) | |
download | connman-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |