epoc32/include/stdapis/glib-2.0/glib/gdataset.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/glib-2.0/glib/gdataset.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/glib-2.0/glib/gdataset.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,124 @@
     1.4 -gdataset.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_DATASET_H__
    1.33 +#define __G_DATASET_H__
    1.34 +
    1.35 +#include <_ansi.h>
    1.36 +#include <glib/gquark.h>
    1.37 +
    1.38 +G_BEGIN_DECLS
    1.39 +
    1.40 +typedef struct _GData           GData;
    1.41 +
    1.42 +typedef void            (*GDataForeachFunc)     (GQuark         key_id,
    1.43 +                                                 gpointer       data,
    1.44 +                                                 gpointer       user_data);
    1.45 +
    1.46 +/* Keyed Data List
    1.47 + */
    1.48 +IMPORT_C void     g_datalist_init                (GData            **datalist);
    1.49 +IMPORT_C void     g_datalist_clear               (GData            **datalist);
    1.50 +IMPORT_C gpointer g_datalist_id_get_data         (GData            **datalist,
    1.51 +					 GQuark             key_id);
    1.52 +IMPORT_C void     g_datalist_id_set_data_full    (GData            **datalist,
    1.53 +					 GQuark             key_id,
    1.54 +					 gpointer           data,
    1.55 +					 GDestroyNotify     destroy_func);
    1.56 +IMPORT_C gpointer g_datalist_id_remove_no_notify (GData            **datalist,
    1.57 +					 GQuark             key_id);
    1.58 +IMPORT_C void     g_datalist_foreach             (GData            **datalist,
    1.59 +					 GDataForeachFunc   func,
    1.60 +					 gpointer           user_data);
    1.61 +
    1.62 +/**
    1.63 + * G_DATALIST_FLAGS_MASK:
    1.64 + *
    1.65 + * A bitmask that restricts the possible flags passed to
    1.66 + * g_datalist_set_flags(). Passing a flags value where
    1.67 + * flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.
    1.68 + */
    1.69 +#define G_DATALIST_FLAGS_MASK 0x3
    1.70 +
    1.71 +IMPORT_C void     g_datalist_set_flags           (GData            **datalist,
    1.72 +					 guint              flags);
    1.73 +IMPORT_C void     g_datalist_unset_flags         (GData            **datalist,
    1.74 +					 guint              flags);
    1.75 +IMPORT_C guint    g_datalist_get_flags           (GData            **datalist);
    1.76 +
    1.77 +#define   g_datalist_id_set_data(dl, q, d)      \
    1.78 +     g_datalist_id_set_data_full ((dl), (q), (d), NULL)
    1.79 +#define   g_datalist_id_remove_data(dl, q)      \
    1.80 +     g_datalist_id_set_data ((dl), (q), NULL)
    1.81 +#define   g_datalist_get_data(dl, k)            \
    1.82 +     (g_datalist_id_get_data ((dl), g_quark_try_string (k)))
    1.83 +#define   g_datalist_set_data_full(dl, k, d, f) \
    1.84 +     g_datalist_id_set_data_full ((dl), g_quark_from_string (k), (d), (f))
    1.85 +#define   g_datalist_remove_no_notify(dl, k)    \
    1.86 +     g_datalist_id_remove_no_notify ((dl), g_quark_try_string (k))
    1.87 +#define   g_datalist_set_data(dl, k, d)         \
    1.88 +     g_datalist_set_data_full ((dl), (k), (d), NULL)
    1.89 +#define   g_datalist_remove_data(dl, k)         \
    1.90 +     g_datalist_id_set_data ((dl), g_quark_try_string (k), NULL)
    1.91 +
    1.92 +
    1.93 +/* Location Associated Keyed Data
    1.94 + */
    1.95 +IMPORT_C void      g_dataset_destroy             (gconstpointer    dataset_location);
    1.96 +IMPORT_C gpointer  g_dataset_id_get_data         (gconstpointer    dataset_location,
    1.97 +                                         GQuark           key_id);
    1.98 +IMPORT_C void      g_dataset_id_set_data_full    (gconstpointer    dataset_location,
    1.99 +                                         GQuark           key_id,
   1.100 +                                         gpointer         data,
   1.101 +                                         GDestroyNotify   destroy_func);
   1.102 +IMPORT_C gpointer  g_dataset_id_remove_no_notify (gconstpointer    dataset_location,
   1.103 +                                         GQuark           key_id);
   1.104 +IMPORT_C void      g_dataset_foreach             (gconstpointer    dataset_location,
   1.105 +                                         GDataForeachFunc func,
   1.106 +                                         gpointer         user_data);
   1.107 +#define   g_dataset_id_set_data(l, k, d)        \
   1.108 +     g_dataset_id_set_data_full ((l), (k), (d), NULL)
   1.109 +#define   g_dataset_id_remove_data(l, k)        \
   1.110 +     g_dataset_id_set_data ((l), (k), NULL)
   1.111 +#define   g_dataset_get_data(l, k)              \
   1.112 +     (g_dataset_id_get_data ((l), g_quark_try_string (k)))
   1.113 +#define   g_dataset_set_data_full(l, k, d, f)   \
   1.114 +     g_dataset_id_set_data_full ((l), g_quark_from_string (k), (d), (f))
   1.115 +#define   g_dataset_remove_no_notify(l, k)      \
   1.116 +     g_dataset_id_remove_no_notify ((l), g_quark_try_string (k))
   1.117 +#define   g_dataset_set_data(l, k, d)           \
   1.118 +     g_dataset_set_data_full ((l), (k), (d), NULL)
   1.119 +#define   g_dataset_remove_data(l, k)           \
   1.120 +     g_dataset_id_set_data ((l), g_quark_try_string (k), NULL)
   1.121 +
   1.122 +G_END_DECLS
   1.123 +
   1.124 +#endif /* __G_DATASET_H__ */
   1.125 +
   1.126 +
   1.127 +
   1.128 +