Diff for /libaitio/inc/aitio.h between versions 1.16 and 1.16.2.1

version 1.16, 2012/03/29 01:31:33 version 1.16.2.1, 2012/03/29 09:37:19
Line 91  typedef enum { Line 91  typedef enum {
 typedef struct {  typedef struct {
         uint8_t         val_type;          uint8_t         val_type;
         uint8_t         val_pad;          uint8_t         val_pad;
        uint16_t        val_hash;        uint16_t        val_key;
         uint32_t        val_len;          uint32_t        val_len;
         union {          union {
                 uint64_t        net;                  uint64_t        net;
Line 116  typedef struct { Line 116  typedef struct {
   
 #define AIT_TYPE(_vl)                   ((ait_type_t) (_vl)->val_type)  #define AIT_TYPE(_vl)                   ((ait_type_t) (_vl)->val_type)
 #define AIT_LEN(_vl)                    (_vl)->val_len  #define AIT_LEN(_vl)                    (_vl)->val_len
#define AIT_HASH(_vl)                   (_vl)->val_hash#define AIT_KEY(_vl)                   (_vl)->val_key
 #define AIT_RAW(_vl)                    (_vl)->val.net  #define AIT_RAW(_vl)                    (_vl)->val.net
 #define AIT_VOID(_vl)                   (_vl)->val.ptr  #define AIT_VOID(_vl)                   (_vl)->val.ptr
 #define AIT_BLOB_CHUNKS(_vl, _n)        (assert((_vl)), AIT_LEN((_vl)) / _n + (AIT_LEN((_vl)) % _n) ? 1 : 0)  #define AIT_BLOB_CHUNKS(_vl, _n)        (assert((_vl)), AIT_LEN((_vl)) / _n + (AIT_LEN((_vl)) % _n) ? 1 : 0)
Line 375  inline int io_clrVars(array_t * __restrict vars); Line 375  inline int io_clrVars(array_t * __restrict vars);
  * return: none   * return: none
  */   */
 inline void io_freeVars(array_t ** __restrict vars);  inline void io_freeVars(array_t ** __restrict vars);
   /*
    * io_sortVars() - Sorting array with variables
    *
    * @vars = Variable array
    * @order = Sort order. If =0 ascend ot !=0 descend
    * @cmp = Compare function for sorting. If =NULL compare by key
    * return: none
    */
   inline void io_sortVars(array_t * __restrict vars, int order, 
                   int (*cmp)(const void*, const void*));
   
   
 /*  /*

Removed from v.1.16  
changed lines
  Added in v.1.16.2.1


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