Changeset 36:29e3b676c0c2 in xplra for src/client/c/hu
- Timestamp:
- 02/10/13 08:21:47 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/client/c/hu/varadiistvan/xplra
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/XPlane.cc
r30 r36 193 193 //------------------------------------------------------------------------------ 194 194 195 void XPlane::getVersions(int& xplaneVersion, int& xplmVersion, int& xplraVersion) 196 throw(Exception) 197 { 198 stream->writeU8(Protocol::COMMAND_GET_VERSIONS); 199 stream->flush(); 200 checkResult(); 201 202 xplaneVersion = stream->readS32(); 203 xplmVersion = stream->readS32(); 204 xplraVersion = stream->readS32(); 205 206 checkStream(); 207 } 208 209 //------------------------------------------------------------------------------ 210 195 211 void XPlane::getScalar(const char* name, uint8_t type) throw(Exception) 196 212 { -
src/client/c/hu/varadiistvan/xplra/XPlane.h
r30 r36 145 145 146 146 /** 147 * Get the versions of X-Plane, XPLM and the XPLRA plugin. 148 */ 149 void getVersions(int& xplaneVersion, int& xplmVersion, int& xplraVersion) throw(Exception); 150 151 /** 147 152 * Get the integer value of the dataref with the given name. 148 153 */ -
src/client/c/hu/varadiistvan/xplra/xplra.cc
r29 r36 498 498 //------------------------------------------------------------------------------ 499 499 500 extern "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 500 517 extern "C" int xplra_get_int(int* value, int connectionID, const char* name) 501 518 { -
src/client/c/hu/varadiistvan/xplra/xplra.h
r29 r36 130 130 131 131 /*----------------------------------------------------------------------------*/ 132 133 /** 134 * Get the versions of X-Plane, the XPLM library and XPLRA 135 */ 136 int xplra_get_versions(int connectionID, 137 int* xplaneVersion, int* xplmVersion, 138 int* xplraVersion); 139 140 /*----------------------------------------------------------------------------*/ 132 141 /* Single dataref support */ 133 142 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.