예제 #1
0
파일: workflow.c 프로젝트: YingfangZhou/ert
static cmd_type * cmd_alloc( const workflow_job_type * workflow_job , const stringlist_type * arglist) {
  cmd_type * cmd = util_malloc( sizeof * cmd );
  UTIL_TYPE_ID_INIT(cmd , CMD_TYPE_ID );
  cmd->workflow_job = workflow_job;
  cmd->arglist = stringlist_alloc_deep_copy( arglist );
  return cmd;
}
예제 #2
0
void config_schema_item_set_required_children(config_schema_item_type * item , stringlist_type * stringlist) {
  item->required_children = stringlist_alloc_deep_copy(stringlist);
}
예제 #3
0
void config_schema_item_set_required_children_on_value(config_schema_item_type * item , const char * value , stringlist_type * child_list) {
  if (item->required_children_value == NULL)
    item->required_children_value = hash_alloc();
  hash_insert_hash_owned_ref( item->required_children_value , value , stringlist_alloc_deep_copy(child_list) , stringlist_free__);
}