GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
futuremodsys.c
1 /* futuremodsys.c : a gnucash module compiled with a future version of
2  * the module system. gnucash should not be able to load it. but if
3  * it doesn't notice that, the actual interface is compatible with
4  * version 0 so it will load all the way before failing. */
5 
6 #include <stdio.h>
7 #include <gmodule.h>
8 
9 #include "gnc-module-api.h"
10 GNC_MODULE_API_DECL(libgncmod_futuremodsys)
11 
12 int libgncmod_futuremodsys_gnc_module_system_interface = 123456;
13 
14 int libgncmod_futuremodsys_gnc_module_current = 0;
15 int libgncmod_futuremodsys_gnc_module_age = 0;
16 int libgncmod_futuremodsys_gnc_module_revision = 0;
17 
18 
19 char *
20 libgncmod_futuremodsys_gnc_module_path(void)
21 {
22  return g_strdup("gnucash/futuremodsys");
23 }
24 
25 char *
26 libgncmod_futuremodsys_gnc_module_description(void)
27 {
28  return g_strdup("this is a broken future module");
29 }
30 
31 int
32 libgncmod_futuremodsys_gnc_module_init(int refcount)
33 {
34  return TRUE;
35 }