Ignore:
Timestamp:
02/07/13 16:45:59 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented the set operations

File:
1 edited

Legend:

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

    r24 r25  
    245245
    246246/**
     247 * Set the integer dataref with the given name to the given value.
     248 *
     249 * @return 0 on success, -1 on error.
     250 */
     251int 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 */
     260int 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 */
     269int 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 */
     279int 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 */
     290int 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 */
     301int 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 */
     313int xplra_set_string(int connectionID, const char* name,
     314                     const char* value, size_t length, size_t offset);
     315
     316/*----------------------------------------------------------------------------*/
     317
     318/**
    247319 * Destroy the connection with the given ID.
    248320 *
Note: See TracChangeset for help on using the changeset viewer.