summaryrefslogtreecommitdiff
path: root/src/journals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/journals.h')
-rw-r--r--src/journals.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/journals.h b/src/journals.h
index 1327a5e..a4ad97d 100644
--- a/src/journals.h
+++ b/src/journals.h
@@ -13,29 +13,13 @@
#include "upstream/journal-def.h"
-/* TODO: the journal buf stuff should be made private to journals.c */
-#define JOURNAL_BUF_SIZE 8192
-#define JOURNAL_BUF_CNT 8
-
typedef struct iou_t iou_t;
typedef struct journals_t journals_t;
-typedef struct journal_t journal_t;
-typedef struct journal_buf_t journal_buf_t;
-
-struct journal_buf_t {
- journal_buf_t *lru_prev, *lru_next;
- uint64_t offset, length;
- unsigned valid:1;
- int idx;
- uint8_t data[JOURNAL_BUF_SIZE];
-};
-
-struct journal_t {
+
+typedef struct journal_t {
char *name;
int fd, idx;
- journal_buf_t *lru_head, *lru_tail;
- journal_buf_t bufs[JOURNAL_BUF_CNT];
-};
+} journal_t;
THUNK_DECLARE(journals_open, iou_t *, iou, char **, machid, int, flags, journals_t **, journals, thunk_t *, closure);
THUNK_DECLARE(journal_get_header, iou_t *, iou, journal_t **, journal, Header *, header, thunk_t *, closure);
© All Rights Reserved