+ const void *data, unsigned int len);
+
+static inline int
+blobmsg_add_double(struct blob_buf *buf, const char *name, double val)
+{
+ union {
+ double d;
+ uint64_t u64;
+ } v;
+ v.d = val;
+ v.u64 = cpu_to_be64(v.u64);
+ return blobmsg_add_field(buf, BLOBMSG_TYPE_DOUBLE, name, &v.u64, 8);
+}