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.
31 #include <sys/types.h>
36 #include <glade/glade.h>
37 #include <gconf/gconf-client.h>
79 aoview_monitor_disconnect(void);
82 aoview_monitor_connect(char *tty);
84 struct aoview_serial *
85 aoview_serial_open(const char *tty);
88 aoview_serial_close(struct aoview_serial *serial);
90 typedef void (*aoview_serial_callback)(gpointer user_data, struct aoview_serial *serial, gint revents);
93 aoview_serial_set_callback(struct aoview_serial *serial,
94 aoview_serial_callback func,
96 GDestroyNotify notify);
99 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);
102 aoview_serial_read(struct aoview_serial *serial, char *buf, int len);
105 aoview_serial_getc(struct aoview_serial *serial);
108 aoview_dev_dialog_init(GladeXML *xml);
111 aoview_usb_scan(struct usbdev ***devs_ret);
114 aoview_usbdev_free(struct usbdev *usbdev);
117 aoview_state_notify(struct aostate *state);
120 aoview_state_new(void);
123 aoview_state_init(GladeXML *xml);
126 aoview_pres_to_altitude(int16_t pres);
129 aoview_altitude_to_pres(int16_t alt);
132 aoview_fullname (char *dir, char *file);
135 aoview_basename(char *file);
138 aoview_add_plain_text_column (GtkTreeView *view, const gchar *title, gint model_column, gint width);
141 aoview_mkdir(char *dir);
144 aoview_log_init(GladeXML *xml);
147 aoview_log_set_serial(int serial);
150 aoview_log_get_serial(void);
153 aoview_log_printf(char *format, ...);
156 aoview_log_new(void);
159 aoview_table_start(void);
162 aoview_table_add_row(char *label, char *format, ...);
165 aoview_table_finish(void);
168 aoview_table_init(GladeXML *xml);
171 aoview_table_clear(void);
176 aoview_file_finish(struct aoview_file *file);
179 aoview_file_start(struct aoview_file *file);
182 aoview_file_name(struct aoview_file *file);
185 aoview_file_set_serial(struct aoview_file *file, int serial);
188 aoview_file_get_serial(struct aoview_file *file);
191 aoview_file_printf(struct aoview_file *file, char *format, ...);
194 aoview_file_vprintf(struct aoview_file *file, char *format, va_list ap);
197 aoview_file_new(char *ext);
200 aoview_file_destroy(struct aoview_file *file);
203 aoview_file_init(GladeXML *xml);
205 /* aoview_eeprom.c */
208 aoview_eeprom_save(const char *device);
211 aoview_eeprom_init(GladeXML *xml);
213 #endif /* _AOVIEW_H_ */