From 803945dbc8a9e55948d75a33dbb1769c6b030c65 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 24 Feb 2023 11:57:00 +0100 Subject: [PATCH] Return the gid of the created type --- test/emu/nosv/instr_nosv.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/emu/nosv/instr_nosv.h b/test/emu/nosv/instr_nosv.h index d20aa4c..8f251bd 100644 --- a/test/emu/nosv/instr_nosv.h +++ b/test/emu/nosv/instr_nosv.h @@ -6,7 +6,9 @@ #include "../instr.h" -static inline void +#include "task.h" + +static inline uint32_t instr_nosv_type_create(int32_t typeid) { struct ovni_ev ev = {0}; @@ -25,6 +27,8 @@ instr_nosv_type_create(int32_t typeid) nbytes += strlen(p) + 1; ovni_ev_jumbo_emit(&ev, (uint8_t *) buf, nbytes); + + return task_get_type_gid(p); } INSTR_2ARG(instr_nosv_task_create, "VTc", int32_t, id, uint32_t, typeid)