-void TRACE_host_push_state (const char *host, const char *state, const char *value)
-{ paje_value pj_value;
- container_t container = PJ_container_get(host);
- type_t type = PJ_type_get (state, container->type);
- val_t val = pj_value.PJ_value_get_or_new (value, nullptr, type); /* if user didn't declare a value with a color, use nullptr color */
- new PushStateEvent(MSG_get_clock(), container, type, val);
+void TRACE_host_push_state(const char* host, const char* state, const char* value_str)
+{
+ container_t container = simgrid::instr::Container::byName(host);
+ simgrid::instr::Type* type = container->type_->byName(state);
+ simgrid::instr::Value* val = simgrid::instr::Value::byNameOrCreate(
+ value_str, "", type); /* if user didn't declare a value with a color, use no color */
+ new simgrid::instr::PushStateEvent(MSG_get_clock(), container, type, val);