]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/return.h
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / ioncore / return.h
diff --git a/ioncore/return.h b/ioncore/return.h
new file mode 100644 (file)
index 0000000..6870f18
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * ion/ioncore/return.h
+ *
+ * Copyright (c) Tuomo Valkonen 1999-2007. 
+ *
+ * Ion is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef ION_IONCORE_RETURN_H
+#define ION_IONCORE_RETURN_H
+
+#include "region.h"
+#include "pholder.h"
+
+/* Note: 'ph' is under the control of this 'return' module after succesfully
+ * (true return value) having been passed to this function and must no 
+ * longer be destroyed by other code unless removed with unset_get.
+ */
+extern bool region_do_set_return(WRegion *reg, WPHolder *ph);
+
+/*extern WPHolder *region_set_return(WRegion *reg);*/
+
+extern WPHolder *region_get_return(WRegion *reg);
+
+extern void region_unset_return(WRegion *reg);
+
+extern WPHolder *region_unset_get_return(WRegion *reg);
+
+extern WPHolder *region_make_return_pholder(WRegion *reg);
+
+#endif /* ION_IONCORE_RETURN_H */