Blame gegl/buffer/gegl-id-pool.h

Packit Service 2781ba
/* GEGL -
Packit Service 2781ba
 *
Packit Service 2781ba
 * This library is free software; you can redistribute it and/or
Packit Service 2781ba
 * modify it under the terms of the GNU Lesser General Public
Packit Service 2781ba
 * License as published by the Free Software Foundation; either
Packit Service 2781ba
 * version 2 of the License, or (at your option) any later version.
Packit Service 2781ba
 *
Packit Service 2781ba
 * This library is distributed in the hope that it will be useful,
Packit Service 2781ba
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2781ba
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 2781ba
 * Lesser General Public License for more details.
Packit Service 2781ba
 *
Packit Service 2781ba
 * You should have received a copy of the GNU Lesser General Public
Packit Service 2781ba
 * License along with this library; if not, write to the
Packit Service 2781ba
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Packit Service 2781ba
 * Boston, MA 02110-1301, USA.
Packit Service 2781ba
 *
Packit Service 2781ba
 * GeglIDPool: pool of reusable integer ids associated with pointers.
Packit Service 2781ba
 *
Packit Service 2781ba
 * Author: Øyvind Kolås <pippin@o-hand.com>
Packit Service 2781ba
 *
Packit Service 2781ba
 * Clutter
Packit Service 2781ba
 * An OpenGL based 'interactive canvas' library.
Packit Service 2781ba
 * Authored By Matthew Allum  <mallum@openedhand.com>
Packit Service 2781ba
 *
Packit Service 2781ba
 * Copyright (C) 2008 OpenedHand
Packit Service 2781ba
 */
Packit Service 2781ba
Packit Service 2781ba
#ifndef __GEGL_ID_POOL_H__
Packit Service 2781ba
#define __GEGL_ID_POOL_H__
Packit Service 2781ba
Packit Service 2781ba
#include <glib.h>
Packit Service 2781ba
Packit Service 2781ba
G_BEGIN_DECLS
Packit Service 2781ba
Packit Service 2781ba
typedef struct _GeglIDPool   GeglIDPool;
Packit Service 2781ba
Packit Service 2781ba
GeglIDPool *gegl_id_pool_new     (guint       initial_size);
Packit Service 2781ba
void        gegl_id_pool_free    (GeglIDPool *id_pool);
Packit Service 2781ba
guint32     gegl_id_pool_add     (GeglIDPool *id_pool,
Packit Service 2781ba
                                  gpointer    ptr);
Packit Service 2781ba
void        gegl_id_pool_remove  (GeglIDPool *id_pool,
Packit Service 2781ba
                                  guint32     id);
Packit Service 2781ba
gpointer    gegl_id_pool_lookup  (GeglIDPool *id_pool,
Packit Service 2781ba
                                  guint32     id);
Packit Service 2781ba
Packit Service 2781ba
Packit Service 2781ba
G_END_DECLS
Packit Service 2781ba
Packit Service 2781ba
#endif /* __CLUTTER_ID_POOL_H__ */