]> git.decadent.org.uk Git - ion3.git/blob - ioncore/return.h
6870f18ea9eb9bb83a016b085fc5db3ffe41bee7
[ion3.git] / ioncore / return.h
1 /*
2  * ion/ioncore/return.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_IONCORE_RETURN_H
13 #define ION_IONCORE_RETURN_H
14
15 #include "region.h"
16 #include "pholder.h"
17
18 /* Note: 'ph' is under the control of this 'return' module after succesfully
19  * (true return value) having been passed to this function and must no 
20  * longer be destroyed by other code unless removed with unset_get.
21  */
22 extern bool region_do_set_return(WRegion *reg, WPHolder *ph);
23
24 /*extern WPHolder *region_set_return(WRegion *reg);*/
25
26 extern WPHolder *region_get_return(WRegion *reg);
27
28 extern void region_unset_return(WRegion *reg);
29
30 extern WPHolder *region_unset_get_return(WRegion *reg);
31
32 extern WPHolder *region_make_return_pholder(WRegion *reg);
33
34 #endif /* ION_IONCORE_RETURN_H */