Пример #1
0
int
init_context(build_image_context *context)
{
	/* Set defaults */
	context->memory = new_block_list();
	context->next_bct_blk = 0; /* Default to block 0 */
	context_set_value(context, token_redundancy, 1);
	context_set_value(context, token_version, 1);
	context_set_value(context, token_bct_copy, 2);

	return 0;
}
Пример #2
0
int
init_context(build_image_context *context)
{
	u_int32_t value;

	/* Set defaults */
	context->memory = new_block_list();
	context->next_bct_blk = 0; /* Default to block 0 */
	value = 1;
	context_set_value(context, token_redundancy, &value);
	context_set_value(context, token_version, &value);
	value = 2;
	context_set_value(context, token_bct_copy, &value);

	return 0;
}