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.
35 #include <sys/types.h>
40 #include <glade/glade.h>
41 #include <gconf/gconf-client.h>
77 double lat; /* degrees (+N -S) */
78 double lon; /* degrees (+E -W) */
80 double ground_speed; /* m/s */
81 int course; /* degrees */
82 double climb_rate; /* m/s */
83 double hdop; /* unitless? */
89 aoview_monitor_disconnect(void);
92 aoview_monitor_connect(char *tty);
94 struct aoview_serial *
95 aoview_serial_open(const char *tty);
98 aoview_serial_close(struct aoview_serial *serial);
100 typedef void (*aoview_serial_callback)(gpointer user_data, struct aoview_serial *serial, gint revents);
103 aoview_serial_set_callback(struct aoview_serial *serial,
104 aoview_serial_callback func,
106 GDestroyNotify notify);
109 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);
112 aoview_serial_read(struct aoview_serial *serial, char *buf, int len);
115 aoview_serial_getc(struct aoview_serial *serial);
118 aoview_dev_dialog_init(GladeXML *xml);
121 aoview_usb_scan(struct usbdev ***devs_ret);
124 aoview_usbdev_free(struct usbdev *usbdev);
127 aoview_state_notify(struct aostate *state);
130 aoview_state_new(void);
133 aoview_state_init(GladeXML *xml);
136 aoview_pres_to_altitude(int16_t pres);
139 aoview_altitude_to_pres(int16_t alt);
142 aoview_fullname (char *dir, char *file);
145 aoview_basename(char *file);
148 aoview_add_plain_text_column (GtkTreeView *view, const gchar *title, gint model_column, gint width);
151 aoview_mkdir(char *dir);
154 aoview_log_init(GladeXML *xml);
157 aoview_log_set_serial(int serial);
160 aoview_log_get_serial(void);
163 aoview_log_printf(char *format, ...);
166 aoview_log_new(void);
169 aoview_table_start(void);
172 aoview_table_add_row(char *label, char *format, ...);
175 aoview_table_finish(void);
178 aoview_table_init(GladeXML *xml);
181 aoview_table_clear(void);
186 aoview_file_finish(struct aoview_file *file);
189 aoview_file_start(struct aoview_file *file);
192 aoview_file_name(struct aoview_file *file);
195 aoview_file_set_serial(struct aoview_file *file, int serial);
198 aoview_file_get_serial(struct aoview_file *file);
201 aoview_file_printf(struct aoview_file *file, char *format, ...);
204 aoview_file_vprintf(struct aoview_file *file, char *format, va_list ap);
207 aoview_file_new(char *ext);
210 aoview_file_destroy(struct aoview_file *file);
213 aoview_file_init(GladeXML *xml);
215 /* aoview_eeprom.c */
218 aoview_eeprom_save(const char *device);
221 aoview_eeprom_init(GladeXML *xml);
223 #endif /* _AOVIEW_H_ */