1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module glib.TrashStack;
26 
27 private import gtkc.glib;
28 public  import gtkc.glibtypes;
29 
30 
31 /**
32  * Each piece of memory that is pushed onto the stack
33  * is cast to a GTrashStack*.
34  * 
35  * Deprecated: #GTrashStack is deprecated without replacement
36  */
37 public struct TrashStack
38 {
39 
40 	/**
41 	 * Returns the height of a #GTrashStack.
42 	 *
43 	 * Note that execution of this function is of O(N) complexity
44 	 * where N denotes the number of items on the stack.
45 	 *
46 	 * Deprecated: #GTrashStack is deprecated without replacement
47 	 *
48 	 * Params:
49 	 *     stackP = a #GTrashStack
50 	 *
51 	 * Return: the height of the stack
52 	 */
53 	public static uint height(GTrashStack** stackP)
54 	{
55 		return g_trash_stack_height(stackP);
56 	}
57 
58 	/**
59 	 * Returns the element at the top of a #GTrashStack
60 	 * which may be %NULL.
61 	 *
62 	 * Deprecated: #GTrashStack is deprecated without replacement
63 	 *
64 	 * Params:
65 	 *     stackP = a #GTrashStack
66 	 *
67 	 * Return: the element at the top of the stack
68 	 */
69 	public static void* peek(GTrashStack** stackP)
70 	{
71 		return g_trash_stack_peek(stackP);
72 	}
73 
74 	/**
75 	 * Pops a piece of memory off a #GTrashStack.
76 	 *
77 	 * Deprecated: #GTrashStack is deprecated without replacement
78 	 *
79 	 * Params:
80 	 *     stackP = a #GTrashStack
81 	 *
82 	 * Return: the element at the top of the stack
83 	 */
84 	public static void* pop(GTrashStack** stackP)
85 	{
86 		return g_trash_stack_pop(stackP);
87 	}
88 
89 	/**
90 	 * Pushes a piece of memory onto a #GTrashStack.
91 	 *
92 	 * Deprecated: #GTrashStack is deprecated without replacement
93 	 *
94 	 * Params:
95 	 *     stackP = a #GTrashStack
96 	 *     dataP = the piece of memory to push on the stack
97 	 */
98 	public static void push(GTrashStack** stackP, void* dataP)
99 	{
100 		g_trash_stack_push(stackP, dataP);
101 	}
102 }