X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=visor;a=blobdiff_plain;f=libvisor%2Fsrc%2Fvimpl.h;h=af9b6c418886c8614b084a64aa8150c9937219cf;hp=1e6d201c041b2d060472d17a1a7461d54fa9a328;hb=9f0326a07930f909b44433f5d0e3b556d0b16a51;hpb=dc83bdff56d4dd7454559f5e918652f32f7e9d6d diff --git a/libvisor/src/vimpl.h b/libvisor/src/vimpl.h index 1e6d201..af9b6c4 100644 --- a/libvisor/src/vimpl.h +++ b/libvisor/src/vimpl.h @@ -6,6 +6,9 @@ struct visor { struct vi_fileops fop; struct vi_buffer *buflist; /* circular linked list of buffers cur first */ + struct vi_alloc mm; + struct vi_ttyops tty; + void *tty_cls; }; struct vi_buffer { @@ -16,8 +19,11 @@ struct vi_buffer { vi_addr cursor, view_start; int view_xscroll; + vi_file *fp; + int file_mapped; + char *orig; - long orig_size; + unsigned long orig_size; char *add; int add_size, add_max; @@ -25,4 +31,6 @@ struct vi_buffer { int num_spans, max_spans; }; +enum { SPAN_ORIG, SPAN_ADD }; + #endif /* VIMPL_H_ */