Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tag: 0.4.0
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (56 sloc) 2.31 KB
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
* lt-list.h
* Copyright (C) 2011-2012 Akira TAGOH
* Authors:
* Akira TAGOH <>
* You may distribute under the terms of either the GNU
* Lesser General Public License or the Mozilla Public
* License, as specified in the README file.
#if !defined (__LANGTAG_H__INSIDE) && !defined (__LANGTAG_COMPILATION)
#error "Only <liblangtag/langtag.h> can be included directly."
#ifndef __LT_LIST_H__
#define __LT_LIST_H__
#include "lt-macros.h"
* lt_list_t:
* All the fields in the <structname>lt_list_t</structname>
* structure are private to the #lt_list_t implementation.
typedef struct _lt_list_t lt_list_t;
lt_list_t *lt_list_new (void);
lt_list_t *lt_list_ref (lt_list_t *list);
void lt_list_unref (lt_list_t *list);
void lt_list_free (lt_pointer_t data);
lt_list_t *lt_list_first (lt_list_t *list);
lt_list_t *lt_list_last (lt_list_t *list);
lt_list_t *lt_list_previous (const lt_list_t *list);
lt_list_t *lt_list_next (const lt_list_t *list);
lt_pointer_t lt_list_value (const lt_list_t *list);
size_t lt_list_length (const lt_list_t *list);
lt_list_t *lt_list_append (lt_list_t *list,
lt_pointer_t data,
lt_destroy_func_t func);
lt_list_t *lt_list_remove (lt_list_t *list,
lt_pointer_t data);
lt_list_t *lt_list_delete (lt_list_t *list,
lt_pointer_t data);
lt_list_t *lt_list_delete_link(lt_list_t *list,
lt_list_t *link_);
lt_list_t *lt_list_find (lt_list_t *list,
const lt_pointer_t data);
lt_list_t *lt_list_find_custom(lt_list_t *list,
const lt_pointer_t data,
lt_compare_func_t func);
lt_list_t *lt_list_sort (lt_list_t *list,
lt_compare_func_t func);
lt_list_t *lt_list_pop (lt_list_t *list,
lt_pointer_t *data);
#endif /* __LT_LIST_H__ */
Jump to Line
Something went wrong with that request. Please try again.