X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/199c2b1bedd78a06dae62d736115273bd0127af1..efea5b4edd5cc94b4ed0917ebca0efb6bb6a2f82:/aseg/vga-overlay.c?ds=sidebyside diff --git a/aseg/vga-overlay.c b/aseg/vga-overlay.c index d205656..ca0e8a5 100644 --- a/aseg/vga-overlay.c +++ b/aseg/vga-overlay.c @@ -3,6 +3,7 @@ #include #include #include +#include static char logents[4][41] = {{0}}; @@ -66,13 +67,14 @@ void outlog() strblit(logents[y], y, 40); } -void dolog(char *s) +void dolog(const char *s) { memmove(logents[0], logents[1], sizeof(logents[0])*3); strcpy(logents[3], s); } +void (*output)(const char *s) = dolog; -void dologf(char *fmt, ...) +void dologf(const char *fmt, ...) { va_list va; @@ -81,3 +83,4 @@ void dologf(char *fmt, ...) vsnprintf(logents[3], 40, fmt, va); va_end(va); } +void (*outputf)(const char *s, ...) = dologf;