]> git.itanic.dy.fi Git - log-plotter/commit - main.c
Convert data reading into event based system
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 31 Oct 2013 19:22:45 +0000 (21:22 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Thu, 31 Oct 2013 19:22:45 +0000 (21:22 +0200)
commit9abf935040bd368c4b3c1828a79691d200fd45a9
treeea8167bc6e2910f0927563b6843dd16f10ece12a
parent4daad2abbacb183bc39d7ef1220e86afe6068b5d
Convert data reading into event based system

As of preparing for the future, convert the data reading into an even
based system. The main loop has got the loop that holds the state of
the logging process. All other modules then register itself into the
event system where they get called back whenever data gets feed in
into their file descriptors.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Makefile
data.c
data.h
event.c [new file with mode: 0644]
event.h [new file with mode: 0644]
main.c
utils.h