12 #include "gnc-module.h"
13 #include "gnc-module-api.h"
15 #include "gnc-component-manager.h"
16 #include "gnc-hooks.h"
17 #include "gnc-exp-parser.h"
19 GNC_MODULE_API_DECL(libgncmod_app_utils)
22 int libgncmod_app_utils_gnc_module_system_interface = 0;
25 int libgncmod_app_utils_gnc_module_current = 0;
26 int libgncmod_app_utils_gnc_module_revision = 0;
27 int libgncmod_app_utils_gnc_module_age = 0;
31 libgncmod_app_utils_gnc_module_path(
void)
33 return g_strdup(
"gnucash/app-utils");
37 libgncmod_app_utils_gnc_module_description(
void)
39 return g_strdup(
"Utilities for building gnc applications");
45 char * form = g_strdup_printf(
"(use-modules %s)\n", mn);
46 scm_c_eval_string(form);
51 app_utils_shutdown(
void)
53 gnc_exp_parser_shutdown();
54 gnc_hook_run(HOOK_SAVE_OPTIONS, NULL);
58 extern SCM scm_init_sw_app_utils_module(
void);
61 libgncmod_app_utils_gnc_module_init(
int refcount)
64 if (!gnc_module_load(
"gnucash/engine", 0))
69 scm_init_sw_app_utils_module();
72 lmod(
"(sw_app_utils)");
73 lmod(
"(gnucash app-utils)");
77 gnc_component_manager_init ();
78 gnc_hook_add_dangler(HOOK_STARTUP, (GFunc)gnc_exp_parser_init, NULL);
79 gnc_hook_add_dangler(HOOK_SHUTDOWN, (GFunc)app_utils_shutdown, NULL);
86 libgncmod_app_utils_gnc_module_end(
int refcount)
89 gnc_component_manager_shutdown ();