Diff for /libelwix/inc/elwix/aiov.h between versions 1.1.2.2 and 1.1.2.4

version 1.1.2.2, 2021/03/19 00:40:28 version 1.1.2.4, 2021/03/19 03:07:11
Line 54  struct tagIOV { Line 54  struct tagIOV {
 typedef struct tagIOV iovec_t;  typedef struct tagIOV iovec_t;
   
 #define iov_Size(x)     (x)->iov_size  #define iov_Size(x)     (x)->iov_size
   #define iov_Array(x)    (x)->iov_array
   
 /*  /*
  * iov_Init() - Init new iovec array   * iov_Init() - Init new iovec array
Line 77  void iov_Destroy(iovec_t ** __restrict iov); Line 78  void iov_Destroy(iovec_t ** __restrict iov);
  * @datlen = data length   * @datlen = data length
  * return: -1 error, 0 ok   * return: -1 error, 0 ok
  */   */
int iov_Get(iovec_t * __restrict iov, unsigned int pos, void **data, size_t *datlen);int iov_Get(iovec_t * __restrict iov, unsigned int pos, void *data, size_t *datlen);
 /*  /*
  * iov_Insert() - Insert data at position into array   * iov_Insert() - Insert data at position into array
  *   *
Line 115  int iov_Push(iovec_t * __restrict iov, void *data, siz Line 116  int iov_Push(iovec_t * __restrict iov, void *data, siz
  * @mustfree = data must be free before delete   * @mustfree = data must be free before delete
  * return: -1 error, !=-1 poped from position   * return: -1 error, !=-1 poped from position
  */   */
int iov_Pop(iovec_t * __restrict iov, void **data, size_t *datlen, int mustfree);int iov_Pop(iovec_t * __restrict iov, void *data, size_t *datlen, int mustfree);
 /*  /*
  * iov_PushPair() - Push pair/named data on first free position   * iov_PushPair() - Push pair/named data on first free position
  *   *
Line 137  int iov_PushPair(iovec_t * __restrict iov, const char  Line 138  int iov_PushPair(iovec_t * __restrict iov, const char 
  * @mustfree = data must be free before delete   * @mustfree = data must be free before delete
  * return: -1 error, !=-1 poped from position   * return: -1 error, !=-1 poped from position
  */   */
int iov_PopPair(iovec_t * __restrict iov, char **name, size_t *namlen, int iov_PopPair(iovec_t * __restrict iov, char *name, size_t *namlen, 
                void **data, size_t *datlen);                void *data, size_t *datlen, int mustfree);
   
 /*  /*
  * iov_Debug() - Debug of iovec array   * iov_Debug() - Debug of iovec array

Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.4


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