summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-26 23:49:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-26 23:49:31 +0000
commitb9cc68ba066757a71565fd29dd0e886a17bf2e21 (patch)
tree01d6463c81093c428f57f90d60d8f05791a6917d /libgps.c
parentf57255209c5b25c74e1fd5c84b6636bf76f02298 (diff)
downloadgpsd-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgps.c b/libgps.c
index 2d038e9f..628a0b6a 100644
--- a/libgps.c
+++ b/libgps.c
@@ -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
/*