2 * Copyright © 2009 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20 static struct aoview_file *aoview_log;
25 aoview_file_finish(aoview_log);
30 aoview_log_set_serial(int serial)
32 aoview_file_set_serial(aoview_log, serial);
36 aoview_log_get_serial(void)
38 return aoview_file_get_serial(aoview_log);
42 aoview_log_set_flight(int flight)
44 aoview_file_set_flight(aoview_log, flight);
48 aoview_log_get_flight(void)
50 return aoview_file_get_flight(aoview_log);
54 aoview_log_printf(char *format, ...)
59 aoview_file_vprintf(aoview_log, format, ap);
64 aoview_log_new_item(GtkWidget *widget, gpointer data)
66 aoview_file_finish(aoview_log);
70 aoview_log_init(GladeXML *xml)
74 aoview_log = aoview_file_new("telem");
77 log_new = glade_xml_get_widget(xml, "log_new");
79 g_signal_connect(G_OBJECT(log_new), "activate",
80 G_CALLBACK(aoview_log_new_item),