Changeset 25:77da156bca86 in xplra for src/client/c/hu/varadiistvan/xplra/xplra.h
- Timestamp:
- 02/07/13 16:45:59 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/xplra.h
r24 r25 245 245 246 246 /** 247 * Set the integer dataref with the given name to the given value. 248 * 249 * @return 0 on success, -1 on error. 250 */ 251 int xplra_set_int(int connectionID, const char* name, int value); 252 253 /*----------------------------------------------------------------------------*/ 254 255 /** 256 * Set the float dataref with the given name to the given value. 257 * 258 * @return 0 on success, -1 on error. 259 */ 260 int xplra_set_float(int connectionID, const char* name, float value); 261 262 /*----------------------------------------------------------------------------*/ 263 264 /** 265 * Set the double dataref with the given name to the given value. 266 * 267 * @return 0 on success, -1 on error. 268 */ 269 int xplra_set_double(int connectionID, const char* name, double value); 270 271 /*----------------------------------------------------------------------------*/ 272 273 /** 274 * Set the array of float values with the given name from the given 275 * buffer. 276 * 277 * @return 0 on success, -1 on error. 278 */ 279 int xplra_set_float_array(int connectionID, const char* name, 280 const float* values, size_t length, size_t offset); 281 282 /*----------------------------------------------------------------------------*/ 283 284 /** 285 * Set the array of integer values with the given name from the given 286 * buffer. 287 * 288 * @return 0 on success, -1 on error. 289 */ 290 int xplra_set_int_array(int connectionID, const char* name, 291 const int32_t* values, size_t length, size_t offset); 292 293 /*----------------------------------------------------------------------------*/ 294 295 /** 296 * Set the array of byte values with the given name from the given 297 * buffer. 298 * 299 * @return 0 on success, -1 on error. 300 */ 301 int xplra_set_byte_array(int connectionID, const char* name, 302 const void* values, size_t length, size_t offset); 303 304 /*----------------------------------------------------------------------------*/ 305 306 /** 307 * Set the array of byte values with the given name from the given 308 * string. The string will be padded with 0 if it has a length less 309 * than the given length. 310 * 311 * @return 0 on success, -1 on error. 312 */ 313 int xplra_set_string(int connectionID, const char* name, 314 const char* value, size_t length, size_t offset); 315 316 /*----------------------------------------------------------------------------*/ 317 318 /** 247 319 * Destroy the connection with the given ID. 248 320 *
Note:
See TracChangeset
for help on using the changeset viewer.