2011-04-13 04:52:39 +03:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
|
|
|
|
2011-04-14 02:24:50 +03:00
|
|
|
/*
|
|
|
|
* gui returns one of the following values:
|
|
|
|
*
|
|
|
|
* -1 fail
|
|
|
|
* 0 no decision taken
|
|
|
|
* 1 pass
|
|
|
|
*/
|
|
|
|
|
2011-04-13 04:52:39 +03:00
|
|
|
#ifdef HAVE_GFX
|
2011-04-14 02:24:50 +03:00
|
|
|
int gui(const struct sweep *sweep, int sweeps);
|
2011-04-13 04:52:39 +03:00
|
|
|
#else
|
2011-04-14 02:24:50 +03:00
|
|
|
#define gui(sweep, sweeps) ({ abort(); 0; })
|
2011-04-13 04:52:39 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* !GUI_H */
|