case TABLE_INT32:
case TABLE_UINT32:
+ case TABLE_UINT32_HEX:
return sizeof(uint32_t);
case TABLE_INT16:
}
case TABLE_UINT32:
+ case TABLE_UINT32_HEX:
buffer.uint32 = va_arg(ap, uint32_t);
data = &buffer.uint32;
break;
return CMP(a->uint16, b->uint16);
case TABLE_UINT32:
+ case TABLE_UINT32_HEX:
return CMP(a->uint32, b->uint32);
case TABLE_UINT64:
break;
}
+ case TABLE_UINT32_HEX: {
+ _cleanup_free_ char *p = NULL;
+
+ p = new(char, 8 + 1);
+ if (!p)
+ return NULL;
+
+ sprintf(p, "%" PRIx32, d->uint32);
+ d->formatted = TAKE_PTR(p);
+ break;
+ }
+
case TABLE_UINT64: {
_cleanup_free_ char *p = NULL;
return json_variant_new_unsigned(ret, d->uint16);
case TABLE_UINT32:
+ case TABLE_UINT32_HEX:
return json_variant_new_unsigned(ret, d->uint32);
case TABLE_UINT64: