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);
85 typedef void (*aoview_serial_callback)(gpointer user_data, struct aoview_serial *serial, gint revents);
88 aoview_serial_set_callback(struct aoview_serial *serial,
89 aoview_serial_callback func,
91 GDestroyNotify notify);
94 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);
97 aoview_serial_read(struct aoview_serial *serial, char *buf, int len);
100 aoview_serial_getc(struct aoview_serial *serial);
103 aoview_dev_dialog_init(GladeXML *xml);
106 aoview_usb_scan(struct usbdev ***devs_ret);
109 aoview_usbdev_free(struct usbdev *usbdev);
112 aoview_state_notify(struct aostate *state);
115 aoview_state_new(void);
118 aoview_state_init(GladeXML *xml);
121 aoview_pres_to_altitude(int16_t pres);
124 aoview_altitude_to_pres(int16_t alt);
127 aoview_fullname (char *dir, char *file);
130 aoview_basename(char *file);
133 aoview_add_plain_text_column (GtkTreeView *view, const gchar *title, gint model_column, gint width);
136 aoview_mkdir(char *dir);
139 aoview_log_init(GladeXML *xml);
142 aoview_log_set_serial(int serial);
145 aoview_log_get_serial(void);
148 aoview_log_printf(char *format, ...);
151 aoview_log_new(void);
154 aoview_table_start(void);
157 aoview_table_add_row(char *label, char *format, ...);
160 aoview_table_finish(void);
163 aoview_table_init(GladeXML *xml);
166 aoview_table_clear(void);
168 #endif /* _AOVIEW_H_ */