mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2002-06-05 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/*: Add directory and initial files for HBCI support module. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6946 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
146d414c73
commit
8a185430e9
@ -1,3 +1,8 @@
|
||||
2002-06-05 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/import-export/hbci/*: Add directory and initial files for
|
||||
HBCI support module.
|
||||
|
||||
2002-05-31 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome/reconcile-list.c: Fix the direction of the sort
|
||||
|
@ -927,6 +927,8 @@ AC_OUTPUT( m4/Makefile intl/Makefile
|
||||
src/import-export/qif-import/test/Makefile
|
||||
src/import-export/qif-io-core/Makefile
|
||||
src/import-export/qif-io-core/test/Makefile
|
||||
src/import-export/hbci/Makefile
|
||||
src/import-export/hbci/test/Makefile
|
||||
src/network-utils/Makefile
|
||||
src/network-utils/test/Makefile
|
||||
src/optional/Makefile
|
||||
|
7
src/import-export/hbci/.cvsignore
Normal file
7
src/import-export/hbci/.cvsignore
Normal file
@ -0,0 +1,7 @@
|
||||
.deps
|
||||
.libs
|
||||
.scm-links
|
||||
*.la
|
||||
*.lo
|
||||
Makefile
|
||||
Makefile.in
|
40
src/import-export/hbci/Makefile.am
Normal file
40
src/import-export/hbci/Makefile.am
Normal file
@ -0,0 +1,40 @@
|
||||
SUBDIRS = . test
|
||||
|
||||
pkglib_LTLIBRARIES = libgncmod-hbci.la
|
||||
|
||||
libgncmod_hbci_la_SOURCES = \
|
||||
gncmod-hbci.c
|
||||
|
||||
libgncmod_hbci_la_LDFLAGS = -module
|
||||
libgncmod_hbci_la_LIBADD = \
|
||||
${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \
|
||||
${top_builddir}/src/app-file/libgncmod-app-file.la \
|
||||
${top_builddir}/src/gnc-module/libgncmodule.la \
|
||||
${top_builddir}/src/engine/libgncmod-engine.la \
|
||||
${GUILE_LIBS} \
|
||||
${GLIB_LIBS}
|
||||
|
||||
AM_CFLAGS = -I${top_srcdir}/src/gnc-module \
|
||||
${GLIB_CFLAGS} \
|
||||
${GUILE_INCS}
|
||||
|
||||
|
||||
.scm-links:
|
||||
rm -f gnucash import-export
|
||||
ln -sf . gnucash
|
||||
ln -sf . import-export
|
||||
touch .scm-links
|
||||
|
||||
noinst_DATA = .scm-links
|
||||
|
||||
gncscmmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash/import-export
|
||||
gncscmmod_DATA = hbci.scm
|
||||
|
||||
gncscmdir = ${GNC_SHAREDIR}/scm
|
||||
gncscm_DATA =
|
||||
|
||||
EXTRA_DIST = \
|
||||
${gncscmmod_DATA} \
|
||||
${gncscm_DATA}
|
||||
|
||||
CLEANFILES = ${SCM_FILE_LINKS} gnucash import-export .scm-links
|
65
src/import-export/hbci/gncmod-hbci.c
Normal file
65
src/import-export/hbci/gncmod-hbci.c
Normal file
@ -0,0 +1,65 @@
|
||||
/*********************************************************************
|
||||
* gncmod-tax-us.c
|
||||
* module definition/initialization for us tax info
|
||||
*
|
||||
* Copyright (c) 2001 Linux Developers Group, Inc.
|
||||
*********************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <guile/gh.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-module.h"
|
||||
#include "gnc-module-api.h"
|
||||
|
||||
/* version of the gnc module system interface we require */
|
||||
int libgncmod_hbci_LTX_gnc_module_system_interface = 0;
|
||||
|
||||
/* module versioning uses libtool semantics. */
|
||||
int libgncmod_hbci_LTX_gnc_module_current = 0;
|
||||
int libgncmod_hbci_LTX_gnc_module_revision = 0;
|
||||
int libgncmod_hbci_LTX_gnc_module_age = 0;
|
||||
|
||||
char *
|
||||
libgncmod_hbci_LTX_gnc_module_path(void) {
|
||||
return g_strdup("gnucash/import-export/hbci");
|
||||
}
|
||||
|
||||
char *
|
||||
libgncmod_hbci_LTX_gnc_module_description(void) {
|
||||
return g_strdup("Support for HBCI protocol");
|
||||
}
|
||||
|
||||
static void
|
||||
lmod(char * mn)
|
||||
{
|
||||
char * form = g_strdup_printf("(use-modules %s)\n", mn);
|
||||
gh_eval_str(form);
|
||||
g_free(form);
|
||||
}
|
||||
|
||||
int
|
||||
libgncmod_hbci_LTX_gnc_module_init(int refcount) {
|
||||
/* load the engine (we depend on it) */
|
||||
if(!gnc_module_load("gnucash/engine", 0)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* load the app-utils (we depend on it) */
|
||||
if(!gnc_module_load("gnucash/app-utils", 0)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* load the HBCI Scheme code */
|
||||
if(gh_eval_str("(use-modules (gnucash import-export hbci))") ==
|
||||
SCM_BOOL_F) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
libgncmod_hbci_LTX_gnc_module_end(int refcount) {
|
||||
return TRUE;
|
||||
}
|
6
src/import-export/hbci/hbci.scm
Normal file
6
src/import-export/hbci/hbci.scm
Normal file
@ -0,0 +1,6 @@
|
||||
(define-module (gnucash import-export hbci))
|
||||
|
||||
;;(export gnc:txf-get-payer-name-source)
|
||||
;;(export txf-expense-categories)
|
||||
|
||||
;;(load-from-path "txf.scm")
|
5
src/import-export/hbci/test/.cvsignore
Normal file
5
src/import-export/hbci/test/.cvsignore
Normal file
@ -0,0 +1,5 @@
|
||||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
test-link-module
|
7
src/import-export/hbci/test/Makefile.am
Normal file
7
src/import-export/hbci/test/Makefile.am
Normal file
@ -0,0 +1,7 @@
|
||||
TESTS=test-link
|
||||
|
||||
noinst_PROGRAMS=test-link-module
|
||||
|
||||
test_link_module_SOURCES=test-link-module.c
|
||||
test_link_module_LDADD=../libgncmod-hbci.la
|
||||
|
6
src/import-export/hbci/test/test-link-module.c
Normal file
6
src/import-export/hbci/test/test-link-module.c
Normal file
@ -0,0 +1,6 @@
|
||||
int
|
||||
main(int argc, char ** argv)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user