- type_t msg_process = PJ_type_get_or_null ("MSG_PROCESS", container->type);
- if (msg_process == NULL){
- msg_process = PJ_type_container_new("MSG_PROCESS", container->type);
- type_t state = PJ_type_state_new ("MSG_PROCESS_STATE", msg_process);
- PJ_value_new ("suspend", "1 0 1", state);
- PJ_value_new ("sleep", "1 1 0", state);
- PJ_value_new ("receive", "1 0 0", state);
- PJ_value_new ("send", "0 0 1", state);
- PJ_value_new ("task_execute", "0 1 1", state);
- PJ_type_link_new ("MSG_PROCESS_LINK", PJ_type_get_root(), msg_process, msg_process);
- PJ_type_link_new ("MSG_PROCESS_TASK_LINK", PJ_type_get_root(), msg_process, msg_process);
+ type_t msg_process = s_type::s_type_get_or_null ("MSG_PROCESS", container->type);
+ if (msg_process == nullptr){
+ msg_process = s_type::s_type_container_new("MSG_PROCESS", container->type);
+ type_t state = s_type::s_type_state_new ("MSG_PROCESS_STATE", msg_process);
+ value PJ_value("suspend", "1 0 1", state);
+ value::get_or_new("sleep", "1 1 0", state);
+ value::get_or_new("receive", "1 0 0", state);
+ value::get_or_new("send", "0 0 1", state);
+ value::get_or_new("task_execute", "0 1 1", state);
+ s_type::s_type_link_new ("MSG_PROCESS_LINK", PJ_type_get_root(), msg_process, msg_process);
+ s_type::s_type_link_new ("MSG_PROCESS_TASK_LINK", PJ_type_get_root(), msg_process, msg_process);