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: Gary E. Miller
Subject: Re: [gpsd-dev] Checking API versions
Date: Sun, 5 Nov 2017 10:43:43 -0800

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

Attachment: pgppxg_fkZmNE.pgp
Description: OpenPGP digital signature


reply via email to

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