Changeset 36:29e3b676c0c2 in xplra for test/basicctest.c


Ignore:
Timestamp:
02/10/13 08:21:47 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added a new command to query the versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/basicctest.c

    r29 r36  
    4242    int retval = 0;
    4343    const char* errorString = 0;
     44
     45    int xplaneVersion = 0;
     46    int xplmVersion = 0;
     47    int xplraVersion = 0;
     48
    4449    int numEngines = 0;
    4550    float spoolTime = 0.0;
     
    6974    }
    7075
     76    printf("Querying the versions...\n");
     77    if (xplra_get_versions(connectionID, &xplaneVersion,
     78                           &xplmVersion, &xplraVersion)<0) goto error;
     79    printf("X-Plane version: %d, XPLM: %d, XPLRA: %03d\n\n",
     80           xplaneVersion, xplmVersion, xplraVersion);
     81
    7182    printf("Querying the number of the engines...\n");
    7283    if (xplra_get_int(&numEngines, connectionID,
Note: See TracChangeset for help on using the changeset viewer.