source: appstream-generator/build/girepo/glib/TrashStack.d @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 2.1 KB
Line 
1/*
2 * Licensed under the GNU Lesser General Public License Version 3
3 *
4 * This library is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the license, or
7 * (at your option) any later version.
8 *
9 * This software 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
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18// generated automatically - do not change
19
20
21module glib.TrashStack;
22
23private import gi.glib;
24public  import gi.glibtypes;
25
26
27/**
28 * Each piece of memory that is pushed onto the stack
29 * is cast to a GTrashStack*.
30 */
31public struct TrashStack
32{
33
34        /**
35         * Returns the height of a #GTrashStack.
36         *
37         * Note that execution of this function is of O(N) complexity
38         * where N denotes the number of items on the stack.
39         *
40         * Params:
41         *     stackP = a #GTrashStack
42         *
43         * Returns: the height of the stack
44         */
45        public static uint height(GTrashStack** stackP)
46        {
47                return g_trash_stack_height(stackP);
48        }
49
50        /**
51         * Returns the element at the top of a #GTrashStack
52         * which may be %NULL.
53         *
54         * Params:
55         *     stackP = a #GTrashStack
56         *
57         * Returns: the element at the top of the stack
58         */
59        public static void* peek(GTrashStack** stackP)
60        {
61                return g_trash_stack_peek(stackP);
62        }
63
64        /**
65         * Pops a piece of memory off a #GTrashStack.
66         *
67         * Params:
68         *     stackP = a #GTrashStack
69         *
70         * Returns: the element at the top of the stack
71         */
72        public static void* pop(GTrashStack** stackP)
73        {
74                return g_trash_stack_pop(stackP);
75        }
76
77        /**
78         * Pushes a piece of memory onto a #GTrashStack.
79         *
80         * Params:
81         *     stackP = a #GTrashStack
82         *     dataP = the piece of memory to push on the stack
83         */
84        public static void push(GTrashStack** stackP, void* dataP)
85        {
86                g_trash_stack_push(stackP, dataP);
87        }
88}
Note: See TracBrowser for help on using the repository browser.