1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gqueue.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gqueue.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,121 @@
1.4 -gqueue.h
1.5 +/* GLIB - Library of useful routines for C programming
1.6 + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
1.7 + * Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.8 + *
1.9 + * This library is free software; you can redistribute it and/or
1.10 + * modify it under the terms of the GNU Lesser General Public
1.11 + * License as published by the Free Software Foundation; either
1.12 + * version 2 of the License, or (at your option) any later version.
1.13 + *
1.14 + * This library is distributed in the hope that it will be useful,
1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.17 + * Lesser General Public License for more details.
1.18 + *
1.19 + * You should have received a copy of the GNU Lesser General Public
1.20 + * License along with this library; if not, write to the
1.21 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1.22 + * Boston, MA 02111-1307, USA.
1.23 + */
1.24 +
1.25 +/*
1.26 + * Modified by the GLib Team and others 1997-2000. See the AUTHORS
1.27 + * file for a list of people on the GLib Team. See the ChangeLog
1.28 + * files for a list of changes. These files are distributed with
1.29 + * GLib at ftp://ftp.gtk.org/pub/gtk/.
1.30 + */
1.31 +
1.32 +#ifndef __G_QUEUE_H__
1.33 +#define __G_QUEUE_H__
1.34 +
1.35 +#include <_ansi.h>
1.36 +#include <glib/glist.h>
1.37 +
1.38 +G_BEGIN_DECLS
1.39 +
1.40 +typedef struct _GQueue GQueue;
1.41 +
1.42 +struct _GQueue
1.43 +{
1.44 + GList *head;
1.45 + GList *tail;
1.46 + guint length;
1.47 +};
1.48 +
1.49 +/* Queues
1.50 + */
1.51 +IMPORT_C GQueue* g_queue_new (void);
1.52 +IMPORT_C void g_queue_free (GQueue *queue);
1.53 +IMPORT_C gboolean g_queue_is_empty (GQueue *queue);
1.54 +IMPORT_C guint g_queue_get_length (GQueue *queue);
1.55 +IMPORT_C void g_queue_reverse (GQueue *queue);
1.56 +IMPORT_C GQueue * g_queue_copy (GQueue *queue);
1.57 +IMPORT_C void g_queue_foreach (GQueue *queue,
1.58 + GFunc func,
1.59 + gpointer user_data);
1.60 +IMPORT_C GList * g_queue_find (GQueue *queue,
1.61 + gconstpointer data);
1.62 +IMPORT_C GList * g_queue_find_custom (GQueue *queue,
1.63 + gconstpointer data,
1.64 + GCompareFunc func);
1.65 +IMPORT_C void g_queue_sort (GQueue *queue,
1.66 + GCompareDataFunc compare_func,
1.67 + gpointer user_data);
1.68 +
1.69 +IMPORT_C void g_queue_push_head (GQueue *queue,
1.70 + gpointer data);
1.71 +IMPORT_C void g_queue_push_tail (GQueue *queue,
1.72 + gpointer data);
1.73 +IMPORT_C void g_queue_push_nth (GQueue *queue,
1.74 + gpointer data,
1.75 + gint n);
1.76 +IMPORT_C gpointer g_queue_pop_head (GQueue *queue);
1.77 +IMPORT_C gpointer g_queue_pop_tail (GQueue *queue);
1.78 +IMPORT_C gpointer g_queue_pop_nth (GQueue *queue,
1.79 + guint n);
1.80 +IMPORT_C gpointer g_queue_peek_head (GQueue *queue);
1.81 +IMPORT_C gpointer g_queue_peek_tail (GQueue *queue);
1.82 +IMPORT_C gpointer g_queue_peek_nth (GQueue *queue,
1.83 + guint n);
1.84 +IMPORT_C gint g_queue_index (GQueue *queue,
1.85 + gconstpointer data);
1.86 +IMPORT_C void g_queue_remove (GQueue *queue,
1.87 + gconstpointer data);
1.88 +IMPORT_C void g_queue_remove_all (GQueue *queue,
1.89 + gconstpointer data);
1.90 +IMPORT_C void g_queue_insert_before (GQueue *queue,
1.91 + GList *sibling,
1.92 + gpointer data);
1.93 +IMPORT_C void g_queue_insert_after (GQueue *queue,
1.94 + GList *sibling,
1.95 + gpointer data);
1.96 +IMPORT_C void g_queue_insert_sorted (GQueue *queue,
1.97 + gpointer data,
1.98 + GCompareDataFunc func,
1.99 + gpointer user_data);
1.100 +
1.101 +IMPORT_C void g_queue_push_head_link (GQueue *queue,
1.102 + GList *link_);
1.103 +IMPORT_C void g_queue_push_tail_link (GQueue *queue,
1.104 + GList *link_);
1.105 +IMPORT_C void g_queue_push_nth_link (GQueue *queue,
1.106 + gint n,
1.107 + GList *link_);
1.108 +IMPORT_C GList* g_queue_pop_head_link (GQueue *queue);
1.109 +IMPORT_C GList* g_queue_pop_tail_link (GQueue *queue);
1.110 +IMPORT_C GList* g_queue_pop_nth_link (GQueue *queue,
1.111 + guint n);
1.112 +IMPORT_C GList* g_queue_peek_head_link (GQueue *queue);
1.113 +IMPORT_C GList* g_queue_peek_tail_link (GQueue *queue);
1.114 +IMPORT_C GList* g_queue_peek_nth_link (GQueue *queue,
1.115 + guint n);
1.116 +IMPORT_C gint g_queue_link_index (GQueue *queue,
1.117 + GList *link_);
1.118 +IMPORT_C void g_queue_unlink (GQueue *queue,
1.119 + GList *link_);
1.120 +IMPORT_C void g_queue_delete_link (GQueue *queue,
1.121 + GList *link_);
1.122 +
1.123 +G_END_DECLS
1.124 +
1.125 +#endif /* __G_QUEUE_H__ */