func_info->release_func = func;
func_info->user_data = user_data;
- LIST_ADD(&func_info->link, &buf_info->release_funcs);
+ LIST_ADDTAIL(&func_info->link, &buf_info->release_funcs);
return TDM_ERROR_NONE;
}
func_info->destroy_func = func;
func_info->user_data = user_data;
- LIST_ADD(&func_info->link, &buf_info->destroy_funcs);
+ LIST_ADDTAIL(&func_info->link, &buf_info->destroy_funcs);
return TDM_ERROR_NONE;
}
change_handler->owner_tid = syscall(SYS_gettid);
if (!tdm_thread_in_display_thread(change_handler->owner_tid))
- LIST_ADD(&change_handler->link, &private_output->change_handler_list_sub);
+ LIST_ADDTAIL(&change_handler->link, &private_output->change_handler_list_sub);
else
- LIST_ADD(&change_handler->link, &private_output->change_handler_list_main);
+ LIST_ADDTAIL(&change_handler->link, &private_output->change_handler_list_main);
_pthread_mutex_unlock(&private_display->lock);
return TDM_ERROR_OUT_OF_MEMORY;
}
- LIST_ADD(&output_commit_handler->link, &private_output->output_commit_handler_list);
+ LIST_ADDTAIL(&output_commit_handler->link, &private_output->output_commit_handler_list);
output_commit_handler->private_output = private_output;
output_commit_handler->func = func;
output_commit_handler->user_data = user_data;
if (!private_display->commit_per_vblank) {
TDM_GOTO_IF_FAIL(private_display->commit_type == TDM_COMMIT_TYPE_OUTPUT, commit_failed);
- LIST_ADD(&layer_commit_handler->link, &private_output->layer_commit_handler_list);
+ LIST_ADDTAIL(&layer_commit_handler->link, &private_output->layer_commit_handler_list);
ret = _tdm_output_commit(private_layer->private_output, 0, _tdm_layer_cb_output_commit, layer_commit_handler);
TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, commit_failed);
if (_tdm_layer_commit_possible(private_layer)) {
/* add to layer_commit_handler_list */
- LIST_ADD(&layer_commit_handler->link, &private_output->layer_commit_handler_list);
+ LIST_ADDTAIL(&layer_commit_handler->link, &private_output->layer_commit_handler_list);
ret = _tdm_output_commit(private_layer->private_output, 0, NULL, NULL);
TDM_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, commit_failed);
TDM_INFO("layer(%p) commit: output", private_layer);
} else {
/* add to pending_commit_handler_list. It will be commited when a vblank occurs */
- LIST_ADD(&layer_commit_handler->link, &private_output->pending_commit_handler_list);
+ LIST_ADDTAIL(&layer_commit_handler->link, &private_output->pending_commit_handler_list);
if (tdm_debug_module & TDM_DEBUG_COMMIT)
TDM_INFO("layer(%p) commit: pending", private_layer);