]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/activity.c
Imported Upstream version 20090110
[ion3.git] / ioncore / activity.c
index 668d10a95f6bf824a2e579174a5dfbbbbb1435f4..1beddba7804e129b81805a4c5d157d2d986157b7 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/ioncore/activity.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * 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.
+ * See the included file LICENSE for details.
  */
 
 #include <libtu/setparam.h>
@@ -96,8 +93,8 @@ bool region_set_activity(WRegion *reg, int sp)
 
 
 /*EXTL_DOC
- * Set activity flag of \var{reg}. The \var{how} parameter most be
- * one of (set/unset/toggle).
+ * Set activity flag of \var{reg}. The \var{how} parameter must be
+ * one of \codestr{set}, \codestr{unset} or \codestr{toggle}.
  */
 EXTL_EXPORT_AS(WRegion, set_activity)
 bool region_set_activity_extl(WRegion *reg, const char *how)
@@ -125,7 +122,8 @@ bool region_is_activity_r(WRegion *reg)
 
 /*EXTL_DOC
  * Iterate over activity list until \var{iterfn} returns \code{false}.
- * The function itself returns \code{true} if it reaches the end of list
+ * The function is called in protected mode.
+ * This routine returns \code{true} if it reaches the end of list
  * without this happening.
  */
 EXTL_SAFE
@@ -137,7 +135,7 @@ bool ioncore_activity_i(ExtlFn iterfn)
 
 
 /*EXTL_DOC
- * Return first regio non activity list.
+ * Returns first region on activity list.
  */
 EXTL_SAFE
 EXTL_EXPORT
@@ -149,6 +147,12 @@ WRegion *ioncore_activity_first()
 }
 
 
+ObjList *ioncore_activity_list()
+{
+    return actlist;
+}
+
+
 /*EXTL_DOC
  * Go to first region on activity list.
  */