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>
74 aoview_monitor_disconnect(void);
77 aoview_monitor_connect(char *tty);
79 struct aoview_serial *
80 aoview_serial_open(const char *tty);
83 aoview_serial_close(struct aoview_serial *serial);
86 aoview_serial_set_callback(struct aoview_serial *serial,
89 GDestroyNotify notify);
92 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);
95 aoview_serial_read(struct aoview_serial *serial, char *buf, int len);
98 aoview_serial_getc(struct aoview_serial *serial);
101 aoview_dev_dialog_init(GladeXML *xml);
104 aoview_usb_scan(struct usbdev ***devs_ret);
107 aoview_usbdev_free(struct usbdev *usbdev);
110 aoview_state_notify(struct aostate *state);
113 aoview_state_new(void);
116 aoview_state_init(GladeXML *xml);
119 aoview_pres_to_altitude(int16_t pres);
122 aoview_altitude_to_pres(int16_t alt);
125 aoview_fullname (char *dir, char *file);
128 aoview_basename(char *file);
131 aoview_add_plain_text_column (GtkTreeView *view, const gchar *title, gint model_column, gint width);
134 aoview_mkdir(char *dir);
137 aoview_log_init(GladeXML *xml);
140 aoview_log_set_serial(int serial);
143 aoview_log_get_serial(void);
146 aoview_log_printf(char *format, ...);
149 aoview_log_new(void);
152 aoview_table_start(void);
155 aoview_table_add_row(char *label, char *format, ...);
158 aoview_table_finish(void);
161 aoview_table_init(GladeXML *xml);
164 aoview_table_clear(void);
166 #endif /* _AOVIEW_H_ */