#include "cstream.h"#include "htcfg.h"#include "htctrl.h"#include "htdebug.h"#include "htendian.h"#include "htreg.h"#include "htstring.h"#include "stream.h"#include "store.h"#include "htsys.h"#include "tools.h"#include <errno.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Classes | |
| struct | config_header |
Defines | |
| #define | object_stream_bin 0 |
| #define | object_stream_txt 1 |
| #define | object_stream_bin_compressed 2 |
Functions | |
| ht_object_stream * | create_object_stream (ht_stream *f, int object_stream_type) |
| loadstore_result | save_systemconfig () |
| bool | load_systemconfig (loadstore_result *result, int *error_info) |
| loadstore_result | save_fileconfig (char *fileconfig_file, const char *magic, UINT version, store_fcfg_func store_func, void *context) |
| loadstore_result | load_fileconfig (char *fileconfig_file, const char *magic, UINT version, load_fcfg_func load_func, void *context, int *error_info) |
| bool | init_cfg () |
| void | done_cfg () |
Variables | |
| char * | systemconfig_file |
|
|
Definition at line 42 of file htcfg.cc. Referenced by create_object_stream(), save_fileconfig(), and save_systemconfig(). |
|
|
Definition at line 44 of file htcfg.cc. Referenced by create_object_stream(). |
|
|
Definition at line 43 of file htcfg.cc. Referenced by create_object_stream(), load_fileconfig(), load_systemconfig(), save_fileconfig(), and save_systemconfig(). |
|
||||||||||||
|
Definition at line 46 of file htcfg.cc. References ht_compressed_stream::init(), NULL, object_stream_bin, object_stream_bin_compressed, object_stream_txt, and ht_layer_stream::set_stream_ownership(). Referenced by load_fileconfig(), load_systemconfig(), save_fileconfig(), and save_systemconfig(). |
|
|
Definition at line 371 of file htcfg.cc. References systemconfig_file. |
|
|
Definition at line 347 of file htcfg.cc. References appname, malloc(), sys_dirname(), SYSTEM_CONFIG_FILE_NAME, and systemconfig_file. |
|
||||||||||||||||||||||||||||
|
Definition at line 273 of file htcfg.cc. References create_object_stream(), ht_file::done(), ht_object_stream::done(), FAM_READ, FOM_EXISTS, ht_stream::get_error(), ht_layer_stream::get_error(), hexb_ex(), hexw_ex(), ht_file::init(), load_fcfg_func, loadstore_result, LS_ERROR_CORRUPTED, LS_ERROR_FORMAT, LS_ERROR_MAGIC, LS_ERROR_NOT_FOUND, LS_ERROR_READ, LS_ERROR_VERSION, LS_OK, object_stream_txt, ht_stdio_file::read(), STERR_SYSTEM, UINT, uint16, and uint8. Referenced by ht_app::create_window_file_bin(), and ht_app::project_opencreate(). |
|
||||||||||||
|
Definition at line 139 of file htcfg.cc. References app, create_object_stream(), ht_file::done(), ht_object_stream::done(), FAM_READ, FOM_EXISTS, ht_stream::get_error(), ht_layer_stream::get_error(), hexb_ex(), hexw_ex(), ht_systemconfig_fileversion, ht_systemconfig_magic, ht_file::init(), ht_view::load(), LS_ERROR_CORRUPTED, LS_ERROR_FORMAT, LS_ERROR_MAGIC, LS_ERROR_NOT_FOUND, LS_ERROR_READ, LS_ERROR_VERSION, LS_OK, object_stream_txt, ht_stdio_file::read(), STERR_SYSTEM, systemconfig_file, uint16, and uint8. Referenced by main(). |
|
||||||||||||||||||||||||
|
Definition at line 224 of file htcfg.cc. References create_object_stream(), ht_file::done(), ht_object_stream::done(), FAM_WRITE, FOM_CREATE, get_config_dword(), ht_stream::get_error(), ht_file::init(), loadstore_result, LS_ERROR_WRITE, LS_OK, object_stream_bin, object_stream_txt, store_fcfg_func, UINT, and ht_stdio_file::write(). Referenced by ht_app::handlemsg(), and ht_file_window::handlemsg(). |
|
|
Definition at line 89 of file htcfg.cc. References app, create_object_stream(), ht_file::done(), ht_object_stream::done(), FAM_WRITE, FOM_CREATE, get_config_dword(), ht_stream::get_error(), ht_layer_stream::get_error(), ht_systemconfig_fileversion, ht_systemconfig_magic, ht_file::init(), loadstore_result, LS_ERROR_WRITE, LS_OK, object_stream_bin, object_stream_txt, ht_view::store(), systemconfig_file, and ht_stdio_file::write(). Referenced by main(). |
|
|
Definition at line 85 of file htcfg.cc. Referenced by done_cfg(), init_cfg(), load_systemconfig(), main(), and save_systemconfig(). |
1.3.5