linux/drivers/gpu/drm/amd/display/dc/basics/vector.c

/*
 * Copyright 2012-15 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#include "dm_services.h"
#include "include/vector.h"

bool dal_vector_construct(
	struct vector *vector,
	struct dc_context *ctx,
	uint32_t capacity,
	uint32_t struct_size)
{}

static bool dal_vector_presized_costruct(struct vector *vector,
					 struct dc_context *ctx,
					 uint32_t count,
					 void *initial_value,
					 uint32_t struct_size)
{}

struct vector *dal_vector_presized_create(
	struct dc_context *ctx,
	uint32_t size,
	void *initial_value,
	uint32_t struct_size)
{}

struct vector *dal_vector_create(
	struct dc_context *ctx,
	uint32_t capacity,
	uint32_t struct_size)
{}

void dal_vector_destruct(
	struct vector *vector)
{}

void dal_vector_destroy(
	struct vector **vector)
{}

uint32_t dal_vector_get_count(
	const struct vector *vector)
{}

void *dal_vector_at_index(
	const struct vector *vector,
	uint32_t index)
{}

bool dal_vector_remove_at_index(
	struct vector *vector,
	uint32_t index)
{}

void dal_vector_set_at_index(
	const struct vector *vector,
	const void *what,
	uint32_t index)
{}

static inline uint32_t calc_increased_capacity(
	uint32_t old_capacity)
{}

bool dal_vector_insert_at(
	struct vector *vector,
	const void *what,
	uint32_t position)
{}

bool dal_vector_append(
	struct vector *vector,
	const void *item)
{}

struct vector *dal_vector_clone(
	const struct vector *vector)
{}

uint32_t dal_vector_capacity(const struct vector *vector)
{}

bool dal_vector_reserve(struct vector *vector, uint32_t capacity)
{}

void dal_vector_clear(struct vector *vector)
{}