From: Siraaj Khandkar Date: Sun, 8 Mar 2020 22:07:30 +0000 (-0400) Subject: Add TODOs X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=6c29392d250a28ffdc0661a2baa425dc4eebe499;p=khatus.git Add TODOs --- diff --git a/x5/khatus.c b/x5/khatus.c index 733f686..5f283db 100644 --- a/x5/khatus.c +++ b/x5/khatus.c @@ -19,6 +19,7 @@ char *argv0; +/* TODO: Convert file list to file array. */ typedef struct File File; struct File { char *name; @@ -251,6 +252,7 @@ read_one(File *f, char *buf) *b++ = c; if (current == -1) error("Failed to read: \"%s\". Error: %s\n", f->name, strerror(errno)); + /* TODO Record timestamp read */ close(f->fd); f->fd = -1; } @@ -340,6 +342,9 @@ main(int argc, char *argv[]) printf("%s\n", buf); /* TODO: nanosleep and nano time diff */ for (;;) { + /* TODO: Check TTL and maybe blank-out */ + /* TODO: How to trigger TTL check? On select? Alarm signal? */ + /* TODO: Option to set X root window title or print */ read_all(cfg, buf); printf("%s\n", buf); }