[Gnucash-changes] removed files

Neil Williams codehelp at cvs.gnucash.org
Thu Oct 13 08:48:53 EDT 2005


Log Message:
-----------
removed files

Tags:
----
gnucash-gnome2-dev

Removed Files:
-------------
    gnucash/src/backend/file/test:
        test-load-module
    gnucash/src/backend/postgres:
        gncmod-backend-postgres.c
    gnucash/src/backend/postgres/test:
        test-load-module

Revision Data
-------------
--- src/backend/file/test/test-load-module
+++ /dev/null
@@ -1,17 +0,0 @@
-#! /bin/sh
-exec guile -s "$0"
-!#
-
-(display "  testing file backend load ... ")
-(use-modules (gnucash gnc-module))
-(gnc:module-system-init)
-
-(gnc:module-load "gnucash/engine" 0)
-
-(if (gnc:module-load "gnucash/backend/file" 0)
-    (begin 
-      (display "ok\n")
-      (exit 0))
-    (begin 
-      (display "failed\n")
-      (exit -1)))
--- src/backend/postgres/gncmod-backend-postgres.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*********************************************************************
- * gncmod-file-postgres.c
- * module definition/initialization for the postgres backend module
- * 
- * Copyright (c) 2001 Linux Developers Group, Inc. 
- *********************************************************************/
-
-#include <stdio.h>
-#include <glib.h>
-
-#include "qofbackend.h"
-#include "PostgresBackend.h"
-
-#include "gnc-backend-api.h"
-#include "gnc-module.h"
-#include "gnc-module-api.h"
-
-/* version of the gnc module system interface we require */
-int libgncmod_backend_postgres_LTX_gnc_module_system_interface = 0;
-
-/* module versioning uses libtool semantics. */
-int libgncmod_backend_postgres_LTX_gnc_module_current  = 0;
-int libgncmod_backend_postgres_LTX_gnc_module_revision = 0;
-int libgncmod_backend_postgres_LTX_gnc_module_age      = 0;
-
-static GNCModule engine;
-
-/* forward references */
-char *libgncmod_backend_postgres_LTX_gnc_module_path(void);
-char *libgncmod_backend_postgres_LTX_gnc_module_description(void);
-int libgncmod_backend_postgres_LTX_gnc_module_init(int refcount);
-int libgncmod_backend_postgres_LTX_gnc_module_end(int refcount);
-QofBackend * libgncmod_backend_postgres_LTX_gnc_backend_new(void);
-
-char *
-libgncmod_backend_postgres_LTX_gnc_module_path(void) 
-{
-  return g_strdup("gnucash/backend/postgres");
-}
-
-char * 
-libgncmod_backend_postgres_LTX_gnc_module_description(void) 
-{
-  return g_strdup("The Postgres backend for Gnucash");
-}
-
-int
-libgncmod_backend_postgres_LTX_gnc_module_init(int refcount) 
-{  
-  engine = gnc_module_load("gnucash/engine", 0);
-  if(!engine) return FALSE;
-
-  return TRUE;
-}
-
-int
-libgncmod_backend_postgres_LTX_gnc_module_end(int refcount) 
-{
-  int unload = TRUE;
-
-  if (engine)
-    unload = gnc_module_unload(engine);    
-
-  if (refcount == 0)
-    engine = NULL;
-
-  return unload;
-}
-
-
-/****************************************************************
- * gnc_backend_new 
- * this is the init function that must be defined by every dynamically
- * loadable backend.  the postgres backend doesn't follow backend
- * loader naming conventions yet so we wrap its initializer function
- * temporarily 
- ****************************************************************/
-
-QofBackend * 
-libgncmod_backend_postgres_LTX_gnc_backend_new(void) {
-  return pgendNew();
-}
--- src/backend/postgres/test/test-load-module
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/sh
-exec guile -s "$0"
-!#
-
-(display "  testing postgres backend load ... ")
-(use-modules (gnucash gnc-module))
-(gnc:module-system-init)
-
-(if (gnc:module-load "gnucash/backend/postgres" 0)
-    (begin 
-      (display "ok\n")
-      (exit 0))
-    (begin 
-      (display "failed\n")
-      (exit -1)))


More information about the gnucash-changes mailing list