1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atrf-path: added basic graphical output

- gui.h, gui.c: plot sweep results with SDL_gfx
- Makefile: added target-specific variables for SDL and SDL_gfx
- atrf-path.c (main): invoke the GUI if the number of sweeps is zero
This commit is contained in:
Werner Almesberger
2011-04-12 22:52:39 -03:00
parent 2967f99966
commit 0a409103eb
4 changed files with 156 additions and 1 deletions

27
tools/atrf-path/gui.h Normal file
View File

@@ -0,0 +1,27 @@
/*
* atrf-path/gui.h - Graphical output for atrf-path
*
* Written 2011 by Werner Almesberger
* Copyright 2011 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef GUI_H
#define GUI_H
#include <stdlib.h>
#include "sweep.h"
#ifdef HAVE_GFX
void gui(const struct sweep *sweep);
#else
#define gui(sweep) abort()
#endif
#endif /* !GUI_H */