summaryrefslogtreecommitdiff
path: root/src/readahead-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/readahead-common.h')
-rw-r--r--src/readahead-common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/readahead-common.h b/src/readahead-common.h
index 3f64f290a9..7add62613f 100644
--- a/src/readahead-common.h
+++ b/src/readahead-common.h
@@ -23,6 +23,9 @@
***/
#include <sys/stat.h>
+#include <sys/types.h>
+
+#include "macro.h"
#define READAHEAD_FILE_SIZE_MAX (128*1024*1024)
@@ -34,4 +37,11 @@ bool enough_ram(void);
int open_inotify(void);
+typedef struct ReadaheadShared {
+ pid_t collect;
+ pid_t replay;
+} _packed_ ReadaheadShared;
+
+ReadaheadShared *shared_get(void);
+
#endif