GnuCash  5.6-150-g038405b370+
gfec.h
1 /* Authors: Eric M. Ludlam <zappo@ultranet.com>
2  * Russ McManus <russell.mcmanus@gs.com>
3  * Dave Peticolas <dave@krondo.com>
4  *
5  * gfec stands for 'guile fancy error catching'.
6  * This code is in the public domain.
7  */
8 
9 #ifndef GFEC_H
10 #define GFEC_H
11 
12 #include <libguile.h>
13 #include <glib.h>
14 #include "guile-mappings.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef void (*gfec_error_handler)(const char *error_message);
21 
22 SCM gfec_eval_file(const char *file, gfec_error_handler error_handler);
23 SCM gfec_eval_string(const char *str, gfec_error_handler error_handler);
24 SCM gfec_apply(SCM proc, SCM arglist, gfec_error_handler error_handler);
25 gboolean gfec_try_load(const gchar *fn);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif