Skip to content

Commit 5fbcc2e

Browse files
committed
wip uuid gen
1 parent 7e241f1 commit 5fbcc2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/v/serde/test/struct_gen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class BasicType(Enum):
1717
CHAR = 5
1818
FLOAT = 6
1919
DOUBLE = 7
20+
UUID = 8
2021

2122
# complex types
2223
STRING = 100
@@ -131,6 +132,7 @@ def __str__(self):
131132

132133
FILE_TEMPLATE = """#include "serde/envelope.h"
133134
#include "serde/serde.h"
135+
#include "util/uuid.h"
134136
135137
template<typename... T>
136138
struct type_list {};
@@ -168,6 +170,7 @@ def __str__(self):
168170
Type(BasicType.CHAR),
169171
Type(BasicType.FLOAT),
170172
Type(BasicType.DOUBLE),
173+
Type(BasicType.UUID),
171174
Type(BasicType.STRING),
172175
Type(BasicType.IOBUF),
173176
Type(BasicType.VECTOR, Type(BasicType.INT_32)),

0 commit comments

Comments
 (0)