diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-02-19 10:13:15 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-02-19 10:13:15 +0000 |
commit | 2804444cf1e2ea0ca594109f7fad610aab5aa677 (patch) | |
tree | e933777f3758836cb6e50474755c5fd8697cc21a /monitor_proto.c | |
parent | 149447b74328967e2e43c359fc51c70755e42e37 (diff) | |
download | gpsd-2804444cf1e2ea0ca594109f7fad610aab5aa677.tar.gz |
More cleanup and documentation for monitor stuff.
Diffstat (limited to 'monitor_proto.c')
-rw-r--r-- | monitor_proto.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/monitor_proto.c b/monitor_proto.c index 01408495..39718954 100644 --- a/monitor_proto.c +++ b/monitor_proto.c @@ -32,6 +32,21 @@ * as gpsd to dispatch on packet type to select an active device driver. * Your monitor object will become the handler for incoming packets whenever * the driver your object points at is selected. + * + * bool monitor_control_send(unsigned char *buf, size_t len) + * Ship a packet payload to the device. Calls the driver send_control() + * method to add headers/trailers/checksum; also dumps the sent + * packet to the packet window, if the send_control() is playing + * nice by using session.msgbuf to assemble the message. + * + * void monitor_complain(const char *fmt, ...) + * Post an error message to the command window, wait till user presses a key. + * You get to make sure the message will fit. + * + * void monitor_fixframe(WINDOW *win) + * Fix the frame of win to the right of the current location by redrawing + * ACS_VLINE there. Useful after doing wclrtoeol() and writing on the + * line. */ extern const struct gps_type_t PROTO; |