BLOBMSG_TYPE_INT64, BLOBMSG_TYPE_INT32, BLOBMSG_TYPE_INT16, BLOBMSG_TYPE_INT8, __BLOBMSG_TYPE_LAST, BLOBMSG_TYPE_LAST= __BLOBMSG_TYPE_LAST -1, BLOBMSG_TYPE_BOOL=BLOBMSG_TYPE_INT8, };structblobmsg_hdr { uint16_t namelen; uint8_t name[]; } __packed; // 解析blobmsg列表structblobmsg...
3:BLOBMSG_TYPE_ARRAY, 4:BLOBMSG_TYPE_TABLE, 5:BLOBMSG_TYPE_STRING, 6:BLOBMSG_TYPE_INT64, 7:BLOBMSG_TYPE_INT32, 8:BLOBMSG_TYPE_INT16, 9:BLOBMSG_TYPE_INT8, 10:__BLOBMSG_TYPE_LAST, 11:BLOBMSG_TYPE_LAST = __BLOBMSG_TYPE_LAST - 1, 12:BLOBMSG_TYPE_BOOL = BLOBMSG_TYPE_INT8, 13:};...
sprintf(buf, "%" PRId64, (int64_t) be64_to_cpu(*(uint64_t *)data)); break; case BLOBMSG_TYPE_DOUBLE: sprintf(buf, "%lf", blobmsg_get_double(attr)); break; case BLOBMSG_TYPE_STRING: blobmsg_format_string(s, data); return; case BLOBMSG_TYPE_ARRAY: blobmsg_format_...
3:BLOBMSG_TYPE_ARRAY, 4:BLOBMSG_TYPE_TABLE, 5:BLOBMSG_TYPE_STRING, 6:BLOBMSG_TYPE_INT64, 7:BLOBMSG_TYPE_INT32, 8:BLOBMSG_TYPE_INT16, 9:BLOBMSG_TYPE_INT8, 10:__BLOBMSG_TYPE_LAST, 11:BLOBMSG_TYPE_LAST = __BLOBMSG_TYPE_LAST - 1, 12:BLOBMSG_TYPE_BOOL = BLOBMSG_TYPE_INT8, 13:};...