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.
22 #include <glade/glade.h>
32 #include <sys/types.h>
71 aoview_monitor_disconnect(void);
74 aoview_monitor_connect(char *tty);
76 struct aoview_serial *
77 aoview_serial_open(const char *tty);
80 aoview_serial_close(struct aoview_serial *serial);
83 aoview_serial_set_callback(struct aoview_serial *serial,
86 GDestroyNotify notify);
89 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);
92 aoview_serial_read(struct aoview_serial *serial, char *buf, int len);
95 aoview_serial_getc(struct aoview_serial *serial);
98 aoview_dev_dialog_init(GladeXML *xml);
101 aoview_usb_scan(struct usbdev ***devs_ret);
104 aoview_usbdev_free(struct usbdev *usbdev);
107 aoview_state_notify(struct aostate *state);
110 aoview_state_init(GladeXML *xml);
113 aoview_pres_to_altitude(int16_t pres);
116 aoview_altitude_to_pres(int16_t alt);
118 #endif /* _AOVIEW_H_ */