Date:2011-05-28 17:03:23 (8 years 5 months ago)
Author:Werner Almesberger
Commit:b82472bb016648615371c6d2d0aa9c1fe1038c11
Message:tools/atrf-path: added interactive dumping with D

- sweep.h (print_sweep), atrf-path.c (print_sweep): make global, for
sharing with gui.c
- gui.c (gui): dump the sweep results to standard output if "D" is
pressed
Files: tools/atrf-path/atrf-path.c (1 diff)
tools/atrf-path/gui.c (1 diff)
tools/atrf-path/sweep.h (1 diff)

Change Details

tools/atrf-path/atrf-path.c
152152}
153153
154154
155static void print_sweep(const struct sweep *sweep, const struct sample *res)
155void print_sweep(const struct sweep *sweep, const struct sample *res)
156156{
157157    int chan;
158158
tools/atrf-path/gui.c
261261                    if (cycle && !fail)
262262                        return 1;
263263                    break;
264                case SDLK_d:
265                    if (cycle)
266                        print_sweep(sweep, res);
267                    break;
264268                case SDLK_q:
265269                    return 0;
266270                default:
tools/atrf-path/sweep.h
5353
5454int do_sweep(const struct sweep *sweep, struct sample *res);
5555
56void print_sweep(const struct sweep *sweep, const struct sample *res);
57
5658#endif /* !SWEEP_H */

Archive Download the corresponding diff file



interactive