diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-26 23:49:31 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-26 23:49:31 +0000 |
commit | b9cc68ba066757a71565fd29dd0e886a17bf2e21 (patch) | |
tree | 01d6463c81093c428f57f90d60d8f05791a6917d /libgps.c | |
parent | f57255209c5b25c74e1fd5c84b6636bf76f02298 (diff) | |
download | gpsd-b9cc68ba066757a71565fd29dd0e886a17bf2e21.tar.gz |
Add gps_errstr() to the client API so client code doesn't have to
reinvent it all the time. Use it in gpsmon.
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -588,6 +588,14 @@ int gps_del_callback(struct gps_data_t *gpsdata, pthread_t *handler) } #endif /* HAVE_LIBPTHREAD */ +extern char /*@observer@*/ *gps_errstr(const int err) +{ + /* + * We might ad out own error codes in the future, e.g for + * protocol compatibility checks + */ + return netlib_errstr(err); +} #ifdef TESTMAIN /* |