watcher: add a centralized an generic facility to monitor file descriptors
[strongswan.git] / src / libstrongswan / library.h
index 1168da8..d549725 100644 (file)
@@ -92,6 +92,7 @@
 #include "networking/host_resolver.h"
 #include "processing/processor.h"
 #include "processing/scheduler.h"
+#include "processing/watcher.h"
 #include "crypto/crypto_factory.h"
 #include "crypto/proposal/proposal_keywords.h"
 #include "fetcher/fetcher_manager.h"
@@ -197,6 +198,11 @@ struct library_t {
        scheduler_t *scheduler;
 
        /**
+        * File descriptor monitoring
+        */
+       watcher_t *watcher;
+
+       /**
         * resolve hosts by DNS name
         */
        host_resolver_t *hosts;