mie: add support for adding traits to types and ops

This commit is contained in:
2026-01-11 14:14:43 +00:00
parent 79c83ef73c
commit 4a0fcef862
13 changed files with 322 additions and 344 deletions

View File

@@ -17,9 +17,16 @@ struct mie_op_definition *mie_op_definition_create(
}
out->op_parent = parent;
mie_trait_table_init(&out->op_traits);
b_rope name_rope = B_ROPE_CSTR(name);
mie_id_map_put(&parent->d_ops, &out->op_id, &name_rope);
return out;
}
enum mie_status mie_op_definition_add_trait(
struct mie_op_definition *op, const struct mie_trait *trait)
{
return mie_trait_table_put(&op->op_traits, trait);
}