From db2a311c9f4c77fec8f7baca6cd075ebf4806832 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 2 Nov 2012 17:26:12 +0100 Subject: 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. --- src/connman.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/connman.h') diff --git a/src/connman.h b/src/connman.h index 67c16361..70178d84 100644 --- a/src/connman.h +++ b/src/connman.h @@ -219,6 +219,11 @@ gboolean __connman_storage_remove_service(const char *service_id); int __connman_detect_init(void); void __connman_detect_cleanup(void); +#include + +int __connman_inotify_init(void); +void __connman_inotify_cleanup(void); + #include int __connman_proxy_init(void); -- cgit v1.2.3