GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gfec.h
1 /* Authors: Eric M. Ludlam <[email protected]>
2  * Russ McManus <[email protected]>
3  * Dave Peticolas <[email protected]>
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 typedef void (*gfec_error_handler)(const char *error_message);
17 
18 SCM gfec_eval_file(const char *file, gfec_error_handler error_handler);
19 SCM gfec_eval_string(const char *str, gfec_error_handler error_handler);
20 SCM gfec_apply(SCM proc, SCM arglist, gfec_error_handler error_handler);
21 gboolean gfec_try_load(gchar *fn);
22 
23 #endif