bugGPSD - Bugs: bug #52347, No define for current proto_major

 
 

bug #52347: No define for current proto_major

Submitter:  Gary E. Miller <garyemiller>
Submitted:  Mon 06 Nov 2017 12:13:38 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 May 2019 04:36:41 AM UTC, comment #2: 

I've added mike.tubby's suggestion to our to-do list for the next protocol break, so we can close this.

Eric S. Raymond <esr>
Group administrator
Mon 06 Nov 2017 08:27:07 PM UTC, comment #1: 

From: "Michael J. Tubby B.Sc. MIET" <mike.tubby@thorcom.co.uk>

I think the issue is that we're trying to version control several things:

1. GPSD itself, e.g. 'release' 3.17 which has a major of '3' and a minor of '17'

2. GPSD's most recent version, e.g. major '3' and minor '12' since nothing external has changed between 3.12 and 3.17

3. The JSON protcol interface level - which may also be 3.12 (or
something different)

4. the libgps API version, which appears to be 6.1

Perhaps version_t needs to be bumped from:

struct version_t {
     char release[64];                   /* external version */
     char rev[64];                       /* internal revision ID */
     int proto_major, proto_minor;       /* API major and minor versions */
     char remote[GPS_PATH_MAX];          /* could be from a remote device */
};

to:

struct version_t {
     char release[64];                   /* external version */
     char rev[64];                       /* internal revision ID */
     int release_major, release_minor,   /* release as two part integers */
     int proto_major, proto_minor;       /* JSON protocol major and
minor versions */
     int api_major, api_minor;           /* API (libgps) major and minor
versions */
     char remote[GPS_PATH_MAX];          /* could be from a remote device */
};

then we'd have everything and it could be testable programmatically.


Gary E. Miller <garyemiller>
Group administrator
Mon 06 Nov 2017 12:13:38 AM UTC, original submission:  

A client should check that proto_major matches the expected API version, but there is not define for is.  The current API version is 3.1, but GPSD_API_MAJOR_VERSION is currently 6.

Did the API version and daemon version get switched?

Gary E. Miller <garyemiller>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Posted a comment)
  • -email is unavailable- added by garyemiller (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-31 esr Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code