X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Factivity.c;h=1beddba7804e129b81805a4c5d157d2d986157b7;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hp=668d10a95f6bf824a2e579174a5dfbbbbb1435f4;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/ioncore/activity.c b/ioncore/activity.c index 668d10a..1beddba 100644 --- a/ioncore/activity.c +++ b/ioncore/activity.c @@ -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 @@ -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. */