]> git.decadent.org.uk Git - ion3.git/blob - ioncore/saveload.h
[svn-upgrade] Integrating new upstream version, ion3 (20070506)
[ion3.git] / ioncore / saveload.h
1 /*
2  * ion/ioncore/saveload.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_SAVELOAD_H
10 #define ION_IONCORE_SAVELOAD_H
11
12 #include <libextl/extl.h>
13 #include "common.h"
14 #include "region.h"
15 #include "screen.h"
16 #include "pholder.h"
17
18 extern WRegion *create_region_load(WWindow *par, const WFitParams *fp, 
19                                    ExtlTab tab);
20
21 extern bool region_supports_save(WRegion *reg);
22 DYNFUN ExtlTab region_get_configuration(WRegion *reg);
23 extern ExtlTab region_get_base_configuration(WRegion *reg);
24
25 extern bool ioncore_init_layout();
26 extern bool ioncore_save_layout();
27
28 /* Session management support */
29
30 typedef bool SMAddCallback(WPHolder *ph, ExtlTab tab);
31 typedef void SMCfgCallback(WClientWin *cwin, ExtlTab tab);
32 typedef WPHolder *SMPHolderCallback();
33     
34 extern void ioncore_set_sm_callbacks(SMAddCallback *add, SMCfgCallback *cfg);
35 extern void ioncore_get_sm_callbacks(SMAddCallback **add, SMCfgCallback **cfg);
36 extern void ioncore_set_sm_pholder_callback(SMPHolderCallback *phcb);
37 extern void ioncore_clientwin_load_missing();
38
39 #endif /* ION_IONCORE_SAVELOAD_H */
40