Diff for /libelwix/inc/elwix/avar.h between versions 1.12 and 1.12.2.2

version 1.12, 2022/01/06 15:13:01 version 1.12.2.2, 2022/01/24 17:07:24
Line 377  typedef struct __packed { Line 377  typedef struct __packed {
  * @vars = Variable array   * @vars = Variable array
  * return: -1 error, 0 nothing done or >0 size of marshaled data   * return: -1 error, 0 nothing done or >0 size of marshaled data
  */   */
int ait_vars2buffer(unsigned char * __restrict buf, int buflen, int ait_vars2buffer(unsigned char * __restrict buf, int buflen, array_t * __restrict vars);
                array_t * __restrict vars); 
 /*  /*
  * ait_buffer2vars() - De-marshaling data from buffer to array with variables   * ait_buffer2vars() - De-marshaling data from buffer to array with variables
  *   *
Line 391  int ait_vars2buffer(unsigned char * __restrict buf, in Line 390  int ait_vars2buffer(unsigned char * __restrict buf, in
  */   */
 array_t *ait_buffer2vars(unsigned char * __restrict buf, int buflen, int vnum, int zcpy);  array_t *ait_buffer2vars(unsigned char * __restrict buf, int buflen, int vnum, int zcpy);
 /*  /*
    * ait_vars2tlv() - Marshaling data from array with variables to TLV buffer
    *
    * @buf = Buffer, If =NULL then we return only needed buffer size
    * @buflen = Size of buffer
    * @vars = Variable array
    * return: -1 error, 0 nothing done or >0 size of marshaled data
    */
   int ait_vars2tlv(u_char * __restrict buf, int buflen, array_t * __restrict vars);
   /*
    * ait_tlv2vars() - De-marshaling data from TLV buffer to array with variables
    *
    * @buf = Buffer
    * @buflen = Size of buffer
    * return: =NULL error, !=NULL allocated variable array, after use must free with ait_freeVars()
    */
   array_t *ait_tlv2vars(u_char * __restrict buf, int buflen);
   /*
  * ait_vars2map() - Marshaling data from array with variables to memory map   * ait_vars2map() - Marshaling data from array with variables to memory map
  *   *
  * @buf = Buffer   * @buf = Buffer
Line 411  int ait_vars2map(unsigned char * __restrict buf, int b Line 427  int ait_vars2map(unsigned char * __restrict buf, int b
  */   */
 array_t *ait_map2vars(unsigned char * __restrict buf, int buflen, int vnum, int zcpy);  array_t *ait_map2vars(unsigned char * __restrict buf, int buflen, int vnum, int zcpy);
   
   /*
    * ait_array2vars() - Build array with variables from Null Terminated String Array
    *
    * @args = Null-terminated array with strings
    * @dn = Convert numbers from strings to numbers into variables
    * return: =NULL error, !=NULL allocated variable array, after use must free with ait_freeVars()
    */
   array_t *ait_array2vars(const char **args, int dn);
   
 /*  /*
  * ait_allocVar() - Allocate memory for variable   * ait_allocVar() - Allocate memory for variable

Removed from v.1.12  
changed lines
  Added in v.1.12.2.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>