Ignore:
Timestamp:
05/12/13 09:02:44 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added the C and C++ calls to save the current situation

File:
1 edited

Legend:

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

    r70 r87  
    530530//------------------------------------------------------------------------------
    531531
     532extern "C" int xplra_save_situation(int connectionID, const char* path)
     533{
     534    Connection* connection = ConnectionSlot::getValue(connectionID);
     535    if (connection==0) return -1;
     536    try {
     537        connection->saveSituation(path);
     538        return 0;
     539    } catch (...) {
     540        connection->handleException();
     541        return -1;
     542    }
     543}
     544
     545//------------------------------------------------------------------------------
     546
    532547extern "C" int xplra_get_int(int* value, int connectionID, const char* name)
    533548{
Note: See TracChangeset for help on using the changeset viewer.