1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-23 20:56:45 +02:00
ben-wpan/tools/atrf-path/gui.h
Werner Almesberger c86ce307e2 atrf-path: added pass/fail indication (in the GUI, accept the result with P/F)
- atrf-path.c (do_sweeps): return a pass/fail/undecided value
- gui.h (gui), gui.c (gui): return a pass/fail/undecided value
- gui.c (gui): return pass/fail when P or F is pressed; exit
  unconditionally if Q is pressed
- atrf-path.c (main): according to the decision of "gui" or "do_sweeps",
  print "#PASS", "#FAIL", or nothing
2011-04-13 20:24:50 -03:00

36 lines
708 B
C

/*
* 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"
/*
* gui returns one of the following values:
*
* -1 fail
* 0 no decision taken
* 1 pass
*/
#ifdef HAVE_GFX
int gui(const struct sweep *sweep, int sweeps);
#else
#define gui(sweep, sweeps) ({ abort(); 0; })
#endif
#endif /* !GUI_H */