* refactored vtable implementation. Its much simpler now.
[panda.git] / goo / st-virtual-space.h
blob2b64322f933159b9975f4b4c2d32e50fc936f464
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; indent-offset: 4 -*- */
2 /*
3 * st-virtual-space.h
5 * Copyright (C) 2008 Vincent Geddes <vgeddes@gnome.org>
7 * This library is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation, either
10 * version 3 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _ST_VIRTUAL_SPACE__
22 #define _ST_VIRTUAL_SPACE__
24 #include <glib.h>
26 typedef struct _GooVirtualSpace GooVirtualSpace;
28 GooVirtualSpace *st_virtual_space_new (gsize size);
30 static inline char *
31 st_virtual_space_get_start (GooVirtualSpace * space)
33 return space->start;
36 static inline char *
37 st_virtual_space_get_end (GooVirtualSpace * space)
39 return space->end;
42 void st_virtual_space_destroy (GooVirtualSpace * space);
45 #endif /* _ST_VIRTUAL_SPACE__ */