1#ifndef SLIDING_WINDOW_H_
2#define SLIDING_WINDOW_H_
34
#include "strbuf.h"
56
struct sliding_view {
7struct line_buffer *file;
8off_t off;
9size_t width;
10struct strbuf buf;
11};
1213
#define SLIDING_VIEW_INIT(input) { (input), 0, 0, STRBUF_INIT }
1415
extern int move_window(struct sliding_view *view, off_t off, size_t width);
1617
#endif