diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-29 20:21:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-29 20:21:23 +0000 |
commit | e217ee3a26ee0083dee63d328de20efefc45dc04 (patch) | |
tree | 14d33dabf0c0ad83f629dee89c3f98bdd53abf6a /gpsflash.h | |
parent | c19f8598ae3148d7ebd8f0907a1d8114e017ce2f (diff) | |
download | gpsd-e217ee3a26ee0083dee63d328de20efefc45dc04.tar.gz |
Added expect(), so we can get a version string from the GPS.
Diffstat (limited to 'gpsflash.h')
-rw-r--r-- | gpsflash.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -36,11 +36,13 @@ #include <stdbool.h> struct flashloader_t { + const char *name; const char *flashloader; size_t min_loader_size, max_loader_size; size_t min_firmware_size, max_firmware_size; + int (*probe)(int fd, char **version); int (*port_setup)(int fd, struct termios *term); - int (*version_check)(int fd); + int (*version_check)(int fd, const char *); int (*stage1_command)(int fd); int (*loader_send)(int pfd, struct termios *term, char *loader, size_t ls); int (*stage2_command)(int fd); @@ -54,5 +56,6 @@ int serialConfig(int, struct termios *, int); int serialSpeed(int, struct termios *, int); int srecord_send(int pfd, char *fw, size_t len); int binary_send(int pfd, char *data, size_t ls); +bool expect(int pfd, const char *str, size_t len, time_t timeout); #endif /* _GPSFLASH_H_ */ |