GnuCash  5.6-150-g038405b370+
gnc-guile-bindings.c
1 /*********************************************************************
2  * gnc-guile-bindings.c
3  * library to enable guile bindings for libgnucash
4  *
5  * Copyright (c) 2019 GnuCash Development Team
6  *********************************************************************/
7 /********************************************************************\
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU General Public License as *
10  * published by the Free Software Foundation; either version 2 of *
11  * the License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License*
19  * along with this program; if not, contact: *
20  * *
21  * Free Software Foundation Voice: +1-617-542-5942 *
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
23  * Boston, MA 02110-1301, USA gnu@gnu.org *
24  * *
25 \********************************************************************/
26 
27 
28 #include <config.h>
29 #include <libguile.h>
30 
31 void gnc_guile_bindings_init(void);
32 
33 static int is_initialized = 0;
34 
35 extern SCM scm_init_sw_core_utils_module (void);
36 extern SCM scm_init_sw_engine_module (void);
37 
38 void
39 gnc_guile_bindings_init(void)
40 {
41  if (!is_initialized)
42  {
43  /* Do what's necessary to initialize the bindings */
44  scm_init_sw_core_utils_module();
45  scm_init_sw_engine_module();
46 
47  is_initialized = 1;
48  }
49 }