gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Checking API versions


From: Michael J. Tubby B.Sc. MIET
Subject: Re: [gpsd-dev] Checking API versions
Date: Sun, 5 Nov 2017 19:11:02 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi Gary,

The problem is that:
 
    proto_major != GPSD_API_MAJOR_VERSION

    proto_major = 3
    GPSD_API_MAJOR_VERSION = 6

Regards

Mike

On 11/5/2017 6:43 PM, Gary E. Miller wrote:
Yo Michael!

On Sun, 5 Nov 2017 18:29:45 +0000
"Michael J. Tubby B.Sc. MIET" <address@hidden> wrote:

It 
needs to test the API version to ensure that if GPSD has been
upgraded by the user to a version that's not compatible that we break
and issue an appropriate error message.
Common thing to do.

#define GPSD_API_MAJOR_VERSION  6      /* bump on incompatible changes */

      
     int proto_major, proto_minor;       /* API major and minor
                                            versions */

Just check that proto_major == GPSD_API_MAJOR_VERSION

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	address@hidden  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

--

Michael J Tubby B.Sc MIET / Technical Director / +44 (0)7973 225144

Thorcom Systems Ltd
Office: +44 (0)1905 756 700 / Fax: +44 (0)1905 755 777
Unit 4, 96B Blackpole Trading Estate West, Worcester, WR3 8TJ Registered in England & Wales 2704696 / VAT number GB 487 9256 81
www.thorcom.co.uk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]