X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=data%2Fgen-code.pl;h=5245bdeb5bbde4319791ec1ef68f5a7bd7641e00;hb=b8e45d120ce97dd85e0fe13b4114593407da9973;hp=63871a01eb7da50625da50c2c5c0e3f3c598a6f9;hpb=7fe36553d1cf57f4daacfc0359d960e4d5bc0985;p=project%2Fuqmi.git diff --git a/data/gen-code.pl b/data/gen-code.pl index 63871a0..5245bde 100755 --- a/data/gen-code.pl +++ b/data/gen-code.pl @@ -19,6 +19,7 @@ my %tlv_get = ( guint32 => "le32_to_cpu(*(uint32_t *) get_next(4))", gint64 => "le64_to_cpu(*(uint64_t *) get_next(8))", guint64 => "le64_to_cpu(*(uint64_t *) get_next(8))", + gfloat => "({ uint32_t data = le32_to_cpu(*(uint32_t *) get_next(4)); *((float *) &data); })" ); my %tlv_get_be = (