summaryrefslogtreecommitdiff
path: root/meme/meme.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-14 14:51:27 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-14 14:55:31 (GMT)
commit4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf (patch)
tree35edbafc4de622640e08c5935892f9642af0cfc6 /meme/meme.c
parent06474f30bc0090c93a592a1cd35f5b1c4271d68e (diff)
downloadmisc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.zip
misc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.tar.gz
misc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.tar.bz2
meme/: generalize overlay handling (no globals, support multiple overlays)
Diffstat (limited to 'meme/meme.c')
-rw-r--r--meme/meme.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/meme/meme.c b/meme/meme.c
index 0b1049d..80dd619 100644
--- a/meme/meme.c
+++ b/meme/meme.c
@@ -22,7 +22,7 @@
#include "slice.h"
-extern void gui(const char *logfile);
+extern void gui(const char *logfile, const struct overlay *overlay);
static bool count_edge(const struct vertex *a, const struct vertex *b,
@@ -66,6 +66,7 @@ int main(int argc, char **argv)
const char *logfile = NULL;
const char *overlay = NULL;
const char *slice = NULL;
+ const struct overlay *over = NULL;
struct time t_load;
while ((c = getopt(argc, argv, "l:o:s:")) != EOF)
@@ -108,9 +109,9 @@ int main(int argc, char **argv)
}
if (overlay)
- overlay_load(overlay);
+ over = overlay_load(overlay);
- gui(logfile);
+ gui(logfile, over);
return 0;
}