--- libaitio/inc/aitio.h 2011/08/29 14:57:53 1.11.2.1 +++ libaitio/inc/aitio.h 2011/08/29 22:35:20 1.11.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.11.2.1 2011/08/29 14:57:53 misho Exp $ +* $Id: aitio.h,v 1.11.2.2 2011/08/29 22:35:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -103,7 +103,7 @@ struct tagReqXML { url_Item_t xml_value; }; -/* RPC variables and managment */ +/* AIT RPC variables and managment */ typedef enum { empty, /* empty -> variable is not set */ @@ -171,6 +171,7 @@ typedef struct { __val->val.blob = (_bv)->blob_var; } while (0) #define AIT_SET_ARRAY(_vl, _arr) do { ait_val_t *__val = (_vl); assert(__val); assert((_arr)); \ AIT_TYPE(__val) = array; AIT_LEN(__val) = io_arraySize((_arr)); \ + __val->val.array = (uint8_t*) (_arr); \ } while (0) #define AIT_SET_U8(_vl, _n) do { ait_val_t *__val = (_vl); assert(__val); \ @@ -211,9 +212,6 @@ typedef struct { free(__val->val.string); \ __val->val.string = NULL; \ } \ - break; \ - case array: \ - io_arrayDestroy(&AIT_GET_ARRAY(__val)); \ break; \ } \ AIT_TYPE(__val) = empty; \