FossilOrigin-Name: 968d10c26f0cd7ba32e00b75d6af37d689aade5c2098caa9e2113bc3df285fb1
This commit is contained in:
7u83@mail.ru
2015-04-14 05:42:23 +00:00
parent 2adfefefaa
commit 3c831ae8b1
22 changed files with 288 additions and 90 deletions

View File

@ -173,6 +173,12 @@
/* useful macros and inline functions */
/**
* @defgroup LWAPPFunctions LWAPP Functions
* @{
*/
#define lw_foreach_elem(d,msg,len) for(d=msg; d<msg+len; d=d+3+LWMSGELEM_GET_LEN(d))
@ -231,6 +237,9 @@ static inline int lw_put_elem_hdr(uint8_t *dst,uint8_t type,uint16_t len)
return 3;
}
/**@}*/
extern int lw_put_sockaddr(uint8_t *dst, struct sockaddr_storage *addr);