]> Pileus Git - ~andy/gtk/blob - gtk/gtktreedatalist.h
823349c48fa57eb1633b7e91a1917da83aac3c76
[~andy/gtk] / gtk / gtktreedatalist.h
1 /* gtktreedatalist.h
2  * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20
21 #ifndef __GTK_TREE_DATA_LIST_H__
22 #define __GTK_TREE_DATA_LIST_H__
23
24 #include <glib.h>
25 #include <gobject/gobject.h>
26
27 typedef struct _GtkTreeDataList GtkTreeDataList;
28 struct _GtkTreeDataList
29 {
30   GtkTreeDataList *next;
31
32   union {
33     gint           v_int;
34     guint          v_uint;
35     gfloat         v_float;
36     gpointer       v_pointer;
37   } data;
38 };
39
40 /* FIXME: s/gtk/_gtk/g to make internal */
41 void             gtk_tree_data_list_push_allocator (GAllocator      *allocator);
42 void             gtk_tree_data_list_pop_allocator  (void);
43 GtkTreeDataList *gtk_tree_data_list_alloc          (void);
44 void             gtk_tree_data_list_free           (GtkTreeDataList *list);
45
46 void             gtk_tree_data_list_node_to_value  (GtkTreeDataList   *list,
47                                                     GType              type,
48                                                     GValue            *value);
49 void             gtk_tree_data_list_value_to_node  (GtkTreeDataList   *list,
50                                                     GValue            *value);
51
52
53 #endif /* __GTK_TREE_DATA_LIST_H__ */