epoc32/include/stdapis/glib-2.0/glib/gslist.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gslist.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gslist.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,112 @@
     1.4 -gslist.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_SLIST_H__
    1.33 +#define __G_SLIST_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 _GSList GSList;
    1.41 +
    1.42 +struct _GSList
    1.43 +{
    1.44 +  gpointer data;
    1.45 +  GSList *next;
    1.46 +};
    1.47 +
    1.48 +/* Singly linked lists
    1.49 + */
    1.50 +IMPORT_C GSList*  g_slist_alloc                   (void) G_GNUC_WARN_UNUSED_RESULT;
    1.51 +IMPORT_C void     g_slist_free           (GSList           *list);
    1.52 +IMPORT_C void     g_slist_free_1         (GSList           *list);
    1.53 +#define	 g_slist_free1		         g_slist_free_1
    1.54 +IMPORT_C GSList*  g_slist_append         (GSList           *list,
    1.55 +					  gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.56 +IMPORT_C GSList*  g_slist_prepend        (GSList           *list,
    1.57 +					  gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.58 +IMPORT_C GSList*  g_slist_insert                  (GSList           *list,
    1.59 +					  gpointer          data,
    1.60 +					  gint              position) G_GNUC_WARN_UNUSED_RESULT;
    1.61 +IMPORT_C GSList*  g_slist_insert_sorted           (GSList           *list,
    1.62 +					  gpointer          data,
    1.63 +					  GCompareFunc      func) G_GNUC_WARN_UNUSED_RESULT;
    1.64 +IMPORT_C GSList*  g_slist_insert_sorted_with_data (GSList           *list,
    1.65 +					  gpointer          data,
    1.66 +					  GCompareDataFunc  func,
    1.67 +					  gpointer          user_data) G_GNUC_WARN_UNUSED_RESULT;
    1.68 +IMPORT_C GSList*  g_slist_insert_before           (GSList           *slist,
    1.69 +					  GSList           *sibling,
    1.70 +					  gpointer          data) G_GNUC_WARN_UNUSED_RESULT;
    1.71 +IMPORT_C GSList*  g_slist_concat         (GSList           *list1,
    1.72 +					  GSList           *list2) G_GNUC_WARN_UNUSED_RESULT;
    1.73 +IMPORT_C GSList*  g_slist_remove         (GSList           *list,
    1.74 +					  gconstpointer     data) G_GNUC_WARN_UNUSED_RESULT;
    1.75 +IMPORT_C GSList*  g_slist_remove_all     (GSList           *list,
    1.76 +					  gconstpointer     data) G_GNUC_WARN_UNUSED_RESULT;
    1.77 +IMPORT_C GSList*  g_slist_remove_link    (GSList           *list,
    1.78 +					  GSList           *link_) G_GNUC_WARN_UNUSED_RESULT;
    1.79 +IMPORT_C GSList*  g_slist_delete_link    (GSList           *list,
    1.80 +					  GSList           *link_) G_GNUC_WARN_UNUSED_RESULT;
    1.81 +IMPORT_C GSList*  g_slist_reverse                 (GSList           *list) G_GNUC_WARN_UNUSED_RESULT;
    1.82 +IMPORT_C GSList*  g_slist_copy                    (GSList           *list) G_GNUC_WARN_UNUSED_RESULT;
    1.83 +IMPORT_C GSList*  g_slist_nth            (GSList           *list,
    1.84 +					  guint             n);
    1.85 +IMPORT_C GSList*  g_slist_find           (GSList           *list,
    1.86 +					  gconstpointer     data);
    1.87 +IMPORT_C GSList*  g_slist_find_custom    (GSList           *list,
    1.88 +					  gconstpointer     data,
    1.89 +					  GCompareFunc      func);
    1.90 +IMPORT_C gint     g_slist_position       (GSList           *list,
    1.91 +					  GSList           *llink);
    1.92 +IMPORT_C gint     g_slist_index          (GSList           *list,
    1.93 +					  gconstpointer     data);
    1.94 +IMPORT_C GSList*  g_slist_last           (GSList           *list);
    1.95 +IMPORT_C guint    g_slist_length         (GSList           *list);
    1.96 +IMPORT_C void     g_slist_foreach        (GSList           *list,
    1.97 +					  GFunc             func,
    1.98 +					  gpointer          user_data);
    1.99 +IMPORT_C GSList*  g_slist_sort           (GSList           *list,
   1.100 +					  GCompareFunc      compare_func) G_GNUC_WARN_UNUSED_RESULT;
   1.101 +IMPORT_C GSList*  g_slist_sort_with_data (GSList           *list,
   1.102 +					  GCompareDataFunc  compare_func,
   1.103 +					  gpointer          user_data) G_GNUC_WARN_UNUSED_RESULT;
   1.104 +IMPORT_C gpointer g_slist_nth_data       (GSList           *list,
   1.105 +					  guint             n);
   1.106 +
   1.107 +#define  g_slist_next(slist)	         ((slist) ? (((GSList *)(slist))->next) : NULL)
   1.108 +
   1.109 +#ifndef G_DISABLE_DEPRECATED
   1.110 +IMPORT_C void     g_slist_push_allocator          (gpointer	   dummy);
   1.111 +IMPORT_C void     g_slist_pop_allocator           (void);
   1.112 +#endif
   1.113 +G_END_DECLS
   1.114 +
   1.115 +#endif /* __G_SLIST_H__ */
   1.116 +