diff options
Diffstat (limited to 'logforwarder/src/apps/vespa-otelcol-start/file-watcher.h')
-rw-r--r-- | logforwarder/src/apps/vespa-otelcol-start/file-watcher.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/logforwarder/src/apps/vespa-otelcol-start/file-watcher.h b/logforwarder/src/apps/vespa-otelcol-start/file-watcher.h new file mode 100644 index 00000000000..0f50f6d90f7 --- /dev/null +++ b/logforwarder/src/apps/vespa-otelcol-start/file-watcher.h @@ -0,0 +1,15 @@ +// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#pragma once + +#include <vespa/config-open-telemetry.h> + +class FileWatcher { + struct FileInfo { + vespalib::string pathName; + time_t seenModTime; + }; + std::vector<FileInfo> watchedFiles; +public: + bool anyChanged(); + void init(const config::StringVector &pathList); +}; |