Show
Ignore:
Timestamp:
09/28/10 21:37:00 (3 years ago)
Author:
Cyrus
Message:

libunl: Minor improvements

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci2/libunl/unl/msg.h

    r6262 r6263  
    338338 
    339339/** 
    340  * Same as unl_attr_append_nested but appends a zero-terminated string 
     340 * Same as unl_attr_append_attr but appends a zero-terminated string 
    341341 */ 
    342342static inline void* unl_attr_append_string 
     
    345345} 
    346346 
     347 
     348/** 
     349 * Same as unl_attr_append_attr but appends a numerical value 
     350 * 
     351 * datatype: type to cast the value to before appending 
     352 */ 
    347353#define unl_attr_append_number(nla, type, datatype, value) \ 
    348354    (*((datatype*)unl_attr_claim_attr(nla, type, sizeof(datatype))) = value)