Changeset 40:ec5dde8a6ff6 in xplra for src/client/c/hu/varadiistvan/xplra/xplra.cc
- Timestamp:
- 02/14/13 18:21:47 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/xplra.cc
r36 r40 515 515 //------------------------------------------------------------------------------ 516 516 517 extern "C" int xplra_reload_plugins(int connectionID) 518 { 519 Connection* connection = ConnectionSlot::getValue(connectionID); 520 if (connection==0) return -1; 521 try { 522 connection->reloadPlugins(); 523 return 0; 524 } catch (...) { 525 connection->handleException(); 526 return -1; 527 } 528 } 529 530 //------------------------------------------------------------------------------ 531 517 532 extern "C" int xplra_get_int(int* value, int connectionID, const char* name) 518 533 { … … 1267 1282 try { 1268 1283 return connection->destroyMultiBuffer(bufferID) ? 0 : -1; 1284 } catch(...) { 1285 connection->handleException(); 1286 return -1; 1287 } 1288 } 1289 1290 //------------------------------------------------------------------------------ 1291 //------------------------------------------------------------------------------ 1292 1293 extern "C" int xplra_show_message(int connectionID, 1294 const char* message, float duration) 1295 { 1296 Connection* connection = ConnectionSlot::getValue(connectionID); 1297 if (connection==0) return -1; 1298 1299 try { 1300 connection->showMessage(message, duration); 1301 return 0; 1269 1302 } catch(...) { 1270 1303 connection->handleException();
Note:
See TracChangeset
for help on using the changeset viewer.