Ignore:
Timestamp:
02/10/13 08:21:47 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
Message:

Added a new command to query the versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/xplra.cc

    r29 r36  
    498498//------------------------------------------------------------------------------
    499499
     500extern "C"int xplra_get_versions(int connectionID,
     501                                 int* xplaneVersion, int* xplmVersion,
     502                                 int* xplraVersion)
     503{
     504    Connection* connection = ConnectionSlot::getValue(connectionID);
     505    if (connection==0) return -1;
     506    try {
     507        connection->getVersions(*xplaneVersion, *xplmVersion, *xplraVersion);
     508        return 0;
     509    } catch (...) {
     510        connection->handleException();
     511        return -1;
     512    }
     513}
     514
     515//------------------------------------------------------------------------------
     516
    500517extern "C" int xplra_get_int(int* value, int connectionID, const char* name)
    501518{
Note: See TracChangeset for help on using the changeset viewer.