diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-02 14:21:20 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-02 14:21:20 -0500 |
commit | 0a1b13f791a6fa0965207deb44c3c67ff3deaf23 (patch) | |
tree | 214329ed5fa24a601db66ffb61e67c5e1cc61f69 /libgpsmm.h | |
parent | 3878ac8d424a97cdcb4b3943cb0d34d115e62347 (diff) | |
download | gpsd-0a1b13f791a6fa0965207deb44c3c67ff3deaf23.tar.gz |
Simplify the C++ lib, noo point in supporting the old API now.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r-- | libgpsmm.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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_ |