epoc32/include/stdapis/glib-2.0/glib/glist.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/glist.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/glist.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,118 @@
     1.4 -glist.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_LIST_H__
    1.33 +#define __G_LIST_H__
    1.34 +
    1.35 +#include <_ansi.h>
    1.36 +#include <glib/gmem.h>
    1.37 +
    1.38 +G_BEGIN_DECLS
    1.39 +
    1.40 +typedef struct _GList GList;
    1.41 +
    1.42 +struct _GList
    1.43 +{
    1.44 +  gpointer data;
    1.45 +  GList *next;
    1.46 +  GList *prev;
    1.47 +};
    1.48 +
    1.49 +/* Doubly linked lists
    1.50 + */
    1.51 +IMPORT_C GList*   g_list_alloc          (void);
    1.52 +IMPORT_C void     g_list_free           (GList            *list);
    1.53 +IMPORT_C void     g_list_free_1         (GList            *list);
    1.54 +#define  g_list_free1                   g_list_free_1
    1.55 +IMPORT_C GList*   g_list_append         (GList            *list,
    1.56 +					 gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.57 +IMPORT_C GList*   g_list_prepend        (GList            *list,
    1.58 +					 gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.59 +IMPORT_C GList*   g_list_insert                  (GList            *list,
    1.60 +					 gpointer          data,
    1.61 +					 gint              position) G_GNUC_WARN_UNUSED_RESULT;
    1.62 +IMPORT_C GList*   g_list_insert_sorted           (GList            *list,
    1.63 +					 gpointer          data,
    1.64 +					 GCompareFunc      func) G_GNUC_WARN_UNUSED_RESULT;
    1.65 +IMPORT_C GList*   g_list_insert_sorted_with_data (GList            *list,
    1.66 +					 gpointer          data,
    1.67 +					 GCompareDataFunc  func,
    1.68 +					 gpointer          user_data) G_GNUC_WARN_UNUSED_RESULT;
    1.69 +IMPORT_C GList*   g_list_insert_before  (GList            *list,
    1.70 +					 GList            *sibling,
    1.71 +					 gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.72 +IMPORT_C GList*   g_list_concat         (GList            *list1,
    1.73 +					 GList            *list2) G_GNUC_WARN_UNUSED_RESULT;
    1.74 +IMPORT_C GList*   g_list_remove         (GList            *list,
    1.75 +					 gconstpointer     data) G_GNUC_WARN_UNUSED_RESULT;
    1.76 +IMPORT_C GList*   g_list_remove_all     (GList            *list,
    1.77 +					 gconstpointer     data) G_GNUC_WARN_UNUSED_RESULT;
    1.78 +IMPORT_C GList*   g_list_remove_link    (GList            *list,
    1.79 +					 GList            *llink) G_GNUC_WARN_UNUSED_RESULT;
    1.80 +IMPORT_C GList*   g_list_delete_link    (GList            *list,
    1.81 +					 GList            *link_) G_GNUC_WARN_UNUSED_RESULT;
    1.82 +IMPORT_C GList*   g_list_reverse        (GList            *list);
    1.83 +IMPORT_C GList*   g_list_copy           (GList            *list);
    1.84 +IMPORT_C GList*   g_list_nth            (GList            *list,
    1.85 +					 guint             n);
    1.86 +IMPORT_C GList*   g_list_nth_prev       (GList            *list,
    1.87 +					 guint             n);
    1.88 +IMPORT_C GList*   g_list_find           (GList            *list,
    1.89 +					 gconstpointer     data);
    1.90 +IMPORT_C GList*   g_list_find_custom    (GList            *list,
    1.91 +					 gconstpointer     data,
    1.92 +					 GCompareFunc      func);
    1.93 +IMPORT_C gint     g_list_position       (GList            *list,
    1.94 +					 GList            *llink);
    1.95 +IMPORT_C gint     g_list_index          (GList            *list,
    1.96 +					 gconstpointer     data);
    1.97 +IMPORT_C GList*   g_list_last           (GList            *list);
    1.98 +IMPORT_C GList*   g_list_first          (GList            *list);
    1.99 +IMPORT_C guint    g_list_length         (GList            *list);
   1.100 +IMPORT_C void     g_list_foreach        (GList            *list,
   1.101 +					 GFunc             func,
   1.102 +					 gpointer          user_data);
   1.103 +IMPORT_C GList*   g_list_sort           (GList            *list,
   1.104 +					 GCompareFunc      compare_func) G_GNUC_WARN_UNUSED_RESULT;
   1.105 +IMPORT_C GList*   g_list_sort_with_data (GList            *list,
   1.106 +					 GCompareDataFunc  compare_func,
   1.107 +					 gpointer          user_data)  G_GNUC_WARN_UNUSED_RESULT;
   1.108 +IMPORT_C gpointer g_list_nth_data       (GList            *list,
   1.109 +					 guint             n);
   1.110 +
   1.111 +
   1.112 +#define g_list_previous(list)	        ((list) ? (((GList *)(list))->prev) : NULL)
   1.113 +#define g_list_next(list)	        ((list) ? (((GList *)(list))->next) : NULL)
   1.114 +
   1.115 +#ifndef G_DISABLE_DEPRECATED
   1.116 +IMPORT_C void     g_list_push_allocator          (gpointer          allocator);
   1.117 +IMPORT_C void     g_list_pop_allocator           (void);
   1.118 +#endif
   1.119 +G_END_DECLS
   1.120 +
   1.121 +#endif /* __G_LIST_H__ */
   1.122 +