ucode: add const entries for enum udebug_format
authorFelix Fietkau <[email protected]>
Wed, 23 Jul 2025 08:51:43 +0000 (10:51 +0200)
committerFelix Fietkau <[email protected]>
Wed, 23 Jul 2025 08:51:43 +0000 (10:51 +0200)
Signed-off-by: Felix Fietkau <[email protected]>
lib-ucode.c

index b6e258d855b2c60d1a000873c3e5ede7d6dcbb40..49e60fafab3a2361a5d83430892934e79b5fa3d5 100644 (file)
@@ -707,6 +707,9 @@ void uc_module_init(uc_vm_t *vm, uc_value_t *scope)
 
 #define ADD_CONST(name) \
        ucv_object_add(scope, #name, ucv_int64_new(UDEBUG_##name))
+       ADD_CONST(FORMAT_PACKET);
+       ADD_CONST(FORMAT_STRING);
+       ADD_CONST(FORMAT_BLOBMSG);
        ADD_CONST(DLT_ETHERNET);
        ADD_CONST(DLT_PPP);
        ADD_CONST(DLT_IEEE_802_11);