chromium/third_party/wayland/src/src/wayland-util.c

/*
 * Copyright © 2008-2011 Kristian Høgsberg
 * Copyright © 2011 Intel Corporation
 *
 * 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 (including the
 * next paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS
 * 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.
 */

#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>

#include "wayland-util.h"
#include "wayland-private.h"

WL_EXPORT void
wl_list_init(struct wl_list *list)
{}

WL_EXPORT void
wl_list_insert(struct wl_list *list, struct wl_list *elm)
{}

WL_EXPORT void
wl_list_remove(struct wl_list *elm)
{}

WL_EXPORT int
wl_list_length(const struct wl_list *list)
{}

WL_EXPORT int
wl_list_empty(const struct wl_list *list)
{}

WL_EXPORT void
wl_list_insert_list(struct wl_list *list, struct wl_list *other)
{}

WL_EXPORT void
wl_array_init(struct wl_array *array)
{}

WL_EXPORT void
wl_array_release(struct wl_array *array)
{}

WL_EXPORT void *
wl_array_add(struct wl_array *array, size_t size)
{}

WL_EXPORT int
wl_array_copy(struct wl_array *array, struct wl_array *source)
{}

/** \cond */

int
wl_interface_equal(const struct wl_interface *a, const struct wl_interface *b)
{}

map_entry;

static inline bool
map_entry_is_free(union map_entry entry)
{}

static inline void *
map_entry_get_data(union map_entry entry)
{}

static inline uint32_t
map_entry_get_flags(union map_entry entry)
{}

void
wl_map_init(struct wl_map *map, uint32_t side)
{}

void
wl_map_release(struct wl_map *map)
{}

uint32_t
wl_map_insert_new(struct wl_map *map, uint32_t flags, void *data)
{}

int
wl_map_insert_at(struct wl_map *map, uint32_t flags, uint32_t i, void *data)
{}

int
wl_map_reserve_new(struct wl_map *map, uint32_t i)
{}

void
wl_map_remove(struct wl_map *map, uint32_t i)
{}

void *
wl_map_lookup(struct wl_map *map, uint32_t i)
{}

uint32_t
wl_map_lookup_flags(struct wl_map *map, uint32_t i)
{}

static enum wl_iterator_result
for_each_helper(struct wl_array *entries, wl_iterator_func_t func, void *data)
{}

void
wl_map_for_each(struct wl_map *map, wl_iterator_func_t func, void *data)
{}

static void
wl_log_stderr_handler(const char *fmt, va_list arg)
{}

wl_log_func_t wl_log_handler =;

void
wl_log(const char *fmt, ...)
{}

void
wl_abort(const char *fmt, ...)
{}

/** \endcond */