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 glib.MemorySlice;
28 private import glib.c.functions;
29 public  import glib.c.types;
30 private import gtkd.Loader;
31 
32 
33 /**
34  * Each piece of memory that is pushed onto the stack
35  * is cast to a GTrashStack*.
36  * 
37  * Deprecated: #GTrashStack is deprecated without replacement
38  */
39 public struct TrashStack
40 {
41 
42 	/**
43 	 * Returns the height of a #GTrashStack.
44 	 *
45 	 * Note that execution of this function is of O(N) complexity
46 	 * where N denotes the number of items on the stack.
47 	 *
48 	 * Deprecated: #GTrashStack is deprecated without replacement
49 	 *
50 	 * Params:
51 	 *     stackP = a #GTrashStack
52 	 *
53 	 * Returns: the height of the stack
54 	 */
55 	public static uint height(GTrashStack** stackP)
56 	{
57 		return g_trash_stack_height(stackP);
58 	}
59 
60 	/**
61 	 * Returns the element at the top of a #GTrashStack
62 	 * which may be %NULL.
63 	 *
64 	 * Deprecated: #GTrashStack is deprecated without replacement
65 	 *
66 	 * Params:
67 	 *     stackP = a #GTrashStack
68 	 *
69 	 * Returns: the element at the top of the stack
70 	 */
71 	public static void* peek(GTrashStack** stackP)
72 	{
73 		return g_trash_stack_peek(stackP);
74 	}
75 
76 	/**
77 	 * Pops a piece of memory off a #GTrashStack.
78 	 *
79 	 * Deprecated: #GTrashStack is deprecated without replacement
80 	 *
81 	 * Params:
82 	 *     stackP = a #GTrashStack
83 	 *
84 	 * Returns: the element at the top of the stack
85 	 */
86 	public static void* pop(GTrashStack** stackP)
87 	{
88 		return g_trash_stack_pop(stackP);
89 	}
90 
91 	/**
92 	 * Pushes a piece of memory onto a #GTrashStack.
93 	 *
94 	 * Deprecated: #GTrashStack is deprecated without replacement
95 	 *
96 	 * Params:
97 	 *     stackP = a #GTrashStack
98 	 *     dataP = the piece of memory to push on the stack
99 	 */
100 	public static void push(GTrashStack** stackP, void* dataP)
101 	{
102 		g_trash_stack_push(stackP, dataP);
103 	}
104 }