Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1.08 KB
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
* lt-iter.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_ITER_H__
#define __LT_ITER_H__
#include <liblangtag/lt-macros.h>
typedef struct _lt_iter_tmpl_t lt_iter_tmpl_t;
typedef struct _lt_iter_t lt_iter_t;
struct _lt_iter_t {
lt_iter_tmpl_t *target;
lt_iter_t *lt_iter_ref (lt_iter_t *iter);
void lt_iter_unref (lt_iter_t *iter);
lt_iter_t *lt_iter_init (lt_iter_tmpl_t *tmpl);
void lt_iter_finish(lt_iter_t *iter);
lt_bool_t lt_iter_next (lt_iter_t *iter,
lt_pointer_t *key,
lt_pointer_t *val);
#endif /* __LT_ITER_H__ */