2 * ion/ioncore/pholder.h
4 * Copyright (c) Tuomo Valkonen 2005-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_PHOLDER_H
10 #define ION_IONCORE_PHOLDER_H
17 #define PHOLDER_ATTACH_SWITCHTO 0x0001
18 #define PHOLDER_ATTACH_RETURN_CREATEROOT 0x0002
21 /* Note: PHolders should be destroyed by their acquirer. */
28 extern bool pholder_init(WPHolder
*ph
);
29 extern void pholder_deinit(WPHolder
*ph
);
31 DYNFUN WRegion
*pholder_do_attach(WPHolder
*ph
, int flags
,
32 WRegionAttachData
*data
);
34 extern WRegion
*pholder_attach_(WPHolder
*ph
, int flags
,
35 WRegionAttachData
*data
);
37 extern bool pholder_attach(WPHolder
*ph
, int flags
, WRegion
*reg
);
39 extern bool pholder_attach_mcfgoto(WPHolder
*ph
, int flags
, WRegion
*reg
);
41 DYNFUN WRegion
*pholder_do_target(WPHolder
*ph
);
43 extern WRegion
*pholder_target(WPHolder
*ph
);
45 DYNFUN
bool pholder_stale(WPHolder
*ph
);
47 DYNFUN
bool pholder_do_check_reparent(WPHolder
*ph
, WRegion
*reg
);
49 extern bool pholder_check_reparent(WPHolder
*ph
, WRegion
*reg
);
51 DYNFUN
bool pholder_do_goto(WPHolder
*ph
);
53 extern bool pholder_goto(WPHolder
*ph
);
55 extern WPHolder
*pholder_either(WPHolder
*a
, WPHolder
*b
);
57 DYNFUN WPHolder
*region_managed_get_pholder(WRegion
*reg
, WRegion
*mgd
);
58 DYNFUN WPHolder
*region_get_rescue_pholder_for(WRegion
*reg
, WRegion
*mgd
);
60 extern WPHolder
*region_get_rescue_pholder(WRegion
*reg
);
62 #endif /* ION_IONCORE_PHOLDER_H */