summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-02 14:21:20 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-02 14:21:20 -0500
commit0a1b13f791a6fa0965207deb44c3c67ff3deaf23 (patch)
tree214329ed5fa24a601db66ffb61e67c5e1cc61f69 /libgpsmm.h
parent3878ac8d424a97cdcb4b3943cb0d34d115e62347 (diff)
downloadgpsd-0a1b13f791a6fa0965207deb44c3c67ff3deaf23.tar.gz
Simplify the C++ lib, noo point in supporting the old API now.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index ab57a286..e3f99497 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -32,13 +32,8 @@ class LIBQGPSMMSHARED_EXPORT gpsmm {
private:
struct gps_data_t *to_user; //we return the user a copy of the internal structure. This way she can modify it without
//integrity loss for the entire class
- #if GPSD_API_MAJOR_VERSION < 5
- struct gps_data_t *_gps_data;
- struct gps_data_t * gps_data() { return _gps_data; }
- #else
- struct gps_data_t _gps_data;
- struct gps_data_t * gps_data() { return &_gps_data; }
- #endif
+ struct gps_data_t _gps_data;
+ struct gps_data_t * gps_data() { return &_gps_data; }
struct gps_data_t* backup(void) { *to_user=*gps_data(); return to_user;}; //return the backup copy
};
#endif // _GPSD_GPSMM_H_