X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=visor;a=blobdiff_plain;f=libvisor%2Finclude%2Fvisor.h;h=4d2233a314feb49e31b12d7dc521622f6315a22f;hp=1e79aed5ea82c111f6829b9532ba4cce88db3fad;hb=519bb5db64dd400724d8beedd10bf54d8cf2b7af;hpb=8cae8696beb7f1fa2dfc4e85be2fd5d9cf52a265 diff --git a/libvisor/include/visor.h b/libvisor/include/visor.h index 1e79aed..4d2233a 100644 --- a/libvisor/include/visor.h +++ b/libvisor/include/visor.h @@ -77,8 +77,8 @@ enum { VI_SEEK_SET, VI_SEEK_CUR, VI_SEEK_END }; struct vi_fileops { vi_file *(*open)(const char *path, unsigned int flags); - long (*size)(vi_file *file); void (*close)(vi_file *file); + long (*size)(vi_file *file); void *(*map)(vi_file *file); void (*unmap)(vi_file *file); long (*read)(vi_file *file, void *buf, long count); @@ -111,6 +111,9 @@ void vi_destroy(struct visor *vi); void vi_set_fileops(struct visor *vi, struct vi_fileops *fop); void vi_set_ttyops(struct visor *vi, struct vi_ttyops *tty); +void vi_window(struct visor *vi, int xsz, int ysz); +void vi_redraw(struct visor *vi); + /* vi_new_buf creates a new buffer and inserts it in the buffer list. If the * path pointer is null, the new buffer will be empty, otherwise it's as if it * was followed by a vi_buf_read call to read a file into the buffer.