Changeset 6263 for luci2/libunl/unl/msg.h
- Timestamp:
- 09/28/10 21:37:00 (3 years ago)
- Files:
-
- 1 modified
-
luci2/libunl/unl/msg.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci2/libunl/unl/msg.h
r6262 r6263 338 338 339 339 /** 340 * Same as unl_attr_append_ nestedbut appends a zero-terminated string340 * Same as unl_attr_append_attr but appends a zero-terminated string 341 341 */ 342 342 static inline void* unl_attr_append_string … … 345 345 } 346 346 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 */ 347 353 #define unl_attr_append_number(nla, type, datatype, value) \ 348 354 (*((datatype*)unl_attr_claim_attr(nla, type, sizeof(datatype))) = value)
