]> git.decadent.org.uk Git - ion3.git/blob - ioncore/saveload.h
049b2c08f63a993936259e259346b366638c0aec
[ion3.git] / ioncore / saveload.h
1 /*
2  * ion/ioncore/saveload.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2008. 
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 #include "attach.h"
18
19 extern WRegion *create_region_load(WWindow *par, const WFitParams *fp, 
20                                    ExtlTab tab, WPHolder **sm_ph_p);
21
22 extern bool region_supports_save(WRegion *reg);
23 DYNFUN ExtlTab region_get_configuration(WRegion *reg);
24 extern ExtlTab region_get_base_configuration(WRegion *reg);
25
26 extern bool ioncore_init_layout();
27 extern bool ioncore_save_layout();
28
29 /* Session management support */
30
31 typedef bool SMAddCallback(WPHolder *ph, ExtlTab tab);
32 typedef void SMCfgCallback(WClientWin *cwin, ExtlTab tab);
33     
34 extern void ioncore_set_sm_callbacks(SMAddCallback *add, SMCfgCallback *cfg);
35 extern void ioncore_get_sm_callbacks(SMAddCallback **add, SMCfgCallback **cfg);
36
37 extern WPHolder *ioncore_get_load_pholder();
38
39 #endif /* ION_IONCORE_SAVELOAD_H */
40