File: activity.h

package info (click to toggle)
notion 4.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,656 kB
  • sloc: ansic: 47,365; sh: 2,093; makefile: 594; perl: 270
file content (36 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * ion/ioncore/activity.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2007.
 *
 * See the included file LICENSE for details.
 */

#ifndef ION_IONCORE_ACTIVITY_H
#define ION_IONCORE_ACTIVITY_H

#include <libtu/setparam.h>
#include <libmainloop/hooks.h>
#include <libextl/extl.h>
#include "region.h"

/**
 * Manipulate the 'activity' flag of this region. If the region is already
 * active the 'activity'-flag will remain off.
 *
 * @param sp SET, UNSET or TOGGLE
 * @returns the new value of the 'activity' flag
 */
extern bool region_set_activity(WRegion *reg, int sp);
extern bool region_is_activity(WRegion* re);
extern bool region_is_activity_r(WRegion *reg);

extern void region_mark_mgd_activity(WRegion *mgr);
extern void region_clear_mgd_activity(WRegion *mgr);

extern bool ioncore_activity_i(ExtlFn fn);
extern WRegion *ioncore_activity_first();
extern bool ioncore_goto_activity();
extern ObjList *ioncore_activity_list();

#endif /* ION_IONCORE_ACTIVITY_H */