2024-08-02 19:11:12 +02:00
|
|
|
#ifndef SCI_NOTIFY_H
|
|
|
|
#define SCI_NOTIFY_H
|
2024-08-03 13:08:46 +02:00
|
|
|
#include "pipeline.h"
|
2024-08-02 19:11:12 +02:00
|
|
|
#include <sys/inotify.h>
|
|
|
|
|
2024-08-03 13:08:46 +02:00
|
|
|
typedef void(*notify_callback)(pipeline_event* const);
|
2024-08-02 19:11:12 +02:00
|
|
|
|
|
|
|
// Start listening for changes to the provided file.
|
|
|
|
// Note that the `struct inotify_event*` provided is a managed pointer.
|
2024-08-03 13:08:46 +02:00
|
|
|
void listen_for_changes(const pipeline_conf* config, notify_callback callback);
|
2024-08-02 19:11:12 +02:00
|
|
|
|
|
|
|
#endif
|