/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */


#ifndef SWIGGUILE
#define SWIGGUILE
#endif

#define SWIG_GUILE_INIT_STATIC static
SWIG_GUILE_INIT_STATIC void
SWIG_init (void);

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif

/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic C API SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "4"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the SWIG runtime code.
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.

  But only do this if strictly necessary, ie, if you have problems
  with your compiler or suchlike.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1
#define SWIG_CAST_NEW_MEMORY       0x2

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/*
   Flags/methods for returning states.

   The SWIG conversion methods, as ConvertPtr, return an integer
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).

   Use the following macros/flags to set or process the returning
   states.

   In old versions of SWIG, code such as the following was usually written:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   which is the same really, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }

   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   also requires SWIG_ConvertPtr to return new result values, such as

      int SWIG_ConvertPtr(obj, ptr,...) {
        if (<obj is ok>) {
          if (<need new object>) {
            *ptr = <ptr to new allocated object>;
            return SWIG_NEWOBJ;
          } else {
            *ptr = <ptr to old object>;
            return SWIG_OLDOBJ;
          }
        } else {
          return SWIG_BADOBJ;
        }
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   SWIG errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows to return the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call

      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()
*/

#define SWIG_OK                    (0)
#define SWIG_ERROR                 (-1)
#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) {
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) {
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
#  define SWIG_AddCast(r) (r)
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif


#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store information on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/*
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (int)((l1 - f1) - (l2 - f2));
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCmp(const char *nb, const char *tb) {
  int equiv = 1;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (equiv != 0 && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = SWIG_TypeNameComp(nb, ne, tb, te);
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(iter->type->name, c) == 0) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}

/*
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/*
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;

  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }
    cast = cast->next;
  }
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}

/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start,
                            swig_module_info *end,
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      size_t l = 0;
      size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	size_t i = (l + r) >> 1;
	const char *iname = iter->types[i]->name;
	if (iname) {
	  int compare = strcmp(name, iname);
	  if (compare == 0) {
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start,
                     swig_module_info *end,
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }

  /* neither found a match */
  return 0;
}

/*
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  const unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/*
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    char d = *(c++);
    unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = (unsigned char)((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = (unsigned char)((d - ('a'-10)) << 4);
    else
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (unsigned char)(d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (unsigned char)(d - ('a'-10));
    else
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/*
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------
 * guile_scm_run.swg
 * ----------------------------------------------------------------------------- */

#include <libguile.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>

#ifdef __cplusplus
extern "C" {
#endif


/* In the code below, use guile 2.0 compatible functions where possible.
   Functions that don't exist in older versions will be mapped to
   a deprecated equivalent for those versions only */
#if defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION < 2)

static SCM
scm_module_variable (SCM module, SCM sym)
{
  return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
}

#endif

#if SCM_MAJOR_VERSION >= 2
/* scm_c_define_gsubr takes a different parameter type depending on the guile version */

typedef scm_t_subr swig_guile_proc;
#else
typedef SCM (*swig_guile_proc)();
#endif
typedef SCM (*guile_destructor)(SCM);

typedef struct swig_guile_clientdata {
  guile_destructor destroy;
  SCM goops_class;
} swig_guile_clientdata;

#if SCM_MAJOR_VERSION <= 2
#define scm_to_utf8_string scm_to_locale_string
#define scm_from_utf8_string scm_from_locale_string
#endif
#define SWIG_scm2str(s) \
  SWIG_Guile_scm2newstr(s, NULL)
#define SWIG_str02scm(str) \
  str ? scm_from_utf8_string(str) : SCM_BOOL_F 
# define SWIG_malloc(size) \
  scm_malloc(size)
# define SWIG_free(mem) \
  free(mem)
#define SWIG_ConvertPtr(s, result, type, flags) \
  SWIG_Guile_ConvertPtr(s, result, type, flags)
#define SWIG_MustGetPtr(s, type, argnum, flags) \
  SWIG_Guile_MustGetPtr(s, type, argnum, flags, FUNC_NAME)
#define SWIG_NewPointerObj(ptr, type, owner) \
  SWIG_Guile_NewPointerObj((void*)ptr, type, owner)
#define SWIG_PointerAddress(object) \
  SWIG_Guile_PointerAddress(object)
#define SWIG_PointerType(object) \
  SWIG_Guile_PointerType(object)
#define SWIG_IsPointerOfType(object, type) \
  SWIG_Guile_IsPointerOfType(object, type)
#define SWIG_IsPointer(object) \
  SWIG_Guile_IsPointer(object)
#define SWIG_contract_assert(expr, msg)				\
  if (!(expr))							\
    scm_error(scm_from_locale_symbol("swig-contract-assertion-failed"),	\
	      (char *) FUNC_NAME, (char *) msg,			\
	      SCM_EOL, SCM_BOOL_F); else

/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty) \
  SWIG_Guile_ConvertMember(obj, ptr, sz, ty, FUNC_NAME)
#define SWIG_NewMemberObj(ptr, sz, type) \
  SWIG_Guile_NewMemberObj(ptr, sz, type, FUNC_NAME)
  
/* Runtime API */
static swig_module_info *SWIG_Guile_GetModule(void *SWIGUNUSEDPARM(clientdata));
#define SWIG_GetModule(clientdata) SWIG_Guile_GetModule(clientdata)
#define SWIG_SetModule(clientdata, pointer) SWIG_Guile_SetModule(pointer)
  
SWIGINTERN char *
SWIG_Guile_scm2newstr(SCM str, size_t *len) {
#define FUNC_NAME "SWIG_Guile_scm2newstr"
  char *ret;

  SCM_ASSERT (scm_is_string(str), str, 1, FUNC_NAME);

  ret = scm_to_utf8_string(str);
  if (!ret) return NULL;

  if (len) *len = strlen(ret) - 1;
  return ret;
#undef FUNC_NAME
}

static int swig_initialized = 0;
static scm_t_bits swig_tag = 0;
static scm_t_bits swig_collectable_tag = 0;
static scm_t_bits swig_destroyed_tag = 0;
static scm_t_bits swig_member_function_tag = 0;
static SCM swig_make_func = SCM_EOL;
static SCM swig_keyword = SCM_EOL;
static SCM swig_symbol = SCM_EOL;

#define SWIG_Guile_GetSmob(x) \
  ( !scm_is_null(x) && SCM_INSTANCEP(x) && scm_is_true(scm_slot_exists_p(x, swig_symbol)) \
      ? scm_slot_ref(x, swig_symbol) : (x) )

SWIGINTERN SCM
SWIG_Guile_NewPointerObj(void *ptr, swig_type_info *type, int owner)
{
  if (ptr == NULL)
    return SCM_EOL;
  else {
    SCM smob;
    swig_guile_clientdata *cdata = (swig_guile_clientdata *) type->clientdata;
    if (owner)
      SCM_NEWSMOB2(smob, swig_collectable_tag, ptr, (void *) type);
    else
      SCM_NEWSMOB2(smob, swig_tag, ptr, (void *) type);

    if (!cdata || SCM_NULLP(cdata->goops_class) || swig_make_func == SCM_EOL ) {
      return smob;
    } else {
      /* the scm_make() C function only handles the creation of gf,
	 methods and classes (no instances) the (make ...) function is
	 later redefined in goops.scm.  So we need to call that
	 Scheme function. */
      return scm_apply(swig_make_func,
		       scm_list_3(cdata->goops_class,
				  swig_keyword,
				  smob),
		       SCM_EOL);
    }
  }
}

SWIGINTERN unsigned long
SWIG_Guile_PointerAddress(SCM object)
{
  SCM smob = SWIG_Guile_GetSmob(object);
  if (SCM_NULLP(smob)) return 0;
  else if (SCM_SMOB_PREDICATE(swig_tag, smob)
	   || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)
	   || SCM_SMOB_PREDICATE(swig_destroyed_tag, smob)) {
    return (unsigned long) (void *) SCM_CELL_WORD_1(smob);
  }
  else scm_wrong_type_arg("SWIG-Guile-PointerAddress", 1, object);
}

SWIGINTERN swig_type_info *
SWIG_Guile_PointerType(SCM object)
{
  SCM smob = SWIG_Guile_GetSmob(object);
  if (SCM_NULLP(smob)) return NULL;
  else if (SCM_SMOB_PREDICATE(swig_tag, smob)
	   || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)
	   || SCM_SMOB_PREDICATE(swig_destroyed_tag, smob)) {
    return (swig_type_info *) SCM_CELL_WORD_2(smob);
  }
  else scm_wrong_type_arg("SWIG-Guile-PointerType", 1, object);
}
  
SWIGINTERN int
SWIG_Guile_ConvertPtr(SCM s, void **result, swig_type_info *type, int flags)
{
  swig_cast_info *cast;
  swig_type_info *from;
  SCM smob = SWIG_Guile_GetSmob(s);

  if (SCM_NULLP(smob)) {
    *result = NULL;
    return SWIG_OK;
#if SCM_MAJOR_VERSION >= 2
  } else if (SCM_POINTER_P(s)) {
    *result = SCM_POINTER_VALUE(s);
    return SWIG_OK;
#endif /* if SCM_MAJOR_VERSION >= 2 */
  } else if (SCM_SMOB_PREDICATE(swig_tag, smob) || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)) {
    /* we do not accept smobs representing destroyed pointers */
    from = (swig_type_info *) SCM_CELL_WORD_2(smob);
    if (!from) return SWIG_ERROR;
    if (type) {
      cast = SWIG_TypeCheckStruct(from, type);
      if (cast) {
        int newmemory = 0;
        *result = SWIG_TypeCast(cast, (void *) SCM_CELL_WORD_1(smob), &newmemory);
        assert(!newmemory); /* newmemory handling not yet implemented */
        return SWIG_OK;
      } else {
        return SWIG_ERROR;
      }
    } else {
      *result = (void *) SCM_CELL_WORD_1(smob);
      return SWIG_OK;
    }
  }
  return SWIG_ERROR;
}

SWIGINTERNINLINE void *
SWIG_Guile_MustGetPtr (SCM s, swig_type_info *type,
		       int argnum, int flags, const char *func_name)
{
  void *result;
  int res = SWIG_Guile_ConvertPtr(s, &result, type, flags);
  if (!SWIG_IsOK(res)) {
    /* type mismatch */
    scm_wrong_type_arg((char *) func_name, argnum, s);
  }
  return result;
}

SWIGINTERNINLINE int
SWIG_Guile_IsPointerOfType (SCM s, swig_type_info *type)
{
  void *result;
  if (SWIG_Guile_ConvertPtr(s, &result, type, 0)) {
    /* type mismatch */
    return 0;
  }
  else return 1;
}

SWIGINTERNINLINE int
SWIG_Guile_IsPointer (SCM s)
{
  /* module might not be initialized yet, so initialize it */
  SWIG_GetModule(0);
  return SWIG_Guile_IsPointerOfType (s, NULL);
}

/* Mark a pointer object non-collectable */
SWIGINTERN void
SWIG_Guile_MarkPointerNoncollectable(SCM s)
{
  SCM smob = SWIG_Guile_GetSmob(s);
  if (!SCM_NULLP(smob)) {
    if (SCM_SMOB_PREDICATE(swig_tag, smob) || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)) {
      SCM_SET_CELL_TYPE(smob, swig_tag);
    }
    else scm_wrong_type_arg(NULL, 0, s);
  }
}

/* Mark a pointer object destroyed */
SWIGINTERN void
SWIG_Guile_MarkPointerDestroyed(SCM s)
{
  SCM smob = SWIG_Guile_GetSmob(s);
  if (!SCM_NULLP(smob)) {
    if (SCM_SMOB_PREDICATE(swig_tag, smob) || SCM_SMOB_PREDICATE(swig_collectable_tag, smob)) {
      SCM_SET_CELL_TYPE(smob, swig_destroyed_tag);
    }
    else scm_wrong_type_arg(NULL, 0, s);
  }
}

/* Member functions */

SWIGINTERN SCM
SWIG_Guile_NewMemberObj(void *ptr, size_t sz, swig_type_info *type,
			const char *func_name)
{
  SCM smob;
  void *copy = malloc(sz);
  memcpy(copy, ptr, sz);
  SCM_NEWSMOB2(smob, swig_member_function_tag, copy, (void *) type);
  return smob;
}

SWIGINTERN int
SWIG_Guile_ConvertMember(SCM smob, void *ptr, size_t sz, swig_type_info *type,
			 const char *func_name)
{
  swig_cast_info *cast;
  swig_type_info *from;

  if (SCM_SMOB_PREDICATE(swig_member_function_tag, smob)) {
    from = (swig_type_info *) SCM_CELL_WORD_2(smob);
    if (!from) return SWIG_ERROR;
    if (type) {
      cast = SWIG_TypeCheckStruct(from, type);
      if (!cast) return SWIG_ERROR;
    }
    memcpy(ptr, (void *) SCM_CELL_WORD_1(smob), sz);
    return SWIG_OK;
  }
  return SWIG_ERROR;
}
     

/* Init */

SWIGINTERN int
print_swig_aux (SCM swig_smob, SCM port, scm_print_state *pstate, 
                const char *attribute)
{
  swig_type_info *type;
  
  type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob);
  if (type) {
    scm_puts((char *) "#<", port);
    scm_puts((char *) attribute, port);
    scm_puts((char *) "swig-pointer ", port);
    scm_puts((char *) SWIG_TypePrettyName(type), port);
    scm_puts((char *) " ", port);
    scm_intprint((long) SCM_CELL_WORD_1(swig_smob), 16, port);
    scm_puts((char *) ">", port);
    /* non-zero means success */
    return 1;
  } else {
    return 0;
  }
}

  
SWIGINTERN int
print_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
{
  return print_swig_aux(swig_smob, port, pstate, "");
}

SWIGINTERN int
print_collectable_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
{
  return print_swig_aux(swig_smob, port, pstate, "collectable-");
}

SWIGINTERN int
print_destroyed_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
{
  return print_swig_aux(swig_smob, port, pstate, "destroyed-");
}

SWIGINTERN int
print_member_function_swig (SCM swig_smob, SCM port, scm_print_state *pstate)
{
  swig_type_info *type;
  type = (swig_type_info *) SCM_CELL_WORD_2(swig_smob);
  if (type) {
    scm_puts((char *) "#<", port);
    scm_puts((char *) "swig-member-function-pointer ", port);
    scm_puts((char *) SWIG_TypePrettyName(type), port);
    scm_puts((char *) " >", port);
    /* non-zero means success */
    return 1;
  } else {
    return 0;
  }
}

SWIGINTERN SCM
equalp_swig (SCM A, SCM B)
{
  if (SCM_CELL_WORD_0(A) == SCM_CELL_WORD_0(B) && SCM_CELL_WORD_1(A) == SCM_CELL_WORD_1(B) 
      && SCM_CELL_WORD_2(A) == SCM_CELL_WORD_2(B))
    return SCM_BOOL_T;
  else return SCM_BOOL_F;
}

SWIGINTERN size_t
free_swig(SCM A)
{
  swig_type_info *type = (swig_type_info *) SCM_CELL_WORD_2(A);
  if (type) {
    if (type->clientdata && ((swig_guile_clientdata *)type->clientdata)->destroy)
      ((swig_guile_clientdata *)type->clientdata)->destroy(A);
  } 
  return 0;
}

SWIGINTERN size_t
free_swig_member_function(SCM A)
{
  free((swig_type_info *) SCM_CELL_WORD_1(A));
  return 0;
}

SWIGINTERN int
ensure_smob_tag(SCM swig_module,
		scm_t_bits *tag_variable,
		const char *smob_name,
		const char *scheme_variable_name)
{
  SCM variable = scm_module_variable(swig_module,
                             scm_from_locale_symbol(scheme_variable_name));
  if (scm_is_false(variable)) {
    *tag_variable = scm_make_smob_type((char*)scheme_variable_name, 0);
    scm_c_module_define(swig_module, scheme_variable_name, 
                        scm_from_ulong(*tag_variable));
    return 1;
  }
  else {
    *tag_variable = scm_to_ulong(SCM_VARIABLE_REF(variable));
    return 0;
  }
}

SWIGINTERN SCM
SWIG_Guile_Init ()
{
  static SCM swig_module;
  
  if (swig_initialized) return swig_module;
  swig_initialized = 1;

  swig_module = scm_c_resolve_module("Swig swigrun");
  if (ensure_smob_tag(swig_module, &swig_tag,
		      "swig-pointer", "swig-pointer-tag")) {
    scm_set_smob_print(swig_tag, print_swig);
    scm_set_smob_equalp(swig_tag, equalp_swig);
  }
  if (ensure_smob_tag(swig_module, &swig_collectable_tag,
		      "collectable-swig-pointer", "collectable-swig-pointer-tag")) {
    scm_set_smob_print(swig_collectable_tag, print_collectable_swig);
    scm_set_smob_equalp(swig_collectable_tag, equalp_swig);
    scm_set_smob_free(swig_collectable_tag, free_swig);
  }
  if (ensure_smob_tag(swig_module, &swig_destroyed_tag,
		      "destroyed-swig-pointer", "destroyed-swig-pointer-tag")) {
    scm_set_smob_print(swig_destroyed_tag, print_destroyed_swig);
    scm_set_smob_equalp(swig_destroyed_tag, equalp_swig);
  }
  if (ensure_smob_tag(swig_module, &swig_member_function_tag,
		      "swig-member-function-pointer", "swig-member-function-pointer-tag")) {
    scm_set_smob_print(swig_member_function_tag, print_member_function_swig);
    scm_set_smob_free(swig_member_function_tag, free_swig_member_function);
  }
  swig_make_func = scm_permanent_object(
  scm_variable_ref(scm_c_module_lookup(scm_c_resolve_module("oop goops"), "make")));
  swig_keyword = scm_permanent_object(scm_from_locale_keyword((char*) "init-smob"));
  swig_symbol = scm_permanent_object(scm_from_locale_symbol("swig-smob"));
#ifdef SWIG_INIT_RUNTIME_MODULE
  SWIG_INIT_RUNTIME_MODULE
#endif

  return swig_module;
}

SWIGINTERN swig_module_info *
SWIG_Guile_GetModule(void *SWIGUNUSEDPARM(clientdata))
{
  SCM module = SWIG_Guile_Init();
  SCM variable = scm_module_variable(module, scm_from_locale_symbol("swig-type-list-address" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME));
  if (scm_is_false(variable)) {
    return NULL;
  } else {
    return (swig_module_info *) scm_to_ulong(SCM_VARIABLE_REF(variable));
  }
}

SWIGINTERN void
SWIG_Guile_SetModule(swig_module_info *swig_module)
{
  SCM module = SWIG_Guile_Init();
  scm_module_define(module,
                    scm_from_locale_symbol("swig-type-list-address" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME),
                    scm_from_ulong((unsigned long) swig_module));
}

SWIGINTERN int
SWIG_Guile_GetArgs (SCM *dest, SCM rest,
		    int reqargs, int optargs,
		    const char *procname)
{
  int i;
  int num_args_passed = 0;
  for (i = 0; i<reqargs; i++) {
    if (!SCM_CONSP(rest))
      scm_wrong_num_args(scm_from_utf8_string(procname ? (char *) procname : "unknown procedure"));
    *dest++ = SCM_CAR(rest);
    rest = SCM_CDR(rest);
    num_args_passed++;
  }
  for (i = 0; i<optargs && SCM_CONSP(rest); i++) {
    *dest++ = SCM_CAR(rest);
    rest = SCM_CDR(rest);
    num_args_passed++;
  }
  for (; i<optargs; i++)
    *dest++ = SCM_UNDEFINED;
  if (!SCM_NULLP(rest))
      scm_wrong_num_args(scm_from_utf8_string(procname ? (char *) procname : "unknown procedure"));
  return num_args_passed;
}

#ifdef __cplusplus
}
#endif



#define GUILE_MAYBE_VALUES \
      if (gswig_list_p) gswig_result = scm_values(gswig_result);

#define GUILE_MAYBE_VECTOR \
      if (gswig_list_p) gswig_result = scm_vector(gswig_result);

#define SWIG_APPEND_VALUE(object)						\
    if (gswig_result == SCM_UNSPECIFIED)						\
        gswig_result = object;							\
    else {									\
      if (!gswig_list_p) {							\
	      gswig_list_p = 1;							\
	      gswig_result = scm_listify(gswig_result, object, SCM_UNDEFINED);	\
      }									\
      else									\
            gswig_result = scm_append(scm_listify(gswig_result, scm_listify(object, SCM_UNDEFINED), SCM_UNDEFINED));		\
    }


static swig_guile_clientdata _swig_guile_clientdataAccountClass = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdataGncImportMatchMap = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdataGncImapInfo = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdataGncLotClass = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdata_QofQueryPredData = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdata_gnc_numeric = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdata_gnc_monetary = { NULL, SCM_EOL };
static swig_guile_clientdata _swig_guile_clientdata_gncAccountValue = { NULL, SCM_EOL };

/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_Account swig_types[0]
#define SWIGTYPE_p_AccountClass swig_types[1]
#define SWIGTYPE_p_AccountGUIDList swig_types[2]
#define SWIGTYPE_p_AccountList swig_types[3]
#define SWIGTYPE_p_FILE swig_types[4]
#define SWIGTYPE_p_GCompareFunc swig_types[5]
#define SWIGTYPE_p_GDate swig_types[6]
#define SWIGTYPE_p_GFunc swig_types[7]
#define SWIGTYPE_p_GHashTable swig_types[8]
#define SWIGTYPE_p_GList swig_types[9]
#define SWIGTYPE_p_GNCAccountType swig_types[10]
#define SWIGTYPE_p_GNCDateMonthFormat swig_types[11]
#define SWIGTYPE_p_GNCLot swig_types[12]
#define SWIGTYPE_p_GNCNumericErrorCode swig_types[13]
#define SWIGTYPE_p_GNCPlaceholderType swig_types[14]
#define SWIGTYPE_p_GNCPrice swig_types[15]
#define SWIGTYPE_p_GSList swig_types[16]
#define SWIGTYPE_p_GType swig_types[17]
#define SWIGTYPE_p_GncAmountType swig_types[18]
#define SWIGTYPE_p_GncBillTermType swig_types[19]
#define SWIGTYPE_p_GncDiscountHow swig_types[20]
#define SWIGTYPE_p_GncEntryPaymentType swig_types[21]
#define SWIGTYPE_p_GncGUID swig_types[22]
#define SWIGTYPE_p_GncImportMatchMap swig_types[23]
#define SWIGTYPE_p_GncInvoiceType swig_types[24]
#define SWIGTYPE_p_GncLotClass swig_types[25]
#define SWIGTYPE_p_GncOwnerType swig_types[26]
#define SWIGTYPE_p_GncTaxIncluded swig_types[27]
#define SWIGTYPE_p_KvpValue swig_types[28]
#define SWIGTYPE_p_PriceRemoveKeepOptions swig_types[29]
#define SWIGTYPE_p_PriceRemoveSourceFlags swig_types[30]
#define SWIGTYPE_p_PriceSource swig_types[31]
#define SWIGTYPE_p_QofBook swig_types[32]
#define SWIGTYPE_p_QofCharMatch swig_types[33]
#define SWIGTYPE_p_QofCollection swig_types[34]
#define SWIGTYPE_p_QofDateCompletion swig_types[35]
#define SWIGTYPE_p_QofDateFormat swig_types[36]
#define SWIGTYPE_p_QofDateMatch swig_types[37]
#define SWIGTYPE_p_QofGuidMatch swig_types[38]
#define SWIGTYPE_p_QofIdType swig_types[39]
#define SWIGTYPE_p_QofIdTypeConst swig_types[40]
#define SWIGTYPE_p_QofInstance swig_types[41]
#define SWIGTYPE_p_QofInstanceClass swig_types[42]
#define SWIGTYPE_p_QofNumericMatch swig_types[43]
#define SWIGTYPE_p_QofParam swig_types[44]
#define SWIGTYPE_p_QofQueryCompare swig_types[45]
#define SWIGTYPE_p_QofQueryOp swig_types[46]
#define SWIGTYPE_p_QofSession swig_types[47]
#define SWIGTYPE_p_QofStringMatch swig_types[48]
#define SWIGTYPE_p_QofType swig_types[49]
#define SWIGTYPE_p_QuoteSourceType swig_types[50]
#define SWIGTYPE_p_Recurrence swig_types[51]
#define SWIGTYPE_p_Split swig_types[52]
#define SWIGTYPE_p_SplitList swig_types[53]
#define SWIGTYPE_p_Transaction swig_types[54]
#define SWIGTYPE_p_TransactionCallback swig_types[55]
#define SWIGTYPE_p__GncBudgetClass swig_types[56]
#define SWIGTYPE_p__GncCommodityClass swig_types[57]
#define SWIGTYPE_p__GncCommodityNamespaceClass swig_types[58]
#define SWIGTYPE_p__GncPriceClass swig_types[59]
#define SWIGTYPE_p__GncPriceDBClass swig_types[60]
#define SWIGTYPE_p__QofQuery swig_types[61]
#define SWIGTYPE_p__QofQueryPredData swig_types[62]
#define SWIGTYPE_p__SplitClass swig_types[63]
#define SWIGTYPE_p__TransactionClass swig_types[64]
#define SWIGTYPE_p__gncAccountValue swig_types[65]
#define SWIGTYPE_p__gncAddress swig_types[66]
#define SWIGTYPE_p__gncAddressClass swig_types[67]
#define SWIGTYPE_p__gncBillTerm swig_types[68]
#define SWIGTYPE_p__gncBillTermClass swig_types[69]
#define SWIGTYPE_p__gncCustomer swig_types[70]
#define SWIGTYPE_p__gncCustomerClass swig_types[71]
#define SWIGTYPE_p__gncEmployee swig_types[72]
#define SWIGTYPE_p__gncEmployeeClass swig_types[73]
#define SWIGTYPE_p__gncEntry swig_types[74]
#define SWIGTYPE_p__gncEntryClass swig_types[75]
#define SWIGTYPE_p__gncInvoice swig_types[76]
#define SWIGTYPE_p__gncInvoiceClass swig_types[77]
#define SWIGTYPE_p__gncJob swig_types[78]
#define SWIGTYPE_p__gncJobClass swig_types[79]
#define SWIGTYPE_p__gncOrder swig_types[80]
#define SWIGTYPE_p__gncOrderClass swig_types[81]
#define SWIGTYPE_p__gncOwner swig_types[82]
#define SWIGTYPE_p__gncTaxTable swig_types[83]
#define SWIGTYPE_p__gncTaxTableClass swig_types[84]
#define SWIGTYPE_p__gncTaxTableEntry swig_types[85]
#define SWIGTYPE_p__gncVendor swig_types[86]
#define SWIGTYPE_p__gncVendorClass swig_types[87]
#define SWIGTYPE_p__gnc_monetary swig_types[88]
#define SWIGTYPE_p__gnc_numeric swig_types[89]
#define SWIGTYPE_p_budget_s swig_types[90]
#define SWIGTYPE_p_char swig_types[91]
#define SWIGTYPE_p_cleared_match_t swig_types[92]
#define SWIGTYPE_p_double swig_types[93]
#define SWIGTYPE_p_f_p_Account_p_void__p_void swig_types[94]
#define SWIGTYPE_p_f_p_Account_p_void__void swig_types[95]
#define SWIGTYPE_p_f_p_GNCLot_p_void__gboolean swig_types[96]
#define SWIGTYPE_p_f_p_GNCLot_p_void__p_void swig_types[97]
#define SWIGTYPE_p_f_p_GNCPrice_p_void__gboolean swig_types[98]
#define SWIGTYPE_p_f_p_gnc_commodity_p_void__gboolean swig_types[99]
#define SWIGTYPE_p_f_p_void_p_void__void swig_types[100]
#define SWIGTYPE_p_float swig_types[101]
#define SWIGTYPE_p_gboolean swig_types[102]
#define SWIGTYPE_p_gconstpointer swig_types[103]
#define SWIGTYPE_p_gint32 swig_types[104]
#define SWIGTYPE_p_gint64 swig_types[105]
#define SWIGTYPE_p_gnc_commodity swig_types[106]
#define SWIGTYPE_p_gnc_commodity_namespace swig_types[107]
#define SWIGTYPE_p_gnc_commodity_table swig_types[108]
#define SWIGTYPE_p_gnc_price_db_s swig_types[109]
#define SWIGTYPE_p_gnc_quote_source swig_types[110]
#define SWIGTYPE_p_gncpolicy_s swig_types[111]
#define SWIGTYPE_p_gsize swig_types[112]
#define SWIGTYPE_p_guint32 swig_types[113]
#define SWIGTYPE_p_guint8 swig_types[114]
#define SWIGTYPE_p_gunichar swig_types[115]
#define SWIGTYPE_p_imap_info swig_types[116]
#define SWIGTYPE_p_int swig_types[117]
#define SWIGTYPE_p_p_GList swig_types[118]
#define SWIGTYPE_p_p_Transaction swig_types[119]
#define SWIGTYPE_p_query_txn_match_t swig_types[120]
#define SWIGTYPE_p_timespec64 swig_types[121]
#define SWIGTYPE_p_tm swig_types[122]
#define SWIGTYPE_p_unsigned_int swig_types[123]
#define SWIGTYPE_p_unsigned_long swig_types[124]
#define SWIGTYPE_p_void swig_types[125]
static swig_type_info *swig_types[127];
static swig_module_info swig_module = {swig_types, 126, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */


/* Includes the header in the wrapper code */
#include <config.h>
#include <glib.h>
#include "qof.h"
#include "Query.h"
#include "gnc-budget.h"
#include "gnc-commodity.h"
#include "gnc-engine.h"
#include "gnc-filepath-utils.h"
#include "gnc-pricedb.h"
#include "gnc-lot.h"
#include "gnc-session.h"
#include "gnc-hooks-scm.h"
#include "engine-helpers.h"
#include "engine-helpers-guile.h"
#include "policy.h"
#include "SX-book.h"
#include "kvp-scm.h"
#include "glib-helpers.h"

#include "gncAddress.h"
#include "gncBillTerm.h"
#include "gncCustomer.h"
#include "gncEmployee.h"
#include "gncEntry.h"
#include "gncInvoice.h"
#include "gncJob.h"
#include "gncOrder.h"
#include "gncOwner.h"
#include "gncTaxTable.h"
#include "gncVendor.h"
#include "gncBusGuile.h"


#include "guile-mappings.h"

SCM scm_init_sw_engine_module (void);


static const GncGUID * gncSplitGetGUID(Split *x)
{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
static const GncGUID * gncTransGetGUID(Transaction *x)
{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
static const GncGUID * gncAccountGetGUID(Account *x)
{ return qof_instance_get_guid(QOF_INSTANCE(x)); }

static char gswig_const_CREC = (char)('c');
static char gswig_const_YREC = (char)('y');
static char gswig_const_FREC = (char)('f');
static char gswig_const_NREC = (char)('n');
static char gswig_const_VREC = (char)('v');
static char const *gswig_const_SPLIT_DATE_RECONCILED = (char const *)("date-reconciled");
static char const *gswig_const_SPLIT_BALANCE = (char const *)("balance");
static char const *gswig_const_SPLIT_CLEARED_BALANCE = (char const *)("cleared-balance");
static char const *gswig_const_SPLIT_RECONCILED_BALANCE = (char const *)("reconciled-balance");
static char const *gswig_const_SPLIT_MEMO = (char const *)("memo");
static char const *gswig_const_SPLIT_ACTION = (char const *)("action");
static char const *gswig_const_SPLIT_RECONCILE = (char const *)("reconcile-flag");
static char const *gswig_const_SPLIT_AMOUNT = (char const *)("amount");
static char const *gswig_const_SPLIT_SHARE_PRICE = (char const *)("share-price");
static char const *gswig_const_SPLIT_VALUE = (char const *)("value");
static char const *gswig_const_SPLIT_TYPE = (char const *)("type");
static char const *gswig_const_SPLIT_VOIDED_AMOUNT = (char const *)("voided-amount");
static char const *gswig_const_SPLIT_VOIDED_VALUE = (char const *)("voided-value");
static char const *gswig_const_SPLIT_LOT = (char const *)("lot");
static char const *gswig_const_SPLIT_TRANS = (char const *)("trans");
static char const *gswig_const_SPLIT_ACCOUNT = (char const *)("account");
static char const *gswig_const_SPLIT_ACCOUNT_GUID = (char const *)("account-guid");
static char const *gswig_const_SPLIT_ACCT_FULLNAME = (char const *)("acct-fullname");
static char const *gswig_const_SPLIT_CORR_ACCT_NAME = (char const *)("corr-acct-fullname");
static char const *gswig_const_SPLIT_CORR_ACCT_CODE = (char const *)("corr-acct-code");
static int gswig_const_ACCT_TYPE_INVALID = (int)(ACCT_TYPE_INVALID);
static int gswig_const_ACCT_TYPE_NONE = (int)(ACCT_TYPE_NONE);
static int gswig_const_ACCT_TYPE_BANK = (int)(ACCT_TYPE_BANK);
static int gswig_const_ACCT_TYPE_CASH = (int)(ACCT_TYPE_CASH);
static int gswig_const_ACCT_TYPE_CREDIT = (int)(ACCT_TYPE_CREDIT);
static int gswig_const_ACCT_TYPE_ASSET = (int)(ACCT_TYPE_ASSET);
static int gswig_const_ACCT_TYPE_LIABILITY = (int)(ACCT_TYPE_LIABILITY);
static int gswig_const_ACCT_TYPE_STOCK = (int)(ACCT_TYPE_STOCK);
static int gswig_const_ACCT_TYPE_MUTUAL = (int)(ACCT_TYPE_MUTUAL);
static int gswig_const_ACCT_TYPE_CURRENCY = (int)(ACCT_TYPE_CURRENCY);
static int gswig_const_ACCT_TYPE_INCOME = (int)(ACCT_TYPE_INCOME);
static int gswig_const_ACCT_TYPE_EXPENSE = (int)(ACCT_TYPE_EXPENSE);
static int gswig_const_ACCT_TYPE_EQUITY = (int)(ACCT_TYPE_EQUITY);
static int gswig_const_ACCT_TYPE_RECEIVABLE = (int)(ACCT_TYPE_RECEIVABLE);
static int gswig_const_ACCT_TYPE_PAYABLE = (int)(ACCT_TYPE_PAYABLE);
static int gswig_const_ACCT_TYPE_ROOT = (int)(ACCT_TYPE_ROOT);
static int gswig_const_ACCT_TYPE_TRADING = (int)(ACCT_TYPE_TRADING);
static int gswig_const_NUM_ACCOUNT_TYPES = (int)(NUM_ACCOUNT_TYPES);
static int gswig_const_ACCT_TYPE_CHECKING = (int)(ACCT_TYPE_CHECKING);
static int gswig_const_ACCT_TYPE_SAVINGS = (int)(ACCT_TYPE_SAVINGS);
static int gswig_const_ACCT_TYPE_MONEYMRKT = (int)(ACCT_TYPE_MONEYMRKT);
static int gswig_const_ACCT_TYPE_CREDITLINE = (int)(ACCT_TYPE_CREDITLINE);
static int gswig_const_ACCT_TYPE_LAST = (int)(ACCT_TYPE_LAST);
static int gswig_const_PLACEHOLDER_NONE = (int)(PLACEHOLDER_NONE);
static int gswig_const_PLACEHOLDER_THIS = (int)(PLACEHOLDER_THIS);
static int gswig_const_PLACEHOLDER_CHILD = (int)(PLACEHOLDER_CHILD);
static char const *gswig_const_ACCOUNT_KVP = (char const *)("kvp");
static char const *gswig_const_ACCOUNT_NAME_ = (char const *)("name");
static char const *gswig_const_ACCOUNT_CODE_ = (char const *)("code");
static char const *gswig_const_ACCOUNT_DESCRIPTION_ = (char const *)("desc");
static char const *gswig_const_ACCOUNT_COLOR_ = (char const *)("color");
static char const *gswig_const_ACCOUNT_FILTER_ = (char const *)("filter");
static char const *gswig_const_ACCOUNT_SORT_ORDER_ = (char const *)("sort-order");
static char const *gswig_const_ACCOUNT_SORT_REVERSED_ = (char const *)("sort-reversed");
static char const *gswig_const_ACCOUNT_NOTES_ = (char const *)("notes");
static char const *gswig_const_ACCOUNT_BALANCE_ = (char const *)("balance");
static char const *gswig_const_ACCOUNT_CLEARED_ = (char const *)("cleared");
static char const *gswig_const_ACCOUNT_RECONCILED_ = (char const *)("reconciled");
static char const *gswig_const_ACCOUNT_PRESENT_ = (char const *)("present");
static char const *gswig_const_ACCOUNT_FUTURE_MINIMUM_ = (char const *)("future-minimum");
static char const *gswig_const_ACCOUNT_TAX_RELATED = (char const *)("tax-related-p");
static char const *gswig_const_ACCOUNT_TYPE_ = (char const *)("account-type");
static char const *gswig_const_ACCOUNT_SCU = (char const *)("smallest-commodity-unit");
static char const *gswig_const_ACCOUNT_NSCU = (char const *)("non-standard-scu");
static char const *gswig_const_ACCOUNT_PARENT = (char const *)("parent-account");
static char const *gswig_const_ACCOUNT_MATCH_ALL_TYPE = (char const *)("account-match-all");
static char gswig_const_TXN_TYPE_NONE = (char)('\0');
static char gswig_const_TXN_TYPE_INVOICE = (char)('I');
static char gswig_const_TXN_TYPE_PAYMENT = (char)('P');
static char gswig_const_TXN_TYPE_LINK = (char)('L');
static char const *gswig_const_TRANS_KVP = (char const *)("kvp");
static char const *gswig_const_TRANS_NUM = (char const *)("num");
static char const *gswig_const_TRANS_DESCRIPTION = (char const *)("desc");
static char const *gswig_const_TRANS_DATE_ENTERED = (char const *)("date-entered");
static char const *gswig_const_TRANS_DATE_POSTED = (char const *)("date-posted");
static char const *gswig_const_TRANS_DATE_DUE = (char const *)("date-due");
static char const *gswig_const_TRANS_IMBALANCE = (char const *)("trans-imbalance");
static char const *gswig_const_TRANS_IS_BALANCED = (char const *)("trans-balanced?");
static char const *gswig_const_TRANS_IS_CLOSING = (char const *)("trans-is-closing?");
static char const *gswig_const_TRANS_NOTES = (char const *)("notes");
static char const *gswig_const_TRANS_ASSOCIATION = (char const *)("assoc");
static char const *gswig_const_TRANS_TYPE = (char const *)("type");
static char const *gswig_const_TRANS_VOID_STATUS = (char const *)("void-p");
static char const *gswig_const_TRANS_VOID_REASON = (char const *)("void-reason");
static char const *gswig_const_TRANS_VOID_TIME = (char const *)("void-time");
static char const *gswig_const_TRANS_SPLITLIST = (char const *)("split-list");
static char const *gswig_const_RECONCILED_MATCH_TYPE = (char const *)("reconciled-match");
static char const *gswig_const_LOT_IS_CLOSED = (char const *)("is-closed?");
static char const *gswig_const_LOT_BALANCE = (char const *)("balance");
static char const *gswig_const_LOT_TITLE = (char const *)("lot-title");
static char const *gswig_const_LOT_NOTES = (char const *)("notes");

static const GncGUID * gncPriceGetGUID(GNCPrice *x)
{ return qof_instance_get_guid(QOF_INSTANCE(x)); }
static const GncGUID * gncBudgetGetGUID(GncBudget *x)
{ return qof_instance_get_guid(QOF_INSTANCE(x)); }


  static QofIdType QOF_ID_BOOK_SCM (void) { return QOF_ID_BOOK; }

static int gswig_const_PRICE_SOURCE_EDIT_DLG = (int)(PRICE_SOURCE_EDIT_DLG);
static int gswig_const_PRICE_SOURCE_FQ = (int)(PRICE_SOURCE_FQ);
static int gswig_const_PRICE_SOURCE_USER_PRICE = (int)(PRICE_SOURCE_USER_PRICE);
static int gswig_const_PRICE_SOURCE_XFER_DLG_VAL = (int)(PRICE_SOURCE_XFER_DLG_VAL);
static int gswig_const_PRICE_SOURCE_SPLIT_REG = (int)(PRICE_SOURCE_SPLIT_REG);
static int gswig_const_PRICE_SOURCE_STOCK_SPLIT = (int)(PRICE_SOURCE_STOCK_SPLIT);
static int gswig_const_PRICE_SOURCE_INVOICE = (int)(PRICE_SOURCE_INVOICE);
static int gswig_const_PRICE_SOURCE_TEMP = (int)(PRICE_SOURCE_TEMP);
static int gswig_const_PRICE_SOURCE_INVALID = (int)(PRICE_SOURCE_INVALID);
static char const *gswig_const_PRICE_TYPE_LAST = (char const *)("last");
static char const *gswig_const_PRICE_TYPE_UNK = (char const *)("unknown");
static char const *gswig_const_PRICE_TYPE_TRN = (char const *)("transaction");
static int gswig_const_CURRENCY_DENOM = (int)(10000);
static int gswig_const_COMMODITY_DENOM_MULT = (int)(10000);
static int gswig_const_PRICE_REMOVE_SOURCE_FQ = (int)(PRICE_REMOVE_SOURCE_FQ);
static int gswig_const_PRICE_REMOVE_SOURCE_USER = (int)(PRICE_REMOVE_SOURCE_USER);
static int gswig_const_PRICE_REMOVE_SOURCE_APP = (int)(PRICE_REMOVE_SOURCE_APP);
static int gswig_const_PRICE_REMOVE_SOURCE_COMM = (int)(PRICE_REMOVE_SOURCE_COMM);
static int gswig_const_PRICE_REMOVE_KEEP_NONE = (int)(PRICE_REMOVE_KEEP_NONE);
static int gswig_const_PRICE_REMOVE_KEEP_LAST_WEEKLY = (int)(PRICE_REMOVE_KEEP_LAST_WEEKLY);
static int gswig_const_PRICE_REMOVE_KEEP_LAST_MONTHLY = (int)(PRICE_REMOVE_KEEP_LAST_MONTHLY);
static int gswig_const_PRICE_REMOVE_KEEP_LAST_QUARTERLY = (int)(PRICE_REMOVE_KEEP_LAST_QUARTERLY);
static int gswig_const_PRICE_REMOVE_KEEP_LAST_PERIOD = (int)(PRICE_REMOVE_KEEP_LAST_PERIOD);
static int gswig_const_PRICE_REMOVE_KEEP_SCALED = (int)(PRICE_REMOVE_KEEP_SCALED);
static char const *gswig_const_PRICE_COMMODITY = (char const *)("price-commodity");
static char const *gswig_const_PRICE_CURRENCY = (char const *)("price-currency");
static char const *gswig_const_PRICE_DATE = (char const *)("price-date");
static char const *gswig_const_PRICE_SOURCE = (char const *)("price-source");
static char const *gswig_const_PRICE_TYPE = (char const *)("price-type");
static char const *gswig_const_PRICE_VALUE = (char const *)("price-value");
static int gswig_const_MAX_DATE_LENGTH = (int)(34);
static char const *gswig_const_QOF_UTC_DATE_FORMAT = (char const *)("%Y-%m-%dT%H:%M:%SZ");
static int gswig_const_QOF_DATE_FORMAT_US = (int)(QOF_DATE_FORMAT_US);
static int gswig_const_QOF_DATE_FORMAT_UK = (int)(QOF_DATE_FORMAT_UK);
static int gswig_const_QOF_DATE_FORMAT_CE = (int)(QOF_DATE_FORMAT_CE);
static int gswig_const_QOF_DATE_FORMAT_ISO = (int)(QOF_DATE_FORMAT_ISO);
static int gswig_const_QOF_DATE_FORMAT_LOCALE = (int)(QOF_DATE_FORMAT_LOCALE);
static int gswig_const_QOF_DATE_FORMAT_UTC = (int)(QOF_DATE_FORMAT_UTC);
static int gswig_const_QOF_DATE_FORMAT_CUSTOM = (int)(QOF_DATE_FORMAT_CUSTOM);
static int gswig_const_QOF_DATE_FORMAT_UNSET = (int)(QOF_DATE_FORMAT_UNSET);
static int gswig_const_QOF_DATE_COMPLETION_THISYEAR = (int)(QOF_DATE_COMPLETION_THISYEAR);
static int gswig_const_QOF_DATE_COMPLETION_SLIDING = (int)(QOF_DATE_COMPLETION_SLIDING);
static int gswig_const_GNCDATE_MONTH_NUMBER = (int)(GNCDATE_MONTH_NUMBER);
static int gswig_const_GNCDATE_MONTH_ABBREV = (int)(GNCDATE_MONTH_ABBREV);
static int gswig_const_GNCDATE_MONTH_NAME = (int)(GNCDATE_MONTH_NAME);
static int gswig_const_MIN_BUF_LEN = (int)(10);

static QofQuery * qof_query_create_for_splits(void) {
  return qof_query_create_for(GNC_ID_SPLIT);
}

static int gswig_const_QUERY_TXN_MATCH_ALL = (int)(QUERY_TXN_MATCH_ALL);
static int gswig_const_QUERY_TXN_MATCH_ANY = (int)(QUERY_TXN_MATCH_ANY);
static int gswig_const_CLEARED_NONE = (int)(CLEARED_NONE);
static int gswig_const_CLEARED_NO = (int)(CLEARED_NO);
static int gswig_const_CLEARED_CLEARED = (int)(CLEARED_CLEARED);
static int gswig_const_CLEARED_RECONCILED = (int)(CLEARED_RECONCILED);
static int gswig_const_CLEARED_FROZEN = (int)(CLEARED_FROZEN);
static int gswig_const_CLEARED_VOIDED = (int)(CLEARED_VOIDED);
static int gswig_const_CLEARED_ALL = (int)(CLEARED_ALL);
static char const *gswig_const_QOF_MOD_QUERY = (char const *)("qof.query");
static int gswig_const_QOF_QUERY_AND = (int)(QOF_QUERY_AND);
static int gswig_const_QOF_QUERY_OR = (int)(QOF_QUERY_OR);
static int gswig_const_QOF_QUERY_NAND = (int)(QOF_QUERY_NAND);
static int gswig_const_QOF_QUERY_NOR = (int)(QOF_QUERY_NOR);
static int gswig_const_QOF_QUERY_XOR = (int)(QOF_QUERY_XOR);
static char const *gswig_const_QUERY_DEFAULT_SORT = (char const *)("QofQueryDefaultSort");
static char const *gswig_const_QOF_PARAM_BOOK = (char const *)("book");
static char const *gswig_const_QOF_PARAM_GUID = (char const *)("guid");
static char const *gswig_const_QOF_PARAM_KVP = (char const *)("kvp");
static char const *gswig_const_QOF_PARAM_ACTIVE = (char const *)("active");
static char const *gswig_const_QOF_PARAM_VERSION = (char const *)("version");
static int gswig_const_QOF_COMPARE_LT = (int)(QOF_COMPARE_LT);
static int gswig_const_QOF_COMPARE_LTE = (int)(QOF_COMPARE_LTE);
static int gswig_const_QOF_COMPARE_EQUAL = (int)(QOF_COMPARE_EQUAL);
static int gswig_const_QOF_COMPARE_GT = (int)(QOF_COMPARE_GT);
static int gswig_const_QOF_COMPARE_GTE = (int)(QOF_COMPARE_GTE);
static int gswig_const_QOF_COMPARE_NEQ = (int)(QOF_COMPARE_NEQ);
static int gswig_const_QOF_COMPARE_CONTAINS = (int)(QOF_COMPARE_CONTAINS);
static int gswig_const_QOF_COMPARE_NCONTAINS = (int)(QOF_COMPARE_NCONTAINS);
static int gswig_const_QOF_STRING_MATCH_NORMAL = (int)(QOF_STRING_MATCH_NORMAL);
static int gswig_const_QOF_STRING_MATCH_CASEINSENSITIVE = (int)(QOF_STRING_MATCH_CASEINSENSITIVE);
static int gswig_const_QOF_DATE_MATCH_NORMAL = (int)(QOF_DATE_MATCH_NORMAL);
static int gswig_const_QOF_DATE_MATCH_DAY = (int)(QOF_DATE_MATCH_DAY);
static int gswig_const_QOF_NUMERIC_MATCH_DEBIT = (int)(QOF_NUMERIC_MATCH_DEBIT);
static int gswig_const_QOF_NUMERIC_MATCH_CREDIT = (int)(QOF_NUMERIC_MATCH_CREDIT);
static int gswig_const_QOF_NUMERIC_MATCH_ANY = (int)(QOF_NUMERIC_MATCH_ANY);
static int gswig_const_QOF_GUID_MATCH_ANY = (int)(QOF_GUID_MATCH_ANY);
static int gswig_const_QOF_GUID_MATCH_NONE = (int)(QOF_GUID_MATCH_NONE);
static int gswig_const_QOF_GUID_MATCH_NULL = (int)(QOF_GUID_MATCH_NULL);
static int gswig_const_QOF_GUID_MATCH_ALL = (int)(QOF_GUID_MATCH_ALL);
static int gswig_const_QOF_GUID_MATCH_LIST_ANY = (int)(QOF_GUID_MATCH_LIST_ANY);
static int gswig_const_QOF_CHAR_MATCH_ANY = (int)(QOF_CHAR_MATCH_ANY);
static int gswig_const_QOF_CHAR_MATCH_NONE = (int)(QOF_CHAR_MATCH_NONE);
static char const *gswig_const_KVP_OPTION_PATH = (char const *)("options");
static char const *gswig_const_OPTION_SECTION_ACCOUNTS = (char const *)("Accounts");
static char const *gswig_const_OPTION_NAME_TRADING_ACCOUNTS = (char const *)("Use Trading Accounts");
static char const *gswig_const_OPTION_NAME_CURRENCY_ACCOUNTING = (char const *)("Currency Accounting");
static char const *gswig_const_OPTION_NAME_BOOK_CURRENCY = (char const *)("Book Currency");
static char const *gswig_const_OPTION_NAME_DEFAULT_GAINS_POLICY = (char const *)("Default Gains Policy");
static char const *gswig_const_OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID = (char const *)("Default Gain or Loss Account");
static char const *gswig_const_OPTION_NAME_AUTO_READONLY_DAYS = (char const *)("Day Threshold for Read-Only Transactions (red line)");
static char const *gswig_const_OPTION_NAME_NUM_FIELD_SOURCE = (char const *)("Use Split Action Field for Number");
static char const *gswig_const_OPTION_SECTION_BUDGETING = (char const *)("Budgeting");
static char const *gswig_const_OPTION_NAME_DEFAULT_BUDGET = (char const *)("Default Budget");
static int gswig_const_GNC_NUMERIC_RND_MASK = (int)(0x0000000f);
static int gswig_const_GNC_NUMERIC_DENOM_MASK = (int)(0x000000f0);
static int gswig_const_GNC_NUMERIC_SIGFIGS_MASK = (int)(0x0000ff00);
static int gswig_const_GNC_HOW_RND_FLOOR = (int)(GNC_HOW_RND_FLOOR);
static int gswig_const_GNC_HOW_RND_CEIL = (int)(GNC_HOW_RND_CEIL);
static int gswig_const_GNC_HOW_RND_TRUNC = (int)(GNC_HOW_RND_TRUNC);
static int gswig_const_GNC_HOW_RND_PROMOTE = (int)(GNC_HOW_RND_PROMOTE);
static int gswig_const_GNC_HOW_RND_ROUND_HALF_DOWN = (int)(GNC_HOW_RND_ROUND_HALF_DOWN);
static int gswig_const_GNC_HOW_RND_ROUND_HALF_UP = (int)(GNC_HOW_RND_ROUND_HALF_UP);
static int gswig_const_GNC_HOW_RND_ROUND = (int)(GNC_HOW_RND_ROUND);
static int gswig_const_GNC_HOW_RND_NEVER = (int)(GNC_HOW_RND_NEVER);
static int gswig_const_GNC_HOW_DENOM_EXACT = (int)(GNC_HOW_DENOM_EXACT);
static int gswig_const_GNC_HOW_DENOM_REDUCE = (int)(GNC_HOW_DENOM_REDUCE);
static int gswig_const_GNC_HOW_DENOM_LCD = (int)(GNC_HOW_DENOM_LCD);
static int gswig_const_GNC_HOW_DENOM_FIXED = (int)(GNC_HOW_DENOM_FIXED);
static int gswig_const_GNC_HOW_DENOM_SIGFIG = (int)(GNC_HOW_DENOM_SIGFIG);
static int gswig_const_GNC_BUDGET_MAX_NUM_PERIODS_DIGITS = (int)(3);
static char const *gswig_const_GNC_COMMODITY_TABLE = (char const *)("gnc_commodity_table");
static char const *gswig_const_GNC_COMMODITY_NS_LEGACY = (char const *)("GNC_LEGACY_CURRENCIES");
static char const *gswig_const_GNC_COMMODITY_NS_TEMPLATE = (char const *)("template");
static char const *gswig_const_GNC_COMMODITY_NS_ISO = (char const *)("ISO4217");
static char const *gswig_const_GNC_COMMODITY_NS_CURRENCY = (char const *)("CURRENCY");
static char const *gswig_const_GNC_COMMODITY_NS_NASDAQ = (char const *)("NASDAQ");
static char const *gswig_const_GNC_COMMODITY_NS_NYSE = (char const *)("NYSE");
static char const *gswig_const_GNC_COMMODITY_NS_EUREX = (char const *)("EUREX");
static char const *gswig_const_GNC_COMMODITY_NS_MUTUAL = (char const *)("FUND");
static char const *gswig_const_GNC_COMMODITY_NS_AMEX = (char const *)("AMEX");
static char const *gswig_const_GNC_COMMODITY_NS_ASX = (char const *)("ASX");
static char const *gswig_const_GNC_COMMODITY_NS_ISO_GUI = (char const *)("Currencies");
static int gswig_const_SOURCE_SINGLE = (int)(SOURCE_SINGLE);
static int gswig_const_SOURCE_MULTI = (int)(SOURCE_MULTI);
static int gswig_const_SOURCE_UNKNOWN = (int)(SOURCE_UNKNOWN);
static int gswig_const_SOURCE_MAX = (int)(SOURCE_MAX);
static int gswig_const_SOURCE_CURRENCY = (int)(SOURCE_CURRENCY);
static char const *gswig_const_HOOK_STARTUP = (char const *)("hook_startup");
static char const *gswig_const_HOOK_SHUTDOWN = (char const *)("hook_shutdown");
static char const *gswig_const_HOOK_UI_STARTUP = (char const *)("hook_ui_startup");
static char const *gswig_const_HOOK_UI_POST_STARTUP = (char const *)("hook_ui_post_startup");
static char const *gswig_const_HOOK_UI_SHUTDOWN = (char const *)("hook_ui_shutdown");
static char const *gswig_const_HOOK_NEW_BOOK = (char const *)("hook_new_book");
static char const *gswig_const_HOOK_REPORT = (char const *)("hook_report");
static char const *gswig_const_HOOK_CURRENCY_CHANGED = (char const *)("hook_currency_changed");
static char const *gswig_const_HOOK_SAVE_OPTIONS = (char const *)("hook_save_options");
static char const *gswig_const_HOOK_ADD_EXTENSION = (char const *)("hook_add_extension");
static char const *gswig_const_HOOK_BOOK_OPENED = (char const *)("hook_book_opened");
static char const *gswig_const_HOOK_BOOK_CLOSED = (char const *)("hook_book_closed");
static char const *gswig_const_HOOK_BOOK_SAVED = (char const *)("hook_book_saved");

/* Disable -Waddress.  GCC 4.2 warns (and fails to compile with -Werror) when
 * passing the address of a guid on the stack to QOF_BOOK_LOOKUP_ENTITY via
 * gncInvoiceLookup and friends.  When the macro gets inlined, the compiler
 * emits a warning that the guid null pointer test is always true.
 */
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
#    pragma GCC diagnostic warning "-Waddress"
#endif


static GncGUID gncTaxTableReturnGUID(GncTaxTable *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncGUID gncInvoiceReturnGUID(GncInvoice *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncGUID gncJobReturnGUID(GncJob *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncGUID gncVendorReturnGUID(GncVendor *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncGUID gncCustomerReturnGUID(GncCustomer *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncGUID gncEmployeeReturnGUID(GncEmployee *x)
{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }

static GncTaxTable * gncTaxTableLookupFlip(GncGUID g, QofBook *b)
{ return gncTaxTableLookup(b, &g); }

static GncInvoice * gncInvoiceLookupFlip(GncGUID g, QofBook *b)
{ return gncInvoiceLookup(b, &g); }

static GncJob * gncJobLookupFlip(GncGUID g, QofBook *b)
{ return gncJobLookup(b, &g); }

static GncVendor * gncVendorLookupFlip(GncGUID g, QofBook *b)
{ return gncVendorLookup(b, &g); }

static GncCustomer * gncCustomerLookupFlip(GncGUID g, QofBook *b)
{ return gncCustomerLookup(b, &g); }

static GncEmployee * gncEmployeeLookupFlip(GncGUID g, QofBook *b)
{ return gncEmployeeLookup(b, &g); }


static char const *gswig_const_GNC_ADDRESS_MODULE_NAME = (char const *)("gncAddress");
static char const *gswig_const_GNC_ID_ADDRESS = (char const *)("gncAddress");
static char const *gswig_const_ADDRESS_NAME = (char const *)("name");
static char const *gswig_const_ADDRESS_ONE = (char const *)("number");
static char const *gswig_const_ADDRESS_TWO = (char const *)("street");
static char const *gswig_const_ADDRESS_THREE = (char const *)("locality");
static char const *gswig_const_ADDRESS_FOUR = (char const *)("city");
static char const *gswig_const_ADDRESS_PHONE = (char const *)("phone");
static char const *gswig_const_ADDRESS_FAX = (char const *)("fax");
static char const *gswig_const_ADDRESS_EMAIL = (char const *)("email");
static char const *gswig_const_ADDRESS_OWNER = (char const *)("owner");
static char const *gswig_const_GNC_ID_BILLTERM = (char const *)("gncBillTerm");
static char const *gswig_const_GNC_BILLTERM_NAME = (char const *)("name");
static char const *gswig_const_GNC_BILLTERM_DESC = (char const *)("description");
static char const *gswig_const_GNC_BILLTERM_DUEDAYS = (char const *)("number of days due");
static char const *gswig_const_GNC_BILLTERM_DISCDAYS = (char const *)("number of discounted days");
static char const *gswig_const_GNC_BILLTERM_CUTOFF = (char const *)("cut off");
static char const *gswig_const_GNC_BILLTERM_TYPE = (char const *)("bill type");
static char const *gswig_const_GNC_BILLTERM_DISCOUNT = (char const *)("amount of discount");
static char const *gswig_const_GNC_BILLTERM_REFCOUNT = (char const *)("reference count");
static int gswig_const_GNC_TERM_TYPE_DAYS = (int)(GNC_TERM_TYPE_DAYS);
static int gswig_const_GNC_TERM_TYPE_PROXIMO = (int)(GNC_TERM_TYPE_PROXIMO);
static char const *gswig_const_OWNER_EXPORT_PDF_DIRNAME = (char const *)("export-pdf-directory");
static char const *gswig_const_LAST_POSTED_TO_ACCT = (char const *)("last-posted-to-acct");
static char const *gswig_const_GNC_PAYMENT = (char const *)("payment");
static char const *gswig_const_GNC_LAST_ACCOUNT = (char const *)("last_acct");
static char const *gswig_const_GNC_BILLTERM_MODULE_NAME = (char const *)("gncBillTerm");
static char const *gswig_const_GNC_ID_CUSTOMER = (char const *)("gncCustomer");
static char const *gswig_const_CUSTOMER_ID = (char const *)("id");
static char const *gswig_const_CUSTOMER_NAME = (char const *)("name");
static char const *gswig_const_CUSTOMER_ADDR = (char const *)("addr");
static char const *gswig_const_CUSTOMER_SHIPADDR = (char const *)("shipaddr");
static char const *gswig_const_CUSTOMER_NOTES = (char const *)("notes");
static char const *gswig_const_CUSTOMER_DISCOUNT = (char const *)("amount of discount");
static char const *gswig_const_CUSTOMER_CREDIT = (char const *)("amount of credit");
static char const *gswig_const_CUSTOMER_TT_OVER = (char const *)("tax table override");
static char const *gswig_const_CUSTOMER_TAX_INC = (char const *)("customer_tax_included");
static char const *gswig_const_CUSTOMER_TERMS = (char const *)("customer_terms");
static char const *gswig_const_CUSTOMER_ACTIVE = (char const *)("customer_is_active");
static char const *gswig_const_CUSTOMER_SLOTS = (char const *)("customer_values");
static char const *gswig_const_GNC_ID_EMPLOYEE = (char const *)("gncEmployee");
static char const *gswig_const_EMPLOYEE_ID = (char const *)("id");
static char const *gswig_const_EMPLOYEE_USERNAME = (char const *)("username");
static char const *gswig_const_EMPLOYEE_NAME = (char const *)("name");
static char const *gswig_const_EMPLOYEE_ADDR = (char const *)("addr");
static char const *gswig_const_EMPLOYEE_LANGUAGE = (char const *)("native language");
static char const *gswig_const_EMPLOYEE_ACL = (char const *)("acl");
static char const *gswig_const_EMPLOYEE_WORKDAY = (char const *)("workday");
static char const *gswig_const_EMPLOYEE_RATE = (char const *)("rate");
static char const *gswig_const_EMPLOYEE_CC = (char const *)("credit_card_account");
static int gswig_const_GNC_PAYMENT_CASH = (int)(GNC_PAYMENT_CASH);
static int gswig_const_GNC_PAYMENT_CARD = (int)(GNC_PAYMENT_CARD);
static int gswig_const_GNC_DISC_PRETAX = (int)(GNC_DISC_PRETAX);
static int gswig_const_GNC_DISC_SAMETIME = (int)(GNC_DISC_SAMETIME);
static int gswig_const_GNC_DISC_POSTTAX = (int)(GNC_DISC_POSTTAX);
static char const *gswig_const_GNC_ID_ENTRY = (char const *)("gncEntry");
static char const *gswig_const_ENTRY_DATE = (char const *)("date");
static char const *gswig_const_ENTRY_DATE_ENTERED = (char const *)("date-entered");
static char const *gswig_const_ENTRY_DESC = (char const *)("desc");
static char const *gswig_const_ENTRY_ACTION = (char const *)("action");
static char const *gswig_const_ENTRY_NOTES = (char const *)("notes");
static char const *gswig_const_ENTRY_QTY = (char const *)("qty");
static char const *gswig_const_ENTRY_IPRICE = (char const *)("iprice");
static char const *gswig_const_ENTRY_IACCT = (char const *)("invoice-account");
static char const *gswig_const_ENTRY_BACCT = (char const *)("bill-account");
static char const *gswig_const_ENTRY_BPRICE = (char const *)("bprice");
static char const *gswig_const_ENTRY_BILLABLE = (char const *)("billable?");
static char const *gswig_const_ENTRY_BILLTO = (char const *)("bill-to");
static char const *gswig_const_ENTRY_ORDER = (char const *)("order");
static char const *gswig_const_ENTRY_INVOICE = (char const *)("invoice");
static char const *gswig_const_ENTRY_BILL = (char const *)("bill");
static char const *gswig_const_ENTRY_INV_DISC_TYPE = (char const *)("discount-type");
static char const *gswig_const_ENTRY_INV_DISC_HOW = (char const *)("discount-method");
static char const *gswig_const_ENTRY_INV_TAXABLE = (char const *)("invoice-taxable");
static char const *gswig_const_ENTRY_BILL_TAXABLE = (char const *)("bill-taxable");
static char const *gswig_const_ENTRY_INV_TAX_INC = (char const *)("invoice-tax-included");
static char const *gswig_const_ENTRY_BILL_TAX_INC = (char const *)("bill-tax-included");
static char const *gswig_const_ENTRY_INV_DISCOUNT = (char const *)("invoice-discount");
static char const *gswig_const_ENTRY_BILL_PAY_TYPE = (char const *)("bill-payment-type");
static char const *gswig_const_GNC_ID_INVOICE = (char const *)("gncInvoice");
static int gswig_const_GNC_INVOICE_UNDEFINED = (int)(GNC_INVOICE_UNDEFINED);
static int gswig_const_GNC_INVOICE_CUST_INVOICE = (int)(GNC_INVOICE_CUST_INVOICE);
static int gswig_const_GNC_INVOICE_VEND_INVOICE = (int)(GNC_INVOICE_VEND_INVOICE);
static int gswig_const_GNC_INVOICE_EMPL_INVOICE = (int)(GNC_INVOICE_EMPL_INVOICE);
static int gswig_const_GNC_INVOICE_CUST_CREDIT_NOTE = (int)(GNC_INVOICE_CUST_CREDIT_NOTE);
static int gswig_const_GNC_INVOICE_VEND_CREDIT_NOTE = (int)(GNC_INVOICE_VEND_CREDIT_NOTE);
static int gswig_const_GNC_INVOICE_EMPL_CREDIT_NOTE = (int)(GNC_INVOICE_EMPL_CREDIT_NOTE);
static int gswig_const_GNC_INVOICE_NUM_TYPES = (int)(GNC_INVOICE_NUM_TYPES);
static char const *gswig_const_INVOICE_ID = (char const *)("id");
static char const *gswig_const_INVOICE_OWNER = (char const *)("owner");
static char const *gswig_const_INVOICE_OPENED = (char const *)("date_opened");
static char const *gswig_const_INVOICE_POSTED = (char const *)("date_posted");
static char const *gswig_const_INVOICE_DUE = (char const *)("date_due");
static char const *gswig_const_INVOICE_IS_POSTED = (char const *)("is_posted?");
static char const *gswig_const_INVOICE_IS_PAID = (char const *)("is_paid?");
static char const *gswig_const_INVOICE_TERMS = (char const *)("terms");
static char const *gswig_const_INVOICE_BILLINGID = (char const *)("billing_id");
static char const *gswig_const_INVOICE_NOTES = (char const *)("notes");
static char const *gswig_const_INVOICE_ACC = (char const *)("account");
static char const *gswig_const_INVOICE_POST_TXN = (char const *)("posted_txn");
static char const *gswig_const_INVOICE_POST_LOT = (char const *)("posted_lot");
static char const *gswig_const_INVOICE_IS_CN = (char const *)("credit_note");
static char const *gswig_const_INVOICE_TYPE = (char const *)("type");
static char const *gswig_const_INVOICE_TYPE_STRING = (char const *)("type_string");
static char const *gswig_const_INVOICE_BILLTO = (char const *)("bill-to");
static char const *gswig_const_INVOICE_ENTRIES = (char const *)("list_of_entries");
static char const *gswig_const_INVOICE_JOB = (char const *)("invoice_job");
static char const *gswig_const_INVOICE_FROM_LOT = (char const *)("invoice-from-lot");
static char const *gswig_const_INVOICE_FROM_TXN = (char const *)("invoice-from-txn");
static char const *gswig_const_GNC_ID_JOB = (char const *)("gncJob");
static char const *gswig_const_JOB_ID = (char const *)("id");
static char const *gswig_const_JOB_NAME = (char const *)("name");
static char const *gswig_const_JOB_REFERENCE = (char const *)("reference");
static char const *gswig_const_JOB_RATE = (char const *)("rate");
static char const *gswig_const_JOB_OWNER = (char const *)("owner");
static char const *gswig_const_Q_JOB_OWNER = (char const *)("owner_collection");
static char const *gswig_const_JOB_ACTIVE = (char const *)("active");
static char const *gswig_const_GNC_ID_ORDER = (char const *)("gncOrder");
static char const *gswig_const_ORDER_ID = (char const *)("id");
static char const *gswig_const_ORDER_REFERENCE = (char const *)("reference");
static char const *gswig_const_ORDER_OWNER = (char const *)("owner");
static char const *gswig_const_ORDER_OPENED = (char const *)("date_opened");
static char const *gswig_const_ORDER_CLOSED = (char const *)("date_closed");
static char const *gswig_const_ORDER_IS_CLOSED = (char const *)("is_closed?");
static char const *gswig_const_ORDER_NOTES = (char const *)("notes");
static char const *gswig_const_GNC_ID_OWNER = (char const *)("gncOwner");
static int gswig_const_GNC_OWNER_NONE = (int)(GNC_OWNER_NONE);
static int gswig_const_GNC_OWNER_UNDEFINED = (int)(GNC_OWNER_UNDEFINED);
static int gswig_const_GNC_OWNER_CUSTOMER = (int)(GNC_OWNER_CUSTOMER);
static int gswig_const_GNC_OWNER_JOB = (int)(GNC_OWNER_JOB);
static int gswig_const_GNC_OWNER_VENDOR = (int)(GNC_OWNER_VENDOR);
static int gswig_const_GNC_OWNER_EMPLOYEE = (int)(GNC_OWNER_EMPLOYEE);
static char const *gswig_const_OWNER_TYPE = (char const *)("type");
static char const *gswig_const_OWNER_TYPE_STRING = (char const *)("type-string");
static char const *gswig_const_OWNER_CUSTOMER = (char const *)("customer");
static char const *gswig_const_OWNER_JOB = (char const *)("job");
static char const *gswig_const_OWNER_VENDOR = (char const *)("vendor");
static char const *gswig_const_OWNER_EMPLOYEE = (char const *)("employee");
static char const *gswig_const_OWNER_PARENT = (char const *)("parent");
static char const *gswig_const_OWNER_PARENTG = (char const *)("parent-guid");
static char const *gswig_const_OWNER_NAME = (char const *)("name");
static char const *gswig_const_OWNER_FROM_LOT = (char const *)("owner-from-lot");
static char const *gswig_const_GNC_ID_TAXTABLE = (char const *)("gncTaxTable");
static int gswig_const_GNC_AMT_TYPE_VALUE = (int)(GNC_AMT_TYPE_VALUE);
static int gswig_const_GNC_AMT_TYPE_PERCENT = (int)(GNC_AMT_TYPE_PERCENT);
static int gswig_const_GNC_TAXINCLUDED_YES = (int)(GNC_TAXINCLUDED_YES);
static int gswig_const_GNC_TAXINCLUDED_NO = (int)(GNC_TAXINCLUDED_NO);
static int gswig_const_GNC_TAXINCLUDED_USEGLOBAL = (int)(GNC_TAXINCLUDED_USEGLOBAL);
static char const *gswig_const_GNC_TT_NAME = (char const *)("tax table name");
static char const *gswig_const_GNC_TT_REFCOUNT = (char const *)("reference count");
static char const *gswig_const_GNC_ID_VENDOR = (char const *)("gncVendor");
static char const *gswig_const_VENDOR_ID = (char const *)("id");
static char const *gswig_const_VENDOR_NAME = (char const *)("name");
static char const *gswig_const_VENDOR_ADDR = (char const *)("addr");
static char const *gswig_const_VENDOR_NOTES = (char const *)("vendor_notes");
static char const *gswig_const_VENDOR_TERMS = (char const *)("vendor_terms");
static char const *gswig_const_VENDOR_TAX_INC = (char const *)("vendor_tax_included");
static char const *gswig_const_VENDOR_ACTIVE = (char const *)("vendor_is_active");
static char const *gswig_const_VENDOR_TAX_OVERRIDE = (char const *)("override_tax_table");
static char const *gswig_const_VENDOR_TAX_TABLE = (char const *)("vendor_tax_table");
static char const *gswig_const_URL_TYPE_CUSTOMER = (char const *)("gncCustomer");
static char const *gswig_const_URL_TYPE_VENDOR = (char const *)("gncVendor");
static char const *gswig_const_URL_TYPE_EMPLOYEE = (char const *)("gncEmployee");
static char const *gswig_const_URL_TYPE_JOB = (char const *)("gncJob");
static char const *gswig_const_URL_TYPE_INVOICE = (char const *)("gncInvoice");
static char const *gswig_const_URL_TYPE_OWNERREPORT = (char const *)("owner-report");

static QofQuery * qof_query_create_for_invoices(void) {
  return qof_query_create_for(GNC_ID_INVOICE);
}

static GncInvoiceList * qof_query_run_for_invoices(QofQuery *q) {
    return qof_query_run(q);
}

static SCM
_wrap_gncSplitGetGUID (SCM s_0)
{
#define FUNC_NAME "gncSplitGetGUID"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (GncGUID *)gncSplitGetGUID(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTransGetGUID (SCM s_0)
{
#define FUNC_NAME "gncTransGetGUID"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (GncGUID *)gncTransGetGUID(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAccountGetGUID (SCM s_0)
{
#define FUNC_NAME "gncAccountGetGUID"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GncGUID *)gncAccountGetGUID(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_split_get_type ()
{
#define FUNC_NAME "gnc-split-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_split_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CREC(SCM s_0)
{
#define FUNC_NAME "CREC"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_CREC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_YREC(SCM s_0)
{
#define FUNC_NAME "YREC"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_YREC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_FREC(SCM s_0)
{
#define FUNC_NAME "FREC"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_FREC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_NREC(SCM s_0)
{
#define FUNC_NAME "NREC"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_NREC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VREC(SCM s_0)
{
#define FUNC_NAME "VREC"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_VREC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitConvertAmount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitConvertAmount"
  Split *arg1 = (Split *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccSplitConvertAmount((Split const *)arg1,(Account const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccMallocSplit (SCM s_0)
{
#define FUNC_NAME "xaccMallocSplit"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Split *)xaccMallocSplit(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitReinit (SCM s_0)
{
#define FUNC_NAME "xaccSplitReinit"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  xaccSplitReinit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitDestroy (SCM s_0)
{
#define FUNC_NAME "xaccSplitDestroy"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitDestroy(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitCopyOnto (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitCopyOnto"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  xaccSplitCopyOnto((Split const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetBook (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetBook"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (QofBook *)xaccSplitGetBook((Split const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetAccount (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetAccount"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (Account *)xaccSplitGetAccount((Split const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetAccount"
  Split *arg1 = (Split *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  xaccSplitSetAccount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetParent (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetParent"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (Transaction *)xaccSplitGetParent((Split const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetParent (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetParent"
  Split *arg1 = (Split *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  xaccSplitSetParent(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetLot (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetLot"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (GNCLot *)xaccSplitGetLot((Split const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetLot (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetLot"
  Split *arg1 = (Split *) 0 ;
  GNCLot *arg2 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (GNCLot *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCLot, 2, 0);
  }
  xaccSplitSetLot(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetMemo (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetMemo"
  Split *arg1 = (Split *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccSplitSetMemo(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetMemo (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetMemo"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetMemo((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetAction (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetAction"
  Split *arg1 = (Split *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccSplitSetAction(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetAction (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetAction"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetAction((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetReconcile (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetReconcile"
  Split *arg1 = (Split *) 0 ;
  char arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (char) SCM_CHAR(s_1);
  }
  xaccSplitSetReconcile(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetReconcile (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetReconcile"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char)xaccSplitGetReconcile((Split const *)arg1);
  {
    gswig_result = SCM_MAKE_CHAR(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetDateReconciledSecs (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetDateReconciledSecs"
  Split *arg1 = (Split *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccSplitSetDateReconciledSecs(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetDateReconciledTS (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetDateReconciledTS"
  Split *arg1 = (Split *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  xaccSplitSetDateReconciledTS(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetDateReconciledTS (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitGetDateReconciledTS"
  Split *arg1 = (Split *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  xaccSplitGetDateReconciledTS((Split const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitRetDateReconciledTS (SCM s_0)
{
#define FUNC_NAME "xaccSplitRetDateReconciledTS"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitRetDateReconciledTS((Split const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetDateReconciled (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetDateReconciled"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetDateReconciled((Split const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetAmount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetAmount"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  xaccSplitSetAmount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetAmount (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetAmount"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetAmount((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetValue (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetValue"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  xaccSplitSetValue(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetValue (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetValue"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetValue((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetSharePriceAndAmount (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccSplitSetSharePriceAndAmount"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  gnc_numeric arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = gnc_scm_to_numeric(s_2);
  xaccSplitSetSharePriceAndAmount(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetSharePrice (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetSharePrice"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetSharePrice((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetBaseValue (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccSplitSetBaseValue"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  xaccSplitSetBaseValue(arg1,arg2,(gnc_commodity const *)arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetBaseValue (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitGetBaseValue"
  Split *arg1 = (Split *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = xaccSplitGetBaseValue((Split const *)arg1,(gnc_commodity const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetBalance (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetBalance"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetBalance((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetClearedBalance (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetClearedBalance"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetClearedBalance((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetReconciledBalance (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetReconciledBalance"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitGetReconciledBalance((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitEqual (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "xaccSplitEqual"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  gboolean arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  arg5 = scm_is_true(s_4) ? TRUE : FALSE;
  result = xaccSplitEqual((Split const *)arg1,(Split const *)arg2,arg3,arg4,arg5);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitLookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (Split *)xaccSplitLookup((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitListGetUniqueTransactions (SCM s_0)
{
#define FUNC_NAME "xaccSplitListGetUniqueTransactions"
  GList *arg1 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  result = (GList *)xaccSplitListGetUniqueTransactions((GList const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitAddPeerSplit (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccSplitAddPeerSplit"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  time64 arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  arg3 = scm_to_int64(s_2); 
  xaccSplitAddPeerSplit(arg1,(Split const *)arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitHasPeers (SCM s_0)
{
#define FUNC_NAME "xaccSplitHasPeers"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitHasPeers((Split const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitIsPeerSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitIsPeerSplit"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = xaccSplitIsPeerSplit((Split const *)arg1,(Split const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitRemovePeerSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitRemovePeerSplit"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  xaccSplitRemovePeerSplit(arg1,(Split const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitMergePeerSplits (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitMergePeerSplits"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  xaccSplitMergePeerSplits(arg1,(Split const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetOtherSplit (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetOtherSplit"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (Split *)xaccSplitGetOtherSplit((Split const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetType (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetType"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetType((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitMakeStockSplit (SCM s_0)
{
#define FUNC_NAME "xaccSplitMakeStockSplit"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  xaccSplitMakeStockSplit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitOrder (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitOrder"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (gint)xaccSplitOrder((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitOrderDateOnly (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitOrderDateOnly"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (gint)xaccSplitOrderDateOnly((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitCompareAccountFullNames (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitCompareAccountFullNames"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (int)xaccSplitCompareAccountFullNames((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitCompareAccountCodes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitCompareAccountCodes"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (int)xaccSplitCompareAccountCodes((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitCompareOtherAccountFullNames (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitCompareOtherAccountFullNames"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (int)xaccSplitCompareOtherAccountFullNames((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitCompareOtherAccountCodes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitCompareOtherAccountCodes"
  Split *arg1 = (Split *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (int)xaccSplitCompareOtherAccountCodes((Split const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetCorrAccountFullName (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetCorrAccountFullName"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetCorrAccountFullName((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetCorrAccountName (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetCorrAccountName"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetCorrAccountName((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitGetCorrAccountCode (SCM s_0)
{
#define FUNC_NAME "xaccSplitGetCorrAccountCode"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = (char *)xaccSplitGetCorrAccountCode((Split const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitSetSharePrice (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccSplitSetSharePrice"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  xaccSplitSetSharePrice(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitVoidFormerAmount (SCM s_0)
{
#define FUNC_NAME "xaccSplitVoidFormerAmount"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitVoidFormerAmount((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitVoidFormerValue (SCM s_0)
{
#define FUNC_NAME "xaccSplitVoidFormerValue"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = xaccSplitVoidFormerValue((Split const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_DATE_RECONCILED(SCM s_0)
{
#define FUNC_NAME "SPLIT-DATE-RECONCILED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_DATE_RECONCILED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_BALANCE(SCM s_0)
{
#define FUNC_NAME "SPLIT-BALANCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_BALANCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_CLEARED_BALANCE(SCM s_0)
{
#define FUNC_NAME "SPLIT-CLEARED-BALANCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_CLEARED_BALANCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_RECONCILED_BALANCE(SCM s_0)
{
#define FUNC_NAME "SPLIT-RECONCILED-BALANCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_RECONCILED_BALANCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_MEMO(SCM s_0)
{
#define FUNC_NAME "SPLIT-MEMO"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_MEMO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_ACTION(SCM s_0)
{
#define FUNC_NAME "SPLIT-ACTION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_ACTION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_RECONCILE(SCM s_0)
{
#define FUNC_NAME "SPLIT-RECONCILE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_RECONCILE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_AMOUNT(SCM s_0)
{
#define FUNC_NAME "SPLIT-AMOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_AMOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_SHARE_PRICE(SCM s_0)
{
#define FUNC_NAME "SPLIT-SHARE-PRICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_SHARE_PRICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_VALUE(SCM s_0)
{
#define FUNC_NAME "SPLIT-VALUE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_VALUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_TYPE(SCM s_0)
{
#define FUNC_NAME "SPLIT-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_VOIDED_AMOUNT(SCM s_0)
{
#define FUNC_NAME "SPLIT-VOIDED-AMOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_VOIDED_AMOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_VOIDED_VALUE(SCM s_0)
{
#define FUNC_NAME "SPLIT-VOIDED-VALUE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_VOIDED_VALUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_LOT(SCM s_0)
{
#define FUNC_NAME "SPLIT-LOT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_LOT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_TRANS(SCM s_0)
{
#define FUNC_NAME "SPLIT-TRANS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_TRANS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_ACCOUNT(SCM s_0)
{
#define FUNC_NAME "SPLIT-ACCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_ACCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_ACCOUNT_GUID(SCM s_0)
{
#define FUNC_NAME "SPLIT-ACCOUNT-GUID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_ACCOUNT_GUID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_ACCT_FULLNAME(SCM s_0)
{
#define FUNC_NAME "SPLIT-ACCT-FULLNAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_ACCT_FULLNAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_CORR_ACCT_NAME(SCM s_0)
{
#define FUNC_NAME "SPLIT-CORR-ACCT-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_CORR_ACCT_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SPLIT_CORR_ACCT_CODE(SCM s_0)
{
#define FUNC_NAME "SPLIT-CORR-ACCT-CODE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_SPLIT_CORR_ACCT_CODE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_children (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-children"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (AccountList *)gnc_account_get_children((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Account, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_children_sorted (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-children-sorted"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (AccountList *)gnc_account_get_children_sorted((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Account, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_descendants (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-descendants"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (AccountList *)gnc_account_get_descendants((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Account, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_descendants_sorted (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-descendants-sorted"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (AccountList *)gnc_account_get_descendants_sorted((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Account, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_AccountClass_parent_class_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "AccountClass-parent-class-set"
  AccountClass *arg1 = (AccountClass *) 0 ;
  QofInstanceClass arg2 ;
  QofInstanceClass *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (AccountClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_AccountClass, 1, 0);
  }
  {
    argp2 = (QofInstanceClass *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofInstanceClass, 2, 0);
    arg2 = *argp2;
  }
  if (arg1) (arg1)->parent_class = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_AccountClass_parent_class_get (SCM s_0)
{
#define FUNC_NAME "AccountClass-parent-class-get"
  AccountClass *arg1 = (AccountClass *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofInstanceClass result;
  
  {
    arg1 = (AccountClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_AccountClass, 1, 0);
  }
  result =  ((arg1)->parent_class);
  {
    QofInstanceClass * resultptr;
    resultptr = (QofInstanceClass *) malloc(sizeof(QofInstanceClass));
    memmove(resultptr, &result, sizeof(QofInstanceClass));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofInstanceClass, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new_AccountClass ()
{
#define FUNC_NAME "new-AccountClass"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountClass *result = 0 ;
  
  result = (AccountClass *)calloc(1, sizeof(AccountClass));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_AccountClass, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete_AccountClass (SCM s_0)
{
#define FUNC_NAME "delete-AccountClass"
  AccountClass *arg1 = (AccountClass *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (AccountClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_AccountClass, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImportMatchMap_acc_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImportMatchMap-acc-set"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  if (arg1) (arg1)->acc = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImportMatchMap_acc_get (SCM s_0)
{
#define FUNC_NAME "GncImportMatchMap-acc-get"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  result = (Account *) ((arg1)->acc);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImportMatchMap_book_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImportMatchMap-book-set"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  if (arg1) (arg1)->book = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImportMatchMap_book_get (SCM s_0)
{
#define FUNC_NAME "GncImportMatchMap-book-get"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  result = (QofBook *) ((arg1)->book);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new_GncImportMatchMap ()
{
#define FUNC_NAME "new-GncImportMatchMap"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncImportMatchMap *result = 0 ;
  
  result = (GncImportMatchMap *)calloc(1, sizeof(GncImportMatchMap));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GncImportMatchMap, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete_GncImportMatchMap (SCM s_0)
{
#define FUNC_NAME "delete-GncImportMatchMap"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_type ()
{
#define FUNC_NAME "gnc-account-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_account_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_INVALID(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-INVALID"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_INVALID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_NONE(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_BANK(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-BANK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_BANK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_CASH(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-CASH"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_CASH);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_CREDIT(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-CREDIT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_CREDIT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_ASSET(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-ASSET"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_ASSET);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_LIABILITY(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-LIABILITY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_LIABILITY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_STOCK(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-STOCK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_STOCK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_MUTUAL(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-MUTUAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_MUTUAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_CURRENCY(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-CURRENCY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_CURRENCY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_INCOME(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-INCOME"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_INCOME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_EXPENSE(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-EXPENSE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_EXPENSE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_EQUITY(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-EQUITY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_EQUITY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_RECEIVABLE(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-RECEIVABLE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_RECEIVABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_PAYABLE(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-PAYABLE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_PAYABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_ROOT(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-ROOT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_ROOT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_TRADING(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-TRADING"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_TRADING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_NUM_ACCOUNT_TYPES(SCM s_0)
{
#define FUNC_NAME "NUM-ACCOUNT-TYPES"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_NUM_ACCOUNT_TYPES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_CHECKING(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-CHECKING"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_CHECKING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_SAVINGS(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-SAVINGS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_SAVINGS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_MONEYMRKT(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-MONEYMRKT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_MONEYMRKT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_CREDITLINE(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-CREDITLINE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_CREDITLINE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCT_TYPE_LAST(SCM s_0)
{
#define FUNC_NAME "ACCT-TYPE-LAST"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_ACCT_TYPE_LAST);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccMallocAccount (SCM s_0)
{
#define FUNC_NAME "xaccMallocAccount"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Account *)xaccMallocAccount(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_create_root (SCM s_0)
{
#define FUNC_NAME "gnc-account-create-root"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Account *)gnc_account_create_root(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccCloneAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccCloneAccount"
  Account *arg1 = (Account *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (Account *)xaccCloneAccount((Account const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountBeginEdit (SCM s_0)
{
#define FUNC_NAME "xaccAccountBeginEdit"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountCommitEdit (SCM s_0)
{
#define FUNC_NAME "xaccAccountCommitEdit"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountDestroy (SCM s_0)
{
#define FUNC_NAME "xaccAccountDestroy"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountEqual (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountEqual"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountEqual((Account const *)arg1,(Account const *)arg2,arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountOrder (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountOrder"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = (int)xaccAccountOrder((Account const *)arg1,(Account const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_account_separator_string ()
{
#define FUNC_NAME "gnc-get-account-separator-string"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  result = (gchar *)gnc_get_account_separator_string();
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_account_separator ()
{
#define FUNC_NAME "gnc-get-account-separator"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gunichar result;
  
  result = gnc_get_account_separator();
  {
    gunichar * resultptr;
    resultptr = (gunichar *) malloc(sizeof(gunichar));
    memmove(resultptr, &result, sizeof(gunichar));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_gunichar, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_set_account_separator (SCM s_0)
{
#define FUNC_NAME "gnc-set-account-separator"
  gchar *arg1 = (gchar *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  gnc_set_account_separator((char const *)arg1);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_get_root_account (SCM s_0)
{
#define FUNC_NAME "gnc-book-get-root-account"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Account *)gnc_book_get_root_account(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_set_root_account (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-book-set-root-account"
  QofBook *arg1 = (QofBook *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gnc_book_set_root_account(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountLookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (Account *)xaccAccountLookup((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_name_violations_errmsg (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-name-violations-errmsg"
  gchar *arg1 = (gchar *) 0 ;
  GList *arg2 = (GList *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  result = (gchar *)gnc_account_name_violations_errmsg((char const *)arg1,arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_list_name_violations (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-list-name-violations"
  QofBook *arg1 = (QofBook *) 0 ;
  gchar *arg2 = (gchar *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (GList *)gnc_account_list_name_violations(arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_book (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-book"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (QofBook *)gnc_account_get_book((Account const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetType"
  Account *arg1 = (Account *) 0 ;
  GNCAccountType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (GNCAccountType) scm_to_int(s_1); 
  }
  xaccAccountSetType(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetName"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetCode (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetCode"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetCode(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetDescription (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetDescription"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetDescription(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetColor (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetColor"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetColor(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetFilter (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetFilter"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetFilter(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetSortOrder (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetSortOrder"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetSortOrder(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetSortReversed (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetSortReversed"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetSortReversed(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetNotes"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetLastNum (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetLastNum"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetLastNum(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_policy (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-set-policy"
  Account *arg1 = (Account *) 0 ;
  GNCPolicy *arg2 = (GNCPolicy *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (GNCPolicy *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gncpolicy_s, 2, 0);
  }
  gnc_account_set_policy(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetType (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetType"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCAccountType result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GNCAccountType)xaccAccountGetType((Account const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountIsPriced (SCM s_0)
{
#define FUNC_NAME "xaccAccountIsPriced"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountIsPriced((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_start_balance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-set-start-balance"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gnc_account_set_start_balance(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_start_cleared_balance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-set-start-cleared-balance"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gnc_account_set_start_cleared_balance(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_start_reconciled_balance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-set-start-reconciled-balance"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gnc_account_set_start_reconciled_balance(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_balance_dirty (SCM s_0)
{
#define FUNC_NAME "gnc-account-set-balance-dirty"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  gnc_account_set_balance_dirty(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_set_sort_dirty (SCM s_0)
{
#define FUNC_NAME "gnc-account-set-sort-dirty"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  gnc_account_set_sort_dirty(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_insert_split (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-insert-split"
  Account *arg1 = (Account *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = gnc_account_insert_split(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_remove_split (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-remove-split"
  Account *arg1 = (Account *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = gnc_account_remove_split(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetName (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetName"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetName((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetCode (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetCode"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetCode((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetDescription (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetDescription"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetDescription((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetColor (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetColor"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetColor((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetFilter (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetFilter"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetFilter((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetSortOrder (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetSortOrder"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetSortOrder((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetSortReversed (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetSortReversed"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetSortReversed((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetNotes (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetNotes"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetNotes((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetLastNum (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetLastNum"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetLastNum((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_policy (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-policy"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPolicy *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GNCPolicy *)gnc_account_get_policy(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gncpolicy_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountRecomputeBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountRecomputeBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountRecomputeBalance(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSortSplits (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSortSplits"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSortSplits(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_full_name (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-full-name"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gchar *)gnc_account_get_full_name((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  g_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGainsAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGainsAccount"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (Account *)xaccAccountGainsAccount(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_dxaccAccountSetPriceSrc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "dxaccAccountSetPriceSrc"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  dxaccAccountSetPriceSrc(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_dxaccAccountGetPriceSrc (SCM s_0)
{
#define FUNC_NAME "dxaccAccountGetPriceSrc"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)dxaccAccountGetPriceSrc((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetAutoInterestXfer (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGetAutoInterestXfer"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = xaccAccountGetAutoInterestXfer((Account const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetAutoInterestXfer (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetAutoInterestXfer"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetAutoInterestXfer(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetCommodity (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetCommodity"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  xaccAccountSetCommodity(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetCommodity (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetCommodity"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gnc_commodity *)xaccAccountGetCommodity((Account const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_currency_or_parent (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-currency-or-parent"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gnc_commodity *)gnc_account_get_currency_or_parent((Account const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetCommoditySCU (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetCommoditySCU"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (int)xaccAccountGetCommoditySCU((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetCommoditySCUi (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetCommoditySCUi"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (int)xaccAccountGetCommoditySCUi((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetCommoditySCU (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetCommoditySCU"
  Account *arg1 = (Account *) 0 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  xaccAccountSetCommoditySCU(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetNonStdSCU (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetNonStdSCU"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetNonStdSCU(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetNonStdSCU (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetNonStdSCU"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetNonStdSCU((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetBalance((Account const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetClearedBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetClearedBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetClearedBalance((Account const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconciledBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetReconciledBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetReconciledBalance((Account const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetPresentBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetPresentBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetPresentBalance((Account const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetProjectedMinimumBalance (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetProjectedMinimumBalance"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetProjectedMinimumBalance((Account const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetBalanceAsOfDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGetBalanceAsOfDate"
  Account *arg1 = (Account *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  result = xaccAccountGetBalanceAsOfDate(arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountConvertBalanceToCurrency (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccAccountConvertBalanceToCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  gnc_commodity *arg4 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    arg4 = (gnc_commodity *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_gnc_commodity, 4, 0);
  }
  result = xaccAccountConvertBalanceToCurrency((Account const *)arg1,arg2,(gnc_commodity const *)arg3,(gnc_commodity const *)arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountConvertBalanceToCurrencyAsOfDate (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "xaccAccountConvertBalanceToCurrencyAsOfDate"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  gnc_commodity *arg4 = (gnc_commodity *) 0 ;
  time64 arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    arg4 = (gnc_commodity *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_gnc_commodity, 4, 0);
  }
  arg5 = scm_to_int64(s_4); 
  result = xaccAccountConvertBalanceToCurrencyAsOfDate((Account const *)arg1,arg2,arg3,arg4,arg5);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetBalanceInCurrency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetBalanceInCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountGetBalanceInCurrency((Account const *)arg1,(gnc_commodity const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetClearedBalanceInCurrency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetClearedBalanceInCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountGetClearedBalanceInCurrency((Account const *)arg1,(gnc_commodity const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconciledBalanceInCurrency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetReconciledBalanceInCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountGetReconciledBalanceInCurrency((Account const *)arg1,(gnc_commodity const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetPresentBalanceInCurrency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetPresentBalanceInCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountGetPresentBalanceInCurrency((Account const *)arg1,(gnc_commodity const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetProjectedMinimumBalanceInCurrency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetProjectedMinimumBalanceInCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = xaccAccountGetProjectedMinimumBalanceInCurrency((Account const *)arg1,(gnc_commodity const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetBalanceAsOfDateInCurrency (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccAccountGetBalanceAsOfDateInCurrency"
  Account *arg1 = (Account *) 0 ;
  time64 arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = xaccAccountGetBalanceAsOfDateInCurrency(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetBalanceChangeForPeriod (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccAccountGetBalanceChangeForPeriod"
  Account *arg1 = (Account *) 0 ;
  time64 arg2 ;
  time64 arg3 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  arg3 = scm_to_int64(s_2); 
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = xaccAccountGetBalanceChangeForPeriod(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_append_child (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-append-child"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gnc_account_append_child(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_remove_child (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-remove-child"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gnc_account_remove_child(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_parent (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-parent"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (Account *)gnc_account_get_parent((Account const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_root (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-root"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (Account *)gnc_account_get_root(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_is_root (SCM s_0)
{
#define FUNC_NAME "gnc-account-is-root"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = gnc_account_is_root((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_n_children (SCM s_0)
{
#define FUNC_NAME "gnc-account-n-children"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gint)gnc_account_n_children((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_child_index (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-child-index"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = (gint)gnc_account_child_index((Account const *)arg1,(Account const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_nth_child (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-nth-child"
  Account *arg1 = (Account *) 0 ;
  gint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  result = (Account *)gnc_account_nth_child((Account const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_n_descendants (SCM s_0)
{
#define FUNC_NAME "gnc-account-n-descendants"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gint)gnc_account_n_descendants((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_current_depth (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-current-depth"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gint)gnc_account_get_current_depth((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_tree_depth (SCM s_0)
{
#define FUNC_NAME "gnc-account-get-tree-depth"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gint)gnc_account_get_tree_depth((Account const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_foreach_child (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-foreach-child"
  Account *arg1 = (Account *) 0 ;
  AccountCb arg2 = (AccountCb) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (AccountCb)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_Account_p_void__void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  gnc_account_foreach_child((Account const *)arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_foreach_descendant (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-foreach-descendant"
  Account *arg1 = (Account *) 0 ;
  AccountCb arg2 = (AccountCb) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (AccountCb)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_Account_p_void__void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  gnc_account_foreach_descendant((Account const *)arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_foreach_descendant_until (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-foreach-descendant-until"
  Account *arg1 = (Account *) 0 ;
  AccountCb2 arg2 = (AccountCb2) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gpointer result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (AccountCb2)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_Account_p_void__p_void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  result = (gpointer)gnc_account_foreach_descendant_until((Account const *)arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_void, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_join_children (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-join-children"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gnc_account_join_children(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_merge_children (SCM s_0)
{
#define FUNC_NAME "gnc-account-merge-children"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  gnc_account_merge_children(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetReconcileChildrenStatus (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetReconcileChildrenStatus"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetReconcileChildrenStatus(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconcileChildrenStatus (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetReconcileChildrenStatus"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetReconcileChildrenStatus((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountHasAncestor (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountHasAncestor"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccAccountHasAncestor((Account const *)arg1,(Account const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_lookup_by_name (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-lookup-by-name"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (Account *)gnc_account_lookup_by_name((Account const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_lookup_by_full_name (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-lookup-by-full-name"
  Account *arg1 = (Account *) 0 ;
  gchar *arg2 = (gchar *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (Account *)gnc_account_lookup_by_full_name((Account const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_lookup_by_code (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-lookup-by-code"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (Account *)gnc_account_lookup_by_code((Account const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountTypeEnumAsString (SCM s_0)
{
#define FUNC_NAME "xaccAccountTypeEnumAsString"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = (char *)xaccAccountTypeEnumAsString(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountStringToType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountStringToType"
  char *arg1 = (char *) 0 ;
  GNCAccountType *arg2 = (GNCAccountType *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GNCAccountType *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCAccountType, 2, 0);
  }
  result = xaccAccountStringToType((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountStringToEnum (SCM s_0)
{
#define FUNC_NAME "xaccAccountStringToEnum"
  char *arg1 = (char *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCAccountType result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = (GNCAccountType)xaccAccountStringToEnum((char const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetTypeStr (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetTypeStr"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = (char *)xaccAccountGetTypeStr(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountTypesCompatibleWith (SCM s_0)
{
#define FUNC_NAME "xaccAccountTypesCompatibleWith"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint32 result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = xaccAccountTypesCompatibleWith(arg1);
  {
    guint32 * resultptr;
    resultptr = (guint32 *) malloc(sizeof(guint32));
    memmove(resultptr, &result, sizeof(guint32));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_guint32, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccParentAccountTypesCompatibleWith (SCM s_0)
{
#define FUNC_NAME "xaccParentAccountTypesCompatibleWith"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint32 result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = xaccParentAccountTypesCompatibleWith(arg1);
  {
    guint32 * resultptr;
    resultptr = (guint32 *) malloc(sizeof(guint32));
    memmove(resultptr, &result, sizeof(guint32));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_guint32, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountTypesCompatible (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountTypesCompatible"
  GNCAccountType arg1 ;
  GNCAccountType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  {
    arg2 = (GNCAccountType) scm_to_int(s_1); 
  }
  result = xaccAccountTypesCompatible(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountTypesValid ()
{
#define FUNC_NAME "xaccAccountTypesValid"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint32 result;
  
  result = xaccAccountTypesValid();
  {
    guint32 * resultptr;
    resultptr = (guint32 *) malloc(sizeof(guint32));
    memmove(resultptr, &result, sizeof(guint32));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_guint32, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountIsAssetLiabType (SCM s_0)
{
#define FUNC_NAME "xaccAccountIsAssetLiabType"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = xaccAccountIsAssetLiabType(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountIsAPARType (SCM s_0)
{
#define FUNC_NAME "xaccAccountIsAPARType"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = xaccAccountIsAPARType(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountIsEquityType (SCM s_0)
{
#define FUNC_NAME "xaccAccountIsEquityType"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = xaccAccountIsEquityType(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetSplitList (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetSplitList"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (SplitList *)xaccAccountGetSplitList((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountCountSplits (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountCountSplits"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = xaccAccountCountSplits((Account const *)arg1,arg2);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountMoveAllSplits (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountMoveAllSplits"
  Account *arg1 = (Account *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  xaccAccountMoveAllSplits(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountForEachTransaction (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountForEachTransaction"
  Account *arg1 = (Account *) 0 ;
  TransactionCallback arg2 ;
  void *arg3 = (void *) 0 ;
  TransactionCallback *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    argp2 = (TransactionCallback *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_TransactionCallback, 2, 0);
    arg2 = *argp2;
  }
  {
    arg3 = (void *)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  result = (gint)xaccAccountForEachTransaction((Account const *)arg1,arg2,arg3);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountFindTransByDesc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountFindTransByDesc"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (Transaction *)xaccAccountFindTransByDesc((Account const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountFindSplitByDesc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountFindSplitByDesc"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (Split *)xaccAccountFindSplitByDesc((Account const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountInsertLot (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountInsertLot"
  Account *arg1 = (Account *) 0 ;
  GNCLot *arg2 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (GNCLot *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCLot, 2, 0);
  }
  xaccAccountInsertLot(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountRemoveLot (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountRemoveLot"
  Account *arg1 = (Account *) 0 ;
  GNCLot *arg2 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (GNCLot *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCLot, 2, 0);
  }
  xaccAccountRemoveLot(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetLotList (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetLotList"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  LotList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (LotList *)xaccAccountGetLotList((Account const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCLot, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountForEachLot (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountForEachLot"
  Account *arg1 = (Account *) 0 ;
  gpointer (*arg2)(GNCLot *,gpointer) = (gpointer (*)(GNCLot *,gpointer)) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gpointer result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gpointer (*)(GNCLot *,gpointer))SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_GNCLot_p_void__p_void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  result = (gpointer)xaccAccountForEachLot((Account const *)arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_void, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountFindOpenLots (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccAccountFindOpenLots"
  Account *arg1 = (Account *) 0 ;
  gboolean (*arg2)(GNCLot *,gpointer) = (gboolean (*)(GNCLot *,gpointer)) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  GCompareFunc arg4 ;
  GCompareFunc *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  LotList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gboolean (*)(GNCLot *,gpointer))SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_GNCLot_p_void__gboolean, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  {
    argp4 = (GCompareFunc *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_GCompareFunc, 4, 0);
    arg4 = *argp4;
  }
  result = (LotList *)xaccAccountFindOpenLots((Account const *)arg1,arg2,arg3,arg4);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCLot, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconcileLastDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGetReconcileLastDate"
  Account *arg1 = (Account *) 0 ;
  time64 *arg2 = (time64 *) 0 ;
  time64 t2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  t2 = scm_to_int64(s_1); arg2 = &t2;
  result = xaccAccountGetReconcileLastDate((Account const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetReconcileLastDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetReconcileLastDate"
  Account *arg1 = (Account *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccAccountSetReconcileLastDate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconcileLastInterval (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountGetReconcileLastInterval"
  Account *arg1 = (Account *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (int *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_int, 2, 0);
  }
  {
    arg3 = (int *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_int, 3, 0);
  }
  result = xaccAccountGetReconcileLastInterval((Account const *)arg1,arg2,arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetReconcileLastInterval (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountSetReconcileLastInterval"
  Account *arg1 = (Account *) 0 ;
  int arg2 ;
  int arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  xaccAccountSetReconcileLastInterval(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconcilePostponeDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGetReconcilePostponeDate"
  Account *arg1 = (Account *) 0 ;
  time64 *arg2 = (time64 *) 0 ;
  time64 t2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  t2 = scm_to_int64(s_1); arg2 = &t2;
  result = xaccAccountGetReconcilePostponeDate((Account const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetReconcilePostponeDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetReconcilePostponeDate"
  Account *arg1 = (Account *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccAccountSetReconcilePostponeDate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetReconcilePostponeBalance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountGetReconcilePostponeBalance"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric *arg2 = (gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_numeric *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gnc_numeric, 2, 0);
  }
  result = xaccAccountGetReconcilePostponeBalance((Account const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetReconcilePostponeBalance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetReconcilePostponeBalance"
  Account *arg1 = (Account *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  xaccAccountSetReconcilePostponeBalance(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountClearReconcilePostpone (SCM s_0)
{
#define FUNC_NAME "xaccAccountClearReconcilePostpone"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountClearReconcilePostpone(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PLACEHOLDER_NONE(SCM s_0)
{
#define FUNC_NAME "PLACEHOLDER-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PLACEHOLDER_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PLACEHOLDER_THIS(SCM s_0)
{
#define FUNC_NAME "PLACEHOLDER-THIS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PLACEHOLDER_THIS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PLACEHOLDER_CHILD(SCM s_0)
{
#define FUNC_NAME "PLACEHOLDER-CHILD"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PLACEHOLDER_CHILD);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetPlaceholder (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetPlaceholder"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetPlaceholder((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetPlaceholder (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetPlaceholder"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetPlaceholder(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetDescendantPlaceholder (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetDescendantPlaceholder"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPlaceholderType result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GNCPlaceholderType)xaccAccountGetDescendantPlaceholder((Account const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetHidden (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetHidden"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetHidden((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetHidden (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetHidden"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetHidden(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountIsHidden (SCM s_0)
{
#define FUNC_NAME "xaccAccountIsHidden"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountIsHidden((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetTaxRelated (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetTaxRelated"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetTaxRelated((Account const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetTaxRelated (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetTaxRelated"
  Account *arg1 = (Account *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccAccountSetTaxRelated(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetTaxUSCode (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetTaxUSCode"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetTaxUSCode((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetTaxUSCode (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetTaxUSCode"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetTaxUSCode(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetTaxUSPayerNameSource (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetTaxUSPayerNameSource"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)xaccAccountGetTaxUSPayerNameSource((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetTaxUSPayerNameSource (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetTaxUSPayerNameSource"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccAccountSetTaxUSPayerNameSource(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountGetTaxUSCopyNumber (SCM s_0)
{
#define FUNC_NAME "xaccAccountGetTaxUSCopyNumber"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = xaccAccountGetTaxUSCopyNumber((Account const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetTaxUSCopyNumber (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetTaxUSCopyNumber"
  Account *arg1 = (Account *) 0 ;
  gint64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccAccountSetTaxUSCopyNumber(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountSetMark (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccAccountSetMark"
  Account *arg1 = (Account *) 0 ;
  short arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (short) scm_to_short(s_1);
  }
  xaccAccountSetMark(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccClearMark (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccClearMark"
  Account *arg1 = (Account *) 0 ;
  short arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (short) scm_to_short(s_1);
  }
  xaccClearMark(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccClearMarkDown (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccClearMarkDown"
  Account *arg1 = (Account *) 0 ;
  short arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (short) scm_to_short(s_1);
  }
  xaccClearMarkDown(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_tree_begin_staged_transaction_traversals (SCM s_0)
{
#define FUNC_NAME "gnc-account-tree-begin-staged-transaction-traversals"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  gnc_account_tree_begin_staged_transaction_traversals(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccSplitsBeginStagedTransactionTraversals (SCM s_0)
{
#define FUNC_NAME "xaccSplitsBeginStagedTransactionTraversals"
  SplitList *arg1 = (SplitList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM list = s_0;
    GList *c_list = NULL;
    
    while (!scm_is_null(list)) {
      void *p;
      
      SCM p_scm = SCM_CAR(list);
      if (scm_is_false(p_scm) || scm_is_null(p_scm))
      p = NULL;
      else
      p = SWIG_MustGetPtr(p_scm, SWIGTYPE_p_Split, 1, 0);
      
      c_list = g_list_prepend(c_list, p);
      list = SCM_CDR(list);
    }
    
    arg1 = g_list_reverse(c_list);
  }
  xaccSplitsBeginStagedTransactionTraversals(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountBeginStagedTransactionTraversals (SCM s_0)
{
#define FUNC_NAME "xaccAccountBeginStagedTransactionTraversals"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  xaccAccountBeginStagedTransactionTraversals((Account const *)arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransactionTraverse (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransactionTraverse"
  Transaction *arg1 = (Transaction *) 0 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  result = xaccTransactionTraverse(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountStagedTransactionTraversal (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccAccountStagedTransactionTraversal"
  Account *arg1 = (Account *) 0 ;
  unsigned int arg2 ;
  TransactionCallback arg3 ;
  void *arg4 = (void *) 0 ;
  TransactionCallback *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (unsigned int) scm_to_uint(s_1);
  }
  {
    argp3 = (TransactionCallback *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_TransactionCallback, 3, 0);
    arg3 = *argp3;
  }
  {
    arg4 = (void *)SWIG_MustGetPtr(s_3, NULL, 4, 0);
  }
  result = (int)xaccAccountStagedTransactionTraversal((Account const *)arg1,arg2,arg3,arg4);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_tree_staged_transaction_traversal (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-account-tree-staged-transaction-traversal"
  Account *arg1 = (Account *) 0 ;
  unsigned int arg2 ;
  TransactionCallback arg3 ;
  void *arg4 = (void *) 0 ;
  TransactionCallback *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (unsigned int) scm_to_uint(s_1);
  }
  {
    argp3 = (TransactionCallback *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_TransactionCallback, 3, 0);
    arg3 = *argp3;
  }
  {
    arg4 = (void *)SWIG_MustGetPtr(s_3, NULL, 4, 0);
  }
  result = (int)gnc_account_tree_staged_transaction_traversal((Account const *)arg1,arg2,arg3,arg4);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccAccountTreeForEachTransaction (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccAccountTreeForEachTransaction"
  Account *arg1 = (Account *) 0 ;
  TransactionCallback arg2 ;
  void *arg3 = (void *) 0 ;
  TransactionCallback *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    argp2 = (TransactionCallback *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_TransactionCallback, 2, 0);
    arg2 = *argp2;
  }
  {
    arg3 = (void *)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  result = (int)xaccAccountTreeForEachTransaction(arg1,arg2,arg3);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_create_imap (SCM s_0)
{
#define FUNC_NAME "gnc-account-imap-create-imap"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncImportMatchMap *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GncImportMatchMap *)gnc_account_imap_create_imap(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GncImportMatchMap, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_find_account (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-imap-find-account"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  result = (Account *)gnc_account_imap_find_account(arg1,(char const *)arg2,(char const *)arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_add_account (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-account-imap-add-account"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  Account *arg4 = (Account *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  {
    arg4 = (Account *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_Account, 4, 0);
  }
  gnc_account_imap_add_account(arg1,(char const *)arg2,(char const *)arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_delete_account (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-imap-delete-account"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  gnc_account_imap_delete_account(arg1,(char const *)arg2,(char const *)arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_find_account_bayes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-imap-find-account-bayes"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  result = (Account *)gnc_account_imap_find_account_bayes(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_add_account_bayes (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-imap-add-account-bayes"
  GncImportMatchMap *arg1 = (GncImportMatchMap *) 0 ;
  GList *arg2 = (GList *) 0 ;
  Account *arg3 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncImportMatchMap *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncImportMatchMap, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  {
    arg3 = (Account *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Account, 3, 0);
  }
  gnc_account_imap_add_account_bayes(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_source_account_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-source-account-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  if (arg1) (arg1)->source_account = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_source_account_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-source-account-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (Account *) ((arg1)->source_account);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_map_account_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-map-account-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  if (arg1) (arg1)->map_account = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_map_account_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-map-account-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (Account *) ((arg1)->map_account);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_list_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-list-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  if (arg1) (arg1)->list = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_list_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-list-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (GList *) ((arg1)->list);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_category_head_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-category-head-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    free(arg1->category_head);
    if (arg2) {
      arg1->category_head = (char *) malloc(strlen((const char *)arg2)+1);
      strcpy((char *)arg1->category_head, (const char *)arg2);
    } else {
      arg1->category_head = 0;
    }
  }
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_category_head_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-category-head-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (char *) ((arg1)->category_head);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_full_category_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-full-category-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    free(arg1->full_category);
    if (arg2) {
      arg1->full_category = (char *) malloc(strlen((const char *)arg2)+1);
      strcpy((char *)arg1->full_category, (const char *)arg2);
    } else {
      arg1->full_category = 0;
    }
  }
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_full_category_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-full-category-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (char *) ((arg1)->full_category);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_match_string_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-match-string-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    free(arg1->match_string);
    if (arg2) {
      arg1->match_string = (char *) malloc(strlen((const char *)arg2)+1);
      strcpy((char *)arg1->match_string, (const char *)arg2);
    } else {
      arg1->match_string = 0;
    }
  }
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_match_string_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-match-string-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (char *) ((arg1)->match_string);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_count_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncImapInfo-count-set"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    free(arg1->count);
    if (arg2) {
      arg1->count = (char *) malloc(strlen((const char *)arg2)+1);
      strcpy((char *)arg1->count, (const char *)arg2);
    } else {
      arg1->count = 0;
    }
  }
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncImapInfo_count_get (SCM s_0)
{
#define FUNC_NAME "GncImapInfo-count-get"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  result = (char *) ((arg1)->count);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new_GncImapInfo ()
{
#define FUNC_NAME "new-GncImapInfo"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct imap_info *result = 0 ;
  
  result = (struct imap_info *)calloc(1, sizeof(struct imap_info));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_imap_info, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete_GncImapInfo (SCM s_0)
{
#define FUNC_NAME "delete-GncImapInfo"
  struct imap_info *arg1 = (struct imap_info *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct imap_info *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_imap_info, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_get_info_bayes (SCM s_0)
{
#define FUNC_NAME "gnc-account-imap-get-info-bayes"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GList *)gnc_account_imap_get_info_bayes(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_imap_get_info (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-imap-get-info"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (GList *)gnc_account_imap_get_info(arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_get_map_entry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-account-get-map-entry"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (gchar *)gnc_account_get_map_entry(arg1,(char const *)arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_delete_map_entry (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-account-delete-map-entry"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  gnc_account_delete_map_entry(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_DxaccAccountSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "DxaccAccountSetCurrency"
  Account *arg1 = (Account *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  DxaccAccountSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_DxaccAccountGetCurrency (SCM s_0)
{
#define FUNC_NAME "DxaccAccountGetCurrency"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (gnc_commodity *)DxaccAccountGetCurrency((Account const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_dxaccAccountSetQuoteTZ (SCM s_0, SCM s_1)
{
#define FUNC_NAME "dxaccAccountSetQuoteTZ"
  Account *arg1 = (Account *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  dxaccAccountSetQuoteTZ(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_dxaccAccountGetQuoteTZ (SCM s_0)
{
#define FUNC_NAME "dxaccAccountGetQuoteTZ"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (char *)dxaccAccountGetQuoteTZ((Account const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_KVP(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-KVP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_KVP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_NAME_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-NAME-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_NAME_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_CODE_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-CODE-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_CODE_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_DESCRIPTION_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-DESCRIPTION-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_DESCRIPTION_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_COLOR_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-COLOR-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_COLOR_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_FILTER_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-FILTER-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_FILTER_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_SORT_ORDER_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-SORT-ORDER-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_SORT_ORDER_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_SORT_REVERSED_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-SORT-REVERSED-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_SORT_REVERSED_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_NOTES_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-NOTES-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_NOTES_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_BALANCE_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-BALANCE-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_BALANCE_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_CLEARED_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-CLEARED-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_CLEARED_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_RECONCILED_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-RECONCILED-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_RECONCILED_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_PRESENT_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-PRESENT-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_PRESENT_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_FUTURE_MINIMUM_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-FUTURE-MINIMUM-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_FUTURE_MINIMUM_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_TAX_RELATED(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-TAX-RELATED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_TAX_RELATED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_TYPE_(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-TYPE-"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_TYPE_);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_SCU(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-SCU"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_SCU);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_NSCU(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-NSCU"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_NSCU);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_PARENT(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-PARENT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_PARENT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ACCOUNT_MATCH_ALL_TYPE(SCM s_0)
{
#define FUNC_NAME "ACCOUNT-MATCH-ALL-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ACCOUNT_MATCH_ALL_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_transaction_get_type ()
{
#define FUNC_NAME "gnc-transaction-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_transaction_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TXN_TYPE_NONE(SCM s_0)
{
#define FUNC_NAME "TXN-TYPE-NONE"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_TXN_TYPE_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TXN_TYPE_INVOICE(SCM s_0)
{
#define FUNC_NAME "TXN-TYPE-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_TXN_TYPE_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TXN_TYPE_PAYMENT(SCM s_0)
{
#define FUNC_NAME "TXN-TYPE-PAYMENT"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_TXN_TYPE_PAYMENT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TXN_TYPE_LINK(SCM s_0)
{
#define FUNC_NAME "TXN-TYPE-LINK"
  SCM gswig_result;
  
  {
    gswig_result = SCM_MAKE_CHAR(gswig_const_TXN_TYPE_LINK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccMallocTransaction (SCM s_0)
{
#define FUNC_NAME "xaccMallocTransaction"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Transaction *)xaccMallocTransaction(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransDestroy (SCM s_0)
{
#define FUNC_NAME "xaccTransDestroy"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransClone (SCM s_0)
{
#define FUNC_NAME "xaccTransClone"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Transaction *)xaccTransClone((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCloneNoKvp (SCM s_0)
{
#define FUNC_NAME "xaccTransCloneNoKvp"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Transaction *)xaccTransCloneNoKvp((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransEqual (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccTransEqual"
  Transaction *arg1 = (Transaction *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  gboolean arg5 ;
  gboolean arg6 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  arg5 = scm_is_true(s_4) ? TRUE : FALSE;
  arg6 = scm_is_true(s_5) ? TRUE : FALSE;
  result = xaccTransEqual((Transaction const *)arg1,(Transaction const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransBeginEdit (SCM s_0)
{
#define FUNC_NAME "xaccTransBeginEdit"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCommitEdit (SCM s_0)
{
#define FUNC_NAME "xaccTransCommitEdit"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransRollbackEdit (SCM s_0)
{
#define FUNC_NAME "xaccTransRollbackEdit"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransRollbackEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransIsOpen (SCM s_0)
{
#define FUNC_NAME "xaccTransIsOpen"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransIsOpen((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransLookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (Transaction *)xaccTransLookup((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCopyToClipBoard (SCM s_0)
{
#define FUNC_NAME "xaccTransCopyToClipBoard"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Transaction *)xaccTransCopyToClipBoard((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCopyOnto (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransCopyOnto"
  Transaction *arg1 = (Transaction *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  xaccTransCopyOnto((Transaction const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCopyFromClipBoard (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "xaccTransCopyFromClipBoard"
  Transaction *arg1 = (Transaction *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  Account *arg3 = (Account *) 0 ;
  Account *arg4 = (Account *) 0 ;
  gboolean arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  {
    arg3 = (Account *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Account, 3, 0);
  }
  {
    arg4 = (Account *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_Account, 4, 0);
  }
  arg5 = scm_is_true(s_4) ? TRUE : FALSE;
  xaccTransCopyFromClipBoard((Transaction const *)arg1,arg2,(Account const *)arg3,arg4,arg5);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransFindSplitByAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransFindSplitByAccount"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = (Split *)xaccTransFindSplitByAccount((Transaction const *)arg1,(Account const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransScrubGains (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransScrubGains"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  xaccTransScrubGains(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_count_transactions (SCM s_0)
{
#define FUNC_NAME "gnc-book-count-transactions"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (guint)gnc_book_count_transactions(arg1);
  {
    gswig_result = scm_from_ulong(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransUseTradingAccounts (SCM s_0)
{
#define FUNC_NAME "xaccTransUseTradingAccounts"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransUseTradingAccounts((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSortSplits (SCM s_0)
{
#define FUNC_NAME "xaccTransSortSplits"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransSortSplits(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetTxnType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetTxnType"
  Transaction *arg1 = (Transaction *) 0 ;
  char arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char) SCM_CHAR(s_1);
  }
  xaccTransSetTxnType(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetTxnType (SCM s_0)
{
#define FUNC_NAME "xaccTransGetTxnType"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char)xaccTransGetTxnType((Transaction const *)arg1);
  {
    gswig_result = SCM_MAKE_CHAR(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetNum (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetNum"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransSetNum(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDescription (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDescription"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransSetDescription(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetAssociation (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetAssociation"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransSetAssociation(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetNotes"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetNum (SCM s_0)
{
#define FUNC_NAME "xaccTransGetNum"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetNum((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetDescription (SCM s_0)
{
#define FUNC_NAME "xaccTransGetDescription"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetDescription((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAssociation (SCM s_0)
{
#define FUNC_NAME "xaccTransGetAssociation"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetAssociation((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetNotes (SCM s_0)
{
#define FUNC_NAME "xaccTransGetNotes"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetNotes((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetIsClosingTxn (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetIsClosingTxn"
  Transaction *arg1 = (Transaction *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  xaccTransSetIsClosingTxn(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetIsClosingTxn (SCM s_0)
{
#define FUNC_NAME "xaccTransGetIsClosingTxn"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetIsClosingTxn((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetSplit"
  Transaction *arg1 = (Transaction *) 0 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  result = (Split *)xaccTransGetSplit((Transaction const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetSplitIndex (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetSplitIndex"
  Transaction *arg1 = (Transaction *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (int)xaccTransGetSplitIndex((Transaction const *)arg1,(Split const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetSplitList (SCM s_0)
{
#define FUNC_NAME "xaccTransGetSplitList"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (SplitList *)xaccTransGetSplitList((Transaction const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetPaymentAcctSplitList (SCM s_0)
{
#define FUNC_NAME "xaccTransGetPaymentAcctSplitList"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (SplitList *)xaccTransGetPaymentAcctSplitList((Transaction const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAPARAcctSplitList (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetAPARAcctSplitList"
  Transaction *arg1 = (Transaction *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (SplitList *)xaccTransGetAPARAcctSplitList((Transaction const *)arg1,arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransStillHasSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransStillHasSplit"
  Transaction *arg1 = (Transaction *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = xaccTransStillHasSplit((Transaction const *)arg1,(Split const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetFirstPaymentAcctSplit (SCM s_0)
{
#define FUNC_NAME "xaccTransGetFirstPaymentAcctSplit"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Split *)xaccTransGetFirstPaymentAcctSplit((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetFirstAPARAcctSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetFirstAPARAcctSplit"
  Transaction *arg1 = (Transaction *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (Split *)xaccTransGetFirstAPARAcctSplit((Transaction const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetReadOnly (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetReadOnly"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransSetReadOnly(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransClearReadOnly (SCM s_0)
{
#define FUNC_NAME "xaccTransClearReadOnly"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransClearReadOnly(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetReadOnly (SCM s_0)
{
#define FUNC_NAME "xaccTransGetReadOnly"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetReadOnly((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransIsReadonlyByPostedDate (SCM s_0)
{
#define FUNC_NAME "xaccTransIsReadonlyByPostedDate"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransIsReadonlyByPostedDate((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransInFutureByPostedDate (SCM s_0)
{
#define FUNC_NAME "xaccTransInFutureByPostedDate"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransInFutureByPostedDate((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransCountSplits (SCM s_0)
{
#define FUNC_NAME "xaccTransCountSplits"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (int)xaccTransCountSplits((Transaction const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransHasReconciledSplits (SCM s_0)
{
#define FUNC_NAME "xaccTransHasReconciledSplits"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransHasReconciledSplits((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransHasReconciledSplitsByAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransHasReconciledSplitsByAccount"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccTransHasReconciledSplitsByAccount((Transaction const *)arg1,(Account const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransHasSplitsInState (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransHasSplitsInState"
  Transaction *arg1 = (Transaction *) 0 ;
  char arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char) SCM_CHAR(s_1);
  }
  result = xaccTransHasSplitsInState((Transaction const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransHasSplitsInStateByAccount (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccTransHasSplitsInStateByAccount"
  Transaction *arg1 = (Transaction *) 0 ;
  char arg2 ;
  Account *arg3 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char) SCM_CHAR(s_1);
  }
  {
    arg3 = (Account *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Account, 3, 0);
  }
  result = xaccTransHasSplitsInStateByAccount((Transaction const *)arg1,arg2,(Account const *)arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetCurrency (SCM s_0)
{
#define FUNC_NAME "xaccTransGetCurrency"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (gnc_commodity *)xaccTransGetCurrency((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetCurrency"
  Transaction *arg1 = (Transaction *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  xaccTransSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetImbalanceValue (SCM s_0)
{
#define FUNC_NAME "xaccTransGetImbalanceValue"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetImbalanceValue((Transaction const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetImbalance (SCM s_0)
{
#define FUNC_NAME "xaccTransGetImbalance"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  MonetaryList *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (MonetaryList *)xaccTransGetImbalance((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransIsBalanced (SCM s_0)
{
#define FUNC_NAME "xaccTransIsBalanced"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransIsBalanced((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAccountValue (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetAccountValue"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccTransGetAccountValue((Transaction const *)arg1,(Account const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAccountAmount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetAccountAmount"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccTransGetAccountAmount((Transaction const *)arg1,(Account const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetRateForCommodity (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccTransGetRateForCommodity"
  Transaction *arg1 = (Transaction *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  Split *arg3 = (Split *) 0 ;
  gnc_numeric *arg4 = (gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (Split *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Split, 3, 0);
  }
  {
    arg4 = (gnc_numeric *)SWIG_MustGetPtr(s_3, SWIGTYPE_p__gnc_numeric, 4, 0);
  }
  result = xaccTransGetRateForCommodity((Transaction const *)arg1,(gnc_commodity const *)arg2,(Split const *)arg3,arg4);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAccountConvRate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetAccountConvRate"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccTransGetAccountConvRate((Transaction const *)arg1,(Account const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetAccountBalance (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransGetAccountBalance"
  Transaction *arg1 = (Transaction *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  result = xaccTransGetAccountBalance((Transaction const *)arg1,(Account const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransOrder (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransOrder"
  Transaction *arg1 = (Transaction *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  result = (int)xaccTransOrder((Transaction const *)arg1,(Transaction const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransOrder_num_action (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccTransOrder-num-action"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  Transaction *arg3 = (Transaction *) 0 ;
  char *arg4 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free4 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (Transaction *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Transaction, 3, 0);
  }
  {
    arg4 = (char *)SWIG_scm2str(s_3);
    must_free4 = 1;
  }
  result = (int)xaccTransOrder_num_action((Transaction const *)arg1,(char const *)arg2,(Transaction const *)arg3,(char const *)arg4);
  {
    gswig_result = scm_from_long(result);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  if (must_free4 && arg4) SWIG_free(arg4);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDate (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccTransSetDate"
  Transaction *arg1 = (Transaction *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  {
    arg4 = (int) scm_to_int(s_3);
  }
  xaccTransSetDate(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDatePostedGDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDatePostedGDate"
  Transaction *arg1 = (Transaction *) 0 ;
  GDate arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = gnc_time64_to_GDate(s_1);
  xaccTransSetDatePostedGDate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDatePostedSecs (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDatePostedSecs"
  Transaction *arg1 = (Transaction *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccTransSetDatePostedSecs(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDatePostedSecsNormalized (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDatePostedSecsNormalized"
  Transaction *arg1 = (Transaction *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccTransSetDatePostedSecsNormalized(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDateEnteredSecs (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDateEnteredSecs"
  Transaction *arg1 = (Transaction *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccTransSetDateEnteredSecs(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransSetDateDue (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransSetDateDue"
  Transaction *arg1 = (Transaction *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  xaccTransSetDateDue(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetDate (SCM s_0)
{
#define FUNC_NAME "xaccTransGetDate"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetDate((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransRetDatePosted (SCM s_0)
{
#define FUNC_NAME "xaccTransRetDatePosted"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransRetDatePosted((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetDatePostedGDate (SCM s_0)
{
#define FUNC_NAME "xaccTransGetDatePostedGDate"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetDatePostedGDate((Transaction const *)arg1);
  {
    GDate * resultptr;
    resultptr = (GDate *) malloc(sizeof(GDate));
    memmove(resultptr, &result, sizeof(GDate));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GDate, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetDateEntered (SCM s_0)
{
#define FUNC_NAME "xaccTransGetDateEntered"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetDateEntered((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransRetDateEntered (SCM s_0)
{
#define FUNC_NAME "xaccTransRetDateEntered"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransRetDateEntered((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransRetDateDue (SCM s_0)
{
#define FUNC_NAME "xaccTransRetDateDue"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransRetDateDue((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransVoid (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccTransVoid"
  Transaction *arg1 = (Transaction *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  xaccTransVoid(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransUnvoid (SCM s_0)
{
#define FUNC_NAME "xaccTransUnvoid"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  xaccTransUnvoid(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransReverse (SCM s_0)
{
#define FUNC_NAME "xaccTransReverse"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Transaction *)xaccTransReverse(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetReversedBy (SCM s_0)
{
#define FUNC_NAME "xaccTransGetReversedBy"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (Transaction *)xaccTransGetReversedBy((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetVoidStatus (SCM s_0)
{
#define FUNC_NAME "xaccTransGetVoidStatus"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetVoidStatus((Transaction const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetVoidReason (SCM s_0)
{
#define FUNC_NAME "xaccTransGetVoidReason"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (char *)xaccTransGetVoidReason((Transaction const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccTransGetVoidTime (SCM s_0)
{
#define FUNC_NAME "xaccTransGetVoidTime"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = xaccTransGetVoidTime((Transaction const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_KVP(SCM s_0)
{
#define FUNC_NAME "TRANS-KVP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_KVP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_NUM(SCM s_0)
{
#define FUNC_NAME "TRANS-NUM"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_NUM);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_DESCRIPTION(SCM s_0)
{
#define FUNC_NAME "TRANS-DESCRIPTION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_DESCRIPTION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_DATE_ENTERED(SCM s_0)
{
#define FUNC_NAME "TRANS-DATE-ENTERED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_DATE_ENTERED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_DATE_POSTED(SCM s_0)
{
#define FUNC_NAME "TRANS-DATE-POSTED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_DATE_POSTED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_DATE_DUE(SCM s_0)
{
#define FUNC_NAME "TRANS-DATE-DUE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_DATE_DUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_IMBALANCE(SCM s_0)
{
#define FUNC_NAME "TRANS-IMBALANCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_IMBALANCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_IS_BALANCED(SCM s_0)
{
#define FUNC_NAME "TRANS-IS-BALANCED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_IS_BALANCED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_IS_CLOSING(SCM s_0)
{
#define FUNC_NAME "TRANS-IS-CLOSING"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_IS_CLOSING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_NOTES(SCM s_0)
{
#define FUNC_NAME "TRANS-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_ASSOCIATION(SCM s_0)
{
#define FUNC_NAME "TRANS-ASSOCIATION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_ASSOCIATION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_TYPE(SCM s_0)
{
#define FUNC_NAME "TRANS-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_VOID_STATUS(SCM s_0)
{
#define FUNC_NAME "TRANS-VOID-STATUS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_VOID_STATUS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_VOID_REASON(SCM s_0)
{
#define FUNC_NAME "TRANS-VOID-REASON"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_VOID_REASON);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_VOID_TIME(SCM s_0)
{
#define FUNC_NAME "TRANS-VOID-TIME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_VOID_TIME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_TRANS_SPLITLIST(SCM s_0)
{
#define FUNC_NAME "TRANS-SPLITLIST"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_TRANS_SPLITLIST);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_RECONCILED_MATCH_TYPE(SCM s_0)
{
#define FUNC_NAME "RECONCILED-MATCH-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_RECONCILED_MATCH_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncLotClass_parent_class_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "GncLotClass-parent-class-set"
  GncLotClass *arg1 = (GncLotClass *) 0 ;
  QofInstanceClass arg2 ;
  QofInstanceClass *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncLotClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncLotClass, 1, 0);
  }
  {
    argp2 = (QofInstanceClass *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofInstanceClass, 2, 0);
    arg2 = *argp2;
  }
  if (arg1) (arg1)->parent_class = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GncLotClass_parent_class_get (SCM s_0)
{
#define FUNC_NAME "GncLotClass-parent-class-get"
  GncLotClass *arg1 = (GncLotClass *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofInstanceClass result;
  
  {
    arg1 = (GncLotClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncLotClass, 1, 0);
  }
  result =  ((arg1)->parent_class);
  {
    QofInstanceClass * resultptr;
    resultptr = (QofInstanceClass *) malloc(sizeof(QofInstanceClass));
    memmove(resultptr, &result, sizeof(QofInstanceClass));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofInstanceClass, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new_GncLotClass ()
{
#define FUNC_NAME "new-GncLotClass"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncLotClass *result = 0 ;
  
  result = (GncLotClass *)calloc(1, sizeof(GncLotClass));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GncLotClass, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete_GncLotClass (SCM s_0)
{
#define FUNC_NAME "delete-GncLotClass"
  GncLotClass *arg1 = (GncLotClass *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncLotClass *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GncLotClass, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_type ()
{
#define FUNC_NAME "gnc-lot-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_lot_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_new (SCM s_0)
{
#define FUNC_NAME "gnc-lot-new"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GNCLot *)gnc_lot_new(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-lot-destroy"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  gnc_lot_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_lookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-lookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GNCLot *)gnc_lot_lookup((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_book (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-book"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (QofBook *)gnc_lot_get_book(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_begin_edit (SCM s_0)
{
#define FUNC_NAME "gnc-lot-begin-edit"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  gnc_lot_begin_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_commit_edit (SCM s_0)
{
#define FUNC_NAME "gnc-lot-commit-edit"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  gnc_lot_commit_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_add_split (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-add-split"
  GNCLot *arg1 = (GNCLot *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  gnc_lot_add_split(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_remove_split (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-remove-split"
  GNCLot *arg1 = (GNCLot *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  gnc_lot_remove_split(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_split_list (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-split-list"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (SplitList *)gnc_lot_get_split_list((GNCLot const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_count_splits (SCM s_0)
{
#define FUNC_NAME "gnc-lot-count-splits"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (gint)gnc_lot_count_splits((GNCLot const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_account (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-account"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (Account *)gnc_lot_get_account((GNCLot const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_set_account (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-set-account"
  GNCLot *arg1 = (GNCLot *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gnc_lot_set_account(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_balance (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-balance"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = gnc_lot_get_balance(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_balance_before (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-lot-get-balance-before"
  GNCLot *arg1 = (GNCLot *) 0 ;
  Split *arg2 = (Split *) 0 ;
  gnc_numeric *arg3 = (gnc_numeric *) 0 ;
  gnc_numeric *arg4 = (gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  {
    arg3 = (gnc_numeric *)SWIG_MustGetPtr(s_2, SWIGTYPE_p__gnc_numeric, 3, 0);
  }
  {
    arg4 = (gnc_numeric *)SWIG_MustGetPtr(s_3, SWIGTYPE_p__gnc_numeric, 4, 0);
  }
  gnc_lot_get_balance_before((GNCLot const *)arg1,(Split const *)arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_is_closed (SCM s_0)
{
#define FUNC_NAME "gnc-lot-is-closed"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = gnc_lot_is_closed(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_earliest_split (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-earliest-split"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (Split *)gnc_lot_get_earliest_split(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_latest_split (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-latest-split"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (Split *)gnc_lot_get_latest_split(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_set_closed_unknown (SCM s_0)
{
#define FUNC_NAME "gnc-lot-set-closed-unknown"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  gnc_lot_set_closed_unknown(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_title (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-title"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (char *)gnc_lot_get_title((GNCLot const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_get_notes (SCM s_0)
{
#define FUNC_NAME "gnc-lot-get-notes"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (char *)gnc_lot_get_notes((GNCLot const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_set_title (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-set-title"
  GNCLot *arg1 = (GNCLot *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_lot_set_title(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_set_notes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-lot-set-notes"
  GNCLot *arg1 = (GNCLot *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_lot_set_notes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_lot_make_default (SCM s_0)
{
#define FUNC_NAME "gnc-lot-make-default"
  Account *arg1 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  {
    arg1 = (Account *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Account, 1, 0);
  }
  result = (GNCLot *)gnc_lot_make_default(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_LOT_IS_CLOSED(SCM s_0)
{
#define FUNC_NAME "LOT-IS-CLOSED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_LOT_IS_CLOSED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_LOT_BALANCE(SCM s_0)
{
#define FUNC_NAME "LOT-BALANCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_LOT_BALANCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_LOT_TITLE(SCM s_0)
{
#define FUNC_NAME "LOT-TITLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_LOT_TITLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_LOT_NOTES(SCM s_0)
{
#define FUNC_NAME "LOT-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_LOT_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncPriceGetGUID (SCM s_0)
{
#define FUNC_NAME "gncPriceGetGUID"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (GncGUID *)gncPriceGetGUID(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBudgetGetGUID (SCM s_0)
{
#define FUNC_NAME "gncBudgetGetGUID"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (GncGUID *)gncBudgetGetGUID(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_ID_BOOK_SCM ()
{
#define FUNC_NAME "QOF-ID-BOOK-SCM"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofIdType result;
  
  result = QOF_ID_BOOK_SCM();
  {
    QofIdType * resultptr;
    resultptr = (QofIdType *) malloc(sizeof(QofIdType));
    memmove(resultptr, &result, sizeof(QofIdType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofIdType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_transaction_get_date_posted (SCM s_0)
{
#define FUNC_NAME "gnc-transaction-get-date-posted"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = gnc_transaction_get_date_posted((Transaction const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_transaction_get_date_entered (SCM s_0)
{
#define FUNC_NAME "gnc-transaction-get-date-entered"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = gnc_transaction_get_date_entered((Transaction const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_split_get_date_reconciled (SCM s_0)
{
#define FUNC_NAME "gnc-split-get-date-reconciled"
  Split *arg1 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  result = gnc_split_get_date_reconciled((Split const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_transaction_set_date (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-transaction-set-date"
  Transaction *arg1 = (Transaction *) 0 ;
  Timespec arg2 ;
  Timespec *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    argp2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
    arg2 = *argp2;
  }
  gnc_transaction_set_date(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_num_action (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-get-num-action"
  Transaction *arg1 = (Transaction *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    if (s_0 == SCM_BOOL_F)
    arg1 = NULL;
    else
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    if (s_1 == SCM_BOOL_F)
    arg2 = NULL;
    else
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (char *)gnc_get_num_action((Transaction const *)arg1,(Split const *)arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_action_num (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-get-action-num"
  Transaction *arg1 = (Transaction *) 0 ;
  Split *arg2 = (Split *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    if (s_0 == SCM_BOOL_F)
    arg1 = NULL;
    else
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    if (s_1 == SCM_BOOL_F)
    arg2 = NULL;
    else
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  result = (char *)gnc_get_action_num((Transaction const *)arg1,(Split const *)arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_set_num_action (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-set-num-action"
  Transaction *arg1 = (Transaction *) 0 ;
  Split *arg2 = (Split *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int must_free3 = 0 ;
  int must_free4 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    if (s_0 == SCM_BOOL_F)
    arg1 = NULL;
    else
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    if (s_1 == SCM_BOOL_F)
    arg2 = NULL;
    else
    arg2 = (Split *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Split, 2, 0);
  }
  {
    if (s_2 == SCM_BOOL_F)
    arg3 = NULL;
    else
    {
      arg3 = (char *)SWIG_scm2str(s_2);
      must_free3 = 1;
    }
  }
  {
    if (s_3 == SCM_BOOL_F)
    arg4 = NULL;
    else
    {
      arg4 = (char *)SWIG_scm2str(s_3);
      must_free4 = 1;
    }
  }
  gnc_set_num_action(arg1,arg2,(char const *)arg3,(char const *)arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  if (must_free3 && arg3) SWIG_free(arg3);
  if (must_free4 && arg4) SWIG_free(arg4);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_option_num_field_source_change (SCM s_0)
{
#define FUNC_NAME "gnc-book-option-num-field-source-change"
  gboolean arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  arg1 = scm_is_true(s_0) ? TRUE : FALSE;
  gnc_book_option_num_field_source_change(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_option_book_currency_selected (SCM s_0)
{
#define FUNC_NAME "gnc-book-option-book-currency-selected"
  gboolean arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  arg1 = scm_is_true(s_0) ? TRUE : FALSE;
  gnc_book_option_book_currency_selected(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_option_register_cb (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-book-option-register-cb"
  gchar *arg1 = (gchar *) 0 ;
  GncBOCb arg2 = (GncBOCb) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncBOCb)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_void_p_void__void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  gnc_book_option_register_cb(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_option_remove_cb (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-book-option-remove-cb"
  gchar *arg1 = (gchar *) 0 ;
  GncBOCb arg2 = (GncBOCb) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncBOCb)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_void_p_void__void, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  gnc_book_option_remove_cb(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timespec2timepair (SCM s_0)
{
#define FUNC_NAME "gnc-timespec2timepair"
  Timespec arg1 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  result = (SCM)gnc_timespec2timepair(arg1);
  gswig_result=result;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timepair2timespec (SCM s_0)
{
#define FUNC_NAME "gnc-timepair2timespec"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  arg1=s_0;
  result = gnc_timepair2timespec(arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_to_GDate (SCM s_0)
{
#define FUNC_NAME "gnc-time64-to-GDate"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate result;
  
  arg1=s_0;
  result = gnc_time64_to_GDate(arg1);
  {
    GDate * resultptr;
    resultptr = (GDate *) malloc(sizeof(GDate));
    memmove(resultptr, &result, sizeof(GDate));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GDate, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timepair_p (SCM s_0)
{
#define FUNC_NAME "gnc-timepair-p"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  arg1=s_0;
  result = (int)gnc_timepair_p(arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_guid2scm (SCM s_0)
{
#define FUNC_NAME "gnc-guid2scm"
  GncGUID arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  arg1 = gnc_scm2guid(s_0);
  result = (SCM)gnc_guid2scm(arg1);
  gswig_result=result;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_scm2guid (SCM s_0)
{
#define FUNC_NAME "gnc-scm2guid"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  arg1=s_0;
  result = gnc_scm2guid(arg1);
  gswig_result = gnc_guid2scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_guid_p (SCM s_0)
{
#define FUNC_NAME "gnc-guid-p"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  arg1=s_0;
  result = (int)gnc_guid_p(arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_query_scm2path (SCM s_0)
{
#define FUNC_NAME "gnc-query-scm2path"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GSList *result = 0 ;
  
  arg1=s_0;
  result = (GSList *)gnc_query_scm2path(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GSList, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_query2scm (SCM s_0)
{
#define FUNC_NAME "gnc-query2scm"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (SCM)gnc_query2scm(arg1);
  gswig_result=result;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_scm2query (SCM s_0)
{
#define FUNC_NAME "gnc-scm2query"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  arg1=s_0;
  result = (QofQuery *)gnc_scm2query(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_to_scm (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-to-scm"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = (SCM)gnc_numeric_to_scm(arg1);
  gswig_result=result;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_scm_to_numeric (SCM s_0)
{
#define FUNC_NAME "gnc-scm-to-numeric"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1=s_0;
  result = gnc_scm_to_numeric(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_scm_to_commodity (SCM s_0)
{
#define FUNC_NAME "gnc-scm-to-commodity"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  arg1=s_0;
  result = (gnc_commodity *)gnc_scm_to_commodity(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_to_scm (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-to-scm"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (SCM)gnc_commodity_to_scm((gnc_commodity const *)arg1);
  gswig_result=result;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_to_scm (SCM s_0)
{
#define FUNC_NAME "gnc-book-to-scm"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (SCM)gnc_book_to_scm((QofBook const *)arg1);
  gswig_result=result;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_valid_policy_list ()
{
#define FUNC_NAME "gnc-get-valid-policy-list"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  result = (GList *)gnc_get_valid_policy_list();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_valid_policy_name (SCM s_0)
{
#define FUNC_NAME "gnc-valid-policy-name"
  gchar *arg1 = (gchar *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = gnc_valid_policy_name((char const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PolicyGetName (SCM s_0)
{
#define FUNC_NAME "PolicyGetName"
  GNCPolicy *arg1 = (GNCPolicy *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCPolicy *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gncpolicy_s, 1, 0);
  }
  result = (char *)PolicyGetName((struct gncpolicy_s const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PolicyGetDescription (SCM s_0)
{
#define FUNC_NAME "PolicyGetDescription"
  GNCPolicy *arg1 = (GNCPolicy *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCPolicy *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gncpolicy_s, 1, 0);
  }
  result = (char *)PolicyGetDescription((struct gncpolicy_s const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PolicyGetHint (SCM s_0)
{
#define FUNC_NAME "PolicyGetHint"
  GNCPolicy *arg1 = (GNCPolicy *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCPolicy *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gncpolicy_s, 1, 0);
  }
  result = (char *)PolicyGetHint((struct gncpolicy_s const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccGetFIFOPolicy ()
{
#define FUNC_NAME "xaccGetFIFOPolicy"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPolicy *result = 0 ;
  
  result = (GNCPolicy *)xaccGetFIFOPolicy();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gncpolicy_s, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccGetLIFOPolicy ()
{
#define FUNC_NAME "xaccGetLIFOPolicy"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPolicy *result = 0 ;
  
  result = (GNCPolicy *)xaccGetLIFOPolicy();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gncpolicy_s, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_type ()
{
#define FUNC_NAME "gnc-price-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_price_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_get_type ()
{
#define FUNC_NAME "gnc-pricedb-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_pricedb_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_EDIT_DLG(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-EDIT-DLG"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_EDIT_DLG);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_FQ(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-FQ"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_FQ);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_USER_PRICE(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-USER-PRICE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_USER_PRICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_XFER_DLG_VAL(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-XFER-DLG-VAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_XFER_DLG_VAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_SPLIT_REG(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-SPLIT-REG"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_SPLIT_REG);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_STOCK_SPLIT(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-STOCK-SPLIT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_STOCK_SPLIT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_INVOICE(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_TEMP(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-TEMP"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_TEMP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE_INVALID(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE-INVALID"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_SOURCE_INVALID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_TYPE_LAST(SCM s_0)
{
#define FUNC_NAME "PRICE-TYPE-LAST"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_TYPE_LAST);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_TYPE_UNK(SCM s_0)
{
#define FUNC_NAME "PRICE-TYPE-UNK"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_TYPE_UNK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_TYPE_TRN(SCM s_0)
{
#define FUNC_NAME "PRICE-TYPE-TRN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_TYPE_TRN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_create (SCM s_0)
{
#define FUNC_NAME "gnc-price-create"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GNCPrice *)gnc_price_create(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_clone (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-clone"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GNCPrice *)gnc_price_clone(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_invert (SCM s_0)
{
#define FUNC_NAME "gnc-price-invert"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (GNCPrice *)gnc_price_invert(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_ref (SCM s_0)
{
#define FUNC_NAME "gnc-price-ref"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  gnc_price_ref(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_unref (SCM s_0)
{
#define FUNC_NAME "gnc-price-unref"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  gnc_price_unref(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_begin_edit (SCM s_0)
{
#define FUNC_NAME "gnc-price-begin-edit"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  gnc_price_begin_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_commit_edit (SCM s_0)
{
#define FUNC_NAME "gnc-price-commit-edit"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  gnc_price_commit_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_commodity (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-commodity"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gnc_price_set_commodity(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_currency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-currency"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gnc_price_set_currency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_time (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-time"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  Timespec arg2 ;
  Timespec *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    argp2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
    arg2 = *argp2;
  }
  gnc_price_set_time(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_time64 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-time64"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gnc_price_set_time64(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_source (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-source"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  PriceSource arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (PriceSource) scm_to_int(s_1); 
  }
  gnc_price_set_source(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_source_string (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-source-string"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_price_set_source_string(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_typestr (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-typestr"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_price_set_typestr(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_set_value (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-set-value"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gnc_price_set_value(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_lookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-lookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GNCPrice *)gnc_price_lookup((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_commodity (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-commodity"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (gnc_commodity *)gnc_price_get_commodity((GNCPrice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_currency (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-currency"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (gnc_commodity *)gnc_price_get_currency((GNCPrice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_time (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-time"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = gnc_price_get_time((GNCPrice const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_time64 (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-time64"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = gnc_price_get_time64((GNCPrice const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_source (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-source"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceSource result;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (PriceSource)gnc_price_get_source((GNCPrice const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_source_string (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-source-string"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (char *)gnc_price_get_source_string((GNCPrice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_typestr (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-typestr"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = (char *)gnc_price_get_typestr((GNCPrice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_get_value (SCM s_0)
{
#define FUNC_NAME "gnc-price-get-value"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  result = gnc_price_get_value((GNCPrice const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-equal"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  result = gnc_price_equal((GNCPrice const *)arg1,(GNCPrice const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_print (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-price-print"
  GNCPrice *arg1 = (GNCPrice *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  int arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPrice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCPrice, 1, 0);
  }
  {
    arg2 = (FILE *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_FILE, 2, 0);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  gnc_price_print(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CURRENCY_DENOM(SCM s_0)
{
#define FUNC_NAME "CURRENCY-DENOM"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CURRENCY_DENOM);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_COMMODITY_DENOM_MULT(SCM s_0)
{
#define FUNC_NAME "COMMODITY-DENOM-MULT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_COMMODITY_DENOM_MULT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_list_insert (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-price-list-insert"
  PriceList **arg1 = (PriceList **) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (PriceList **)SWIG_MustGetPtr(s_0, SWIGTYPE_p_p_GList, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = gnc_price_list_insert(arg1,arg2,arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_list_remove (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-list-remove"
  PriceList **arg1 = (PriceList **) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (PriceList **)SWIG_MustGetPtr(s_0, SWIGTYPE_p_p_GList, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  result = gnc_price_list_remove(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_list_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-price-list-destroy"
  PriceList *arg1 = (PriceList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM list = s_0;
    GList *c_list = NULL;
    
    while (!scm_is_null(list)) {
      void *p;
      
      SCM p_scm = SCM_CAR(list);
      if (scm_is_false(p_scm) || scm_is_null(p_scm))
      p = NULL;
      else
      p = SWIG_MustGetPtr(p_scm, SWIGTYPE_p_GNCPrice, 1, 0);
      
      c_list = g_list_prepend(c_list, p);
      list = SCM_CDR(list);
    }
    
    arg1 = g_list_reverse(c_list);
  }
  gnc_price_list_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_price_list_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-price-list-equal"
  PriceList *arg1 = (PriceList *) 0 ;
  PriceList *arg2 = (PriceList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    SCM list = s_0;
    GList *c_list = NULL;
    
    while (!scm_is_null(list)) {
      void *p;
      
      SCM p_scm = SCM_CAR(list);
      if (scm_is_false(p_scm) || scm_is_null(p_scm))
      p = NULL;
      else
      p = SWIG_MustGetPtr(p_scm, SWIGTYPE_p_GNCPrice, 1, 0);
      
      c_list = g_list_prepend(c_list, p);
      list = SCM_CDR(list);
    }
    
    arg1 = g_list_reverse(c_list);
  }
  {
    SCM list = s_1;
    GList *c_list = NULL;
    
    while (!scm_is_null(list)) {
      void *p;
      
      SCM p_scm = SCM_CAR(list);
      if (scm_is_false(p_scm) || scm_is_null(p_scm))
      p = NULL;
      else
      p = SWIG_MustGetPtr(p_scm, SWIGTYPE_p_GNCPrice, 1, 0);
      
      c_list = g_list_prepend(c_list, p);
      list = SCM_CDR(list);
    }
    
    arg2 = g_list_reverse(c_list);
  }
  result = gnc_price_list_equal(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_get_db (SCM s_0)
{
#define FUNC_NAME "gnc-pricedb-get-db"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPriceDB *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GNCPriceDB *)gnc_pricedb_get_db(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_price_db_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_collection_get_pricedb (SCM s_0)
{
#define FUNC_NAME "gnc-collection-get-pricedb"
  QofCollection *arg1 = (QofCollection *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPriceDB *result = 0 ;
  
  {
    arg1 = (QofCollection *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofCollection, 1, 0);
  }
  result = (GNCPriceDB *)gnc_collection_get_pricedb(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_price_db_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-pricedb-destroy"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  gnc_pricedb_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_begin_edit (SCM s_0)
{
#define FUNC_NAME "gnc-pricedb-begin-edit"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  gnc_pricedb_begin_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_commit_edit (SCM s_0)
{
#define FUNC_NAME "gnc-pricedb-commit-edit"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  gnc_pricedb_commit_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_set_bulk_update (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-set-bulk-update"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gnc_pricedb_set_bulk_update(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_add_price (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-add-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  result = gnc_pricedb_add_price(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_remove_price (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-remove-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  result = gnc_pricedb_remove_price(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_SOURCE_FQ(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-SOURCE-FQ"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_SOURCE_FQ);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_SOURCE_USER(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-SOURCE-USER"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_SOURCE_USER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_SOURCE_APP(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-SOURCE-APP"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_SOURCE_APP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_SOURCE_COMM(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-SOURCE-COMM"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_SOURCE_COMM);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_NONE(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_LAST_WEEKLY(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-LAST-WEEKLY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_LAST_WEEKLY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_LAST_MONTHLY(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-LAST-MONTHLY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_LAST_MONTHLY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_LAST_QUARTERLY(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-LAST-QUARTERLY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_LAST_QUARTERLY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_LAST_PERIOD(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-LAST-PERIOD"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_LAST_PERIOD);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_REMOVE_KEEP_SCALED(SCM s_0)
{
#define FUNC_NAME "PRICE-REMOVE-KEEP-SCALED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_PRICE_REMOVE_KEEP_SCALED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_remove_old_prices (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "gnc-pricedb-remove-old-prices"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  GList *arg2 = (GList *) 0 ;
  GDate *arg3 = (GDate *) 0 ;
  Timespec arg4 ;
  PriceRemoveSourceFlags arg5 ;
  PriceRemoveKeepOptions arg6 ;
  Timespec *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  {
    arg3 = (GDate *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_GDate, 3, 0);
  }
  {
    argp4 = (Timespec *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_timespec64, 4, 0);
    arg4 = *argp4;
  }
  {
    arg5 = (PriceRemoveSourceFlags) scm_to_int(s_4); 
  }
  {
    arg6 = (PriceRemoveKeepOptions) scm_to_int(s_5); 
  }
  result = gnc_pricedb_remove_old_prices(arg1,arg2,arg3,arg4,arg5,arg6);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_latest (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-lookup-latest"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  result = (GNCPrice *)gnc_pricedb_lookup_latest(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_latest_any_currency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-lookup-latest-any-currency"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceList *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (PriceList *)gnc_pricedb_lookup_latest_any_currency(arg1,(gnc_commodity const *)arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCPrice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_has_prices (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-has-prices"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  result = gnc_pricedb_has_prices(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_get_prices (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-get-prices"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceList *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  result = (PriceList *)gnc_pricedb_get_prices(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCPrice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_at_time (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-at-time"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  Timespec arg4 ;
  Timespec *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    argp4 = (Timespec *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_timespec64, 4, 0);
    arg4 = *argp4;
  }
  result = (GNCPrice *)gnc_pricedb_lookup_at_time(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 1);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_day (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-day"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  Timespec arg4 ;
  Timespec *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    argp4 = (Timespec *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_timespec64, 4, 0);
    arg4 = *argp4;
  }
  result = (GNCPrice *)gnc_pricedb_lookup_day(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 1);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_day_t64 (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-day-t64"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  time64 arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  arg4 = scm_to_int64(s_3); 
  result = (GNCPrice *)gnc_pricedb_lookup_day_t64(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_nearest_in_time (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-nearest-in-time"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  Timespec arg4 ;
  Timespec *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    argp4 = (Timespec *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_timespec64, 4, 0);
    arg4 = *argp4;
  }
  result = (GNCPrice *)gnc_pricedb_lookup_nearest_in_time(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_nearest_in_time64 (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-nearest-in-time64"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  time64 arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  arg4 = scm_to_int64(s_3); 
  result = (GNCPrice *)gnc_pricedb_lookup_nearest_in_time64(arg1,(gnc_commodity const *)arg2,(gnc_commodity const *)arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_nearest_in_time_any_currency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-lookup-nearest-in-time-any-currency"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  Timespec arg3 ;
  Timespec *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceList *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    argp3 = (Timespec *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_timespec64, 3, 0);
    arg3 = *argp3;
  }
  result = (PriceList *)gnc_pricedb_lookup_nearest_in_time_any_currency(arg1,(gnc_commodity const *)arg2,arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCPrice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_nearest_in_time_any_currency_t64 (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-lookup-nearest-in-time-any-currency-t64"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  time64 arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceList *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = scm_to_int64(s_2); 
  result = (PriceList *)gnc_pricedb_lookup_nearest_in_time_any_currency_t64(arg1,(gnc_commodity const *)arg2,arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCPrice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_latest_before (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-lookup-latest-before"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  Timespec arg4 ;
  Timespec *argp4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    argp4 = (Timespec *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_timespec64, 4, 0);
    arg4 = *argp4;
  }
  result = (GNCPrice *)gnc_pricedb_lookup_latest_before(arg1,arg2,arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_lookup_latest_before_any_currency (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-lookup-latest-before-any-currency"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  Timespec arg3 ;
  Timespec *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  PriceList *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    argp3 = (Timespec *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_timespec64, 3, 0);
    arg3 = *argp3;
  }
  result = (PriceList *)gnc_pricedb_lookup_latest_before_any_currency(arg1,(gnc_commodity const *)arg2,arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCPrice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_convert_balance_latest_price (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-convert-balance-latest-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_numeric arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  gnc_commodity *arg4 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    arg4 = (gnc_commodity *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_gnc_commodity, 4, 0);
  }
  result = gnc_pricedb_convert_balance_latest_price(arg1,arg2,(gnc_commodity const *)arg3,(gnc_commodity const *)arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_convert_balance_nearest_price (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "gnc-pricedb-convert-balance-nearest-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_numeric arg2 ;
  gnc_commodity *arg3 = (gnc_commodity *) 0 ;
  gnc_commodity *arg4 = (gnc_commodity *) 0 ;
  time64 arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (gnc_commodity *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_gnc_commodity, 3, 0);
  }
  {
    arg4 = (gnc_commodity *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_gnc_commodity, 4, 0);
  }
  arg5 = scm_to_int64(s_4); 
  result = gnc_pricedb_convert_balance_nearest_price(arg1,arg2,(gnc_commodity const *)arg3,(gnc_commodity const *)arg4,arg5);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_foreach_price (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-pricedb-foreach-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  GncPriceForeachFunc arg2 = (GncPriceForeachFunc) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (GncPriceForeachFunc)SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_GNCPrice_p_void__gboolean, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = gnc_pricedb_foreach_price(arg1,arg2,arg3,arg4);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_num_prices (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-num-prices"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (int)gnc_pricedb_num_prices(arg1,(gnc_commodity const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_nth_price (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-pricedb-nth-price"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  int arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  result = (GNCPrice *)gnc_pricedb_nth_price(arg1,(gnc_commodity const *)arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_get_num_prices (SCM s_0)
{
#define FUNC_NAME "gnc-pricedb-get-num-prices"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  result = (guint)gnc_pricedb_get_num_prices(arg1);
  {
    gswig_result = scm_from_ulong(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-equal"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  GNCPriceDB *arg2 = (GNCPriceDB *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (GNCPriceDB *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_price_db_s, 2, 0);
  }
  result = gnc_pricedb_equal(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_pricedb_print_contents (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-pricedb-print-contents"
  GNCPriceDB *arg1 = (GNCPriceDB *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GNCPriceDB *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_price_db_s, 1, 0);
  }
  {
    arg2 = (FILE *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_FILE, 2, 0);
  }
  gnc_pricedb_print_contents(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_COMMODITY(SCM s_0)
{
#define FUNC_NAME "PRICE-COMMODITY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_COMMODITY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_CURRENCY(SCM s_0)
{
#define FUNC_NAME "PRICE-CURRENCY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_CURRENCY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_DATE(SCM s_0)
{
#define FUNC_NAME "PRICE-DATE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_DATE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_SOURCE(SCM s_0)
{
#define FUNC_NAME "PRICE-SOURCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_SOURCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_TYPE(SCM s_0)
{
#define FUNC_NAME "PRICE-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_PRICE_VALUE(SCM s_0)
{
#define FUNC_NAME "PRICE-VALUE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_PRICE_VALUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_session_new ()
{
#define FUNC_NAME "qof-session-new"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofSession *result = 0 ;
  
  result = (QofSession *)qof_session_new();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofSession, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_session_get_book (SCM s_0)
{
#define FUNC_NAME "qof-session-get-book"
  QofSession *arg1 = (QofSession *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (QofSession *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofSession, 1, 0);
  }
  result = (QofBook *)qof_session_get_book(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_session_get_url (SCM s_0)
{
#define FUNC_NAME "qof-session-get-url"
  QofSession *arg1 = (QofSession *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (QofSession *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofSession, 1, 0);
  }
  result = (char *)qof_session_get_url(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_get_type ()
{
#define FUNC_NAME "timespec-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = timespec_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_default_strftime_date_format(SCM s_0)
{
#define FUNC_NAME "gnc-default-strftime-date-format"
  SCM gswig_result;
  
  if (s_0 != SCM_UNDEFINED) {
    {
      gnc_default_strftime_date_format = (char *) SWIG_scm2str(s_0);
    }
  }
  {
    gswig_result = SWIG_str02scm(gnc_default_strftime_date_format);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_MAX_DATE_LENGTH(SCM s_0)
{
#define FUNC_NAME "MAX-DATE-LENGTH"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_MAX_DATE_LENGTH);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_UTC_DATE_FORMAT(SCM s_0)
{
#define FUNC_NAME "QOF-UTC-DATE-FORMAT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_UTC_DATE_FORMAT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_US(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-US"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_US);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_UK(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-UK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_UK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_CE(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-CE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_CE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_ISO(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-ISO"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_ISO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_LOCALE(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-LOCALE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_LOCALE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_UTC(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-UTC"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_UTC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_CUSTOM(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-CUSTOM"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_CUSTOM);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_FORMAT_UNSET(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-FORMAT-UNSET"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_FORMAT_UNSET);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_COMPLETION_THISYEAR(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-COMPLETION-THISYEAR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_COMPLETION_THISYEAR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_COMPLETION_SLIDING(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-COMPLETION-SLIDING"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_COMPLETION_SLIDING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNCDATE_MONTH_NUMBER(SCM s_0)
{
#define FUNC_NAME "GNCDATE-MONTH-NUMBER"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNCDATE_MONTH_NUMBER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNCDATE_MONTH_ABBREV(SCM s_0)
{
#define FUNC_NAME "GNCDATE-MONTH-ABBREV"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNCDATE_MONTH_ABBREV);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNCDATE_MONTH_NAME(SCM s_0)
{
#define FUNC_NAME "GNCDATE-MONTH-NAME"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNCDATE_MONTH_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_localtime (SCM s_0)
{
#define FUNC_NAME "gnc-localtime"
  time64 *arg1 = (time64 *) 0 ;
  time64 t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct tm *result = 0 ;
  
  t1 = scm_to_int64(s_0); arg1 = &t1;
  result = (struct tm *)gnc_localtime((gint64 const *)arg1);
  {
    SCM tm = scm_c_make_vector(11, SCM_UNDEFINED);
    struct tm* t = result;
    if (t != NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
    gswig_result = tm;
  }
  
  gnc_tm_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_localtime_r (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-localtime-r"
  time64 *arg1 = (time64 *) 0 ;
  struct tm *arg2 = (struct tm *) 0 ;
  time64 t1 ;
  struct tm t2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct tm *result = 0 ;
  
  t1 = scm_to_int64(s_0); arg1 = &t1;
  {
    SCM tm = s_1;
    SCM zone;
    t2.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t2.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t2.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t2.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t2.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t2.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t2.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t2.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t2.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t2.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t2.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg2 = &t2;
  }
  result = (struct tm *)gnc_localtime_r((gint64 const *)arg1,arg2);
  {
    SCM tm = scm_c_make_vector(11, SCM_UNDEFINED);
    struct tm* t = result;
    if (t != NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
    gswig_result = tm;
  }
  {
    struct tm* t = arg2;
    SCM tm = s_1;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gmtime (SCM s_0)
{
#define FUNC_NAME "gnc-gmtime"
  time64 *arg1 = (time64 *) 0 ;
  time64 t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct tm *result = 0 ;
  
  t1 = scm_to_int64(s_0); arg1 = &t1;
  result = (struct tm *)gnc_gmtime((gint64 const *)arg1);
  {
    SCM tm = scm_c_make_vector(11, SCM_UNDEFINED);
    struct tm* t = result;
    if (t != NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
    gswig_result = tm;
  }
  
  gnc_tm_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_mktime (SCM s_0)
{
#define FUNC_NAME "gnc-mktime"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  result = gnc_mktime(arg1);
  gswig_result = scm_from_int64(result); 
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timegm (SCM s_0)
{
#define FUNC_NAME "gnc-timegm"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  result = gnc_timegm(arg1);
  gswig_result = scm_from_int64(result); 
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_ctime (SCM s_0)
{
#define FUNC_NAME "gnc-ctime"
  time64 *arg1 = (time64 *) 0 ;
  time64 t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  t1 = scm_to_int64(s_0); arg1 = &t1;
  result = (gchar *)gnc_ctime((gint64 const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time (SCM s_0)
{
#define FUNC_NAME "gnc-time"
  time64 *arg1 = (time64 *) 0 ;
  time64 t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  t1 = scm_to_int64(s_0); arg1 = &t1;
  result = gnc_time(arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_difftime (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-difftime"
  time64 arg1 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gdouble result;
  
  arg1 = scm_to_int64(s_0); 
  arg2 = scm_to_int64(s_1); 
  result = (gdouble)gnc_difftime(arg1,arg2);
  {
    gswig_result = scm_from_double(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_dateformat_to_string (SCM s_0)
{
#define FUNC_NAME "gnc-date-dateformat-to-string"
  QofDateFormat arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (QofDateFormat) scm_to_int(s_0); 
  }
  result = (gchar *)gnc_date_dateformat_to_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_string_to_dateformat (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-date-string-to-dateformat"
  gchar *arg1 = (gchar *) 0 ;
  QofDateFormat *arg2 = (QofDateFormat *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (QofDateFormat *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofDateFormat, 2, 0);
  }
  result = gnc_date_string_to_dateformat((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_monthformat_to_string (SCM s_0)
{
#define FUNC_NAME "gnc-date-monthformat-to-string"
  GNCDateMonthFormat arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (GNCDateMonthFormat) scm_to_int(s_0); 
  }
  result = (gchar *)gnc_date_monthformat_to_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_string_to_monthformat (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-date-string-to-monthformat"
  gchar *arg1 = (gchar *) 0 ;
  GNCDateMonthFormat *arg2 = (GNCDateMonthFormat *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GNCDateMonthFormat *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCDateMonthFormat, 2, 0);
  }
  result = gnc_date_string_to_monthformat((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_print_time64 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-print-time64"
  time64 arg1 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  arg1 = scm_to_int64(s_0); 
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (char *)gnc_print_time64(arg1,(char const *)arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_g_date_new_today ()
{
#define FUNC_NAME "gnc-g-date-new-today"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate *result = 0 ;
  
  result = (GDate *)gnc_g_date_new_today();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GDate, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_today (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-today"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_today(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_time64 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-set-time64"
  GDate *arg1 = (GDate *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gnc_gdate_set_time64(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "timespec-equal"
  Timespec *arg1 = (Timespec *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  result = timespec_equal((struct timespec64 const *)arg1,(struct timespec64 const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_cmp (SCM s_0, SCM s_1)
{
#define FUNC_NAME "timespec-cmp"
  Timespec *arg1 = (Timespec *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  result = (gint)timespec_cmp((struct timespec64 const *)arg1,(struct timespec64 const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_diff (SCM s_0, SCM s_1)
{
#define FUNC_NAME "timespec-diff"
  Timespec *arg1 = (Timespec *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  result = timespec_diff((struct timespec64 const *)arg1,(struct timespec64 const *)arg2);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_abs (SCM s_0)
{
#define FUNC_NAME "timespec-abs"
  Timespec *arg1 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
  }
  result = timespec_abs((struct timespec64 const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespecCanonicalDayTime (SCM s_0)
{
#define FUNC_NAME "timespecCanonicalDayTime"
  Timespec arg1 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  result = timespecCanonicalDayTime(arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_time64CanonicalDayTime (SCM s_0)
{
#define FUNC_NAME "time64CanonicalDayTime"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  arg1 = scm_to_int64(s_0); 
  result = time64CanonicalDayTime(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_now ()
{
#define FUNC_NAME "timespec-now"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  result = timespec_now();
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespecFromTime64 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "timespecFromTime64"
  Timespec *arg1 = (Timespec *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  timespecFromTime64(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespecToTime64 (SCM s_0)
{
#define FUNC_NAME "timespecToTime64"
  Timespec arg1 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  result = timespecToTime64(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_time64_to_gdate (SCM s_0)
{
#define FUNC_NAME "time64-to-gdate"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate result;
  
  arg1 = scm_to_int64(s_0); 
  result = time64_to_gdate(arg1);
  {
    GDate * resultptr;
    resultptr = (GDate *) malloc(sizeof(GDate));
    memmove(resultptr, &result, sizeof(GDate));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GDate, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_timespec_to_gdate (SCM s_0)
{
#define FUNC_NAME "timespec-to-gdate"
  Timespec arg1 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate result;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  result = timespec_to_gdate(arg1);
  {
    GDate * resultptr;
    resultptr = (GDate *) malloc(sizeof(GDate));
    memmove(resultptr, &result, sizeof(GDate));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GDate, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gdate_to_timespec (SCM s_0)
{
#define FUNC_NAME "gdate-to-timespec"
  GDate arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  arg1 = gnc_time64_to_GDate(s_0);
  result = gdate_to_timespec(arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gdate_to_time64 (SCM s_0)
{
#define FUNC_NAME "gdate-to-time64"
  GDate arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  arg1 = gnc_time64_to_GDate(s_0);
  result = gdate_to_time64(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2time64 (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2time64"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2time64(arg1,arg2,arg3);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2time64_neutral (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2time64-neutral"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2time64_neutral(arg1,arg2,arg3);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2time64_end (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2time64-end"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2time64_end(arg1,arg2,arg3);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2timespec (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2timespec"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2timespec(arg1,arg2,arg3);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2timespec_end (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2timespec-end"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2timespec_end(arg1,arg2,arg3);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dmy2timespec_neutral (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dmy2timespec-neutral"
  gint arg1 ;
  gint arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (gint) scm_to_int(s_0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_dmy2timespec_neutral(arg1,arg2,arg3);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_iso8601_to_time64_gmt (SCM s_0)
{
#define FUNC_NAME "gnc-iso8601-to-time64-gmt"
  gchar *arg1 = (gchar *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = gnc_iso8601_to_time64_gmt((char const *)arg1);
  gswig_result = scm_from_int64(result); 
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timespec_to_iso8601_buff (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-timespec-to-iso8601-buff"
  Timespec arg1 ;
  gchar *arg2 = (gchar *) 0 ;
  Timespec *argp1 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (gchar *)gnc_timespec_to_iso8601_buff(arg1,arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_to_iso8601_buff (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-time64-to-iso8601-buff"
  time64 arg1 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  arg1 = scm_to_int64(s_0); 
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (gchar *)gnc_time64_to_iso8601_buff(arg1,arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_timespec2dmy (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-timespec2dmy"
  Timespec arg1 ;
  gint *arg2 = (gint *) 0 ;
  gint *arg3 = (gint *) 0 ;
  gint *arg4 = (gint *) 0 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  {
    arg2 = (gint *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_int, 2, 0);
  }
  {
    arg3 = (gint *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_int, 3, 0);
  }
  {
    arg4 = (gint *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_int, 4, 0);
  }
  gnc_timespec2dmy(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_date_format_get ()
{
#define FUNC_NAME "qof-date-format-get"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofDateFormat result;
  
  result = (QofDateFormat)qof_date_format_get();
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_date_format_set (SCM s_0)
{
#define FUNC_NAME "qof-date-format-set"
  QofDateFormat arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofDateFormat) scm_to_int(s_0); 
  }
  qof_date_format_set(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_date_format_get_string (SCM s_0)
{
#define FUNC_NAME "qof-date-format-get-string"
  QofDateFormat arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (QofDateFormat) scm_to_int(s_0); 
  }
  result = (gchar *)qof_date_format_get_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_date_text_format_get_string (SCM s_0)
{
#define FUNC_NAME "qof-date-text-format-get-string"
  QofDateFormat arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (QofDateFormat) scm_to_int(s_0); 
  }
  result = (gchar *)qof_date_text_format_get_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_date_completion_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-date-completion-set"
  QofDateCompletion arg1 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofDateCompletion) scm_to_int(s_0); 
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  qof_date_completion_set(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_dateSeparator ()
{
#define FUNC_NAME "dateSeparator"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar result;
  
  result = (gchar)dateSeparator();
  {
    gswig_result = SCM_MAKE_CHAR(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_strftime (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-strftime"
  gchar *arg1 = (gchar *) 0 ;
  gsize arg2 ;
  gchar *arg3 = (gchar *) 0 ;
  struct tm *arg4 = (struct tm *) 0 ;
  int must_free1 = 0 ;
  gsize *argp2 ;
  int must_free3 = 0 ;
  struct tm t4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gsize result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    argp2 = (gsize *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gsize, 2, 0);
    arg2 = *argp2;
  }
  {
    arg3 = (gchar *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  {
    SCM tm = s_3;
    SCM zone;
    t4.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t4.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t4.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t4.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t4.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t4.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t4.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t4.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t4.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t4.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t4.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg4 = &t4;
  }
  result = qof_strftime(arg1,arg2,(char const *)arg3,(struct tm const *)arg4);
  {
    gsize * resultptr;
    resultptr = (gsize *) malloc(sizeof(gsize));
    memmove(resultptr, &result, sizeof(gsize));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_gsize, 1);
  }
  {
    struct tm* t = arg4;
    SCM tm = s_3;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_print_date_dmy_buff (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "qof-print-date-dmy-buff"
  gchar *arg1 = (gchar *) 0 ;
  size_t arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  size_t result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (size_t) scm_to_ulong(s_1);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  {
    arg4 = (int) scm_to_int(s_3);
  }
  {
    arg5 = (int) scm_to_int(s_4);
  }
  result = qof_print_date_dmy_buff(arg1,arg2,arg3,arg4,arg5);
  {
    gswig_result = scm_from_ulong(result);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_print_date_buff (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-print-date-buff"
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  time64 arg3 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  size_t result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (size_t) scm_to_ulong(s_1);
  }
  arg3 = scm_to_int64(s_2); 
  result = qof_print_date_buff(arg1,arg2,arg3);
  {
    gswig_result = scm_from_ulong(result);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_print_gdate (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-print-gdate"
  char *arg1 = (char *) 0 ;
  size_t arg2 ;
  GDate *arg3 = (GDate *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  size_t result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (size_t) scm_to_ulong(s_1);
  }
  {
    arg3 = (GDate *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_GDate, 3, 0);
  }
  result = qof_print_gdate(arg1,arg2,(GDate const *)arg3);
  {
    gswig_result = scm_from_ulong(result);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_print_date (SCM s_0)
{
#define FUNC_NAME "qof-print-date"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  arg1 = scm_to_int64(s_0); 
  result = (char *)qof_print_date(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_print_date (SCM s_0)
{
#define FUNC_NAME "gnc-print-date"
  Timespec arg1 ;
  Timespec *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    argp1 = (Timespec *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_timespec64, 1, 0);
    arg1 = *argp1;
  }
  result = (char *)gnc_print_date(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_scan_date (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-scan-date"
  char *arg1 = (char *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  int *arg4 = (int *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (int *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_int, 2, 0);
  }
  {
    arg3 = (int *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_int, 3, 0);
  }
  {
    arg4 = (int *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_int, 4, 0);
  }
  result = qof_scan_date((char const *)arg1,arg2,arg3,arg4);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_tm_set_day_start (SCM s_0)
{
#define FUNC_NAME "gnc-tm-set-day-start"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  gnc_tm_set_day_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_tm_set_day_middle (SCM s_0)
{
#define FUNC_NAME "gnc-tm-set-day-middle"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  gnc_tm_set_day_middle(arg1);
  gswig_result = SCM_UNSPECIFIED;
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_tm_set_day_end (SCM s_0)
{
#define FUNC_NAME "gnc-tm-set-day-end"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  gnc_tm_set_day_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_day_start (SCM s_0)
{
#define FUNC_NAME "gnc-time64-get-day-start"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  arg1 = scm_to_int64(s_0); 
  result = gnc_time64_get_day_start(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_day_end (SCM s_0)
{
#define FUNC_NAME "gnc-time64-get-day-end"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  arg1 = scm_to_int64(s_0); 
  result = gnc_time64_get_day_end(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_get_last_mday (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-date-get-last-mday"
  int arg1 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (int) scm_to_int(s_0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  result = (int)gnc_date_get_last_mday(arg1,arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_tm_get_today_start (SCM s_0)
{
#define FUNC_NAME "gnc-tm-get-today-start"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  gnc_tm_get_today_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_tm_get_today_end (SCM s_0)
{
#define FUNC_NAME "gnc-tm-get-today-end"
  struct tm *arg1 = (struct tm *) 0 ;
  struct tm t1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    SCM tm = s_0;
    SCM zone;
    t1.tm_sec = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 0));
    t1.tm_min = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 1));
    t1.tm_hour = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 2));
    t1.tm_mday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 3));
    t1.tm_mon = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 4));
    t1.tm_year = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 5));
    t1.tm_wday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 6));
    t1.tm_yday = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 7));
    t1.tm_isdst = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 8));
#ifdef HAVE_STRUCT_TM_GMTOFF
    t1.tm_gmtoff = scm_to_int(SCM_SIMPLE_VECTOR_REF(tm, 9));
    zone = SCM_SIMPLE_VECTOR_REF(tm, 10);
    t1.tm_zone = SCM_UNBNDP(zone) ? NULL : scm_to_locale_string(zone);
#endif
    arg1 = &t1;
  }
  gnc_tm_get_today_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  {
    struct tm* t = arg1;
    SCM tm = s_0;
    if (t == NULL)
    {
      SCM_SIMPLE_VECTOR_SET(tm, 0, scm_from_int(t->tm_sec));
      SCM_SIMPLE_VECTOR_SET(tm, 1, scm_from_int(t->tm_min));
      SCM_SIMPLE_VECTOR_SET(tm, 2, scm_from_int(t->tm_hour));
      SCM_SIMPLE_VECTOR_SET(tm, 3, scm_from_int(t->tm_mday));
      SCM_SIMPLE_VECTOR_SET(tm, 4, scm_from_int(t->tm_mon));
      SCM_SIMPLE_VECTOR_SET(tm, 5, scm_from_int(t->tm_year));
      SCM_SIMPLE_VECTOR_SET(tm, 6, scm_from_int(t->tm_wday));
      SCM_SIMPLE_VECTOR_SET(tm, 7, scm_from_int(t->tm_yday));
      SCM_SIMPLE_VECTOR_SET(tm, 8, scm_from_int(t->tm_isdst));
#ifdef HAVE_STRUCT_TM_GMTOFF
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(t->tm_gmtoff));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string(t->tm_zone?t->tm_zone:"Unset"));
#else
      SCM_SIMPLE_VECTOR_SET(tm, 9, scm_from_long(0));
      SCM_SIMPLE_VECTOR_SET(tm, 10, scm_from_locale_string("GMT"));
#endif
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_today_start ()
{
#define FUNC_NAME "gnc-time64-get-today-start"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  result = gnc_time64_get_today_start();
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_today_end ()
{
#define FUNC_NAME "gnc-time64-get-today-end"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  result = gnc_time64_get_today_end();
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_date_timestamp ()
{
#define FUNC_NAME "gnc-date-timestamp"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  result = (char *)gnc_date_timestamp();
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_MIN_BUF_LEN(SCM s_0)
{
#define FUNC_NAME "MIN-BUF-LEN"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_MIN_BUF_LEN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_dow_abbrev (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-dow-abbrev"
  gchar *arg1 = (gchar *) 0 ;
  int arg2 ;
  int arg3 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  {
    arg3 = (int) scm_to_int(s_2);
  }
  gnc_dow_abbrev(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-equal"
  gconstpointer arg1 ;
  gconstpointer arg2 ;
  gconstpointer *argp1 ;
  gconstpointer *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    argp1 = (gconstpointer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gconstpointer, 1, 0);
    arg1 = *argp1;
  }
  {
    argp2 = (gconstpointer *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gconstpointer, 2, 0);
    arg2 = *argp2;
  }
  result = (gint)gnc_gdate_equal(arg1,arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_hash (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-hash"
  gconstpointer arg1 ;
  gconstpointer *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint result;
  
  {
    argp1 = (gconstpointer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gconstpointer, 1, 0);
    arg1 = *argp1;
  }
  result = (guint)gnc_gdate_hash(arg1);
  {
    gswig_result = scm_from_ulong(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_day_start_gdate (SCM s_0)
{
#define FUNC_NAME "gnc-time64-get-day-start-gdate"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  result = gnc_time64_get_day_start_gdate((GDate const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_time64_get_day_end_gdate (SCM s_0)
{
#define FUNC_NAME "gnc-time64-get-day-end-gdate"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  result = gnc_time64_get_day_end_gdate((GDate const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_month_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-month-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_month_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_month_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-month-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_month_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_month_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-month-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_month_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_month_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-month-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_month_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_quarter_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-quarter-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_quarter_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_quarter_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-quarter-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_quarter_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_quarter_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-quarter-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_quarter_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_quarter_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-quarter-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_quarter_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_year_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-year-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_year_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_year_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-year-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_year_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_year_start (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-year-start"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_year_start(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_year_end (SCM s_0)
{
#define FUNC_NAME "gnc-gdate-set-prev-year-end"
  GDate *arg1 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  gnc_gdate_set_prev_year_end(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_fiscal_year_start (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-set-fiscal-year-start"
  GDate *arg1 = (GDate *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gnc_gdate_set_fiscal_year_start(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_fiscal_year_end (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-set-fiscal-year-end"
  GDate *arg1 = (GDate *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gnc_gdate_set_fiscal_year_end(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_fiscal_year_start (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-set-prev-fiscal-year-start"
  GDate *arg1 = (GDate *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gnc_gdate_set_prev_fiscal_year_start(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_gdate_set_prev_fiscal_year_end (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-gdate-set-prev-fiscal-year-end"
  GDate *arg1 = (GDate *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GDate *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GDate, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gnc_gdate_set_prev_fiscal_year_end(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_guid_new_return ()
{
#define FUNC_NAME "guid-new-return"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  result = guid_new_return();
  gswig_result = gnc_guid2scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_create_for_splits ()
{
#define FUNC_NAME "qof-query-create-for-splits"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  result = (QofQuery *)qof_query_create_for_splits();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_run (SCM s_0)
{
#define FUNC_NAME "qof-query-run"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (SplitList *)qof_query_run(arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_last_run (SCM s_0)
{
#define FUNC_NAME "qof-query-last-run"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (SplitList *)qof_query_last_run(arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_run_subquery (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-run-subquery"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQuery *arg2 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofQuery *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__QofQuery, 2, 0);
  }
  result = (SplitList *)qof_query_run_subquery(arg1,(struct _QofQuery const *)arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_get_current_session ()
{
#define FUNC_NAME "gnc-get-current-session"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofSession *result = 0 ;
  
  result = (QofSession *)gnc_get_current_session();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofSession, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_clear_current_session ()
{
#define FUNC_NAME "gnc-clear-current-session"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  gnc_clear_current_session();
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_set_current_session (SCM s_0)
{
#define FUNC_NAME "gnc-set-current-session"
  QofSession *arg1 = (QofSession *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofSession *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofSession, 1, 0);
  }
  gnc_set_current_session(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_current_session_exist ()
{
#define FUNC_NAME "gnc-current-session-exist"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  result = gnc_current_session_exist();
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QUERY_TXN_MATCH_ALL(SCM s_0)
{
#define FUNC_NAME "QUERY-TXN-MATCH-ALL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QUERY_TXN_MATCH_ALL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QUERY_TXN_MATCH_ANY(SCM s_0)
{
#define FUNC_NAME "QUERY-TXN-MATCH-ANY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QUERY_TXN_MATCH_ANY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetSplitsUniqueTrans (SCM s_0)
{
#define FUNC_NAME "xaccQueryGetSplitsUniqueTrans"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SplitList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (SplitList *)xaccQueryGetSplitsUniqueTrans(arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Split, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetTransactions (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccQueryGetTransactions"
  QofQuery *arg1 = (QofQuery *) 0 ;
  query_txn_match_t arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  TransList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (query_txn_match_t) scm_to_int(s_1); 
  }
  result = (TransList *)xaccQueryGetTransactions(arg1,arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_Transaction, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetLots (SCM s_0, SCM s_1)
{
#define FUNC_NAME "xaccQueryGetLots"
  QofQuery *arg1 = (QofQuery *) 0 ;
  query_txn_match_t arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  LotList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (query_txn_match_t) scm_to_int(s_1); 
  }
  result = (LotList *)xaccQueryGetLots(arg1,arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_GNCLot, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  g_list_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddAccountMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccQueryAddAccountMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  AccountList *arg2 = (AccountList *) 0 ;
  QofGuidMatch arg3 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    SCM list = s_1;
    GList *c_list = NULL;
    
    while (!scm_is_null(list)) {
      void *p;
      
      SCM p_scm = SCM_CAR(list);
      if (scm_is_false(p_scm) || scm_is_null(p_scm))
      p = NULL;
      else
      p = SWIG_MustGetPtr(p_scm, SWIGTYPE_p_Account, 1, 0);
      
      c_list = g_list_prepend(c_list, p);
      list = SCM_CDR(list);
    }
    
    arg2 = g_list_reverse(c_list);
  }
  {
    arg3 = (QofGuidMatch) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  xaccQueryAddAccountMatch(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddAccountGUIDMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccQueryAddAccountGUIDMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  AccountGUIDList *arg2 = (AccountGUIDList *) 0 ;
  QofGuidMatch arg3 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (AccountGUIDList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_AccountGUIDList, 2, 0);
  }
  {
    arg3 = (QofGuidMatch) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  xaccQueryAddAccountGUIDMatch(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddSingleAccountMatch (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryAddSingleAccountMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  Account *arg2 = (Account *) 0 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  xaccQueryAddSingleAccountMatch(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddStringMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6)
{
#define FUNC_NAME "xaccQueryAddStringMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  char *arg7 = (char *) 0 ;
  void *arg8 = 0 ;
  int must_free2 = 0 ;
  int must_free7 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  {
    arg7 = (char *)SWIG_scm2str(s_6);
    must_free7 = 1;
  }
  xaccQueryAddStringMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,(char const *)arg7,arg8);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free7 && arg7) SWIG_free(arg7);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddDescriptionMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddDescriptionMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddDescriptionMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddNotesMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddNotesMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddNotesMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddNumberMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddNumberMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddNumberMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddActionMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddActionMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddActionMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddMemoMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddMemoMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  char *arg2 = (char *) 0 ;
  gboolean arg3 ;
  gboolean arg4 ;
  QofQueryCompare arg5 ;
  QofQueryOp arg6 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    arg5 = (QofQueryCompare) scm_to_int(s_4); 
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddMemoMatch(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddValueMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "xaccQueryAddValueMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gnc_numeric arg2 ;
  QofNumericMatch arg3 ;
  QofQueryCompare arg4 ;
  QofQueryOp arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (QofNumericMatch) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryCompare) scm_to_int(s_3); 
  }
  {
    arg5 = (QofQueryOp) scm_to_int(s_4); 
  }
  xaccQueryAddValueMatch(arg1,arg2,arg3,arg4,arg5);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddSharePriceMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccQueryAddSharePriceMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gnc_numeric arg2 ;
  QofQueryCompare arg3 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (QofQueryCompare) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  xaccQueryAddSharePriceMatch(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddSharesMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccQueryAddSharesMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gnc_numeric arg2 ;
  QofQueryCompare arg3 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (QofQueryCompare) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  xaccQueryAddSharesMatch(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddBalanceMatch (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryAddBalanceMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryCompare arg2 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofQueryCompare) scm_to_int(s_1); 
  }
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  xaccQueryAddBalanceMatch(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddNumericMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddNumericMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gnc_numeric arg2 ;
  QofNumericMatch arg3 ;
  QofQueryCompare arg4 ;
  QofQueryOp arg5 ;
  char *arg6 = (char *) 0 ;
  void *arg7 = 0 ;
  int must_free6 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (QofNumericMatch) scm_to_int(s_2); 
  }
  {
    arg4 = (QofQueryCompare) scm_to_int(s_3); 
  }
  {
    arg5 = (QofQueryOp) scm_to_int(s_4); 
  }
  {
    arg6 = (char *)SWIG_scm2str(s_5);
    must_free6 = 1;
  }
  xaccQueryAddNumericMatch(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,arg7);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free6 && arg6) SWIG_free(arg6);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddDateMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6, SCM s_7, SCM s_8, SCM s_9)
{
#define FUNC_NAME "xaccQueryAddDateMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gboolean arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  gboolean arg6 ;
  int arg7 ;
  int arg8 ;
  int arg9 ;
  QofQueryOp arg10 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  {
    arg3 = (int) scm_to_int(s_2);
  }
  {
    arg4 = (int) scm_to_int(s_3);
  }
  {
    arg5 = (int) scm_to_int(s_4);
  }
  arg6 = scm_is_true(s_5) ? TRUE : FALSE;
  {
    arg7 = (int) scm_to_int(s_6);
  }
  {
    arg8 = (int) scm_to_int(s_7);
  }
  {
    arg9 = (int) scm_to_int(s_8);
  }
  {
    arg10 = (QofQueryOp) scm_to_int(s_9); 
  }
  xaccQueryAddDateMatch(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddDateMatchTS (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddDateMatchTS"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gboolean arg2 ;
  Timespec arg3 ;
  gboolean arg4 ;
  Timespec arg5 ;
  QofQueryOp arg6 ;
  Timespec *argp3 ;
  Timespec *argp5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  {
    argp3 = (Timespec *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_timespec64, 3, 0);
    arg3 = *argp3;
  }
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  {
    argp5 = (Timespec *)SWIG_MustGetPtr(s_4, SWIGTYPE_p_timespec64, 5, 0);
    arg5 = *argp5;
  }
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddDateMatchTS(arg1,arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddDateMatchTT (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "xaccQueryAddDateMatchTT"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gboolean arg2 ;
  time64 arg3 ;
  gboolean arg4 ;
  time64 arg5 ;
  QofQueryOp arg6 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_to_int64(s_2); 
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  arg5 = scm_to_int64(s_4); 
  {
    arg6 = (QofQueryOp) scm_to_int(s_5); 
  }
  xaccQueryAddDateMatchTT(arg1,arg2,arg3,arg4,arg5,arg6);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetDateMatchTS (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryGetDateMatchTS"
  QofQuery *arg1 = (QofQuery *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  Timespec *arg3 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  {
    arg3 = (Timespec *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_timespec64, 3, 0);
  }
  xaccQueryGetDateMatchTS(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetDateMatchTT (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryGetDateMatchTT"
  QofQuery *arg1 = (QofQuery *) 0 ;
  time64 *arg2 = (time64 *) 0 ;
  time64 *arg3 = (time64 *) 0 ;
  time64 t2 ;
  time64 t3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  t2 = scm_to_int64(s_1); arg2 = &t2;
  t3 = scm_to_int64(s_2); arg3 = &t3;
  xaccQueryGetDateMatchTT(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddClosingTransMatch (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryAddClosingTransMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gboolean arg2 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  xaccQueryAddClosingTransMatch(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_NONE(SCM s_0)
{
#define FUNC_NAME "CLEARED-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_NO(SCM s_0)
{
#define FUNC_NAME "CLEARED-NO"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_NO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_CLEARED(SCM s_0)
{
#define FUNC_NAME "CLEARED-CLEARED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_CLEARED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_RECONCILED(SCM s_0)
{
#define FUNC_NAME "CLEARED-RECONCILED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_RECONCILED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_FROZEN(SCM s_0)
{
#define FUNC_NAME "CLEARED-FROZEN"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_FROZEN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_VOIDED(SCM s_0)
{
#define FUNC_NAME "CLEARED-VOIDED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_VOIDED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CLEARED_ALL(SCM s_0)
{
#define FUNC_NAME "CLEARED-ALL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_CLEARED_ALL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddClearedMatch (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "xaccQueryAddClearedMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  cleared_match_t arg2 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (cleared_match_t) scm_to_int(s_1); 
  }
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  xaccQueryAddClearedMatch(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryAddGUIDMatch (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "xaccQueryAddGUIDMatch"
  QofQuery *arg1 = (QofQuery *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  QofIdType arg3 ;
  QofQueryOp arg4 ;
  GncGUID g2 ;
  QofIdType *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  {
    argp3 = (QofIdType *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_QofIdType, 3, 0);
    arg3 = *argp3;
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  xaccQueryAddGUIDMatch(arg1,(GncGUID const *)arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetEarliestDateFound (SCM s_0)
{
#define FUNC_NAME "xaccQueryGetEarliestDateFound"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = xaccQueryGetEarliestDateFound(arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_xaccQueryGetLatestDateFound (SCM s_0)
{
#define FUNC_NAME "xaccQueryGetLatestDateFound"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = xaccQueryGetLatestDateFound(arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_MOD_QUERY(SCM s_0)
{
#define FUNC_NAME "QOF-MOD-QUERY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_MOD_QUERY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_QUERY_AND(SCM s_0)
{
#define FUNC_NAME "QOF-QUERY-AND"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_QUERY_AND);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_QUERY_OR(SCM s_0)
{
#define FUNC_NAME "QOF-QUERY-OR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_QUERY_OR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_QUERY_NAND(SCM s_0)
{
#define FUNC_NAME "QOF-QUERY-NAND"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_QUERY_NAND);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_QUERY_NOR(SCM s_0)
{
#define FUNC_NAME "QOF-QUERY-NOR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_QUERY_NOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_QUERY_XOR(SCM s_0)
{
#define FUNC_NAME "QOF-QUERY-XOR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_QUERY_XOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QUERY_DEFAULT_SORT(SCM s_0)
{
#define FUNC_NAME "QUERY-DEFAULT-SORT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QUERY_DEFAULT_SORT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_PARAM_BOOK(SCM s_0)
{
#define FUNC_NAME "QOF-PARAM-BOOK"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_PARAM_BOOK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_PARAM_GUID(SCM s_0)
{
#define FUNC_NAME "QOF-PARAM-GUID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_PARAM_GUID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_PARAM_KVP(SCM s_0)
{
#define FUNC_NAME "QOF-PARAM-KVP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_PARAM_KVP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_PARAM_ACTIVE(SCM s_0)
{
#define FUNC_NAME "QOF-PARAM-ACTIVE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_PARAM_ACTIVE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_PARAM_VERSION(SCM s_0)
{
#define FUNC_NAME "QOF-PARAM-VERSION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_QOF_PARAM_VERSION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_init ()
{
#define FUNC_NAME "qof-query-init"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  qof_query_init();
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_shutdown ()
{
#define FUNC_NAME "qof-query-shutdown"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  qof_query_shutdown();
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_build_param_list (SCM s_0)
{
#define FUNC_NAME "qof-query-build-param-list"
  char *arg1 = (char *) 0 ;
  void *arg2 = 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryParamList *result = 0 ;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = (QofQueryParamList *)qof_query_build_param_list((char const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GSList, 0);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_create ()
{
#define FUNC_NAME "qof-query-create"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  result = (QofQuery *)qof_query_create();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_create_for (SCM s_0)
{
#define FUNC_NAME "qof-query-create-for"
  QofIdTypeConst arg1 ;
  QofIdTypeConst *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  {
    argp1 = (QofIdTypeConst *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofIdTypeConst, 1, 0);
    arg1 = *argp1;
  }
  result = (QofQuery *)qof_query_create_for(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_destroy (SCM s_0)
{
#define FUNC_NAME "qof-query-destroy"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  qof_query_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_search_for (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-search-for"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofIdTypeConst arg2 ;
  QofIdTypeConst *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    argp2 = (QofIdTypeConst *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofIdTypeConst, 2, 0);
    arg2 = *argp2;
  }
  qof_query_search_for(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_set_book (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-set-book"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  qof_query_set_book(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_add_term (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-add-term"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  QofQueryPredData *arg3 = (QofQueryPredData *) 0 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  {
    arg3 = (QofQueryPredData *)SWIG_MustGetPtr(s_2, SWIGTYPE_p__QofQueryPredData, 3, 0);
  }
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  qof_query_add_term(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_add_guid_match (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-add-guid-match"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  GncGUID *arg3 = (GncGUID *) 0 ;
  QofQueryOp arg4 ;
  GncGUID g3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  g3 = gnc_scm2guid(s_2); arg3 = &g3; 
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  qof_query_add_guid_match(arg1,arg2,(GncGUID const *)arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_add_guid_list_match (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4)
{
#define FUNC_NAME "qof-query-add-guid-list-match"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  GList *arg3 = (GList *) 0 ;
  QofGuidMatch arg4 ;
  QofQueryOp arg5 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  {
    arg3 = (GList *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_GList, 3, 0);
  }
  {
    arg4 = (QofGuidMatch) scm_to_int(s_3); 
  }
  {
    arg5 = (QofQueryOp) scm_to_int(s_4); 
  }
  qof_query_add_guid_list_match(arg1,arg2,arg3,arg4,arg5);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_add_boolean_match (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-add-boolean-match"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  gboolean arg3 ;
  QofQueryOp arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  {
    arg4 = (QofQueryOp) scm_to_int(s_3); 
  }
  qof_query_add_boolean_match(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_clear (SCM s_0)
{
#define FUNC_NAME "qof-query-clear"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  qof_query_clear(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_purge_terms (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-purge-terms"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  qof_query_purge_terms(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_has_terms (SCM s_0)
{
#define FUNC_NAME "qof-query-has-terms"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (int)qof_query_has_terms(arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_num_terms (SCM s_0)
{
#define FUNC_NAME "qof-query-num-terms"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (int)qof_query_num_terms(arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_has_term_type (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-has-term-type"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  result = qof_query_has_term_type(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_get_term_type (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-get-term-type"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GSList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  result = (GSList *)qof_query_get_term_type(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GSList, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_copy (SCM s_0)
{
#define FUNC_NAME "qof-query-copy"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (QofQuery *)qof_query_copy(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_invert (SCM s_0)
{
#define FUNC_NAME "qof-query-invert"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (QofQuery *)qof_query_invert(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_merge (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-query-merge"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQuery *arg2 = (QofQuery *) 0 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofQuery *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__QofQuery, 2, 0);
  }
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  result = (QofQuery *)qof_query_merge(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_merge_in_place (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-query-merge-in-place"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQuery *arg2 = (QofQuery *) 0 ;
  QofQueryOp arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofQuery *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__QofQuery, 2, 0);
  }
  {
    arg3 = (QofQueryOp) scm_to_int(s_2); 
  }
  qof_query_merge_in_place(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_set_sort_order (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-set-sort-order"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQueryParamList *arg2 = (QofQueryParamList *) 0 ;
  QofQueryParamList *arg3 = (QofQueryParamList *) 0 ;
  QofQueryParamList *arg4 = (QofQueryParamList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = gnc_query_scm2path(s_1);
  arg3 = gnc_query_scm2path(s_2);
  arg4 = gnc_query_scm2path(s_3);
  qof_query_set_sort_order(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_set_sort_options (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-set-sort-options"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gint arg2 ;
  gint arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  qof_query_set_sort_options(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_set_sort_increasing (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-set-sort-increasing"
  QofQuery *arg1 = (QofQuery *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  qof_query_set_sort_increasing(arg1,arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_set_max_results (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-set-max-results"
  QofQuery *arg1 = (QofQuery *) 0 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  qof_query_set_max_results(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-equal"
  QofQuery *arg1 = (QofQuery *) 0 ;
  QofQuery *arg2 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  {
    arg2 = (QofQuery *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__QofQuery, 2, 0);
  }
  result = qof_query_equal((struct _QofQuery const *)arg1,(struct _QofQuery const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_print (SCM s_0)
{
#define FUNC_NAME "qof-query-print"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  qof_query_print(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_get_search_for (SCM s_0)
{
#define FUNC_NAME "qof-query-get-search-for"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofIdType result;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = qof_query_get_search_for((struct _QofQuery const *)arg1);
  {
    QofIdType * resultptr;
    resultptr = (QofIdType *) malloc(sizeof(QofIdType));
    memmove(resultptr, &result, sizeof(QofIdType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofIdType, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_get_books (SCM s_0)
{
#define FUNC_NAME "qof-query-get-books"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (GList *)qof_query_get_books(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_LT(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-LT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_LT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_LTE(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-LTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_LTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_EQUAL(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-EQUAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_EQUAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_GT(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-GT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_GT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_GTE(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-GTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_GTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_NEQ(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-NEQ"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_NEQ);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_CONTAINS(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-CONTAINS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_CONTAINS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_COMPARE_NCONTAINS(SCM s_0)
{
#define FUNC_NAME "QOF-COMPARE-NCONTAINS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_COMPARE_NCONTAINS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_STRING_MATCH_NORMAL(SCM s_0)
{
#define FUNC_NAME "QOF-STRING-MATCH-NORMAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_STRING_MATCH_NORMAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_STRING_MATCH_CASEINSENSITIVE(SCM s_0)
{
#define FUNC_NAME "QOF-STRING-MATCH-CASEINSENSITIVE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_STRING_MATCH_CASEINSENSITIVE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_MATCH_NORMAL(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-MATCH-NORMAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_MATCH_NORMAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_DATE_MATCH_DAY(SCM s_0)
{
#define FUNC_NAME "QOF-DATE-MATCH-DAY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_DATE_MATCH_DAY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_NUMERIC_MATCH_DEBIT(SCM s_0)
{
#define FUNC_NAME "QOF-NUMERIC-MATCH-DEBIT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_NUMERIC_MATCH_DEBIT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_NUMERIC_MATCH_CREDIT(SCM s_0)
{
#define FUNC_NAME "QOF-NUMERIC-MATCH-CREDIT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_NUMERIC_MATCH_CREDIT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_NUMERIC_MATCH_ANY(SCM s_0)
{
#define FUNC_NAME "QOF-NUMERIC-MATCH-ANY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_NUMERIC_MATCH_ANY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_GUID_MATCH_ANY(SCM s_0)
{
#define FUNC_NAME "QOF-GUID-MATCH-ANY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_GUID_MATCH_ANY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_GUID_MATCH_NONE(SCM s_0)
{
#define FUNC_NAME "QOF-GUID-MATCH-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_GUID_MATCH_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_GUID_MATCH_NULL(SCM s_0)
{
#define FUNC_NAME "QOF-GUID-MATCH-NULL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_GUID_MATCH_NULL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_GUID_MATCH_ALL(SCM s_0)
{
#define FUNC_NAME "QOF-GUID-MATCH-ALL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_GUID_MATCH_ALL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_GUID_MATCH_LIST_ANY(SCM s_0)
{
#define FUNC_NAME "QOF-GUID-MATCH-LIST-ANY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_GUID_MATCH_LIST_ANY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_CHAR_MATCH_ANY(SCM s_0)
{
#define FUNC_NAME "QOF-CHAR-MATCH-ANY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_CHAR_MATCH_ANY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_QOF_CHAR_MATCH_NONE(SCM s_0)
{
#define FUNC_NAME "QOF-CHAR-MATCH-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_QOF_CHAR_MATCH_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__QofQueryPredData_type_name_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-QofQueryPredData-type-name-set"
  struct _QofQueryPredData *arg1 = (struct _QofQueryPredData *) 0 ;
  QofType arg2 ;
  QofType *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  {
    argp2 = (QofType *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofType, 2, 0);
    arg2 = *argp2;
  }
  if (arg1) (arg1)->type_name = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__QofQueryPredData_type_name_get (SCM s_0)
{
#define FUNC_NAME "-QofQueryPredData-type-name-get"
  struct _QofQueryPredData *arg1 = (struct _QofQueryPredData *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofType result;
  
  {
    arg1 = (struct _QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  result =  ((arg1)->type_name);
  {
    QofType * resultptr;
    resultptr = (QofType *) malloc(sizeof(QofType));
    memmove(resultptr, &result, sizeof(QofType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofType, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__QofQueryPredData_how_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-QofQueryPredData-how-set"
  struct _QofQueryPredData *arg1 = (struct _QofQueryPredData *) 0 ;
  QofQueryCompare arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  {
    arg2 = (QofQueryCompare) scm_to_int(s_1); 
  }
  if (arg1) (arg1)->how = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__QofQueryPredData_how_get (SCM s_0)
{
#define FUNC_NAME "-QofQueryPredData-how-get"
  struct _QofQueryPredData *arg1 = (struct _QofQueryPredData *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryCompare result;
  
  {
    arg1 = (struct _QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  result = (QofQueryCompare) ((arg1)->how);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new__QofQueryPredData ()
{
#define FUNC_NAME "new--QofQueryPredData"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct _QofQueryPredData *result = 0 ;
  
  result = (struct _QofQueryPredData *)calloc(1, sizeof(struct _QofQueryPredData));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete__QofQueryPredData (SCM s_0)
{
#define FUNC_NAME "delete--QofQueryPredData"
  struct _QofQueryPredData *arg1 = (struct _QofQueryPredData *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_string_predicate (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-query-string-predicate"
  QofQueryCompare arg1 ;
  gchar *arg2 = (gchar *) 0 ;
  QofStringMatch arg3 ;
  gboolean arg4 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (QofStringMatch) scm_to_int(s_2); 
  }
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = (QofQueryPredData *)qof_query_string_predicate(arg1,(char const *)arg2,arg3,arg4);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_date_predicate (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-query-date-predicate"
  QofQueryCompare arg1 ;
  QofDateMatch arg2 ;
  Timespec arg3 ;
  Timespec *argp3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  {
    arg2 = (QofDateMatch) scm_to_int(s_1); 
  }
  {
    argp3 = (Timespec *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_timespec64, 3, 0);
    arg3 = *argp3;
  }
  result = (QofQueryPredData *)qof_query_date_predicate(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_numeric_predicate (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-query-numeric-predicate"
  QofQueryCompare arg1 ;
  QofNumericMatch arg2 ;
  gnc_numeric arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  {
    arg2 = (QofNumericMatch) scm_to_int(s_1); 
  }
  arg3 = gnc_scm_to_numeric(s_2);
  result = (QofQueryPredData *)qof_query_numeric_predicate(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_guid_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-guid-predicate"
  QofGuidMatch arg1 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofGuidMatch) scm_to_int(s_0); 
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  result = (QofQueryPredData *)qof_query_guid_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_int32_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-int32-predicate"
  QofQueryCompare arg1 ;
  gint32 arg2 ;
  gint32 *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  {
    argp2 = (gint32 *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gint32, 2, 0);
    arg2 = *argp2;
  }
  result = (QofQueryPredData *)qof_query_int32_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_int64_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-int64-predicate"
  QofQueryCompare arg1 ;
  gint64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  arg2 = scm_to_int64(s_1); 
  result = (QofQueryPredData *)qof_query_int64_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_double_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-double-predicate"
  QofQueryCompare arg1 ;
  double arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  {
    arg2 = (double) scm_to_double(s_1);
  }
  result = (QofQueryPredData *)qof_query_double_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_boolean_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-boolean-predicate"
  QofQueryCompare arg1 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryCompare) scm_to_int(s_0); 
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (QofQueryPredData *)qof_query_boolean_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_char_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-char-predicate"
  QofCharMatch arg1 ;
  gchar *arg2 = (gchar *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofCharMatch) scm_to_int(s_0); 
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (QofQueryPredData *)qof_query_char_predicate(arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_collect_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-collect-predicate"
  QofGuidMatch arg1 ;
  QofCollection *arg2 = (QofCollection *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofGuidMatch) scm_to_int(s_0); 
  }
  {
    arg2 = (QofCollection *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofCollection, 2, 0);
  }
  result = (QofQueryPredData *)qof_query_collect_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_choice_predicate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-choice-predicate"
  QofGuidMatch arg1 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofGuidMatch) scm_to_int(s_0); 
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  result = (QofQueryPredData *)qof_query_choice_predicate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_core_predicate_copy (SCM s_0)
{
#define FUNC_NAME "qof-query-core-predicate-copy"
  QofQueryPredData *arg1 = (QofQueryPredData *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQueryPredData *result = 0 ;
  
  {
    arg1 = (QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  result = (QofQueryPredData *)qof_query_core_predicate_copy((struct _QofQueryPredData const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQueryPredData, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_core_predicate_free (SCM s_0)
{
#define FUNC_NAME "qof-query-core-predicate-free"
  QofQueryPredData *arg1 = (QofQueryPredData *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  qof_query_core_predicate_free(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_date_predicate_get_date (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-query-date-predicate-get-date"
  QofQueryPredData *arg1 = (QofQueryPredData *) 0 ;
  Timespec *arg2 = (Timespec *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofQueryPredData *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQueryPredData, 1, 0);
  }
  {
    arg2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
  }
  result = qof_query_date_predicate_get_date((struct _QofQueryPredData const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_core_to_string (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-query-core-to-string"
  QofType arg1 ;
  gpointer arg2 = (gpointer) 0 ;
  QofParam *arg3 = (QofParam *) 0 ;
  QofType *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    argp1 = (QofType *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofType, 1, 0);
    arg1 = *argp1;
  }
  {
    arg2 = (gpointer)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  {
    arg3 = (QofParam *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_QofParam, 3, 0);
  }
  result = (char *)qof_query_core_to_string(arg1,arg2,arg3);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_string_number_compare_func (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "qof-string-number-compare-func"
  gpointer arg1 = (gpointer) 0 ;
  gpointer arg2 = (gpointer) 0 ;
  gint arg3 ;
  QofParam *arg4 = (QofParam *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (gpointer)SWIG_MustGetPtr(s_0, NULL, 1, 0);
  }
  {
    arg2 = (gpointer)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  {
    arg4 = (QofParam *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_QofParam, 4, 0);
  }
  result = (int)qof_string_number_compare_func(arg1,arg2,arg3,arg4);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_KVP_OPTION_PATH(SCM s_0)
{
#define FUNC_NAME "KVP-OPTION-PATH"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_KVP_OPTION_PATH);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_SECTION_ACCOUNTS(SCM s_0)
{
#define FUNC_NAME "OPTION-SECTION-ACCOUNTS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_SECTION_ACCOUNTS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_TRADING_ACCOUNTS(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-TRADING-ACCOUNTS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_TRADING_ACCOUNTS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_CURRENCY_ACCOUNTING(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-CURRENCY-ACCOUNTING"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_CURRENCY_ACCOUNTING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_BOOK_CURRENCY(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-BOOK-CURRENCY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_BOOK_CURRENCY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_DEFAULT_GAINS_POLICY(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-DEFAULT-GAINS-POLICY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_DEFAULT_GAINS_POLICY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-DEFAULT-GAINS-LOSS-ACCT-GUID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_AUTO_READONLY_DAYS(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-AUTO-READONLY-DAYS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_AUTO_READONLY_DAYS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_NUM_FIELD_SOURCE(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-NUM-FIELD-SOURCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_NUM_FIELD_SOURCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_SECTION_BUDGETING(SCM s_0)
{
#define FUNC_NAME "OPTION-SECTION-BUDGETING"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_SECTION_BUDGETING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OPTION_NAME_DEFAULT_BUDGET(SCM s_0)
{
#define FUNC_NAME "OPTION-NAME-DEFAULT-BUDGET"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OPTION_NAME_DEFAULT_BUDGET);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_use_trading_accounts (SCM s_0)
{
#define FUNC_NAME "qof-book-use-trading-accounts"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = qof_book_use_trading_accounts((QofBook const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_book_currency_name (SCM s_0)
{
#define FUNC_NAME "qof-book-get-book-currency-name"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (gchar *)qof_book_get_book_currency_name(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_default_gains_policy (SCM s_0)
{
#define FUNC_NAME "qof-book-get-default-gains-policy"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (gchar *)qof_book_get_default_gains_policy(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_default_gain_loss_acct_guid (SCM s_0)
{
#define FUNC_NAME "qof-book-get-default-gain-loss-acct-guid"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncGUID *)qof_book_get_default_gain_loss_acct_guid(arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_uses_autoreadonly (SCM s_0)
{
#define FUNC_NAME "qof-book-uses-autoreadonly"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = qof_book_uses_autoreadonly((QofBook const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_num_days_autoreadonly (SCM s_0)
{
#define FUNC_NAME "qof-book-get-num-days-autoreadonly"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (gint)qof_book_get_num_days_autoreadonly((QofBook const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_autoreadonly_gdate (SCM s_0)
{
#define FUNC_NAME "qof-book-get-autoreadonly-gdate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GDate *)qof_book_get_autoreadonly_gdate((QofBook const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GDate, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_use_split_action_for_num_field (SCM s_0)
{
#define FUNC_NAME "qof-book-use-split-action-for-num-field"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = qof_book_use_split_action_for_num_field((QofBook const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_shutting_down (SCM s_0)
{
#define FUNC_NAME "qof-book-shutting-down"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = qof_book_shutting_down((QofBook const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_session_not_saved (SCM s_0)
{
#define FUNC_NAME "qof-book-session-not-saved"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = qof_book_session_not_saved((QofBook const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_numeric_num_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gnc-numeric-num-set"
  struct _gnc_numeric *arg1 = (struct _gnc_numeric *) 0 ;
  gint64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  if (arg1) (arg1)->num = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_numeric_num_get (SCM s_0)
{
#define FUNC_NAME "-gnc-numeric-num-get"
  struct _gnc_numeric *arg1 = (struct _gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (struct _gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  result =  ((arg1)->num);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_numeric_denom_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gnc-numeric-denom-set"
  struct _gnc_numeric *arg1 = (struct _gnc_numeric *) 0 ;
  gint64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  if (arg1) (arg1)->denom = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_numeric_denom_get (SCM s_0)
{
#define FUNC_NAME "-gnc-numeric-denom-get"
  struct _gnc_numeric *arg1 = (struct _gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (struct _gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  result =  ((arg1)->denom);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new__gnc_numeric ()
{
#define FUNC_NAME "new--gnc-numeric"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct _gnc_numeric *result = 0 ;
  
  result = (struct _gnc_numeric *)calloc(1, sizeof(struct _gnc_numeric));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gnc_numeric, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete__gnc_numeric (SCM s_0)
{
#define FUNC_NAME "delete--gnc-numeric"
  struct _gnc_numeric *arg1 = (struct _gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_NUMERIC_RND_MASK(SCM s_0)
{
#define FUNC_NAME "GNC-NUMERIC-RND-MASK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_NUMERIC_RND_MASK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_NUMERIC_DENOM_MASK(SCM s_0)
{
#define FUNC_NAME "GNC-NUMERIC-DENOM-MASK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_NUMERIC_DENOM_MASK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_NUMERIC_SIGFIGS_MASK(SCM s_0)
{
#define FUNC_NAME "GNC-NUMERIC-SIGFIGS-MASK"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_NUMERIC_SIGFIGS_MASK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_FLOOR(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-FLOOR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_FLOOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_CEIL(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-CEIL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_CEIL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_TRUNC(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-TRUNC"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_TRUNC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_PROMOTE(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-PROMOTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_PROMOTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_ROUND_HALF_DOWN(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-ROUND-HALF-DOWN"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_ROUND_HALF_DOWN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_ROUND_HALF_UP(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-ROUND-HALF-UP"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_ROUND_HALF_UP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_ROUND(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-ROUND"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_ROUND);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_RND_NEVER(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-RND-NEVER"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_RND_NEVER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_DENOM_EXACT(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-DENOM-EXACT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_DENOM_EXACT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_DENOM_REDUCE(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-DENOM-REDUCE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_DENOM_REDUCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_DENOM_LCD(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-DENOM-LCD"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_DENOM_LCD);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_DENOM_FIXED(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-DENOM-FIXED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_DENOM_FIXED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_HOW_DENOM_SIGFIG(SCM s_0)
{
#define FUNC_NAME "GNC-HOW-DENOM-SIGFIG"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_HOW_DENOM_SIGFIG);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_create (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-create"
  gint64 arg1 ;
  gint64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = scm_to_int64(s_0); 
  arg2 = scm_to_int64(s_1); 
  result = gnc_numeric_create(arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_zero ()
{
#define FUNC_NAME "gnc-numeric-zero"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  result = gnc_numeric_zero();
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_double_to_gnc_numeric (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "double-to-gnc-numeric"
  double arg1 ;
  gint64 arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (double) scm_to_double(s_0);
  }
  arg2 = scm_to_int64(s_1); 
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = double_to_gnc_numeric(arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_string_to_gnc_numeric (SCM s_0, SCM s_1)
{
#define FUNC_NAME "string-to-gnc-numeric"
  gchar *arg1 = (gchar *) 0 ;
  gnc_numeric *arg2 = (gnc_numeric *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (gnc_numeric *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gnc_numeric, 2, 0);
  }
  result = string_to_gnc_numeric((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_error (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-error"
  GNCNumericErrorCode arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GNCNumericErrorCode) scm_to_int(s_0); 
  }
  result = gnc_numeric_error(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_errorCode_to_string (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-errorCode-to-string"
  GNCNumericErrorCode arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GNCNumericErrorCode) scm_to_int(s_0); 
  }
  result = (char *)gnc_numeric_errorCode_to_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_num (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-num"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_num(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_denom (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-denom"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_denom(arg1);
  gswig_result = scm_from_int64(result); 
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_to_double (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-to-double"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gdouble result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = (gdouble)gnc_numeric_to_double(arg1);
  {
    gswig_result = scm_from_double(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_to_string (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-to-string"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = (gchar *)gnc_numeric_to_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  g_free(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_num_dbg_to_string (SCM s_0)
{
#define FUNC_NAME "gnc-num-dbg-to-string"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = (gchar *)gnc_num_dbg_to_string(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_check (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-check"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCNumericErrorCode result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = (GNCNumericErrorCode)gnc_numeric_check(arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_compare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-compare"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  result = (gint)gnc_numeric_compare(arg1,arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_zero_p (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-zero-p"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_zero_p(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_negative_p (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-negative-p"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_negative_p(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_positive_p (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-positive-p"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_positive_p(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_eq (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-eq"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  result = gnc_numeric_eq(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-equal"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  result = gnc_numeric_equal(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_same (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-numeric-same"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  gint64 arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_to_int64(s_2); 
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  result = (gint)gnc_numeric_same(arg1,arg2,arg3,arg4);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_add (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-numeric-add"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  gint64 arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_to_int64(s_2); 
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  result = gnc_numeric_add(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_sub (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-numeric-sub"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  gint64 arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_to_int64(s_2); 
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  result = gnc_numeric_sub(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_mul (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-numeric-mul"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  gint64 arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_to_int64(s_2); 
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  result = gnc_numeric_mul(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_div (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-numeric-div"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  gint64 arg3 ;
  gint arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_to_int64(s_2); 
  {
    arg4 = (gint) scm_to_int(s_3);
  }
  result = gnc_numeric_div(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_neg (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-neg"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_neg(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_abs (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-abs"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_abs(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_add_fixed (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-add-fixed"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  result = gnc_numeric_add_fixed(arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_sub_fixed (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-sub-fixed"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  result = gnc_numeric_sub_fixed(arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_convert (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-numeric-convert"
  gnc_numeric arg1 ;
  gint64 arg2 ;
  gint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = scm_to_int64(s_1); 
  {
    arg3 = (gint) scm_to_int(s_2);
  }
  result = gnc_numeric_convert(arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_reduce (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-reduce"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_reduce(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_to_decimal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-numeric-to-decimal"
  gnc_numeric *arg1 = (gnc_numeric *) 0 ;
  guint8 *arg2 = (guint8 *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_numeric *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_numeric, 1, 0);
  }
  {
    arg2 = (guint8 *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_guint8, 2, 0);
  }
  result = gnc_numeric_to_decimal(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_invert (SCM s_0)
{
#define FUNC_NAME "gnc-numeric-invert"
  gnc_numeric arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  arg1 = gnc_scm_to_numeric(s_0);
  result = gnc_numeric_invert(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_numeric_get_type ()
{
#define FUNC_NAME "gnc-numeric-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_numeric_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_type ()
{
#define FUNC_NAME "gnc-budget-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_budget_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BUDGET_MAX_NUM_PERIODS_DIGITS(SCM s_0)
{
#define FUNC_NAME "GNC-BUDGET-MAX-NUM-PERIODS-DIGITS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_BUDGET_MAX_NUM_PERIODS_DIGITS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_register ()
{
#define FUNC_NAME "gnc-budget-register"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  result = gnc_budget_register();
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_new (SCM s_0)
{
#define FUNC_NAME "gnc-budget-new"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBudget *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncBudget *)gnc_budget_new(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_budget_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-budget-destroy"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  gnc_budget_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_begin_edit (SCM s_0)
{
#define FUNC_NAME "gnc-budget-begin-edit"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  gnc_budget_begin_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_commit_edit (SCM s_0)
{
#define FUNC_NAME "gnc-budget-commit-edit"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  gnc_budget_commit_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_clone (SCM s_0)
{
#define FUNC_NAME "gnc-budget-clone"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBudget *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (GncBudget *)gnc_budget_clone((struct budget_s const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_budget_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_guid (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-guid"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (GncGUID *)gnc_budget_get_guid((struct budget_s const *)arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_set_name (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-set-name"
  GncBudget *arg1 = (GncBudget *) 0 ;
  gchar *arg2 = (gchar *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_budget_set_name(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_name (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-name"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (gchar *)gnc_budget_get_name((struct budget_s const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_set_description (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-set-description"
  GncBudget *arg1 = (GncBudget *) 0 ;
  gchar *arg2 = (gchar *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (gchar *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_budget_set_description(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_description (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-description"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (gchar *)gnc_budget_get_description((struct budget_s const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_set_num_periods (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-set-num-periods"
  GncBudget *arg1 = (GncBudget *) 0 ;
  guint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (guint) scm_to_uint(s_1);
  }
  gnc_budget_set_num_periods(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_num_periods (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-num-periods"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (guint)gnc_budget_get_num_periods((struct budget_s const *)arg1);
  {
    gswig_result = scm_from_ulong(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_set_recurrence (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-set-recurrence"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Recurrence *arg2 = (Recurrence *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Recurrence *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Recurrence, 2, 0);
  }
  gnc_budget_set_recurrence(arg1,(Recurrence const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_recurrence (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-recurrence"
  GncBudget *arg1 = (GncBudget *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Recurrence *result = 0 ;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  result = (Recurrence *)gnc_budget_get_recurrence((struct budget_s const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Recurrence, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_period_start_date (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-get-period-start-date"
  GncBudget *arg1 = (GncBudget *) 0 ;
  guint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (guint) scm_to_uint(s_1);
  }
  result = gnc_budget_get_period_start_date((struct budget_s const *)arg1,arg2);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_period_end_date (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-get-period-end-date"
  GncBudget *arg1 = (GncBudget *) 0 ;
  guint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (guint) scm_to_uint(s_1);
  }
  result = gnc_budget_get_period_end_date((struct budget_s const *)arg1,arg2);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_set_account_period_value (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gnc-budget-set-account-period-value"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Account *arg2 = (Account *) 0 ;
  guint arg3 ;
  gnc_numeric arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (guint) scm_to_uint(s_2);
  }
  arg4 = gnc_scm_to_numeric(s_3);
  gnc_budget_set_account_period_value(arg1,(Account const *)arg2,arg3,arg4);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_unset_account_period_value (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-budget-unset-account-period-value"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Account *arg2 = (Account *) 0 ;
  guint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (guint) scm_to_uint(s_2);
  }
  gnc_budget_unset_account_period_value(arg1,(Account const *)arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_is_account_period_value_set (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-budget-is-account-period-value-set"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Account *arg2 = (Account *) 0 ;
  guint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (guint) scm_to_uint(s_2);
  }
  result = gnc_budget_is_account_period_value_set((struct budget_s const *)arg1,(Account const *)arg2,arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_account_period_value (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-budget-get-account-period-value"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Account *arg2 = (Account *) 0 ;
  guint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (guint) scm_to_uint(s_2);
  }
  result = gnc_budget_get_account_period_value((struct budget_s const *)arg1,(Account const *)arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_account_period_actual_value (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-budget-get-account-period-actual-value"
  GncBudget *arg1 = (GncBudget *) 0 ;
  Account *arg2 = (Account *) 0 ;
  guint arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncBudget *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_budget_s, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  {
    arg3 = (guint) scm_to_uint(s_2);
  }
  result = gnc_budget_get_account_period_actual_value((struct budget_s const *)arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_get_default (SCM s_0)
{
#define FUNC_NAME "gnc-budget-get-default"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBudget *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncBudget *)gnc_budget_get_default(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_budget_s, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_budget_lookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-budget-lookup"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBudget *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncBudget *)gnc_budget_lookup((GncGUID const *)arg1,(QofBook const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_budget_s, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_set_fq_installed (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-quote-source-set-fq-installed"
  char *arg1 = (char *) 0 ;
  GList *arg2 = (GList *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    SCM path_scm = s_1;
    GList *path = NULL;
    
    while (!scm_is_null (path_scm))
    {
      SCM key_scm = SCM_CAR (path_scm);
      char *key;
      gchar* gkey;
      
      if (!scm_is_string (key_scm))
      break;
      
      key = scm_to_locale_string (key_scm);
      gkey = g_strdup (key);
      free (key);
      
      path = g_list_prepend (path, gkey);
      
      path_scm = SCM_CDR (path_scm);
    }
    
    arg2 = g_list_reverse (path);
  }
  gnc_quote_source_set_fq_installed((char const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_type ()
{
#define FUNC_NAME "gnc-commodity-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_commodity_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_namespace_get_type ()
{
#define FUNC_NAME "gnc-commodity-namespace-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_commodity_namespace_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_TABLE(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-TABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_TABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_LEGACY(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-LEGACY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_LEGACY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_TEMPLATE(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-TEMPLATE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_TEMPLATE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_ISO(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-ISO"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_ISO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_CURRENCY(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-CURRENCY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_CURRENCY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_NASDAQ(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-NASDAQ"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_NASDAQ);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_NYSE(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-NYSE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_NYSE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_EUREX(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-EUREX"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_EUREX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_MUTUAL(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-MUTUAL"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_MUTUAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_AMEX(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-AMEX"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_AMEX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_ASX(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-ASX"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_ASX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_COMMODITY_NS_ISO_GUI(SCM s_0)
{
#define FUNC_NAME "GNC-COMMODITY-NS-ISO-GUI"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_COMMODITY_NS_ISO_GUI);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SOURCE_SINGLE(SCM s_0)
{
#define FUNC_NAME "SOURCE-SINGLE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_SOURCE_SINGLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SOURCE_MULTI(SCM s_0)
{
#define FUNC_NAME "SOURCE-MULTI"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_SOURCE_MULTI);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SOURCE_UNKNOWN(SCM s_0)
{
#define FUNC_NAME "SOURCE-UNKNOWN"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_SOURCE_UNKNOWN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SOURCE_MAX(SCM s_0)
{
#define FUNC_NAME "SOURCE-MAX"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_SOURCE_MAX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_SOURCE_CURRENCY(SCM s_0)
{
#define FUNC_NAME "SOURCE-CURRENCY"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_SOURCE_CURRENCY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_fq_installed ()
{
#define FUNC_NAME "gnc-quote-source-fq-installed"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  result = gnc_quote_source_fq_installed();
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_fq_version ()
{
#define FUNC_NAME "gnc-quote-source-fq-version"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  result = (char *)gnc_quote_source_fq_version();
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_num_entries (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-num-entries"
  QuoteSourceType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (QuoteSourceType) scm_to_int(s_0); 
  }
  result = (gint)gnc_quote_source_num_entries(arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_add_new (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-quote-source-add-new"
  char *arg1 = (char *) 0 ;
  gboolean arg2 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_quote_source *result = 0 ;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (gnc_quote_source *)gnc_quote_source_add_new((char const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_quote_source, 0);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_lookup_by_internal (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-lookup-by-internal"
  char *arg1 = (char *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_quote_source *result = 0 ;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = (gnc_quote_source *)gnc_quote_source_lookup_by_internal((char const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_quote_source, 0);
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_lookup_by_ti (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-quote-source-lookup-by-ti"
  QuoteSourceType arg1 ;
  gint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_quote_source *result = 0 ;
  
  {
    arg1 = (QuoteSourceType) scm_to_int(s_0); 
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  result = (gnc_quote_source *)gnc_quote_source_lookup_by_ti(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_quote_source, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_get_supported (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-get-supported"
  gnc_quote_source *arg1 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_quote_source *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_quote_source, 1, 0);
  }
  result = gnc_quote_source_get_supported((gnc_quote_source const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_get_type (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-get-type"
  gnc_quote_source *arg1 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QuoteSourceType result;
  
  {
    arg1 = (gnc_quote_source *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_quote_source, 1, 0);
  }
  result = (QuoteSourceType)gnc_quote_source_get_type((gnc_quote_source const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_get_index (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-get-index"
  gnc_quote_source *arg1 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (gnc_quote_source *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_quote_source, 1, 0);
  }
  result = (gint)gnc_quote_source_get_index((gnc_quote_source const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_get_user_name (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-get-user-name"
  gnc_quote_source *arg1 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_quote_source *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_quote_source, 1, 0);
  }
  result = (char *)gnc_quote_source_get_user_name((gnc_quote_source const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_quote_source_get_internal_name (SCM s_0)
{
#define FUNC_NAME "gnc-quote-source-get-internal-name"
  gnc_quote_source *arg1 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_quote_source *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_quote_source, 1, 0);
  }
  result = (char *)gnc_quote_source_get_internal_name((gnc_quote_source const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_new (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5)
{
#define FUNC_NAME "gnc-commodity-new"
  QofBook *arg1 = (QofBook *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  int must_free4 = 0 ;
  int must_free5 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  {
    arg4 = (char *)SWIG_scm2str(s_3);
    must_free4 = 1;
  }
  {
    arg5 = (char *)SWIG_scm2str(s_4);
    must_free5 = 1;
  }
  {
    arg6 = (int) scm_to_int(s_5);
  }
  result = (gnc_commodity *)gnc_commodity_new(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  if (must_free4 && arg4) SWIG_free(arg4);
  if (must_free5 && arg5) SWIG_free(arg5);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-destroy"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  gnc_commodity_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_copy (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-copy"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gnc_commodity_copy(arg1,(gnc_commodity const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_clone (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-clone"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (gnc_commodity *)gnc_commodity_clone((gnc_commodity const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_mnemonic (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-mnemonic"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_mnemonic((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_namespace (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-namespace"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_namespace((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_namespace_ds (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-namespace-ds"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity_namespace *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (gnc_commodity_namespace *)gnc_commodity_get_namespace_ds((gnc_commodity const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity_namespace, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_fullname (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-fullname"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_fullname((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_printname (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-printname"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_printname((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_cusip (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-cusip"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_cusip((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_unique_name (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-unique-name"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_unique_name((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_fraction (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-fraction"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (int)gnc_commodity_get_fraction((gnc_commodity const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_quote_flag (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-quote-flag"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = gnc_commodity_get_quote_flag((gnc_commodity const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_quote_source (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-quote-source"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_quote_source *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (gnc_quote_source *)gnc_commodity_get_quote_source((gnc_commodity const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_quote_source, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_default_quote_source (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-default-quote-source"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_quote_source *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (gnc_quote_source *)gnc_commodity_get_default_quote_source((gnc_commodity const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_quote_source, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_quote_tz (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-quote-tz"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_quote_tz((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_user_symbol (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-user-symbol"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_user_symbol((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_default_symbol (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-default-symbol"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_default_symbol((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_get_nice_symbol (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-get-nice-symbol"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = (char *)gnc_commodity_get_nice_symbol((gnc_commodity const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_mnemonic (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-mnemonic"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_mnemonic(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_namespace (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-namespace"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_namespace(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_fullname (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-fullname"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_fullname(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_cusip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-cusip"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_cusip(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_fraction (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-fraction"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  int arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (int) scm_to_int(s_1);
  }
  gnc_commodity_set_fraction(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_user_set_quote_flag (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-user-set-quote-flag"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gnc_commodity_user_set_quote_flag(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_quote_flag (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-quote-flag"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gnc_commodity_set_quote_flag(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_quote_source (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-quote-source"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_quote_source *arg2 = (gnc_quote_source *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (gnc_quote_source *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_quote_source, 2, 0);
  }
  gnc_commodity_set_quote_source(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_quote_tz (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-quote-tz"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_quote_tz(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_set_user_symbol (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-set-user-symbol"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_set_user_symbol(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_increment_usage_count (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-increment-usage-count"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  gnc_commodity_increment_usage_count(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_decrement_usage_count (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-decrement-usage-count"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  gnc_commodity_decrement_usage_count(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_equiv (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-equiv"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = gnc_commodity_equiv((gnc_commodity const *)arg1,(gnc_commodity const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_equal (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-equal"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = gnc_commodity_equal((gnc_commodity const *)arg1,(gnc_commodity const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_compare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-compare"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (int)gnc_commodity_compare((gnc_commodity const *)arg1,(gnc_commodity const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_compare_void (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-compare-void"
  void *arg1 = (void *) 0 ;
  void *arg2 = (void *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (void *)SWIG_MustGetPtr(s_0, NULL, 1, 0);
  }
  {
    arg2 = (void *)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  result = (int)gnc_commodity_compare_void((void const *)arg1,(void const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_namespace_is_iso (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-namespace-is-iso"
  char *arg1 = (char *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  result = gnc_commodity_namespace_is_iso((char const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_is_iso (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-is-iso"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = gnc_commodity_is_iso((gnc_commodity const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_is_currency (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-is-currency"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  result = gnc_commodity_is_currency((gnc_commodity const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_get_table (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-table-get-table"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity_table *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (gnc_commodity_table *)gnc_commodity_table_get_table(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity_table, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_lookup (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-commodity-table-lookup"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  result = (gnc_commodity *)gnc_commodity_table_lookup((gnc_commodity_table const *)arg1,(char const *)arg2,(char const *)arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_lookup_unique (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-lookup-unique"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (gnc_commodity *)gnc_commodity_table_lookup_unique((gnc_commodity_table const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_find_full (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-commodity-table-find-full"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  result = (gnc_commodity *)gnc_commodity_table_find_full((gnc_commodity_table const *)arg1,(char const *)arg2,(char const *)arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_find_commodity_by_guid (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-find-commodity-by-guid"
  GncGUID *arg1 = (GncGUID *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  GncGUID g1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  g1 = gnc_scm2guid(s_0); arg1 = &g1; 
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (gnc_commodity *)gnc_commodity_find_commodity_by_guid((GncGUID const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_insert (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-insert"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (gnc_commodity *)gnc_commodity_table_insert(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_remove (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-remove"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gnc_commodity_table_remove(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_add_default_data (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-add-default-data"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = gnc_commodity_table_add_default_data(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_namespace_get_name (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-namespace-get-name"
  gnc_commodity_namespace *arg1 = (gnc_commodity_namespace *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity_namespace *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_namespace, 1, 0);
  }
  result = (char *)gnc_commodity_namespace_get_name((gnc_commodity_namespace const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_namespace_get_gui_name (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-namespace-get-gui-name"
  gnc_commodity_namespace *arg1 = (gnc_commodity_namespace *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (gnc_commodity_namespace *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_namespace, 1, 0);
  }
  result = (char *)gnc_commodity_namespace_get_gui_name((gnc_commodity_namespace const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_namespace_get_commodity_list (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-namespace-get-commodity-list"
  gnc_commodity_namespace *arg1 = (gnc_commodity_namespace *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (gnc_commodity_namespace *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_namespace, 1, 0);
  }
  result = (GList *)gnc_commodity_namespace_get_commodity_list((gnc_commodity_namespace const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_has_namespace (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-has-namespace"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (int)gnc_commodity_table_has_namespace((gnc_commodity_table const *)arg1,(char const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_get_namespaces (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-table-get-namespaces"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  result = (GList *)gnc_commodity_table_get_namespaces((gnc_commodity_table const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_get_namespaces_list (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-table-get-namespaces-list"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  result = (GList *)gnc_commodity_table_get_namespaces_list((gnc_commodity_table const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_add_namespace (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-commodity-table-add-namespace"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  QofBook *arg3 = (QofBook *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity_namespace *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (QofBook *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_QofBook, 3, 0);
  }
  result = (gnc_commodity_namespace *)gnc_commodity_table_add_namespace(arg1,(char const *)arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity_namespace, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_find_namespace (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-find-namespace"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity_namespace *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (gnc_commodity_namespace *)gnc_commodity_table_find_namespace((gnc_commodity_table const *)arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity_namespace, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_delete_namespace (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-delete-namespace"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gnc_commodity_table_delete_namespace(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_get_size (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-table-get-size"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  guint result;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  result = (guint)gnc_commodity_table_get_size((gnc_commodity_table const *)arg1);
  {
    gswig_result = scm_from_ulong(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_get_commodities (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-table-get-commodities"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  CommodityList *result = 0 ;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (CommodityList *)gnc_commodity_table_get_commodities((gnc_commodity_table const *)arg1,(char const *)arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p_gnc_commodity, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_foreach_commodity (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-commodity-table-foreach-commodity"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  gboolean (*arg2)(gnc_commodity *,gpointer) = (gboolean (*)(gnc_commodity *,gpointer)) 0 ;
  gpointer arg3 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  {
    arg2 = (gboolean (*)(gnc_commodity *,gpointer))SWIG_MustGetPtr(s_1, SWIGTYPE_p_f_p_gnc_commodity_p_void__gboolean, 2, 0);
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  result = gnc_commodity_table_foreach_commodity((gnc_commodity_table const *)arg1,arg2,arg3);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_new ()
{
#define FUNC_NAME "gnc-commodity-table-new"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity_table *result = 0 ;
  
  result = (gnc_commodity_table *)gnc_commodity_table_new();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity_table, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_destroy (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-table-destroy"
  gnc_commodity_table *arg1 = (gnc_commodity_table *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity_table *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity_table, 1, 0);
  }
  gnc_commodity_table_destroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_obtain_twin (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-commodity-obtain-twin"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (gnc_commodity *)gnc_commodity_obtain_twin((gnc_commodity const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_table_register ()
{
#define FUNC_NAME "gnc-commodity-table-register"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  result = gnc_commodity_table_register();
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_begin_edit (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-begin-edit"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  gnc_commodity_begin_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_commodity_commit_edit (SCM s_0)
{
#define FUNC_NAME "gnc-commodity-commit-edit"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  gnc_commodity_commit_edit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_monetary_commodity_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gnc-monetary-commodity-set"
  struct _gnc_monetary *arg1 = (struct _gnc_monetary *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  if (arg1) (arg1)->commodity = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_monetary_commodity_get (SCM s_0)
{
#define FUNC_NAME "-gnc-monetary-commodity-get"
  struct _gnc_monetary *arg1 = (struct _gnc_monetary *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (struct _gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
  }
  result = (gnc_commodity *) ((arg1)->commodity);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_monetary_value_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gnc-monetary-value-set"
  struct _gnc_monetary *arg1 = (struct _gnc_monetary *) 0 ;
  gnc_numeric *arg2 = (gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
  }
  {
    arg2 = (gnc_numeric *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gnc_numeric, 2, 0);
  }
  if (arg1) (arg1)->value = *arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gnc_monetary_value_get (SCM s_0)
{
#define FUNC_NAME "-gnc-monetary-value-get"
  struct _gnc_monetary *arg1 = (struct _gnc_monetary *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric *result = 0 ;
  
  {
    arg1 = (struct _gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
  }
  result = (gnc_numeric *)& ((arg1)->value);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gnc_numeric, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new__gnc_monetary ()
{
#define FUNC_NAME "new--gnc-monetary"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct _gnc_monetary *result = 0 ;
  
  result = (struct _gnc_monetary *)calloc(1, sizeof(struct _gnc_monetary));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gnc_monetary, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete__gnc_monetary (SCM s_0)
{
#define FUNC_NAME "delete--gnc-monetary"
  struct _gnc_monetary *arg1 = (struct _gnc_monetary *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_create (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-monetary-create"
  gnc_commodity *arg1 = (gnc_commodity *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_monetary result;
  
  {
    arg1 = (gnc_commodity *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_gnc_commodity, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  result = gnc_monetary_create(arg1,arg2);
  {
    gnc_monetary * resultptr;
    resultptr = (gnc_monetary *) malloc(sizeof(gnc_monetary));
    memmove(resultptr, &result, sizeof(gnc_monetary));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p__gnc_monetary, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_commodity (SCM s_0)
{
#define FUNC_NAME "gnc-monetary-commodity"
  gnc_monetary arg1 ;
  gnc_monetary *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    argp1 = (gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
    arg1 = *argp1;
  }
  result = (gnc_commodity *)gnc_monetary_commodity(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_value (SCM s_0)
{
#define FUNC_NAME "gnc-monetary-value"
  gnc_monetary arg1 ;
  gnc_monetary *argp1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    argp1 = (gnc_monetary *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gnc_monetary, 1, 0);
    arg1 = *argp1;
  }
  result = gnc_monetary_value(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_list_add_monetary (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-monetary-list-add-monetary"
  MonetaryList *arg1 = (MonetaryList *) 0 ;
  gnc_monetary arg2 ;
  gnc_monetary *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  MonetaryList *result = 0 ;
  
  {
    arg1 = (MonetaryList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  {
    argp2 = (gnc_monetary *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gnc_monetary, 2, 0);
    arg2 = *argp2;
  }
  result = (MonetaryList *)gnc_monetary_list_add_monetary(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_list_add_value (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-monetary-list-add-value"
  MonetaryList *arg1 = (MonetaryList *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  gnc_numeric arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  MonetaryList *result = 0 ;
  
  {
    arg1 = (MonetaryList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  arg3 = gnc_scm_to_numeric(s_2);
  result = (MonetaryList *)gnc_monetary_list_add_value(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_list_delete_zeros (SCM s_0)
{
#define FUNC_NAME "gnc-monetary-list-delete-zeros"
  MonetaryList *arg1 = (MonetaryList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  MonetaryList *result = 0 ;
  
  {
    arg1 = (MonetaryList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  result = (MonetaryList *)gnc_monetary_list_delete_zeros(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_monetary_list_free (SCM s_0)
{
#define FUNC_NAME "gnc-monetary-list-free"
  MonetaryList *arg1 = (MonetaryList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (MonetaryList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  gnc_monetary_list_free(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hook_add_scm_dangler (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-hook-add-scm-dangler"
  gchar *arg1 = (gchar *) 0 ;
  SCM arg2 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  arg2=s_1;
  gnc_hook_add_scm_dangler((char const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hook_run (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-hook-run"
  gchar *arg1 = (gchar *) 0 ;
  gpointer arg2 = (gpointer) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (gpointer)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  gnc_hook_run((char const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hook_create (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-hook-create"
  gchar *arg1 = (gchar *) 0 ;
  gint arg2 ;
  gchar *arg3 = (gchar *) 0 ;
  int must_free1 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gchar *result = 0 ;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  {
    arg3 = (gchar *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  result = (gchar *)gnc_hook_create((char const *)arg1,arg2,(char const *)arg3);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  if (must_free1 && arg1) SWIG_free(arg1);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hook_add_dangler (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gnc-hook-add-dangler"
  gchar *arg1 = (gchar *) 0 ;
  GFunc arg2 ;
  gpointer arg3 = (gpointer) 0 ;
  int must_free1 = 0 ;
  GFunc *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    argp2 = (GFunc *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GFunc, 2, 0);
    arg2 = *argp2;
  }
  {
    arg3 = (gpointer)SWIG_MustGetPtr(s_2, NULL, 3, 0);
  }
  gnc_hook_add_dangler((char const *)arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hook_remove_dangler (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gnc-hook-remove-dangler"
  gchar *arg1 = (gchar *) 0 ;
  GFunc arg2 ;
  int must_free1 = 0 ;
  GFunc *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (gchar *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    argp2 = (GFunc *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GFunc, 2, 0);
    arg2 = *argp2;
  }
  gnc_hook_remove_dangler((char const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_hooks_init ()
{
#define FUNC_NAME "gnc-hooks-init"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  gnc_hooks_init();
  gswig_result = SCM_UNSPECIFIED;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_STARTUP(SCM s_0)
{
#define FUNC_NAME "HOOK-STARTUP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_STARTUP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_SHUTDOWN(SCM s_0)
{
#define FUNC_NAME "HOOK-SHUTDOWN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_SHUTDOWN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_UI_STARTUP(SCM s_0)
{
#define FUNC_NAME "HOOK-UI-STARTUP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_UI_STARTUP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_UI_POST_STARTUP(SCM s_0)
{
#define FUNC_NAME "HOOK-UI-POST-STARTUP"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_UI_POST_STARTUP);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_UI_SHUTDOWN(SCM s_0)
{
#define FUNC_NAME "HOOK-UI-SHUTDOWN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_UI_SHUTDOWN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_NEW_BOOK(SCM s_0)
{
#define FUNC_NAME "HOOK-NEW-BOOK"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_NEW_BOOK);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_REPORT(SCM s_0)
{
#define FUNC_NAME "HOOK-REPORT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_REPORT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_CURRENCY_CHANGED(SCM s_0)
{
#define FUNC_NAME "HOOK-CURRENCY-CHANGED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_CURRENCY_CHANGED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_SAVE_OPTIONS(SCM s_0)
{
#define FUNC_NAME "HOOK-SAVE-OPTIONS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_SAVE_OPTIONS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_ADD_EXTENSION(SCM s_0)
{
#define FUNC_NAME "HOOK-ADD-EXTENSION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_ADD_EXTENSION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_BOOK_OPENED(SCM s_0)
{
#define FUNC_NAME "HOOK-BOOK-OPENED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_BOOK_OPENED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_BOOK_CLOSED(SCM s_0)
{
#define FUNC_NAME "HOOK-BOOK-CLOSED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_BOOK_CLOSED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_HOOK_BOOK_SAVED(SCM s_0)
{
#define FUNC_NAME "HOOK-BOOK-SAVED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_HOOK_BOOK_SAVED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_book_get_template_root (SCM s_0)
{
#define FUNC_NAME "gnc-book-get-template-root"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (Account *)gnc_book_get_template_root(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_options_delete (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-book-options-delete"
  QofBook *arg1 = (QofBook *) 0 ;
  GSList *arg2 = (GSList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  arg2 = gnc_scm_to_gslist_string(s_1);
  qof_book_options_delete(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_set_option (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-book-set-option"
  QofBook *arg1 = (QofBook *) 0 ;
  KvpValue *arg2 = (KvpValue *) 0 ;
  GSList *arg3 = (GSList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  arg2 = gnc_scm_to_kvp_value_ptr(s_1); 
  arg3 = gnc_scm_to_gslist_string(s_2);
  qof_book_set_option(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_option (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-book-get-option"
  QofBook *arg1 = (QofBook *) 0 ;
  GSList *arg2 = (GSList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  KvpValue *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  arg2 = gnc_scm_to_gslist_string(s_1);
  result = (KvpValue *)qof_book_get_option(arg1,arg2);
  gswig_result = gnc_kvp_value_ptr_to_scm(result); 
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_get_string_option (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qof-book-get-string-option"
  QofBook *arg1 = (QofBook *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (char *)qof_book_get_string_option((QofBook const *)arg1,(char const *)arg2);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_book_set_string_option (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "qof-book-set-string-option"
  QofBook *arg1 = (QofBook *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int must_free2 = 0 ;
  int must_free3 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  {
    arg3 = (char *)SWIG_scm2str(s_2);
    must_free3 = 1;
  }
  qof_book_set_string_option(arg1,(char const *)arg2,(char const *)arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  if (must_free3 && arg3) SWIG_free(arg3);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncTaxTableReturnGUID"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = gncTaxTableReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncInvoiceReturnGUID"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncJobReturnGUID"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = gncJobReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncVendorReturnGUID"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = gncVendorReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncCustomerReturnGUID"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncEmployeeReturnGUID"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = gncEmployeeReturnGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncTaxTable *)gncTaxTableLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncInvoice *)gncInvoiceLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncJob *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncJob *)gncJobLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncJob, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncVendor *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncVendor *)gncVendorLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncVendor, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncCustomer *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncCustomer *)gncCustomerLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncCustomer, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeLookupFlip (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeLookupFlip"
  GncGUID arg1 ;
  QofBook *arg2 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEmployee *result = 0 ;
  
  arg1 = gnc_scm2guid(s_0);
  {
    arg2 = (QofBook *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofBook, 2, 0);
  }
  result = (GncEmployee *)gncEmployeeLookupFlip(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEmployee, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ADDRESS_MODULE_NAME(SCM s_0)
{
#define FUNC_NAME "GNC-ADDRESS-MODULE-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ADDRESS_MODULE_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_ADDRESS(SCM s_0)
{
#define FUNC_NAME "GNC-ID-ADDRESS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_ADDRESS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_address_get_type ()
{
#define FUNC_NAME "gnc-address-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_address_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressCreate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  QofInstance *arg2 = (QofInstance *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (QofInstance *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofInstance, 2, 0);
  }
  result = (GncAddress *)gncAddressCreate(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressDestroy (SCM s_0)
{
#define FUNC_NAME "gncAddressDestroy"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  gncAddressDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncAddressBeginEdit"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  gncAddressBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncAddressCommitEdit"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  gncAddressCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetName"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetAddr1 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetAddr1"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetAddr1(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetAddr2 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetAddr2"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetAddr2(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetAddr3 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetAddr3"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetAddr3(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetAddr4 (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetAddr4"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetAddr4(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetPhone (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetPhone"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetPhone(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetFax (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetFax"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetFax(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressSetEmail (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressSetEmail"
  GncAddress *arg1 = (GncAddress *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncAddressSetEmail(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressClearDirty (SCM s_0)
{
#define FUNC_NAME "gncAddressClearDirty"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  gncAddressClearDirty(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetName (SCM s_0)
{
#define FUNC_NAME "gncAddressGetName"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetName((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetAddr1 (SCM s_0)
{
#define FUNC_NAME "gncAddressGetAddr1"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetAddr1((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetAddr2 (SCM s_0)
{
#define FUNC_NAME "gncAddressGetAddr2"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetAddr2((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetAddr3 (SCM s_0)
{
#define FUNC_NAME "gncAddressGetAddr3"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetAddr3((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetAddr4 (SCM s_0)
{
#define FUNC_NAME "gncAddressGetAddr4"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetAddr4((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetPhone (SCM s_0)
{
#define FUNC_NAME "gncAddressGetPhone"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetPhone((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetFax (SCM s_0)
{
#define FUNC_NAME "gncAddressGetFax"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetFax((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressGetEmail (SCM s_0)
{
#define FUNC_NAME "gncAddressGetEmail"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = (char *)gncAddressGetEmail((struct _gncAddress const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressIsDirty (SCM s_0)
{
#define FUNC_NAME "gncAddressIsDirty"
  GncAddress *arg1 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  result = gncAddressIsDirty((struct _gncAddress const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressCompare"
  GncAddress *arg1 = (GncAddress *) 0 ;
  GncAddress *arg2 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (GncAddress *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncAddress, 2, 0);
  }
  result = (int)gncAddressCompare((struct _gncAddress const *)arg1,(struct _gncAddress const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAddressEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAddressEqual"
  GncAddress *arg1 = (GncAddress *) 0 ;
  GncAddress *arg2 = (GncAddress *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncAddress *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAddress, 1, 0);
  }
  {
    arg2 = (GncAddress *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncAddress, 2, 0);
  }
  result = gncAddressEqual((struct _gncAddress const *)arg1,(struct _gncAddress const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_NAME(SCM s_0)
{
#define FUNC_NAME "ADDRESS-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_ONE(SCM s_0)
{
#define FUNC_NAME "ADDRESS-ONE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_ONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_TWO(SCM s_0)
{
#define FUNC_NAME "ADDRESS-TWO"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_TWO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_THREE(SCM s_0)
{
#define FUNC_NAME "ADDRESS-THREE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_THREE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_FOUR(SCM s_0)
{
#define FUNC_NAME "ADDRESS-FOUR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_FOUR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_PHONE(SCM s_0)
{
#define FUNC_NAME "ADDRESS-PHONE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_PHONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_FAX(SCM s_0)
{
#define FUNC_NAME "ADDRESS-FAX"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_FAX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_EMAIL(SCM s_0)
{
#define FUNC_NAME "ADDRESS-EMAIL"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_EMAIL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ADDRESS_OWNER(SCM s_0)
{
#define FUNC_NAME "ADDRESS-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ADDRESS_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_BILLTERM(SCM s_0)
{
#define FUNC_NAME "GNC-ID-BILLTERM"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_BILLTERM);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_billterm_get_type ()
{
#define FUNC_NAME "gnc-billterm-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_billterm_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_NAME(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_DESC(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-DESC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_DESC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_DUEDAYS(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-DUEDAYS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_DUEDAYS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_DISCDAYS(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-DISCDAYS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_DISCDAYS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_CUTOFF(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-CUTOFF"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_CUTOFF);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_TYPE(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_DISCOUNT(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-DISCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_DISCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_REFCOUNT(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-REFCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_REFCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TERM_TYPE_DAYS(SCM s_0)
{
#define FUNC_NAME "GNC-TERM-TYPE-DAYS"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_TERM_TYPE_DAYS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TERM_TYPE_PROXIMO(SCM s_0)
{
#define FUNC_NAME "GNC-TERM-TYPE-PROXIMO"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_TERM_TYPE_PROXIMO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermCreate (SCM s_0)
{
#define FUNC_NAME "gncBillTermCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncBillTerm *)gncBillTermCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermDestroy (SCM s_0)
{
#define FUNC_NAME "gncBillTermDestroy"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermIncRef (SCM s_0)
{
#define FUNC_NAME "gncBillTermIncRef"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermIncRef(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermDecRef (SCM s_0)
{
#define FUNC_NAME "gncBillTermDecRef"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermDecRef(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermChanged (SCM s_0)
{
#define FUNC_NAME "gncBillTermChanged"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermChanged(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncBillTermBeginEdit"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncBillTermCommitEdit"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  gncBillTermCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetName"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncBillTermSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetDescription (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetDescription"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncBillTermSetDescription(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetType"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  GncBillTermType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (GncBillTermType) scm_to_int(s_1); 
  }
  gncBillTermSetType(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetDueDays (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetDueDays"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  gint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  gncBillTermSetDueDays(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetDiscountDays (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetDiscountDays"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  gint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  gncBillTermSetDiscountDays(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetDiscount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetDiscount"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncBillTermSetDiscount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermSetCutoff (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermSetCutoff"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  gint arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (gint) scm_to_int(s_1);
  }
  gncBillTermSetCutoff(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncBillTerm *)gncBillTermLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermLookupByName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermLookupByName"
  QofBook *arg1 = (QofBook *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (GncBillTerm *)gncBillTermLookupByName(arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetTerms (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetTerms"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GList *)gncBillTermGetTerms(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetName (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetName"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (char *)gncBillTermGetName((struct _gncBillTerm const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetDescription (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetDescription"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (char *)gncBillTermGetDescription((struct _gncBillTerm const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetType (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetType"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTermType result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (GncBillTermType)gncBillTermGetType((struct _gncBillTerm const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetDueDays (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetDueDays"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (gint)gncBillTermGetDueDays((struct _gncBillTerm const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetDiscountDays (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetDiscountDays"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (gint)gncBillTermGetDiscountDays((struct _gncBillTerm const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetDiscount (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetDiscount"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = gncBillTermGetDiscount((struct _gncBillTerm const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetCutoff (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetCutoff"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (gint)gncBillTermGetCutoff((struct _gncBillTerm const *)arg1);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermIsDirty (SCM s_0)
{
#define FUNC_NAME "gncBillTermIsDirty"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = gncBillTermIsDirty((struct _gncBillTerm const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetParent (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetParent"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = (GncBillTerm *)gncBillTermGetParent((struct _gncBillTerm const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermReturnChild (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermReturnChild"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (GncBillTerm *)gncBillTermReturnChild(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermGetRefcount (SCM s_0)
{
#define FUNC_NAME "gncBillTermGetRefcount"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  result = gncBillTermGetRefcount((struct _gncBillTerm const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermCompare"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  result = (int)gncBillTermCompare((struct _gncBillTerm const *)arg1,(struct _gncBillTerm const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermEqual"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  result = gncBillTermEqual((struct _gncBillTerm const *)arg1,(struct _gncBillTerm const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermIsFamily (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermIsFamily"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  result = gncBillTermIsFamily((struct _gncBillTerm const *)arg1,(struct _gncBillTerm const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillTermComputeDueDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillTermComputeDueDate"
  GncBillTerm *arg1 = (GncBillTerm *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncBillTerm *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncBillTerm, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  result = gncBillTermComputeDueDate((struct _gncBillTerm const *)arg1,arg2);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_EXPORT_PDF_DIRNAME(SCM s_0)
{
#define FUNC_NAME "OWNER-EXPORT-PDF-DIRNAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_EXPORT_PDF_DIRNAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_LAST_POSTED_TO_ACCT(SCM s_0)
{
#define FUNC_NAME "LAST-POSTED-TO-ACCT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_LAST_POSTED_TO_ACCT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_PAYMENT(SCM s_0)
{
#define FUNC_NAME "GNC-PAYMENT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_PAYMENT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_LAST_ACCOUNT(SCM s_0)
{
#define FUNC_NAME "GNC-LAST-ACCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_LAST_ACCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_BILLTERM_MODULE_NAME(SCM s_0)
{
#define FUNC_NAME "GNC-BILLTERM-MODULE-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_BILLTERM_MODULE_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBusinessGetList (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncBusinessGetList"
  QofBook *arg1 = (QofBook *) 0 ;
  QofIdTypeConst arg2 ;
  gboolean arg3 ;
  QofIdTypeConst *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    argp2 = (QofIdTypeConst *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofIdTypeConst, 2, 0);
    arg2 = *argp2;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = (GList *)gncBusinessGetList(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBusinessGetOwnerList (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncBusinessGetOwnerList"
  QofBook *arg1 = (QofBook *) 0 ;
  QofIdTypeConst arg2 ;
  gboolean arg3 ;
  QofIdTypeConst *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  OwnerList *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    argp2 = (QofIdTypeConst *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofIdTypeConst, 2, 0);
    arg2 = *argp2;
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = (OwnerList *)gncBusinessGetOwnerList(arg1,arg2,arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p__gncOwner, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBusinessIsPaymentAcctType (SCM s_0)
{
#define FUNC_NAME "gncBusinessIsPaymentAcctType"
  GNCAccountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCAccountType) scm_to_int(s_0); 
  }
  result = gncBusinessIsPaymentAcctType(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_CUSTOMER(SCM s_0)
{
#define FUNC_NAME "GNC-ID-CUSTOMER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_CUSTOMER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_customer_get_type ()
{
#define FUNC_NAME "gnc-customer-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_customer_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerCreate (SCM s_0)
{
#define FUNC_NAME "gncCustomerCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncCustomer *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncCustomer *)gncCustomerCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncCustomer, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerDestroy (SCM s_0)
{
#define FUNC_NAME "gncCustomerDestroy"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  gncCustomerDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncCustomerBeginEdit"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  gncCustomerBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncCustomerCommitEdit"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  gncCustomerCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetID"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncCustomerSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetName"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncCustomerSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetNotes"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncCustomerSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetTerms (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetTerms"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  gncCustomerSetTerms(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetTaxIncluded (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetTaxIncluded"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncTaxIncluded arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncTaxIncluded) scm_to_int(s_1); 
  }
  gncCustomerSetTaxIncluded(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetActive"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncCustomerSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetDiscount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetDiscount"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncCustomerSetDiscount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetCredit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetCredit"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncCustomerSetCredit(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetCurrency"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gncCustomerSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetTaxTableOverride (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetTaxTableOverride"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncCustomerSetTaxTableOverride(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerSetTaxTable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerSetTaxTable"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  gncCustomerSetTaxTable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerAddJob (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerAddJob"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  gncCustomerAddJob(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerRemoveJob (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerRemoveJob"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  gncCustomerRemoveJob(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncCustomer *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncCustomer *)gncCustomerLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncCustomer, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetID (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetID"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (char *)gncCustomerGetID((struct _gncCustomer const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetName (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetName"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (char *)gncCustomerGetName((struct _gncCustomer const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetAddr (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetAddr"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (GncAddress *)gncCustomerGetAddr((struct _gncCustomer const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetShipAddr (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetShipAddr"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (GncAddress *)gncCustomerGetShipAddr((struct _gncCustomer const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetNotes (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetNotes"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (char *)gncCustomerGetNotes((struct _gncCustomer const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetTerms (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetTerms"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (GncBillTerm *)gncCustomerGetTerms((struct _gncCustomer const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetTaxIncluded (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetTaxIncluded"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxIncluded result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (GncTaxIncluded)gncCustomerGetTaxIncluded((struct _gncCustomer const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetActive (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetActive"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerGetActive((struct _gncCustomer const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetDiscount (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetDiscount"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerGetDiscount((struct _gncCustomer const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetCredit (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetCredit"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerGetCredit((struct _gncCustomer const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetCurrency (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetCurrency"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (gnc_commodity *)gncCustomerGetCurrency((struct _gncCustomer const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetTaxTableOverride (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetTaxTableOverride"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerGetTaxTableOverride((struct _gncCustomer const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetTaxTable (SCM s_0)
{
#define FUNC_NAME "gncCustomerGetTaxTable"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = (GncTaxTable *)gncCustomerGetTaxTable((struct _gncCustomer const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerCompare"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncCustomer *arg2 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncCustomer *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncCustomer, 2, 0);
  }
  result = (int)gncCustomerCompare((struct _gncCustomer const *)arg1,(struct _gncCustomer const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_ID(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_NAME(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_ADDR(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-ADDR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_ADDR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_SHIPADDR(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-SHIPADDR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_SHIPADDR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_NOTES(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_DISCOUNT(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-DISCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_DISCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_CREDIT(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-CREDIT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_CREDIT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_TT_OVER(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-TT-OVER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_TT_OVER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_TAX_INC(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-TAX-INC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_TAX_INC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_TERMS(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-TERMS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_TERMS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_ACTIVE(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-ACTIVE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_ACTIVE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_CUSTOMER_SLOTS(SCM s_0)
{
#define FUNC_NAME "CUSTOMER-SLOTS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_CUSTOMER_SLOTS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerEqual"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  GncCustomer *arg2 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  {
    arg2 = (GncCustomer *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncCustomer, 2, 0);
  }
  result = gncCustomerEqual((struct _gncCustomer const *)arg1,(struct _gncCustomer const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerGetJoblist (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncCustomerGetJoblist"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (GList *)gncCustomerGetJoblist((struct _gncCustomer const *)arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncCustomerIsDirty (SCM s_0)
{
#define FUNC_NAME "gncCustomerIsDirty"
  GncCustomer *arg1 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncCustomer *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncCustomer, 1, 0);
  }
  result = gncCustomerIsDirty(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_EMPLOYEE(SCM s_0)
{
#define FUNC_NAME "GNC-ID-EMPLOYEE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_EMPLOYEE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_employee_get_type ()
{
#define FUNC_NAME "gnc-employee-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_employee_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeCreate (SCM s_0)
{
#define FUNC_NAME "gncEmployeeCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEmployee *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncEmployee *)gncEmployeeCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEmployee, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeDestroy (SCM s_0)
{
#define FUNC_NAME "gncEmployeeDestroy"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  gncEmployeeDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncEmployeeBeginEdit"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  gncEmployeeBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncEmployeeCommitEdit"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  gncEmployeeCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeCompare"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  GncEmployee *arg2 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (GncEmployee *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEmployee, 2, 0);
  }
  result = (int)gncEmployeeCompare((struct _gncEmployee const *)arg1,(struct _gncEmployee const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetID"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEmployeeSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetUsername (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetUsername"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEmployeeSetUsername(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetName"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEmployeeSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetLanguage (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetLanguage"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEmployeeSetLanguage(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetAcl (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetAcl"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEmployeeSetAcl(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetWorkday (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetWorkday"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEmployeeSetWorkday(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetRate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetRate"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEmployeeSetRate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetCurrency"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gncEmployeeSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetActive"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEmployeeSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeSetCCard (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeSetCCard"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gncEmployeeSetCCard(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofEmployeeSetAddr (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qofEmployeeSetAddr"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  QofInstance *arg2 = (QofInstance *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (QofInstance *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofInstance, 2, 0);
  }
  qofEmployeeSetAddr(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetBook (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetBook"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (QofBook *)gncEmployeeGetBook(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetID (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetID"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (char *)gncEmployeeGetID((struct _gncEmployee const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetUsername (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetUsername"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (char *)gncEmployeeGetUsername((struct _gncEmployee const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetName (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetName"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (char *)gncEmployeeGetName((struct _gncEmployee const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetAddr (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetAddr"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (GncAddress *)gncEmployeeGetAddr((struct _gncEmployee const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetLanguage (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetLanguage"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (char *)gncEmployeeGetLanguage((struct _gncEmployee const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetAcl (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetAcl"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (char *)gncEmployeeGetAcl((struct _gncEmployee const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetWorkday (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetWorkday"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = gncEmployeeGetWorkday((struct _gncEmployee const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetRate (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetRate"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = gncEmployeeGetRate((struct _gncEmployee const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetCurrency (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetCurrency"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (gnc_commodity *)gncEmployeeGetCurrency((struct _gncEmployee const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetActive (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetActive"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = gncEmployeeGetActive((struct _gncEmployee const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeGetCCard (SCM s_0)
{
#define FUNC_NAME "gncEmployeeGetCCard"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = (Account *)gncEmployeeGetCCard((struct _gncEmployee const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEmployee *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncEmployee *)gncEmployeeLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEmployee, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_ID(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_USERNAME(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-USERNAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_USERNAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_NAME(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_ADDR(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-ADDR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_ADDR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_LANGUAGE(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-LANGUAGE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_LANGUAGE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_ACL(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-ACL"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_ACL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_WORKDAY(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-WORKDAY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_WORKDAY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_RATE(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-RATE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_RATE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_EMPLOYEE_CC(SCM s_0)
{
#define FUNC_NAME "EMPLOYEE-CC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_EMPLOYEE_CC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEmployeeEqual"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  GncEmployee *arg2 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  {
    arg2 = (GncEmployee *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEmployee, 2, 0);
  }
  result = gncEmployeeEqual((struct _gncEmployee const *)arg1,(struct _gncEmployee const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEmployeeIsDirty (SCM s_0)
{
#define FUNC_NAME "gncEmployeeIsDirty"
  GncEmployee *arg1 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEmployee *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEmployee, 1, 0);
  }
  result = gncEmployeeIsDirty((struct _gncEmployee const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_PAYMENT_CASH(SCM s_0)
{
#define FUNC_NAME "GNC-PAYMENT-CASH"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_PAYMENT_CASH);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_PAYMENT_CARD(SCM s_0)
{
#define FUNC_NAME "GNC-PAYMENT-CARD"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_PAYMENT_CARD);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_DISC_PRETAX(SCM s_0)
{
#define FUNC_NAME "GNC-DISC-PRETAX"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_DISC_PRETAX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_DISC_SAMETIME(SCM s_0)
{
#define FUNC_NAME "GNC-DISC-SAMETIME"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_DISC_SAMETIME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_DISC_POSTTAX(SCM s_0)
{
#define FUNC_NAME "GNC-DISC-POSTTAX"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_DISC_POSTTAX);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_ENTRY(SCM s_0)
{
#define FUNC_NAME "GNC-ID-ENTRY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_ENTRY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_entry_get_type ()
{
#define FUNC_NAME "gnc-entry-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_entry_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryDiscountHowToString (SCM s_0)
{
#define FUNC_NAME "gncEntryDiscountHowToString"
  GncDiscountHow arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncDiscountHow) scm_to_int(s_0); 
  }
  result = (char *)gncEntryDiscountHowToString(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryDiscountStringToHow (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryDiscountStringToHow"
  char *arg1 = (char *) 0 ;
  GncDiscountHow *arg2 = (GncDiscountHow *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncDiscountHow *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GncDiscountHow, 2, 0);
  }
  result = gncEntryDiscountStringToHow((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryPaymentTypeToString (SCM s_0)
{
#define FUNC_NAME "gncEntryPaymentTypeToString"
  GncEntryPaymentType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntryPaymentType) scm_to_int(s_0); 
  }
  result = (char *)gncEntryPaymentTypeToString(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryPaymentStringToType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryPaymentStringToType"
  char *arg1 = (char *) 0 ;
  GncEntryPaymentType *arg2 = (GncEntryPaymentType *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncEntryPaymentType *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GncEntryPaymentType, 2, 0);
  }
  result = gncEntryPaymentStringToType((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryCreate (SCM s_0)
{
#define FUNC_NAME "gncEntryCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEntry *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncEntry *)gncEntryCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEntry, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryDestroy (SCM s_0)
{
#define FUNC_NAME "gncEntryDestroy"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  gncEntryDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetDateGDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetDateGDate"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gncEntrySetDateGDate(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetDate"
  GncEntry *arg1 = (GncEntry *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gncEntrySetDate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetDateEntered (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetDateEntered"
  GncEntry *arg1 = (GncEntry *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gncEntrySetDateEntered(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetDescription (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetDescription"
  GncEntry *arg1 = (GncEntry *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEntrySetDescription(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetAction (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetAction"
  GncEntry *arg1 = (GncEntry *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEntrySetAction(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetNotes"
  GncEntry *arg1 = (GncEntry *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncEntrySetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetQuantity (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetQuantity"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEntrySetQuantity(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetDocQuantity (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntrySetDocQuantity"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gnc_numeric arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  gncEntrySetDocQuantity(arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvAccount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gncEntrySetInvAccount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvPrice (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvPrice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEntrySetInvPrice(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvTaxable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvTaxable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEntrySetInvTaxable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvTaxIncluded (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvTaxIncluded"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEntrySetInvTaxIncluded(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvTaxTable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvTaxTable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  gncEntrySetInvTaxTable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvDiscount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvDiscount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEntrySetInvDiscount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvDiscountType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvDiscountType"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncAmountType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncAmountType) scm_to_int(s_1); 
  }
  gncEntrySetInvDiscountType(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetInvDiscountHow (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetInvDiscountHow"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncDiscountHow arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncDiscountHow) scm_to_int(s_1); 
  }
  gncEntrySetInvDiscountHow(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofEntrySetInvDiscType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qofEntrySetInvDiscType"
  GncEntry *arg1 = (GncEntry *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  qofEntrySetInvDiscType(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofEntrySetInvDiscHow (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qofEntrySetInvDiscHow"
  GncEntry *arg1 = (GncEntry *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  qofEntrySetInvDiscHow(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillAccount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gncEntrySetBillAccount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillPrice (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillPrice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncEntrySetBillPrice(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillTaxable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillTaxable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEntrySetBillTaxable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillTaxIncluded (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillTaxIncluded"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEntrySetBillTaxIncluded(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillTaxTable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillTaxTable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  gncEntrySetBillTaxTable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncEntrySetBillable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillTo (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillTo"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncEntrySetBillTo(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntrySetBillPayment (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntrySetBillPayment"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncEntryPaymentType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncEntryPaymentType) scm_to_int(s_1); 
  }
  gncEntrySetBillPayment(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDateGDate (SCM s_0)
{
#define FUNC_NAME "gncEntryGetDateGDate"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GDate result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetDateGDate((struct _gncEntry const *)arg1);
  {
    GDate * resultptr;
    resultptr = (GDate *) malloc(sizeof(GDate));
    memmove(resultptr, &result, sizeof(GDate));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GDate, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDate (SCM s_0)
{
#define FUNC_NAME "gncEntryGetDate"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetDate((struct _gncEntry const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDateEntered (SCM s_0)
{
#define FUNC_NAME "gncEntryGetDateEntered"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetDateEntered((struct _gncEntry const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDescription (SCM s_0)
{
#define FUNC_NAME "gncEntryGetDescription"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (char *)gncEntryGetDescription((struct _gncEntry const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetAction (SCM s_0)
{
#define FUNC_NAME "gncEntryGetAction"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (char *)gncEntryGetAction((struct _gncEntry const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetNotes (SCM s_0)
{
#define FUNC_NAME "gncEntryGetNotes"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (char *)gncEntryGetNotes((struct _gncEntry const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetQuantity (SCM s_0)
{
#define FUNC_NAME "gncEntryGetQuantity"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetQuantity((struct _gncEntry const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDocQuantity (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryGetDocQuantity"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = gncEntryGetDocQuantity((struct _gncEntry const *)arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvAccount (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvAccount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (Account *)gncEntryGetInvAccount((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvPrice (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvPrice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetInvPrice((struct _gncEntry const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetPrice (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryGetPrice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = gncEntryGetPrice((struct _gncEntry const *)arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvDiscount (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvDiscount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetInvDiscount((struct _gncEntry const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvDiscountType (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvDiscountType"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAmountType result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncAmountType)gncEntryGetInvDiscountType((struct _gncEntry const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvDiscountHow (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvDiscountHow"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncDiscountHow result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncDiscountHow)gncEntryGetInvDiscountHow((struct _gncEntry const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofEntryGetInvDiscType (SCM s_0)
{
#define FUNC_NAME "qofEntryGetInvDiscType"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (char *)qofEntryGetInvDiscType((struct _gncEntry const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofEntryGetInvDiscHow (SCM s_0)
{
#define FUNC_NAME "qofEntryGetInvDiscHow"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (char *)qofEntryGetInvDiscHow((struct _gncEntry const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvTaxable (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvTaxable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetInvTaxable((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvTaxIncluded (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvTaxIncluded"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetInvTaxIncluded((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvTaxTable (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvTaxTable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncTaxTable *)gncEntryGetInvTaxTable((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillAccount (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillAccount"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (Account *)gncEntryGetBillAccount((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillPrice (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillPrice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetBillPrice((struct _gncEntry const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillTaxable (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillTaxable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetBillTaxable((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillTaxIncluded (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillTaxIncluded"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetBillTaxIncluded((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillTaxTable (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillTaxTable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncTaxTable *)gncEntryGetBillTaxTable((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillable (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillable"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryGetBillable((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillTo (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillTo"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncOwner *)gncEntryGetBillTo(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBillPayment (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBillPayment"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEntryPaymentType result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncEntryPaymentType)gncEntryGetBillPayment((struct _gncEntry const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryCopy (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryCopy"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  gncEntryCopy((struct _gncEntry const *)arg1,arg2,arg3);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDocValue (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gncEntryGetDocValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = gncEntryGetDocValue(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDocTaxValue (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gncEntryGetDocTaxValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = gncEntryGetDocTaxValue(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDocTaxValues (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryGetDocTaxValues"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountValueList *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = (AccountValueList *)gncEntryGetDocTaxValues(arg1,arg2,arg3);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(gnc_account_value_ptr_to_scm(node->data), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetDocDiscountValue (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gncEntryGetDocDiscountValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  gboolean arg4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  result = gncEntryGetDocDiscountValue(arg1,arg2,arg3,arg4);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBalValue (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryGetBalValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = gncEntryGetBalValue(arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBalTaxValue (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryGetBalTaxValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = gncEntryGetBalTaxValue(arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBalTaxValues (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryGetBalTaxValues"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  AccountValueList *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (AccountValueList *)gncEntryGetBalTaxValues(arg1,arg2);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(gnc_account_value_ptr_to_scm(node->data), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBalDiscountValue (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncEntryGetBalDiscountValue"
  GncEntry *arg1 = (GncEntry *) 0 ;
  gboolean arg2 ;
  gboolean arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  arg3 = scm_is_true(s_2) ? TRUE : FALSE;
  result = gncEntryGetBalDiscountValue(arg1,arg2,arg3);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryComputeValue (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6, SCM s_7, SCM s_8, SCM s_9, SCM s_10)
{
#define FUNC_NAME "gncEntryComputeValue"
  gnc_numeric arg1 ;
  gnc_numeric arg2 ;
  GncTaxTable *arg3 = (GncTaxTable *) 0 ;
  gboolean arg4 ;
  gnc_numeric arg5 ;
  GncAmountType arg6 ;
  GncDiscountHow arg7 ;
  int arg8 ;
  gnc_numeric *arg9 = (gnc_numeric *) 0 ;
  gnc_numeric *arg10 = (gnc_numeric *) 0 ;
  GList **arg11 = (GList **) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  arg1 = gnc_scm_to_numeric(s_0);
  arg2 = gnc_scm_to_numeric(s_1);
  {
    arg3 = (GncTaxTable *)SWIG_MustGetPtr(s_2, SWIGTYPE_p__gncTaxTable, 3, 0);
  }
  arg4 = scm_is_true(s_3) ? TRUE : FALSE;
  arg5 = gnc_scm_to_numeric(s_4);
  {
    arg6 = (GncAmountType) scm_to_int(s_5); 
  }
  {
    arg7 = (GncDiscountHow) scm_to_int(s_6); 
  }
  {
    arg8 = (int) scm_to_int(s_7);
  }
  {
    arg9 = (gnc_numeric *)SWIG_MustGetPtr(s_8, SWIGTYPE_p__gnc_numeric, 9, 0);
  }
  {
    arg10 = (gnc_numeric *)SWIG_MustGetPtr(s_9, SWIGTYPE_p__gnc_numeric, 10, 0);
  }
  {
    arg11 = (GList **)SWIG_MustGetPtr(s_10, SWIGTYPE_p_p_GList, 11, 0);
  }
  gncEntryComputeValue(arg1,arg2,(struct _gncTaxTable const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryComputeValue_rest (SCM rest)
{
SCM arg[11];
SWIG_Guile_GetArgs (arg, rest, 11, 0, "gncEntryComputeValue");
return _wrap_gncEntryComputeValue(arg[0], arg[1], arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9], arg[10]);
}
static SCM
_wrap_gncEntryGetOrder (SCM s_0)
{
#define FUNC_NAME "gncEntryGetOrder"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOrder *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncOrder *)gncEntryGetOrder((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOrder, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetInvoice (SCM s_0)
{
#define FUNC_NAME "gncEntryGetInvoice"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncInvoice *)gncEntryGetInvoice((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryGetBill (SCM s_0)
{
#define FUNC_NAME "gncEntryGetBill"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = (GncInvoice *)gncEntryGetBill((struct _gncEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEntry *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncEntry *)gncEntryLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEntry, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryIsOpen (SCM s_0)
{
#define FUNC_NAME "gncEntryIsOpen"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  result = gncEntryIsOpen((struct _gncEntry const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncEntryBeginEdit"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  gncEntryBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncEntryCommitEdit"
  GncEntry *arg1 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  gncEntryCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncEntryCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncEntryCompare"
  GncEntry *arg1 = (GncEntry *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncEntry, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  result = (int)gncEntryCompare((struct _gncEntry const *)arg1,(struct _gncEntry const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_DATE(SCM s_0)
{
#define FUNC_NAME "ENTRY-DATE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_DATE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_DATE_ENTERED(SCM s_0)
{
#define FUNC_NAME "ENTRY-DATE-ENTERED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_DATE_ENTERED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_DESC(SCM s_0)
{
#define FUNC_NAME "ENTRY-DESC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_DESC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_ACTION(SCM s_0)
{
#define FUNC_NAME "ENTRY-ACTION"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_ACTION);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_NOTES(SCM s_0)
{
#define FUNC_NAME "ENTRY-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_QTY(SCM s_0)
{
#define FUNC_NAME "ENTRY-QTY"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_QTY);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_IPRICE(SCM s_0)
{
#define FUNC_NAME "ENTRY-IPRICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_IPRICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_IACCT(SCM s_0)
{
#define FUNC_NAME "ENTRY-IACCT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_IACCT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BACCT(SCM s_0)
{
#define FUNC_NAME "ENTRY-BACCT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BACCT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BPRICE(SCM s_0)
{
#define FUNC_NAME "ENTRY-BPRICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BPRICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILLABLE(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILLABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILLABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILLTO(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILLTO"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILLTO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_ORDER(SCM s_0)
{
#define FUNC_NAME "ENTRY-ORDER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_ORDER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INVOICE(SCM s_0)
{
#define FUNC_NAME "ENTRY-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILL(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILL"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INV_DISC_TYPE(SCM s_0)
{
#define FUNC_NAME "ENTRY-INV-DISC-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INV_DISC_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INV_DISC_HOW(SCM s_0)
{
#define FUNC_NAME "ENTRY-INV-DISC-HOW"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INV_DISC_HOW);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INV_TAXABLE(SCM s_0)
{
#define FUNC_NAME "ENTRY-INV-TAXABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INV_TAXABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILL_TAXABLE(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILL-TAXABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILL_TAXABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INV_TAX_INC(SCM s_0)
{
#define FUNC_NAME "ENTRY-INV-TAX-INC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INV_TAX_INC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILL_TAX_INC(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILL-TAX-INC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILL_TAX_INC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_INV_DISCOUNT(SCM s_0)
{
#define FUNC_NAME "ENTRY-INV-DISCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_INV_DISCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ENTRY_BILL_PAY_TYPE(SCM s_0)
{
#define FUNC_NAME "ENTRY-BILL-PAY-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ENTRY_BILL_PAY_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_INVOICE(SCM s_0)
{
#define FUNC_NAME "GNC-ID-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_UNDEFINED(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-UNDEFINED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_UNDEFINED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_CUST_INVOICE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-CUST-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_CUST_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_VEND_INVOICE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-VEND-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_VEND_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_EMPL_INVOICE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-EMPL-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_EMPL_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_CUST_CREDIT_NOTE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-CUST-CREDIT-NOTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_CUST_CREDIT_NOTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_VEND_CREDIT_NOTE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-VEND-CREDIT-NOTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_VEND_CREDIT_NOTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_EMPL_CREDIT_NOTE(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-EMPL-CREDIT-NOTE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_EMPL_CREDIT_NOTE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_INVOICE_NUM_TYPES(SCM s_0)
{
#define FUNC_NAME "GNC-INVOICE-NUM-TYPES"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_INVOICE_NUM_TYPES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_invoice_get_type ()
{
#define FUNC_NAME "gnc-invoice-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_invoice_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceCreate (SCM s_0)
{
#define FUNC_NAME "gncInvoiceCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncInvoice *)gncInvoiceCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceDestroy (SCM s_0)
{
#define FUNC_NAME "gncInvoiceDestroy"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceCopy (SCM s_0)
{
#define FUNC_NAME "gncInvoiceCopy"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncInvoice *)gncInvoiceCopy((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetID"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncInvoiceSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetOwner (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetOwner"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncInvoiceSetOwner(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetDateOpenedGDate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetDateOpenedGDate"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GDate *arg2 = (GDate *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GDate *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GDate, 2, 0);
  }
  gncInvoiceSetDateOpenedGDate(arg1,(GDate const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetDateOpened (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetDateOpened"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gncInvoiceSetDateOpened(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetDatePosted (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetDatePosted"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  time64 arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = scm_to_int64(s_1); 
  gncInvoiceSetDatePosted(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetTerms (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetTerms"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  gncInvoiceSetTerms(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetBillingID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetBillingID"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncInvoiceSetBillingID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetNotes"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncInvoiceSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetCurrency"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gncInvoiceSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetActive"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncInvoiceSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetIsCreditNote (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetIsCreditNote"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncInvoiceSetIsCreditNote(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetBillTo (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetBillTo"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncInvoiceSetBillTo(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSetToChargeAmount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceSetToChargeAmount"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncInvoiceSetToChargeAmount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceAddEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceAddEntry"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncInvoiceAddEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceRemoveEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceRemoveEntry"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncInvoiceRemoveEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceAddPrice (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceAddPrice"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GNCPrice *arg2 = (GNCPrice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GNCPrice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCPrice, 2, 0);
  }
  gncInvoiceAddPrice(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillAddEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillAddEntry"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncBillAddEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncBillRemoveEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncBillRemoveEntry"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncBillRemoveEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceSortEntries (SCM s_0)
{
#define FUNC_NAME "gncInvoiceSortEntries"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceSortEntries(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceRemoveEntries (SCM s_0)
{
#define FUNC_NAME "gncInvoiceRemoveEntries"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceRemoveEntries(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetID (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetID"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (char *)gncInvoiceGetID((struct _gncInvoice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetOwner (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetOwner"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncOwner *)gncInvoiceGetOwner((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetDateOpened (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetDateOpened"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetDateOpened((struct _gncInvoice const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetDatePosted (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetDatePosted"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetDatePosted((struct _gncInvoice const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetDateDue (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetDateDue"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  time64 result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetDateDue((struct _gncInvoice const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTerms (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTerms"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncBillTerm *)gncInvoiceGetTerms((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetBillingID (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetBillingID"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (char *)gncInvoiceGetBillingID((struct _gncInvoice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetNotes (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetNotes"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (char *)gncInvoiceGetNotes((struct _gncInvoice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetOwnerType (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetOwnerType"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwnerType result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncOwnerType)gncInvoiceGetOwnerType((struct _gncInvoice const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTypeListForOwnerType (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTypeListForOwnerType"
  GncOwnerType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GncOwnerType const) scm_to_int(s_0); 
  }
  result = (GList *)gncInvoiceGetTypeListForOwnerType(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetType (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetType"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoiceType result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncInvoiceType)gncInvoiceGetType((struct _gncInvoice const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTypeString (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTypeString"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (char *)gncInvoiceGetTypeString((struct _gncInvoice const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetCurrency (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetCurrency"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (gnc_commodity *)gncInvoiceGetCurrency((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetBillTo (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetBillTo"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GncOwner *)gncInvoiceGetBillTo(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetToChargeAmount (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetToChargeAmount"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetToChargeAmount((struct _gncInvoice const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetActive (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetActive"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetActive((struct _gncInvoice const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetIsCreditNote (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetIsCreditNote"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetIsCreditNote((struct _gncInvoice const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetPostedLot (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetPostedLot"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GNCLot *)gncInvoiceGetPostedLot((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetPostedTxn (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetPostedTxn"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (Transaction *)gncInvoiceGetPostedTxn((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetPostedAcc (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetPostedAcc"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (Account *)gncInvoiceGetPostedAcc((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTotal (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTotal"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetTotal(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTotalOf (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceGetTotalOf"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncEntryPaymentType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncEntryPaymentType) scm_to_int(s_1); 
  }
  result = gncInvoiceGetTotalOf(arg1,arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTotalSubtotal (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTotalSubtotal"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetTotalSubtotal(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetTotalTax (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetTotalTax"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceGetTotalTax(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetEntries (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetEntries"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  EntryList *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (EntryList *)gncInvoiceGetEntries(arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p__gncEntry, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetPrice (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceGetPrice"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCPrice *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = (GNCPrice *)gncInvoiceGetPrice(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCPrice, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceAmountPositive (SCM s_0)
{
#define FUNC_NAME "gncInvoiceAmountPositive"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceAmountPositive((struct _gncInvoice const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetForeignCurrencies (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetForeignCurrencies"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GHashTable *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (GHashTable *)gncInvoiceGetForeignCurrencies((struct _gncInvoice const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GHashTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoicePostToAccount (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6)
{
#define FUNC_NAME "gncInvoicePostToAccount"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  Account *arg2 = (Account *) 0 ;
  time64 arg3 ;
  time64 arg4 ;
  char *arg5 = (char *) 0 ;
  gboolean arg6 ;
  gboolean arg7 ;
  int must_free5 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Transaction *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  arg3 = scm_to_int64(s_2); 
  arg4 = scm_to_int64(s_3); 
  {
    arg5 = (char *)SWIG_scm2str(s_4);
    must_free5 = 1;
  }
  arg6 = scm_is_true(s_5) ? TRUE : FALSE;
  arg7 = scm_is_true(s_6) ? TRUE : FALSE;
  result = (Transaction *)gncInvoicePostToAccount(arg1,arg2,arg3,arg4,(char const *)arg5,arg6,arg7);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Transaction, 0);
  }
  
  
  if (must_free5 && arg5) SWIG_free(arg5);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceUnpost (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceUnpost"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = gncInvoiceUnpost(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceAutoApplyPayments (SCM s_0)
{
#define FUNC_NAME "gncInvoiceAutoApplyPayments"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceAutoApplyPayments(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceApplyPayment (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6, SCM s_7)
{
#define FUNC_NAME "gncInvoiceApplyPayment"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  Transaction *arg2 = (Transaction *) 0 ;
  Account *arg3 = (Account *) 0 ;
  gnc_numeric arg4 ;
  gnc_numeric arg5 ;
  time64 arg6 ;
  char *arg7 = (char *) 0 ;
  char *arg8 = (char *) 0 ;
  int must_free7 = 0 ;
  int must_free8 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (Transaction *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Transaction, 2, 0);
  }
  {
    arg3 = (Account *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Account, 3, 0);
  }
  arg4 = gnc_scm_to_numeric(s_3);
  arg5 = gnc_scm_to_numeric(s_4);
  arg6 = scm_to_int64(s_5); 
  {
    arg7 = (char *)SWIG_scm2str(s_6);
    must_free7 = 1;
  }
  {
    arg8 = (char *)SWIG_scm2str(s_7);
    must_free8 = 1;
  }
  gncInvoiceApplyPayment((struct _gncInvoice const *)arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,(char const *)arg8);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  if (must_free7 && arg7) SWIG_free(arg7);
  if (must_free8 && arg8) SWIG_free(arg8);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetInvoiceFromTxn (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetInvoiceFromTxn"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  result = (GncInvoice *)gncInvoiceGetInvoiceFromTxn((Transaction const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetInvoiceFromLot (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetInvoiceFromLot"
  GNCLot *arg1 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  result = (GncInvoice *)gncInvoiceGetInvoiceFromLot(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoice *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncInvoice *)gncInvoiceLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncInvoice, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncInvoiceBeginEdit"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncInvoiceCommitEdit"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  gncInvoiceCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceCompare"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncInvoice *arg2 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncInvoice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncInvoice, 2, 0);
  }
  result = (int)gncInvoiceCompare((struct _gncInvoice const *)arg1,(struct _gncInvoice const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceDateExists (SCM s_0)
{
#define FUNC_NAME "gncInvoiceDateExists"
  time64 arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  arg1 = scm_to_int64(s_0); 
  result = gncInvoiceDateExists(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceIsPosted (SCM s_0)
{
#define FUNC_NAME "gncInvoiceIsPosted"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceIsPosted((struct _gncInvoice const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceIsPaid (SCM s_0)
{
#define FUNC_NAME "gncInvoiceIsPaid"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = gncInvoiceIsPaid((struct _gncInvoice const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_ID(SCM s_0)
{
#define FUNC_NAME "INVOICE-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_OWNER(SCM s_0)
{
#define FUNC_NAME "INVOICE-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_OPENED(SCM s_0)
{
#define FUNC_NAME "INVOICE-OPENED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_OPENED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_POSTED(SCM s_0)
{
#define FUNC_NAME "INVOICE-POSTED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_POSTED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_DUE(SCM s_0)
{
#define FUNC_NAME "INVOICE-DUE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_DUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_IS_POSTED(SCM s_0)
{
#define FUNC_NAME "INVOICE-IS-POSTED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_IS_POSTED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_IS_PAID(SCM s_0)
{
#define FUNC_NAME "INVOICE-IS-PAID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_IS_PAID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_TERMS(SCM s_0)
{
#define FUNC_NAME "INVOICE-TERMS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_TERMS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_BILLINGID(SCM s_0)
{
#define FUNC_NAME "INVOICE-BILLINGID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_BILLINGID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_NOTES(SCM s_0)
{
#define FUNC_NAME "INVOICE-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_ACC(SCM s_0)
{
#define FUNC_NAME "INVOICE-ACC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_ACC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_POST_TXN(SCM s_0)
{
#define FUNC_NAME "INVOICE-POST-TXN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_POST_TXN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_POST_LOT(SCM s_0)
{
#define FUNC_NAME "INVOICE-POST-LOT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_POST_LOT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_IS_CN(SCM s_0)
{
#define FUNC_NAME "INVOICE-IS-CN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_IS_CN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_TYPE(SCM s_0)
{
#define FUNC_NAME "INVOICE-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_TYPE_STRING(SCM s_0)
{
#define FUNC_NAME "INVOICE-TYPE-STRING"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_TYPE_STRING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_BILLTO(SCM s_0)
{
#define FUNC_NAME "INVOICE-BILLTO"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_BILLTO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_ENTRIES(SCM s_0)
{
#define FUNC_NAME "INVOICE-ENTRIES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_ENTRIES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_JOB(SCM s_0)
{
#define FUNC_NAME "INVOICE-JOB"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_JOB);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_FROM_LOT(SCM s_0)
{
#define FUNC_NAME "INVOICE-FROM-LOT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_FROM_LOT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_INVOICE_FROM_TXN(SCM s_0)
{
#define FUNC_NAME "INVOICE-FROM-TXN"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_INVOICE_FROM_TXN);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceGetBook (SCM s_0)
{
#define FUNC_NAME "gncInvoiceGetBook"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofBook *result = 0 ;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  result = (QofBook *)gncInvoiceGetBook(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofBook, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncInvoiceEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncInvoiceEqual"
  GncInvoice *arg1 = (GncInvoice *) 0 ;
  GncInvoice *arg2 = (GncInvoice *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncInvoice *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncInvoice, 1, 0);
  }
  {
    arg2 = (GncInvoice *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncInvoice, 2, 0);
  }
  result = gncInvoiceEqual((struct _gncInvoice const *)arg1,(struct _gncInvoice const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_JOB(SCM s_0)
{
#define FUNC_NAME "GNC-ID-JOB"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_JOB);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_job_get_type ()
{
#define FUNC_NAME "gnc-job-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_job_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobCreate (SCM s_0)
{
#define FUNC_NAME "gncJobCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncJob *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncJob *)gncJobCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncJob, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobDestroy (SCM s_0)
{
#define FUNC_NAME "gncJobDestroy"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  gncJobDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetID"
  GncJob *arg1 = (GncJob *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncJobSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetName"
  GncJob *arg1 = (GncJob *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncJobSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetReference (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetReference"
  GncJob *arg1 = (GncJob *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncJobSetReference(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetRate (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetRate"
  GncJob *arg1 = (GncJob *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncJobSetRate(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetOwner (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetOwner"
  GncJob *arg1 = (GncJob *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncJobSetOwner(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobSetActive"
  GncJob *arg1 = (GncJob *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncJobSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncJobBeginEdit"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  gncJobBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncJobCommitEdit"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  gncJobCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetID (SCM s_0)
{
#define FUNC_NAME "gncJobGetID"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = (char *)gncJobGetID((struct _gncJob const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetName (SCM s_0)
{
#define FUNC_NAME "gncJobGetName"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = (char *)gncJobGetName((struct _gncJob const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetReference (SCM s_0)
{
#define FUNC_NAME "gncJobGetReference"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = (char *)gncJobGetReference((struct _gncJob const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetRate (SCM s_0)
{
#define FUNC_NAME "gncJobGetRate"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = gncJobGetRate((struct _gncJob const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetOwner (SCM s_0)
{
#define FUNC_NAME "gncJobGetOwner"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = (GncOwner *)gncJobGetOwner(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobGetActive (SCM s_0)
{
#define FUNC_NAME "gncJobGetActive"
  GncJob *arg1 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  result = gncJobGetActive((struct _gncJob const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncJob *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncJob *)gncJobLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncJob, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobCompare"
  GncJob *arg1 = (GncJob *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  result = (int)gncJobCompare((struct _gncJob const *)arg1,(struct _gncJob const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncJobEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncJobEqual"
  GncJob *arg1 = (GncJob *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncJob *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncJob, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  result = gncJobEqual((struct _gncJob const *)arg1,(struct _gncJob const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_ID(SCM s_0)
{
#define FUNC_NAME "JOB-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_NAME(SCM s_0)
{
#define FUNC_NAME "JOB-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_REFERENCE(SCM s_0)
{
#define FUNC_NAME "JOB-REFERENCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_REFERENCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_RATE(SCM s_0)
{
#define FUNC_NAME "JOB-RATE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_RATE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_OWNER(SCM s_0)
{
#define FUNC_NAME "JOB-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_Q_JOB_OWNER(SCM s_0)
{
#define FUNC_NAME "Q-JOB-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_Q_JOB_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_JOB_ACTIVE(SCM s_0)
{
#define FUNC_NAME "JOB-ACTIVE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_JOB_ACTIVE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_ORDER(SCM s_0)
{
#define FUNC_NAME "GNC-ID-ORDER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_ORDER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_order_get_type ()
{
#define FUNC_NAME "gnc-order-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_order_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderCreate (SCM s_0)
{
#define FUNC_NAME "gncOrderCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOrder *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncOrder *)gncOrderCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOrder, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderDestroy (SCM s_0)
{
#define FUNC_NAME "gncOrderDestroy"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  gncOrderDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetID"
  GncOrder *arg1 = (GncOrder *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncOrderSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetOwner (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetOwner"
  GncOrder *arg1 = (GncOrder *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncOrderSetOwner(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetDateOpened (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetDateOpened"
  GncOrder *arg1 = (GncOrder *) 0 ;
  Timespec arg2 ;
  Timespec *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    argp2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
    arg2 = *argp2;
  }
  gncOrderSetDateOpened(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetDateClosed (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetDateClosed"
  GncOrder *arg1 = (GncOrder *) 0 ;
  Timespec arg2 ;
  Timespec *argp2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    argp2 = (Timespec *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_timespec64, 2, 0);
    arg2 = *argp2;
  }
  gncOrderSetDateClosed(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetNotes"
  GncOrder *arg1 = (GncOrder *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncOrderSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetReference (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetReference"
  GncOrder *arg1 = (GncOrder *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncOrderSetReference(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderSetActive"
  GncOrder *arg1 = (GncOrder *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncOrderSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderAddEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderAddEntry"
  GncOrder *arg1 = (GncOrder *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncOrderAddEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderRemoveEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderRemoveEntry"
  GncOrder *arg1 = (GncOrder *) 0 ;
  GncEntry *arg2 = (GncEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (GncEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEntry, 2, 0);
  }
  gncOrderRemoveEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetID (SCM s_0)
{
#define FUNC_NAME "gncOrderGetID"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = (char *)gncOrderGetID((struct _gncOrder const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetOwner (SCM s_0)
{
#define FUNC_NAME "gncOrderGetOwner"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = (GncOwner *)gncOrderGetOwner(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetDateOpened (SCM s_0)
{
#define FUNC_NAME "gncOrderGetDateOpened"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = gncOrderGetDateOpened((struct _gncOrder const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetDateClosed (SCM s_0)
{
#define FUNC_NAME "gncOrderGetDateClosed"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = gncOrderGetDateClosed((struct _gncOrder const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetNotes (SCM s_0)
{
#define FUNC_NAME "gncOrderGetNotes"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = (char *)gncOrderGetNotes((struct _gncOrder const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetReference (SCM s_0)
{
#define FUNC_NAME "gncOrderGetReference"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = (char *)gncOrderGetReference((struct _gncOrder const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetActive (SCM s_0)
{
#define FUNC_NAME "gncOrderGetActive"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = gncOrderGetActive((struct _gncOrder const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderGetEntries (SCM s_0)
{
#define FUNC_NAME "gncOrderGetEntries"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = (GList *)gncOrderGetEntries(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncOrderBeginEdit"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  gncOrderBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncOrderCommitEdit"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  gncOrderCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderCompare"
  GncOrder *arg1 = (GncOrder *) 0 ;
  GncOrder *arg2 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  {
    arg2 = (GncOrder *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOrder, 2, 0);
  }
  result = (int)gncOrderCompare((struct _gncOrder const *)arg1,(struct _gncOrder const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderIsClosed (SCM s_0)
{
#define FUNC_NAME "gncOrderIsClosed"
  GncOrder *arg1 = (GncOrder *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncOrder *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOrder, 1, 0);
  }
  result = gncOrderIsClosed((struct _gncOrder const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOrderLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOrderLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOrder *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncOrder *)gncOrderLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOrder, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_ID(SCM s_0)
{
#define FUNC_NAME "ORDER-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_REFERENCE(SCM s_0)
{
#define FUNC_NAME "ORDER-REFERENCE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_REFERENCE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_OWNER(SCM s_0)
{
#define FUNC_NAME "ORDER-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_OPENED(SCM s_0)
{
#define FUNC_NAME "ORDER-OPENED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_OPENED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_CLOSED(SCM s_0)
{
#define FUNC_NAME "ORDER-CLOSED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_CLOSED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_IS_CLOSED(SCM s_0)
{
#define FUNC_NAME "ORDER-IS-CLOSED"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_IS_CLOSED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_ORDER_NOTES(SCM s_0)
{
#define FUNC_NAME "ORDER-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_ORDER_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_OWNER(SCM s_0)
{
#define FUNC_NAME "GNC-ID-OWNER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_OWNER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_NONE(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-NONE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_NONE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_UNDEFINED(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-UNDEFINED"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_UNDEFINED);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_CUSTOMER(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-CUSTOMER"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_CUSTOMER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_JOB(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-JOB"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_JOB);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_VENDOR(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-VENDOR"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_VENDOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_OWNER_EMPLOYEE(SCM s_0)
{
#define FUNC_NAME "GNC-OWNER-EMPLOYEE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_OWNER_EMPLOYEE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofOwnerGetType (SCM s_0)
{
#define FUNC_NAME "qofOwnerGetType"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofIdTypeConst result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = qofOwnerGetType((struct _gncOwner const *)arg1);
  {
    QofIdTypeConst * resultptr;
    resultptr = (QofIdTypeConst *) malloc(sizeof(QofIdTypeConst));
    memmove(resultptr, &result, sizeof(QofIdTypeConst));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofIdTypeConst, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofOwnerGetOwner (SCM s_0)
{
#define FUNC_NAME "qofOwnerGetOwner"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofInstance *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (QofInstance *)qofOwnerGetOwner((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_QofInstance, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qofOwnerSetEntity (SCM s_0, SCM s_1)
{
#define FUNC_NAME "qofOwnerSetEntity"
  GncOwner *arg1 = (GncOwner *) 0 ;
  QofInstance *arg2 = (QofInstance *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (QofInstance *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_QofInstance, 2, 0);
  }
  qofOwnerSetEntity(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_IS_OWNER (SCM s_0)
{
#define FUNC_NAME "GNC-IS-OWNER"
  QofInstance *arg1 = (QofInstance *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofInstance *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofInstance, 1, 0);
  }
  result = GNC_IS_OWNER(arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerTypeToQofIdType (SCM s_0)
{
#define FUNC_NAME "gncOwnerTypeToQofIdType"
  GncOwnerType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofIdTypeConst result;
  
  {
    arg1 = (GncOwnerType) scm_to_int(s_0); 
  }
  result = gncOwnerTypeToQofIdType(arg1);
  {
    QofIdTypeConst * resultptr;
    resultptr = (QofIdTypeConst *) malloc(sizeof(QofIdTypeConst));
    memmove(resultptr, &result, sizeof(QofIdTypeConst));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_QofIdTypeConst, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerRegister ()
{
#define FUNC_NAME "gncOwnerRegister"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  result = gncOwnerRegister();
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerInitUndefined (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerInitUndefined"
  GncOwner *arg1 = (GncOwner *) 0 ;
  gpointer arg2 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (gpointer)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  gncOwnerInitUndefined(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerInitCustomer (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerInitCustomer"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncCustomer *arg2 = (GncCustomer *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncCustomer *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncCustomer, 2, 0);
  }
  gncOwnerInitCustomer(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerInitJob (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerInitJob"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  gncOwnerInitJob(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerInitVendor (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerInitVendor"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncVendor *arg2 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncVendor *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncVendor, 2, 0);
  }
  gncOwnerInitVendor(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerInitEmployee (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerInitEmployee"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncEmployee *arg2 = (GncEmployee *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncEmployee *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncEmployee, 2, 0);
  }
  gncOwnerInitEmployee(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetType (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetType"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwnerType result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncOwnerType)gncOwnerGetType((struct _gncOwner const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerIsValid (SCM s_0)
{
#define FUNC_NAME "gncOwnerIsValid"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = gncOwnerIsValid((struct _gncOwner const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetUndefined (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetUndefined"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gpointer result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (gpointer)gncOwnerGetUndefined((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_void, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetCustomer (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetCustomer"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncCustomer *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncCustomer *)gncOwnerGetCustomer((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncCustomer, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetJob (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetJob"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncJob *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncJob *)gncOwnerGetJob((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncJob, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetVendor (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetVendor"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncVendor *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncVendor *)gncOwnerGetVendor((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncVendor, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetEmployee (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetEmployee"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncEmployee *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncEmployee *)gncOwnerGetEmployee((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncEmployee, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetID (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetID"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (char *)gncOwnerGetID((struct _gncOwner const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetName (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetName"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (char *)gncOwnerGetName((struct _gncOwner const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetAddr (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetAddr"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncAddress *)gncOwnerGetAddr((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetActive (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetActive"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = gncOwnerGetActive((struct _gncOwner const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetCurrency (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetCurrency"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (gnc_commodity *)gncOwnerGetCurrency((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerSetActive"
  GncOwner *arg1 = (GncOwner *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncOwnerSetActive((struct _gncOwner const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerCopy (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerCopy"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  gncOwnerCopy((struct _gncOwner const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerEqual"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  result = gncOwnerEqual((struct _gncOwner const *)arg1,(struct _gncOwner const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGCompareFunc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerGCompareFunc"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  result = (int)gncOwnerGCompareFunc((struct _gncOwner const *)arg1,(struct _gncOwner const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerCompare"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  result = (int)gncOwnerCompare((struct _gncOwner const *)arg1,(struct _gncOwner const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetGUID (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetGUID"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncGUID *)gncOwnerGetGUID((struct _gncOwner const *)arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerReturnGUID (SCM s_0)
{
#define FUNC_NAME "gncOwnerReturnGUID"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = gncOwnerRetGUID(arg1);
  gswig_result = gnc_guid2scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetEndOwner (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetEndOwner"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncOwner *)gncOwnerGetEndOwner((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetEndGUID (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetEndGUID"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncGUID *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GncGUID *)gncOwnerGetEndGUID((struct _gncOwner const *)arg1);
  gswig_result = (result) ? gnc_guid2scm(*(result)): SCM_BOOL_F; 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerAttachToLot (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerAttachToLot"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GNCLot *arg2 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GNCLot *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCLot, 2, 0);
  }
  gncOwnerAttachToLot((struct _gncOwner const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerLotMatchOwnerFunc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerLotMatchOwnerFunc"
  GNCLot *arg1 = (GNCLot *) 0 ;
  gpointer arg2 = (gpointer) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (gpointer)SWIG_MustGetPtr(s_1, NULL, 2, 0);
  }
  result = gncOwnerLotMatchOwnerFunc(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerLotsSortFunc (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerLotsSortFunc"
  GNCLot *arg1 = (GNCLot *) 0 ;
  GNCLot *arg2 = (GNCLot *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (GNCLot *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GNCLot, 2, 0);
  }
  result = (gint)gncOwnerLotsSortFunc(arg1,arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetOwnerFromLot (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerGetOwnerFromLot"
  GNCLot *arg1 = (GNCLot *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  result = gncOwnerGetOwnerFromLot(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetOwnerFromTxn (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerGetOwnerFromTxn"
  Transaction *arg1 = (Transaction *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  result = gncOwnerGetOwnerFromTxn(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetOwnerFromTypeGuid (SCM s_0, SCM s_1, SCM s_2, SCM s_3)
{
#define FUNC_NAME "gncOwnerGetOwnerFromTypeGuid"
  QofBook *arg1 = (QofBook *) 0 ;
  GncOwner *arg2 = (GncOwner *) 0 ;
  QofIdType arg3 ;
  GncGUID *arg4 = (GncGUID *) 0 ;
  QofIdType *argp3 ;
  GncGUID g4 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (GncOwner *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncOwner, 2, 0);
  }
  {
    argp3 = (QofIdType *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_QofIdType, 3, 0);
    arg3 = *argp3;
  }
  g4 = gnc_scm2guid(s_3); arg4 = &g4; 
  result = gncOwnerGetOwnerFromTypeGuid(arg1,arg2,arg3,arg4);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerCreatePaymentLot (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6, SCM s_7, SCM s_8)
{
#define FUNC_NAME "gncOwnerCreatePaymentLot"
  GncOwner *arg1 = (GncOwner *) 0 ;
  Transaction **arg2 = (Transaction **) 0 ;
  Account *arg3 = (Account *) 0 ;
  Account *arg4 = (Account *) 0 ;
  gnc_numeric arg5 ;
  gnc_numeric arg6 ;
  Timespec arg7 ;
  char *arg8 = (char *) 0 ;
  char *arg9 = (char *) 0 ;
  Timespec *argp7 ;
  int must_free8 = 0 ;
  int must_free9 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GNCLot *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (Transaction **)SWIG_MustGetPtr(s_1, SWIGTYPE_p_p_Transaction, 2, 0);
  }
  {
    arg3 = (Account *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_Account, 3, 0);
  }
  {
    arg4 = (Account *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_Account, 4, 0);
  }
  arg5 = gnc_scm_to_numeric(s_4);
  arg6 = gnc_scm_to_numeric(s_5);
  {
    argp7 = (Timespec *)SWIG_MustGetPtr(s_6, SWIGTYPE_p_timespec64, 7, 0);
    arg7 = *argp7;
  }
  {
    arg8 = (char *)SWIG_scm2str(s_7);
    must_free8 = 1;
  }
  {
    arg9 = (char *)SWIG_scm2str(s_8);
    must_free9 = 1;
  }
  result = (GNCLot *)gncOwnerCreatePaymentLot((struct _gncOwner const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,(char const *)arg8,(char const *)arg9);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GNCLot, 0);
  }
  
  
  
  
  if (must_free8 && arg8) SWIG_free(arg8);
  if (must_free9 && arg9) SWIG_free(arg9);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerAutoApplyPaymentsWithLots (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerAutoApplyPaymentsWithLots"
  GncOwner *arg1 = (GncOwner *) 0 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  gncOwnerAutoApplyPaymentsWithLots((struct _gncOwner const *)arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerApplyPayment (SCM s_0, SCM s_1, SCM s_2, SCM s_3, SCM s_4, SCM s_5, SCM s_6, SCM s_7, SCM s_8, SCM s_9, SCM s_10)
{
#define FUNC_NAME "gncOwnerApplyPayment"
  GncOwner *arg1 = (GncOwner *) 0 ;
  Transaction **arg2 = (Transaction **) 0 ;
  GList *arg3 = (GList *) 0 ;
  Account *arg4 = (Account *) 0 ;
  Account *arg5 = (Account *) 0 ;
  gnc_numeric arg6 ;
  gnc_numeric arg7 ;
  Timespec arg8 ;
  char *arg9 = (char *) 0 ;
  char *arg10 = (char *) 0 ;
  gboolean arg11 ;
  Timespec *argp8 ;
  int must_free9 = 0 ;
  int must_free10 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (Transaction **)SWIG_MustGetPtr(s_1, SWIGTYPE_p_p_Transaction, 2, 0);
  }
  {
    arg3 = (GList *)SWIG_MustGetPtr(s_2, SWIGTYPE_p_GList, 3, 0);
  }
  {
    arg4 = (Account *)SWIG_MustGetPtr(s_3, SWIGTYPE_p_Account, 4, 0);
  }
  {
    arg5 = (Account *)SWIG_MustGetPtr(s_4, SWIGTYPE_p_Account, 5, 0);
  }
  arg6 = gnc_scm_to_numeric(s_5);
  arg7 = gnc_scm_to_numeric(s_6);
  {
    argp8 = (Timespec *)SWIG_MustGetPtr(s_7, SWIGTYPE_p_timespec64, 8, 0);
    arg8 = *argp8;
  }
  {
    arg9 = (char *)SWIG_scm2str(s_8);
    must_free9 = 1;
  }
  {
    arg10 = (char *)SWIG_scm2str(s_9);
    must_free10 = 1;
  }
  arg11 = scm_is_true(s_10) ? TRUE : FALSE;
  gncOwnerApplyPayment((struct _gncOwner const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,(char const *)arg9,(char const *)arg10,arg11);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  
  
  if (must_free9 && arg9) SWIG_free(arg9);
  if (must_free10 && arg10) SWIG_free(arg10);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerApplyPayment_rest (SCM rest)
{
SCM arg[11];
SWIG_Guile_GetArgs (arg, rest, 11, 0, "gncOwnerApplyPayment");
return _wrap_gncOwnerApplyPayment(arg[0], arg[1], arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9], arg[10]);
}
static SCM
_wrap_gncOwnerFindOffsettingSplit (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerFindOffsettingSplit"
  GNCLot *arg1 = (GNCLot *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Split *result = 0 ;
  
  {
    arg1 = (GNCLot *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GNCLot, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  result = (Split *)gncOwnerFindOffsettingSplit(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Split, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerReduceSplitTo (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerReduceSplitTo"
  Split *arg1 = (Split *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (Split *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Split, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  result = gncOwnerReduceSplitTo(arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerSetLotLinkMemo (SCM s_0)
{
#define FUNC_NAME "gncOwnerSetLotLinkMemo"
  Transaction *arg1 = (Transaction *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (Transaction *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_Transaction, 1, 0);
  }
  gncOwnerSetLotLinkMemo(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetAccountTypesList (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetAccountTypesList"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GList *)gncOwnerGetAccountTypesList((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetCommoditiesList (SCM s_0)
{
#define FUNC_NAME "gncOwnerGetCommoditiesList"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  result = (GList *)gncOwnerGetCommoditiesList((struct _gncOwner const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerGetBalanceInCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncOwnerGetBalanceInCurrency"
  GncOwner *arg1 = (GncOwner *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  result = gncOwnerGetBalanceInCurrency((struct _gncOwner const *)arg1,(gnc_commodity const *)arg2);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_TYPE(SCM s_0)
{
#define FUNC_NAME "OWNER-TYPE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_TYPE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_TYPE_STRING(SCM s_0)
{
#define FUNC_NAME "OWNER-TYPE-STRING"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_TYPE_STRING);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_CUSTOMER(SCM s_0)
{
#define FUNC_NAME "OWNER-CUSTOMER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_CUSTOMER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_JOB(SCM s_0)
{
#define FUNC_NAME "OWNER-JOB"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_JOB);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_VENDOR(SCM s_0)
{
#define FUNC_NAME "OWNER-VENDOR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_VENDOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_EMPLOYEE(SCM s_0)
{
#define FUNC_NAME "OWNER-EMPLOYEE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_EMPLOYEE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_PARENT(SCM s_0)
{
#define FUNC_NAME "OWNER-PARENT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_PARENT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_PARENTG(SCM s_0)
{
#define FUNC_NAME "OWNER-PARENTG"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_PARENTG);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_NAME(SCM s_0)
{
#define FUNC_NAME "OWNER-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_OWNER_FROM_LOT(SCM s_0)
{
#define FUNC_NAME "OWNER-FROM-LOT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_OWNER_FROM_LOT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerNew ()
{
#define FUNC_NAME "gncOwnerNew"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncOwner *result = 0 ;
  
  result = (GncOwner *)gncOwnerNew();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncOwner, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerFree (SCM s_0)
{
#define FUNC_NAME "gncOwnerFree"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  gncOwnerFree(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncOwnerBeginEdit"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  gncOwnerBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncOwnerCommitEdit"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  gncOwnerCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncOwnerDestroy (SCM s_0)
{
#define FUNC_NAME "gncOwnerDestroy"
  GncOwner *arg1 = (GncOwner *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncOwner *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncOwner, 1, 0);
  }
  gncOwnerDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_TAXTABLE(SCM s_0)
{
#define FUNC_NAME "GNC-ID-TAXTABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_TAXTABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_taxtable_get_type ()
{
#define FUNC_NAME "gnc-taxtable-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_taxtable_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_AMT_TYPE_VALUE(SCM s_0)
{
#define FUNC_NAME "GNC-AMT-TYPE-VALUE"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_AMT_TYPE_VALUE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_AMT_TYPE_PERCENT(SCM s_0)
{
#define FUNC_NAME "GNC-AMT-TYPE-PERCENT"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_AMT_TYPE_PERCENT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TAXINCLUDED_YES(SCM s_0)
{
#define FUNC_NAME "GNC-TAXINCLUDED-YES"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_TAXINCLUDED_YES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TAXINCLUDED_NO(SCM s_0)
{
#define FUNC_NAME "GNC-TAXINCLUDED-NO"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_TAXINCLUDED_NO);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TAXINCLUDED_USEGLOBAL(SCM s_0)
{
#define FUNC_NAME "GNC-TAXINCLUDED-USEGLOBAL"
  SCM gswig_result;
  
  {
    gswig_result = scm_from_long(gswig_const_GNC_TAXINCLUDED_USEGLOBAL);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAmountTypeToString (SCM s_0)
{
#define FUNC_NAME "gncAmountTypeToString"
  GncAmountType arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncAmountType) scm_to_int(s_0); 
  }
  result = (char *)gncAmountTypeToString(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAmountStringToType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAmountStringToType"
  char *arg1 = (char *) 0 ;
  GncAmountType *arg2 = (GncAmountType *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncAmountType *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GncAmountType, 2, 0);
  }
  result = gncAmountStringToType((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxIncludedTypeToString (SCM s_0)
{
#define FUNC_NAME "gncTaxIncludedTypeToString"
  GncTaxIncluded arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncTaxIncluded) scm_to_int(s_0); 
  }
  result = (char *)gncTaxIncludedTypeToString(arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxIncludedStringToType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxIncludedStringToType"
  char *arg1 = (char *) 0 ;
  GncTaxIncluded *arg2 = (GncTaxIncluded *) 0 ;
  int must_free1 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (char *)SWIG_scm2str(s_0);
    must_free1 = 1;
  }
  {
    arg2 = (GncTaxIncluded *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GncTaxIncluded, 2, 0);
  }
  result = gncTaxIncludedStringToType((char const *)arg1,arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  if (must_free1 && arg1) SWIG_free(arg1);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableCreate (SCM s_0)
{
#define FUNC_NAME "gncTaxTableCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncTaxTable *)gncTaxTableCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableDestroy (SCM s_0)
{
#define FUNC_NAME "gncTaxTableDestroy"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryCreate ()
{
#define FUNC_NAME "gncTaxTableEntryCreate"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTableEntry *result = 0 ;
  
  result = (GncTaxTableEntry *)gncTaxTableEntryCreate();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTableEntry, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryDestroy (SCM s_0)
{
#define FUNC_NAME "gncTaxTableEntryDestroy"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  gncTaxTableEntryDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableSetName"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncTaxTableSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableIncRef (SCM s_0)
{
#define FUNC_NAME "gncTaxTableIncRef"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableIncRef(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableDecRef (SCM s_0)
{
#define FUNC_NAME "gncTaxTableDecRef"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableDecRef(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntrySetAccount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEntrySetAccount"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  gncTaxTableEntrySetAccount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntrySetType (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEntrySetType"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  GncAmountType arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  {
    arg2 = (GncAmountType) scm_to_int(s_1); 
  }
  gncTaxTableEntrySetType(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntrySetAmount (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEntrySetAmount"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  gnc_numeric arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  arg2 = gnc_scm_to_numeric(s_1);
  gncTaxTableEntrySetAmount(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableAddEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableAddEntry"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  GncTaxTableEntry *arg2 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  {
    arg2 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTableEntry, 2, 0);
  }
  gncTaxTableAddEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableRemoveEntry (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableRemoveEntry"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  GncTaxTableEntry *arg2 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  {
    arg2 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTableEntry, 2, 0);
  }
  gncTaxTableRemoveEntry(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableChanged (SCM s_0)
{
#define FUNC_NAME "gncTaxTableChanged"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableChanged(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncTaxTableBeginEdit"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncTaxTableCommitEdit"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  gncTaxTableCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEqual"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  result = gncTaxTableEqual((struct _gncTaxTable const *)arg1,(struct _gncTaxTable const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncTaxTable *)gncTaxTableLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableLookupByName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableLookupByName"
  QofBook *arg1 = (QofBook *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  result = (GncTaxTable *)gncTaxTableLookupByName(arg1,(char const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableGetTables (SCM s_0)
{
#define FUNC_NAME "gncTaxTableGetTables"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTableList *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncTaxTableList *)gncTaxTableGetTables(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableGetName (SCM s_0)
{
#define FUNC_NAME "gncTaxTableGetName"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = (char *)gncTaxTableGetName((struct _gncTaxTable const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableGetParent (SCM s_0)
{
#define FUNC_NAME "gncTaxTableGetParent"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = (GncTaxTable *)gncTaxTableGetParent((struct _gncTaxTable const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableReturnChild (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableReturnChild"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  result = (GncTaxTable *)gncTaxTableReturnChild(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableGetEntries (SCM s_0)
{
#define FUNC_NAME "gncTaxTableGetEntries"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTableEntryList *result = 0 ;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = (GncTaxTableEntryList *)gncTaxTableGetEntries((struct _gncTaxTable const *)arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p__gncTaxTableEntry, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableGetRefcount (SCM s_0)
{
#define FUNC_NAME "gncTaxTableGetRefcount"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gint64 result;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = gncTaxTableGetRefcount((struct _gncTaxTable const *)arg1);
  gswig_result = scm_from_int64(result); 
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableLastModified (SCM s_0)
{
#define FUNC_NAME "gncTaxTableLastModified"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Timespec result;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  result = gncTaxTableLastModified((struct _gncTaxTable const *)arg1);
  {
    Timespec * resultptr;
    resultptr = (Timespec *) malloc(sizeof(Timespec));
    memmove(resultptr, &result, sizeof(Timespec));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_timespec64, 1);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryGetAccount (SCM s_0)
{
#define FUNC_NAME "gncTaxTableEntryGetAccount"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  result = (Account *)gncTaxTableEntryGetAccount((struct _gncTaxTableEntry const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryGetType (SCM s_0)
{
#define FUNC_NAME "gncTaxTableEntryGetType"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAmountType result;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  result = (GncAmountType)gncTaxTableEntryGetType((struct _gncTaxTableEntry const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryGetAmount (SCM s_0)
{
#define FUNC_NAME "gncTaxTableEntryGetAmount"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  result = gncTaxTableEntryGetAmount((struct _gncTaxTableEntry const *)arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableCompare"
  GncTaxTable *arg1 = (GncTaxTable *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncTaxTable *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTable, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  result = (int)gncTaxTableCompare((struct _gncTaxTable const *)arg1,(struct _gncTaxTable const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEntryCompare"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  GncTaxTableEntry *arg2 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  {
    arg2 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTableEntry, 2, 0);
  }
  result = (int)gncTaxTableEntryCompare((struct _gncTaxTableEntry const *)arg1,(struct _gncTaxTableEntry const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncTaxTableEntryEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncTaxTableEntryEqual"
  GncTaxTableEntry *arg1 = (GncTaxTableEntry *) 0 ;
  GncTaxTableEntry *arg2 = (GncTaxTableEntry *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncTaxTableEntry, 1, 0);
  }
  {
    arg2 = (GncTaxTableEntry *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTableEntry, 2, 0);
  }
  result = gncTaxTableEntryEqual((struct _gncTaxTableEntry const *)arg1,(struct _gncTaxTableEntry const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gncAccountValue_account_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gncAccountValue-account-set"
  struct _gncAccountValue *arg1 = (struct _gncAccountValue *) 0 ;
  Account *arg2 = (Account *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gncAccountValue *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAccountValue, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  if (arg1) (arg1)->account = arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gncAccountValue_account_get (SCM s_0)
{
#define FUNC_NAME "-gncAccountValue-account-get"
  struct _gncAccountValue *arg1 = (struct _gncAccountValue *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  Account *result = 0 ;
  
  {
    arg1 = (struct _gncAccountValue *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAccountValue, 1, 0);
  }
  result = (Account *) ((arg1)->account);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_Account, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gncAccountValue_value_set (SCM s_0, SCM s_1)
{
#define FUNC_NAME "-gncAccountValue-value-set"
  struct _gncAccountValue *arg1 = (struct _gncAccountValue *) 0 ;
  gnc_numeric *arg2 = (gnc_numeric *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gncAccountValue *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAccountValue, 1, 0);
  }
  {
    arg2 = (gnc_numeric *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gnc_numeric, 2, 0);
  }
  if (arg1) (arg1)->value = *arg2;
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap__gncAccountValue_value_get (SCM s_0)
{
#define FUNC_NAME "-gncAccountValue-value-get"
  struct _gncAccountValue *arg1 = (struct _gncAccountValue *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric *result = 0 ;
  
  {
    arg1 = (struct _gncAccountValue *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAccountValue, 1, 0);
  }
  result = (gnc_numeric *)& ((arg1)->value);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gnc_numeric, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_new__gncAccountValue ()
{
#define FUNC_NAME "new--gncAccountValue"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  struct _gncAccountValue *result = 0 ;
  
  result = (struct _gncAccountValue *)calloc(1, sizeof(struct _gncAccountValue));
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAccountValue, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_delete__gncAccountValue (SCM s_0)
{
#define FUNC_NAME "delete--gncAccountValue"
  struct _gncAccountValue *arg1 = (struct _gncAccountValue *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (struct _gncAccountValue *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncAccountValue, 1, 0);
  }
  free((char *) arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  SWIG_Guile_MarkPointerDestroyed(s_0);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAccountValueAdd (SCM s_0, SCM s_1, SCM s_2)
{
#define FUNC_NAME "gncAccountValueAdd"
  GList *arg1 = (GList *) 0 ;
  Account *arg2 = (Account *) 0 ;
  gnc_numeric arg3 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  {
    arg2 = (Account *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_Account, 2, 0);
  }
  arg3 = gnc_scm_to_numeric(s_2);
  result = (GList *)gncAccountValueAdd(arg1,arg2,arg3);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAccountValueAddList (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncAccountValueAddList"
  GList *arg1 = (GList *) 0 ;
  GList *arg2 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GList *result = 0 ;
  
  {
    arg1 = (GList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  {
    arg2 = (GList *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_GList, 2, 0);
  }
  result = (GList *)gncAccountValueAddList(arg1,arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_GList, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAccountValueTotal (SCM s_0)
{
#define FUNC_NAME "gncAccountValueTotal"
  GList *arg1 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_numeric result;
  
  {
    arg1 = (GList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  result = gncAccountValueTotal(arg1);
  gswig_result = gnc_numeric_to_scm(result);
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncAccountValueDestroy (SCM s_0)
{
#define FUNC_NAME "gncAccountValueDestroy"
  GList *arg1 = (GList *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GList *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_GList, 1, 0);
  }
  gncAccountValueDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TT_NAME(SCM s_0)
{
#define FUNC_NAME "GNC-TT-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_TT_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_TT_REFCOUNT(SCM s_0)
{
#define FUNC_NAME "GNC-TT-REFCOUNT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_TT_REFCOUNT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_GNC_ID_VENDOR(SCM s_0)
{
#define FUNC_NAME "GNC-ID-VENDOR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_GNC_ID_VENDOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_vendor_get_type ()
{
#define FUNC_NAME "gnc-vendor-get-type"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GType result;
  
  result = gnc_vendor_get_type();
  {
    GType * resultptr;
    resultptr = (GType *) malloc(sizeof(GType));
    memmove(resultptr, &result, sizeof(GType));
    gswig_result = SWIG_NewPointerObj(resultptr, SWIGTYPE_p_GType, 1);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorCreate (SCM s_0)
{
#define FUNC_NAME "gncVendorCreate"
  QofBook *arg1 = (QofBook *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncVendor *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  result = (GncVendor *)gncVendorCreate(arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncVendor, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorDestroy (SCM s_0)
{
#define FUNC_NAME "gncVendorDestroy"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  gncVendorDestroy(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetID (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetID"
  GncVendor *arg1 = (GncVendor *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncVendorSetID(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetName (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetName"
  GncVendor *arg1 = (GncVendor *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncVendorSetName(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetNotes (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetNotes"
  GncVendor *arg1 = (GncVendor *) 0 ;
  char *arg2 = (char *) 0 ;
  int must_free2 = 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (char *)SWIG_scm2str(s_1);
    must_free2 = 1;
  }
  gncVendorSetNotes(arg1,(char const *)arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  if (must_free2 && arg2) SWIG_free(arg2);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetTerms (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetTerms"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncBillTerm *arg2 = (GncBillTerm *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncBillTerm *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncBillTerm, 2, 0);
  }
  gncVendorSetTerms(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetTaxIncluded (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetTaxIncluded"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncTaxIncluded arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncTaxIncluded) scm_to_int(s_1); 
  }
  gncVendorSetTaxIncluded(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetCurrency (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetCurrency"
  GncVendor *arg1 = (GncVendor *) 0 ;
  gnc_commodity *arg2 = (gnc_commodity *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (gnc_commodity *)SWIG_MustGetPtr(s_1, SWIGTYPE_p_gnc_commodity, 2, 0);
  }
  gncVendorSetCurrency(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetActive (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetActive"
  GncVendor *arg1 = (GncVendor *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncVendorSetActive(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetTaxTableOverride (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetTaxTableOverride"
  GncVendor *arg1 = (GncVendor *) 0 ;
  gboolean arg2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  arg2 = scm_is_true(s_1) ? TRUE : FALSE;
  gncVendorSetTaxTableOverride(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorSetTaxTable (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorSetTaxTable"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncTaxTable *arg2 = (GncTaxTable *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncTaxTable *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncTaxTable, 2, 0);
  }
  gncVendorSetTaxTable(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorAddJob (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorAddJob"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  gncVendorAddJob(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorRemoveJob (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorRemoveJob"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncJob *arg2 = (GncJob *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncJob *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncJob, 2, 0);
  }
  gncVendorRemoveJob(arg1,arg2);
  gswig_result = SCM_UNSPECIFIED;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorBeginEdit (SCM s_0)
{
#define FUNC_NAME "gncVendorBeginEdit"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  gncVendorBeginEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorCommitEdit (SCM s_0)
{
#define FUNC_NAME "gncVendorCommitEdit"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  gncVendorCommitEdit(arg1);
  gswig_result = SCM_UNSPECIFIED;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetID (SCM s_0)
{
#define FUNC_NAME "gncVendorGetID"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (char *)gncVendorGetID((struct _gncVendor const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetName (SCM s_0)
{
#define FUNC_NAME "gncVendorGetName"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (char *)gncVendorGetName((struct _gncVendor const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetAddr (SCM s_0)
{
#define FUNC_NAME "gncVendorGetAddr"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAddress *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (GncAddress *)gncVendorGetAddr((struct _gncVendor const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncAddress, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetNotes (SCM s_0)
{
#define FUNC_NAME "gncVendorGetNotes"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  char *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (char *)gncVendorGetNotes((struct _gncVendor const *)arg1);
  {
    gswig_result = SCM_UNSPECIFIED;
    if (result) {
      gswig_result = scm_from_utf8_string((const char *)result);
    }
    if (!result || !scm_is_true(gswig_result)) {
      gswig_result = scm_c_make_string(0, SCM_UNDEFINED);
    }
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetTerms (SCM s_0)
{
#define FUNC_NAME "gncVendorGetTerms"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncBillTerm *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (GncBillTerm *)gncVendorGetTerms((struct _gncVendor const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncBillTerm, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetTaxIncluded (SCM s_0)
{
#define FUNC_NAME "gncVendorGetTaxIncluded"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxIncluded result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (GncTaxIncluded)gncVendorGetTaxIncluded((struct _gncVendor const *)arg1);
  {
    gswig_result = scm_from_long((int)result); 
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetCurrency (SCM s_0)
{
#define FUNC_NAME "gncVendorGetCurrency"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gnc_commodity *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (gnc_commodity *)gncVendorGetCurrency((struct _gncVendor const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p_gnc_commodity, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetActive (SCM s_0)
{
#define FUNC_NAME "gncVendorGetActive"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = gncVendorGetActive((struct _gncVendor const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetTaxTableOverride (SCM s_0)
{
#define FUNC_NAME "gncVendorGetTaxTableOverride"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = gncVendorGetTaxTableOverride((struct _gncVendor const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorGetTaxTable (SCM s_0)
{
#define FUNC_NAME "gncVendorGetTaxTable"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncTaxTable *result = 0 ;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = (GncTaxTable *)gncVendorGetTaxTable((struct _gncVendor const *)arg1);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncTaxTable, 0);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorCompare (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorCompare"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncVendor *arg2 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  int result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncVendor *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncVendor, 2, 0);
  }
  result = (int)gncVendorCompare((struct _gncVendor const *)arg1,(struct _gncVendor const *)arg2);
  {
    gswig_result = scm_from_long(result);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorLookup (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorLookup"
  QofBook *arg1 = (QofBook *) 0 ;
  GncGUID *arg2 = (GncGUID *) 0 ;
  GncGUID g2 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncVendor *result = 0 ;
  
  {
    arg1 = (QofBook *)SWIG_MustGetPtr(s_0, SWIGTYPE_p_QofBook, 1, 0);
  }
  g2 = gnc_scm2guid(s_1); arg2 = &g2; 
  result = (GncVendor *)gncVendorLookup((QofBook const *)arg1,(GncGUID const *)arg2);
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__gncVendor, 0);
  }
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_ID(SCM s_0)
{
#define FUNC_NAME "VENDOR-ID"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_ID);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_NAME(SCM s_0)
{
#define FUNC_NAME "VENDOR-NAME"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_NAME);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_ADDR(SCM s_0)
{
#define FUNC_NAME "VENDOR-ADDR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_ADDR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_NOTES(SCM s_0)
{
#define FUNC_NAME "VENDOR-NOTES"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_NOTES);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_TERMS(SCM s_0)
{
#define FUNC_NAME "VENDOR-TERMS"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_TERMS);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_TAX_INC(SCM s_0)
{
#define FUNC_NAME "VENDOR-TAX-INC"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_TAX_INC);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_ACTIVE(SCM s_0)
{
#define FUNC_NAME "VENDOR-ACTIVE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_ACTIVE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_TAX_OVERRIDE(SCM s_0)
{
#define FUNC_NAME "VENDOR-TAX-OVERRIDE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_TAX_OVERRIDE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_VENDOR_TAX_TABLE(SCM s_0)
{
#define FUNC_NAME "VENDOR-TAX-TABLE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_VENDOR_TAX_TABLE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorEqual (SCM s_0, SCM s_1)
{
#define FUNC_NAME "gncVendorEqual"
  GncVendor *arg1 = (GncVendor *) 0 ;
  GncVendor *arg2 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  {
    arg2 = (GncVendor *)SWIG_MustGetPtr(s_1, SWIGTYPE_p__gncVendor, 2, 0);
  }
  result = gncVendorEqual((struct _gncVendor const *)arg1,(struct _gncVendor const *)arg2);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gncVendorIsDirty (SCM s_0)
{
#define FUNC_NAME "gncVendorIsDirty"
  GncVendor *arg1 = (GncVendor *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  gboolean result;
  
  {
    arg1 = (GncVendor *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__gncVendor, 1, 0);
  }
  result = gncVendorIsDirty((struct _gncVendor const *)arg1);
  gswig_result = result ? SCM_BOOL_T : SCM_BOOL_F;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_scm_to_account_value_ptr (SCM s_0)
{
#define FUNC_NAME "gnc-scm-to-account-value-ptr"
  SCM arg1 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncAccountValue *result = 0 ;
  
  arg1=s_0;
  result = (GncAccountValue *)gnc_scm_to_account_value_ptr(arg1);
  gswig_result = gnc_account_value_ptr_to_scm(result);
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_gnc_account_value_ptr_to_scm (SCM s_0)
{
#define FUNC_NAME "gnc-account-value-ptr-to-scm"
  GncAccountValue *arg1 = (GncAccountValue *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  SCM result;
  
  arg1 = gnc_scm_to_account_value_ptr(s_0);
  result = (SCM)gnc_account_value_ptr_to_scm(arg1);
  gswig_result=result;
  
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_CUSTOMER(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-CUSTOMER"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_CUSTOMER);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_VENDOR(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-VENDOR"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_VENDOR);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_EMPLOYEE(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-EMPLOYEE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_EMPLOYEE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_JOB(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-JOB"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_JOB);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_INVOICE(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-INVOICE"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_INVOICE);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_URL_TYPE_OWNERREPORT(SCM s_0)
{
#define FUNC_NAME "URL-TYPE-OWNERREPORT"
  SCM gswig_result;
  
  {
    gswig_result = SWIG_str02scm(gswig_const_URL_TYPE_OWNERREPORT);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_create_for_invoices ()
{
#define FUNC_NAME "qof-query-create-for-invoices"
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  QofQuery *result = 0 ;
  
  result = (QofQuery *)qof_query_create_for_invoices();
  {
    gswig_result = SWIG_NewPointerObj (result, SWIGTYPE_p__QofQuery, 0);
  }
  
  return gswig_result;
#undef FUNC_NAME
}


static SCM
_wrap_qof_query_run_for_invoices (SCM s_0)
{
#define FUNC_NAME "qof-query-run-for-invoices"
  QofQuery *arg1 = (QofQuery *) 0 ;
  SCM gswig_result;
  SWIGUNUSED int gswig_list_p = 0;
  GncInvoiceList *result = 0 ;
  
  {
    arg1 = (QofQuery *)SWIG_MustGetPtr(s_0, SWIGTYPE_p__QofQuery, 1, 0);
  }
  result = (GncInvoiceList *)qof_query_run_for_invoices(arg1);
  {
    SCM list = SCM_EOL;
    GList *node;
    
    for (node = result; node; node = node->next)
    list = scm_cons(SWIG_NewPointerObj(node->data,
        SWIGTYPE_p__gncInvoice, 0), list);
    
    gswig_result = scm_reverse(list);
  }
  
  
  return gswig_result;
#undef FUNC_NAME
}


#ifdef __cplusplus
extern "C" {
#endif

/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__p_Account = {"_p_Account", "Account *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AccountClass = {"_p_AccountClass", "AccountClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AccountGUIDList = {"_p_AccountGUIDList", "AccountGUIDList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AccountList = {"_p_AccountList", "AccountList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GCompareFunc = {"_p_GCompareFunc", "GCompareFunc *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GDate = {"_p_GDate", "GDate *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GFunc = {"_p_GFunc", "GFunc *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GHashTable = {"_p_GHashTable", "GHashTable *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GList = {"_p_GList", "OwnerList *|GList *|CommodityList *|AccountValueList *|MonetaryList *|GncTaxTableList *|EntryList *|GncTaxTableEntryList *|PriceList *|GncInvoiceList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCAccountType = {"_p_GNCAccountType", "enum GNCAccountType *|GNCAccountType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCDateMonthFormat = {"_p_GNCDateMonthFormat", "enum GNCDateMonthFormat *|GNCDateMonthFormat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCLot = {"_p_GNCLot", "GNCLot *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCNumericErrorCode = {"_p_GNCNumericErrorCode", "enum GNCNumericErrorCode *|GNCNumericErrorCode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCPlaceholderType = {"_p_GNCPlaceholderType", "enum GNCPlaceholderType *|GNCPlaceholderType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GNCPrice = {"_p_GNCPrice", "GNCPrice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GSList = {"_p_GSList", "GSList *|QofQueryParamList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GType = {"_p_GType", "GType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncAmountType = {"_p_GncAmountType", "enum GncAmountType *|GncAmountType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncBillTermType = {"_p_GncBillTermType", "enum GncBillTermType *|GncBillTermType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncDiscountHow = {"_p_GncDiscountHow", "enum GncDiscountHow *|GncDiscountHow *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncEntryPaymentType = {"_p_GncEntryPaymentType", "enum GncEntryPaymentType *|GncEntryPaymentType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncGUID = {"_p_GncGUID", "GncGUID *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncImportMatchMap = {"_p_GncImportMatchMap", "GncImportMatchMap *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncInvoiceType = {"_p_GncInvoiceType", "enum GncInvoiceType *|GncInvoiceType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncLotClass = {"_p_GncLotClass", "GncLotClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncOwnerType = {"_p_GncOwnerType", "enum GncOwnerType *|GncOwnerType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GncTaxIncluded = {"_p_GncTaxIncluded", "enum GncTaxIncluded *|GncTaxIncluded *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KvpValue = {"_p_KvpValue", "KvpValue *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PriceRemoveKeepOptions = {"_p_PriceRemoveKeepOptions", "enum PriceRemoveKeepOptions *|PriceRemoveKeepOptions *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PriceRemoveSourceFlags = {"_p_PriceRemoveSourceFlags", "enum PriceRemoveSourceFlags *|PriceRemoveSourceFlags *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PriceSource = {"_p_PriceSource", "enum PriceSource *|PriceSource *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofBook = {"_p_QofBook", "QofBook *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofCharMatch = {"_p_QofCharMatch", "enum QofCharMatch *|QofCharMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofCollection = {"_p_QofCollection", "QofCollection *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofDateCompletion = {"_p_QofDateCompletion", "enum QofDateCompletion *|QofDateCompletion *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofDateFormat = {"_p_QofDateFormat", "enum QofDateFormat *|QofDateFormat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofDateMatch = {"_p_QofDateMatch", "enum QofDateMatch *|QofDateMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofGuidMatch = {"_p_QofGuidMatch", "enum QofGuidMatch *|QofGuidMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofIdType = {"_p_QofIdType", "QofIdType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofIdTypeConst = {"_p_QofIdTypeConst", "QofIdTypeConst *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofInstance = {"_p_QofInstance", "QofInstance *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofInstanceClass = {"_p_QofInstanceClass", "QofInstanceClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofNumericMatch = {"_p_QofNumericMatch", "enum QofNumericMatch *|QofNumericMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofParam = {"_p_QofParam", "QofParam *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofQueryCompare = {"_p_QofQueryCompare", "enum QofQueryCompare *|QofQueryCompare *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofQueryOp = {"_p_QofQueryOp", "enum QofQueryOp *|QofQueryOp *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofSession = {"_p_QofSession", "QofSession *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofStringMatch = {"_p_QofStringMatch", "enum QofStringMatch *|QofStringMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QofType = {"_p_QofType", "QofType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_QuoteSourceType = {"_p_QuoteSourceType", "enum QuoteSourceType *|QuoteSourceType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Recurrence = {"_p_Recurrence", "Recurrence *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Split = {"_p_Split", "Split *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SplitList = {"_p_SplitList", "SplitList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Transaction = {"_p_Transaction", "Transaction *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_TransactionCallback = {"_p_TransactionCallback", "TransactionCallback *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__GncBudgetClass = {"_p__GncBudgetClass", "struct _GncBudgetClass *|GncBudgetClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__GncCommodityClass = {"_p__GncCommodityClass", "struct _GncCommodityClass *|gnc_commodityClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__GncCommodityNamespaceClass = {"_p__GncCommodityNamespaceClass", "struct _GncCommodityNamespaceClass *|gnc_commodity_namespaceClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__GncPriceClass = {"_p__GncPriceClass", "struct _GncPriceClass *|GNCPriceClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__GncPriceDBClass = {"_p__GncPriceDBClass", "struct _GncPriceDBClass *|GNCPriceDBClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__QofQuery = {"_p__QofQuery", "struct _QofQuery *|QofQuery *|Query *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__QofQueryPredData = {"_p__QofQueryPredData", "struct _QofQueryPredData *|QofQueryPredData *|_QofQueryPredData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__SplitClass = {"_p__SplitClass", "struct _SplitClass *|SplitClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__TransactionClass = {"_p__TransactionClass", "struct _TransactionClass *|TransactionClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncAccountValue = {"_p__gncAccountValue", "struct _gncAccountValue *|GncAccountValue *|_gncAccountValue *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncAddress = {"_p__gncAddress", "struct _gncAddress *|GncAddress *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncAddressClass = {"_p__gncAddressClass", "struct _gncAddressClass *|GncAddressClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncBillTerm = {"_p__gncBillTerm", "struct _gncBillTerm *|GncBillTerm *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncBillTermClass = {"_p__gncBillTermClass", "struct _gncBillTermClass *|GncBillTermClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncCustomer = {"_p__gncCustomer", "struct _gncCustomer *|GncCustomer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncCustomerClass = {"_p__gncCustomerClass", "struct _gncCustomerClass *|GncCustomerClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncEmployee = {"_p__gncEmployee", "struct _gncEmployee *|GncEmployee *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncEmployeeClass = {"_p__gncEmployeeClass", "struct _gncEmployeeClass *|GncEmployeeClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncEntry = {"_p__gncEntry", "struct _gncEntry *|GncEntry *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncEntryClass = {"_p__gncEntryClass", "struct _gncEntryClass *|GncEntryClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncInvoice = {"_p__gncInvoice", "struct _gncInvoice *|GncInvoice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncInvoiceClass = {"_p__gncInvoiceClass", "struct _gncInvoiceClass *|GncInvoiceClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncJob = {"_p__gncJob", "struct _gncJob *|GncJob *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncJobClass = {"_p__gncJobClass", "struct _gncJobClass *|GncJobClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncOrder = {"_p__gncOrder", "struct _gncOrder *|GncOrder *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncOrderClass = {"_p__gncOrderClass", "struct _gncOrderClass *|GncOrderClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncOwner = {"_p__gncOwner", "struct _gncOwner *|GncOwner *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncTaxTable = {"_p__gncTaxTable", "struct _gncTaxTable *|GncTaxTable *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncTaxTableClass = {"_p__gncTaxTableClass", "struct _gncTaxTableClass *|GncTaxTableClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncTaxTableEntry = {"_p__gncTaxTableEntry", "struct _gncTaxTableEntry *|GncTaxTableEntry *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncVendor = {"_p__gncVendor", "struct _gncVendor *|GncVendor *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gncVendorClass = {"_p__gncVendorClass", "struct _gncVendorClass *|GncVendorClass *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gnc_monetary = {"_p__gnc_monetary", "_gnc_monetary *|struct _gnc_monetary *|gnc_monetary *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__gnc_numeric = {"_p__gnc_numeric", "struct _gnc_numeric *|gnc_numeric *|_gnc_numeric *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_budget_s = {"_p_budget_s", "struct budget_s *|GncBudget *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "gchar *|char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_cleared_match_t = {"_p_cleared_match_t", "enum cleared_match_t *|cleared_match_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_double = {"_p_double", "double *|gdouble *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_Account_p_void__p_void = {"_p_f_p_Account_p_void__p_void", "void *(*)(Account *,void *)|AccountCb2", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_Account_p_void__void = {"_p_f_p_Account_p_void__void", "AccountCb|void (*)(Account *,void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_GNCLot_p_void__gboolean = {"_p_f_p_GNCLot_p_void__gboolean", "gboolean (*)(GNCLot *,void *)|gboolean (*)(GNCLot *,gpointer)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_GNCLot_p_void__p_void = {"_p_f_p_GNCLot_p_void__p_void", "void *(*)(GNCLot *,void *)|gpointer (*)(GNCLot *,gpointer)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_GNCPrice_p_void__gboolean = {"_p_f_p_GNCPrice_p_void__gboolean", "gboolean (*)(GNCPrice *,void *)|GncPriceForeachFunc", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_gnc_commodity_p_void__gboolean = {"_p_f_p_gnc_commodity_p_void__gboolean", "gboolean (*)(gnc_commodity *,void *)|gboolean (*)(gnc_commodity *,gpointer)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void_p_void__void = {"_p_f_p_void_p_void__void", "void (*)(void *,void *)|GncBOCb", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_float = {"_p_float", "float *|gfloat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gboolean = {"_p_gboolean", "gboolean *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gconstpointer = {"_p_gconstpointer", "gconstpointer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gint32 = {"_p_gint32", "gint32 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gint64 = {"_p_gint64", "gint64 *|time64 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gnc_commodity = {"_p_gnc_commodity", "gnc_commodity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gnc_commodity_namespace = {"_p_gnc_commodity_namespace", "gnc_commodity_namespace *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gnc_commodity_table = {"_p_gnc_commodity_table", "gnc_commodity_table *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gnc_price_db_s = {"_p_gnc_price_db_s", "GNCPriceDB *|struct gnc_price_db_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gnc_quote_source = {"_p_gnc_quote_source", "gnc_quote_source *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gncpolicy_s = {"_p_gncpolicy_s", "GNCPolicy *|struct gncpolicy_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gsize = {"_p_gsize", "gsize *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_guint32 = {"_p_guint32", "guint32 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_guint8 = {"_p_guint8", "guint8 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_gunichar = {"_p_gunichar", "gunichar *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_imap_info = {"_p_imap_info", "struct imap_info *|GncImapInfo *|imap_info *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|gint *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_GList = {"_p_p_GList", "GList **|PriceList **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_Transaction = {"_p_p_Transaction", "Transaction **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_query_txn_match_t = {"_p_query_txn_match_t", "enum query_txn_match_t *|query_txn_match_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_timespec64 = {"_p_timespec64", "struct timespec64 *|Timespec *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tm = {"_p_tm", "struct tm *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "guint *|unsigned int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "SCM *|unsigned long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "gpointer|void *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_Account,
  &_swigt__p_AccountClass,
  &_swigt__p_AccountGUIDList,
  &_swigt__p_AccountList,
  &_swigt__p_FILE,
  &_swigt__p_GCompareFunc,
  &_swigt__p_GDate,
  &_swigt__p_GFunc,
  &_swigt__p_GHashTable,
  &_swigt__p_GList,
  &_swigt__p_GNCAccountType,
  &_swigt__p_GNCDateMonthFormat,
  &_swigt__p_GNCLot,
  &_swigt__p_GNCNumericErrorCode,
  &_swigt__p_GNCPlaceholderType,
  &_swigt__p_GNCPrice,
  &_swigt__p_GSList,
  &_swigt__p_GType,
  &_swigt__p_GncAmountType,
  &_swigt__p_GncBillTermType,
  &_swigt__p_GncDiscountHow,
  &_swigt__p_GncEntryPaymentType,
  &_swigt__p_GncGUID,
  &_swigt__p_GncImportMatchMap,
  &_swigt__p_GncInvoiceType,
  &_swigt__p_GncLotClass,
  &_swigt__p_GncOwnerType,
  &_swigt__p_GncTaxIncluded,
  &_swigt__p_KvpValue,
  &_swigt__p_PriceRemoveKeepOptions,
  &_swigt__p_PriceRemoveSourceFlags,
  &_swigt__p_PriceSource,
  &_swigt__p_QofBook,
  &_swigt__p_QofCharMatch,
  &_swigt__p_QofCollection,
  &_swigt__p_QofDateCompletion,
  &_swigt__p_QofDateFormat,
  &_swigt__p_QofDateMatch,
  &_swigt__p_QofGuidMatch,
  &_swigt__p_QofIdType,
  &_swigt__p_QofIdTypeConst,
  &_swigt__p_QofInstance,
  &_swigt__p_QofInstanceClass,
  &_swigt__p_QofNumericMatch,
  &_swigt__p_QofParam,
  &_swigt__p_QofQueryCompare,
  &_swigt__p_QofQueryOp,
  &_swigt__p_QofSession,
  &_swigt__p_QofStringMatch,
  &_swigt__p_QofType,
  &_swigt__p_QuoteSourceType,
  &_swigt__p_Recurrence,
  &_swigt__p_Split,
  &_swigt__p_SplitList,
  &_swigt__p_Transaction,
  &_swigt__p_TransactionCallback,
  &_swigt__p__GncBudgetClass,
  &_swigt__p__GncCommodityClass,
  &_swigt__p__GncCommodityNamespaceClass,
  &_swigt__p__GncPriceClass,
  &_swigt__p__GncPriceDBClass,
  &_swigt__p__QofQuery,
  &_swigt__p__QofQueryPredData,
  &_swigt__p__SplitClass,
  &_swigt__p__TransactionClass,
  &_swigt__p__gncAccountValue,
  &_swigt__p__gncAddress,
  &_swigt__p__gncAddressClass,
  &_swigt__p__gncBillTerm,
  &_swigt__p__gncBillTermClass,
  &_swigt__p__gncCustomer,
  &_swigt__p__gncCustomerClass,
  &_swigt__p__gncEmployee,
  &_swigt__p__gncEmployeeClass,
  &_swigt__p__gncEntry,
  &_swigt__p__gncEntryClass,
  &_swigt__p__gncInvoice,
  &_swigt__p__gncInvoiceClass,
  &_swigt__p__gncJob,
  &_swigt__p__gncJobClass,
  &_swigt__p__gncOrder,
  &_swigt__p__gncOrderClass,
  &_swigt__p__gncOwner,
  &_swigt__p__gncTaxTable,
  &_swigt__p__gncTaxTableClass,
  &_swigt__p__gncTaxTableEntry,
  &_swigt__p__gncVendor,
  &_swigt__p__gncVendorClass,
  &_swigt__p__gnc_monetary,
  &_swigt__p__gnc_numeric,
  &_swigt__p_budget_s,
  &_swigt__p_char,
  &_swigt__p_cleared_match_t,
  &_swigt__p_double,
  &_swigt__p_f_p_Account_p_void__p_void,
  &_swigt__p_f_p_Account_p_void__void,
  &_swigt__p_f_p_GNCLot_p_void__gboolean,
  &_swigt__p_f_p_GNCLot_p_void__p_void,
  &_swigt__p_f_p_GNCPrice_p_void__gboolean,
  &_swigt__p_f_p_gnc_commodity_p_void__gboolean,
  &_swigt__p_f_p_void_p_void__void,
  &_swigt__p_float,
  &_swigt__p_gboolean,
  &_swigt__p_gconstpointer,
  &_swigt__p_gint32,
  &_swigt__p_gint64,
  &_swigt__p_gnc_commodity,
  &_swigt__p_gnc_commodity_namespace,
  &_swigt__p_gnc_commodity_table,
  &_swigt__p_gnc_price_db_s,
  &_swigt__p_gnc_quote_source,
  &_swigt__p_gncpolicy_s,
  &_swigt__p_gsize,
  &_swigt__p_guint32,
  &_swigt__p_guint8,
  &_swigt__p_gunichar,
  &_swigt__p_imap_info,
  &_swigt__p_int,
  &_swigt__p_p_GList,
  &_swigt__p_p_Transaction,
  &_swigt__p_query_txn_match_t,
  &_swigt__p_timespec64,
  &_swigt__p_tm,
  &_swigt__p_unsigned_int,
  &_swigt__p_unsigned_long,
  &_swigt__p_void,
};

static swig_cast_info _swigc__p_Account[] = {  {&_swigt__p_Account, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AccountClass[] = {  {&_swigt__p_AccountClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AccountGUIDList[] = {  {&_swigt__p_AccountGUIDList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AccountList[] = {  {&_swigt__p_AccountList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FILE[] = {  {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GCompareFunc[] = {  {&_swigt__p_GCompareFunc, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GDate[] = {  {&_swigt__p_GDate, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GFunc[] = {  {&_swigt__p_GFunc, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GHashTable[] = {  {&_swigt__p_GHashTable, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GList[] = {  {&_swigt__p_GList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCAccountType[] = {  {&_swigt__p_GNCAccountType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCDateMonthFormat[] = {  {&_swigt__p_GNCDateMonthFormat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCLot[] = {  {&_swigt__p_GNCLot, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCNumericErrorCode[] = {  {&_swigt__p_GNCNumericErrorCode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCPlaceholderType[] = {  {&_swigt__p_GNCPlaceholderType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GNCPrice[] = {  {&_swigt__p_GNCPrice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GSList[] = {  {&_swigt__p_GSList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GType[] = {  {&_swigt__p_GType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncAmountType[] = {  {&_swigt__p_GncAmountType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncBillTermType[] = {  {&_swigt__p_GncBillTermType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncDiscountHow[] = {  {&_swigt__p_GncDiscountHow, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncEntryPaymentType[] = {  {&_swigt__p_GncEntryPaymentType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncGUID[] = {  {&_swigt__p_GncGUID, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncImportMatchMap[] = {  {&_swigt__p_GncImportMatchMap, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncInvoiceType[] = {  {&_swigt__p_GncInvoiceType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncLotClass[] = {  {&_swigt__p_GncLotClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncOwnerType[] = {  {&_swigt__p_GncOwnerType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GncTaxIncluded[] = {  {&_swigt__p_GncTaxIncluded, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KvpValue[] = {  {&_swigt__p_KvpValue, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PriceRemoveKeepOptions[] = {  {&_swigt__p_PriceRemoveKeepOptions, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PriceRemoveSourceFlags[] = {  {&_swigt__p_PriceRemoveSourceFlags, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PriceSource[] = {  {&_swigt__p_PriceSource, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofBook[] = {  {&_swigt__p_QofBook, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofCharMatch[] = {  {&_swigt__p_QofCharMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofCollection[] = {  {&_swigt__p_QofCollection, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofDateCompletion[] = {  {&_swigt__p_QofDateCompletion, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofDateFormat[] = {  {&_swigt__p_QofDateFormat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofDateMatch[] = {  {&_swigt__p_QofDateMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofGuidMatch[] = {  {&_swigt__p_QofGuidMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofIdType[] = {  {&_swigt__p_QofIdType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofIdTypeConst[] = {  {&_swigt__p_QofIdTypeConst, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofInstance[] = {  {&_swigt__p_QofInstance, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofInstanceClass[] = {  {&_swigt__p_QofInstanceClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofNumericMatch[] = {  {&_swigt__p_QofNumericMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofParam[] = {  {&_swigt__p_QofParam, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofQueryCompare[] = {  {&_swigt__p_QofQueryCompare, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofQueryOp[] = {  {&_swigt__p_QofQueryOp, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofSession[] = {  {&_swigt__p_QofSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofStringMatch[] = {  {&_swigt__p_QofStringMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QofType[] = {  {&_swigt__p_QofType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QuoteSourceType[] = {  {&_swigt__p_QuoteSourceType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Recurrence[] = {  {&_swigt__p_Recurrence, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Split[] = {  {&_swigt__p_Split, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SplitList[] = {  {&_swigt__p_SplitList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Transaction[] = {  {&_swigt__p_Transaction, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_TransactionCallback[] = {  {&_swigt__p_TransactionCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__GncBudgetClass[] = {  {&_swigt__p__GncBudgetClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__GncCommodityClass[] = {  {&_swigt__p__GncCommodityClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__GncCommodityNamespaceClass[] = {  {&_swigt__p__GncCommodityNamespaceClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__GncPriceClass[] = {  {&_swigt__p__GncPriceClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__GncPriceDBClass[] = {  {&_swigt__p__GncPriceDBClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__QofQuery[] = {  {&_swigt__p__QofQuery, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__QofQueryPredData[] = {  {&_swigt__p__QofQueryPredData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__SplitClass[] = {  {&_swigt__p__SplitClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__TransactionClass[] = {  {&_swigt__p__TransactionClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncAccountValue[] = {  {&_swigt__p__gncAccountValue, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncAddress[] = {  {&_swigt__p__gncAddress, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncAddressClass[] = {  {&_swigt__p__gncAddressClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncBillTerm[] = {  {&_swigt__p__gncBillTerm, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncBillTermClass[] = {  {&_swigt__p__gncBillTermClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncCustomer[] = {  {&_swigt__p__gncCustomer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncCustomerClass[] = {  {&_swigt__p__gncCustomerClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncEmployee[] = {  {&_swigt__p__gncEmployee, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncEmployeeClass[] = {  {&_swigt__p__gncEmployeeClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncEntry[] = {  {&_swigt__p__gncEntry, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncEntryClass[] = {  {&_swigt__p__gncEntryClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncInvoice[] = {  {&_swigt__p__gncInvoice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncInvoiceClass[] = {  {&_swigt__p__gncInvoiceClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncJob[] = {  {&_swigt__p__gncJob, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncJobClass[] = {  {&_swigt__p__gncJobClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncOrder[] = {  {&_swigt__p__gncOrder, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncOrderClass[] = {  {&_swigt__p__gncOrderClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncOwner[] = {  {&_swigt__p__gncOwner, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncTaxTable[] = {  {&_swigt__p__gncTaxTable, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncTaxTableClass[] = {  {&_swigt__p__gncTaxTableClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncTaxTableEntry[] = {  {&_swigt__p__gncTaxTableEntry, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncVendor[] = {  {&_swigt__p__gncVendor, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gncVendorClass[] = {  {&_swigt__p__gncVendorClass, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gnc_monetary[] = {  {&_swigt__p__gnc_monetary, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__gnc_numeric[] = {  {&_swigt__p__gnc_numeric, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_budget_s[] = {  {&_swigt__p_budget_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_cleared_match_t[] = {  {&_swigt__p_cleared_match_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_double[] = {  {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_Account_p_void__p_void[] = {  {&_swigt__p_f_p_Account_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_Account_p_void__void[] = {  {&_swigt__p_f_p_Account_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_GNCLot_p_void__gboolean[] = {  {&_swigt__p_f_p_GNCLot_p_void__gboolean, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_GNCLot_p_void__p_void[] = {  {&_swigt__p_f_p_GNCLot_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_GNCPrice_p_void__gboolean[] = {  {&_swigt__p_f_p_GNCPrice_p_void__gboolean, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_gnc_commodity_p_void__gboolean[] = {  {&_swigt__p_f_p_gnc_commodity_p_void__gboolean, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_p_void__void[] = {  {&_swigt__p_f_p_void_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gboolean[] = {  {&_swigt__p_gboolean, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gconstpointer[] = {  {&_swigt__p_gconstpointer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gint32[] = {  {&_swigt__p_gint32, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gint64[] = {  {&_swigt__p_gint64, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gnc_commodity[] = {  {&_swigt__p_gnc_commodity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gnc_commodity_namespace[] = {  {&_swigt__p_gnc_commodity_namespace, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gnc_commodity_table[] = {  {&_swigt__p_gnc_commodity_table, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gnc_price_db_s[] = {  {&_swigt__p_gnc_price_db_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gnc_quote_source[] = {  {&_swigt__p_gnc_quote_source, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gncpolicy_s[] = {  {&_swigt__p_gncpolicy_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gsize[] = {  {&_swigt__p_gsize, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_guint32[] = {  {&_swigt__p_guint32, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_guint8[] = {  {&_swigt__p_guint8, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_gunichar[] = {  {&_swigt__p_gunichar, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_imap_info[] = {  {&_swigt__p_imap_info, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_GList[] = {  {&_swigt__p_p_GList, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_Transaction[] = {  {&_swigt__p_p_Transaction, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_query_txn_match_t[] = {  {&_swigt__p_query_txn_match_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_timespec64[] = {  {&_swigt__p_timespec64, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tm[] = {  {&_swigt__p_tm, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_Account,
  _swigc__p_AccountClass,
  _swigc__p_AccountGUIDList,
  _swigc__p_AccountList,
  _swigc__p_FILE,
  _swigc__p_GCompareFunc,
  _swigc__p_GDate,
  _swigc__p_GFunc,
  _swigc__p_GHashTable,
  _swigc__p_GList,
  _swigc__p_GNCAccountType,
  _swigc__p_GNCDateMonthFormat,
  _swigc__p_GNCLot,
  _swigc__p_GNCNumericErrorCode,
  _swigc__p_GNCPlaceholderType,
  _swigc__p_GNCPrice,
  _swigc__p_GSList,
  _swigc__p_GType,
  _swigc__p_GncAmountType,
  _swigc__p_GncBillTermType,
  _swigc__p_GncDiscountHow,
  _swigc__p_GncEntryPaymentType,
  _swigc__p_GncGUID,
  _swigc__p_GncImportMatchMap,
  _swigc__p_GncInvoiceType,
  _swigc__p_GncLotClass,
  _swigc__p_GncOwnerType,
  _swigc__p_GncTaxIncluded,
  _swigc__p_KvpValue,
  _swigc__p_PriceRemoveKeepOptions,
  _swigc__p_PriceRemoveSourceFlags,
  _swigc__p_PriceSource,
  _swigc__p_QofBook,
  _swigc__p_QofCharMatch,
  _swigc__p_QofCollection,
  _swigc__p_QofDateCompletion,
  _swigc__p_QofDateFormat,
  _swigc__p_QofDateMatch,
  _swigc__p_QofGuidMatch,
  _swigc__p_QofIdType,
  _swigc__p_QofIdTypeConst,
  _swigc__p_QofInstance,
  _swigc__p_QofInstanceClass,
  _swigc__p_QofNumericMatch,
  _swigc__p_QofParam,
  _swigc__p_QofQueryCompare,
  _swigc__p_QofQueryOp,
  _swigc__p_QofSession,
  _swigc__p_QofStringMatch,
  _swigc__p_QofType,
  _swigc__p_QuoteSourceType,
  _swigc__p_Recurrence,
  _swigc__p_Split,
  _swigc__p_SplitList,
  _swigc__p_Transaction,
  _swigc__p_TransactionCallback,
  _swigc__p__GncBudgetClass,
  _swigc__p__GncCommodityClass,
  _swigc__p__GncCommodityNamespaceClass,
  _swigc__p__GncPriceClass,
  _swigc__p__GncPriceDBClass,
  _swigc__p__QofQuery,
  _swigc__p__QofQueryPredData,
  _swigc__p__SplitClass,
  _swigc__p__TransactionClass,
  _swigc__p__gncAccountValue,
  _swigc__p__gncAddress,
  _swigc__p__gncAddressClass,
  _swigc__p__gncBillTerm,
  _swigc__p__gncBillTermClass,
  _swigc__p__gncCustomer,
  _swigc__p__gncCustomerClass,
  _swigc__p__gncEmployee,
  _swigc__p__gncEmployeeClass,
  _swigc__p__gncEntry,
  _swigc__p__gncEntryClass,
  _swigc__p__gncInvoice,
  _swigc__p__gncInvoiceClass,
  _swigc__p__gncJob,
  _swigc__p__gncJobClass,
  _swigc__p__gncOrder,
  _swigc__p__gncOrderClass,
  _swigc__p__gncOwner,
  _swigc__p__gncTaxTable,
  _swigc__p__gncTaxTableClass,
  _swigc__p__gncTaxTableEntry,
  _swigc__p__gncVendor,
  _swigc__p__gncVendorClass,
  _swigc__p__gnc_monetary,
  _swigc__p__gnc_numeric,
  _swigc__p_budget_s,
  _swigc__p_char,
  _swigc__p_cleared_match_t,
  _swigc__p_double,
  _swigc__p_f_p_Account_p_void__p_void,
  _swigc__p_f_p_Account_p_void__void,
  _swigc__p_f_p_GNCLot_p_void__gboolean,
  _swigc__p_f_p_GNCLot_p_void__p_void,
  _swigc__p_f_p_GNCPrice_p_void__gboolean,
  _swigc__p_f_p_gnc_commodity_p_void__gboolean,
  _swigc__p_f_p_void_p_void__void,
  _swigc__p_float,
  _swigc__p_gboolean,
  _swigc__p_gconstpointer,
  _swigc__p_gint32,
  _swigc__p_gint64,
  _swigc__p_gnc_commodity,
  _swigc__p_gnc_commodity_namespace,
  _swigc__p_gnc_commodity_table,
  _swigc__p_gnc_price_db_s,
  _swigc__p_gnc_quote_source,
  _swigc__p_gncpolicy_s,
  _swigc__p_gsize,
  _swigc__p_guint32,
  _swigc__p_guint8,
  _swigc__p_gunichar,
  _swigc__p_imap_info,
  _swigc__p_int,
  _swigc__p_p_GList,
  _swigc__p_p_Transaction,
  _swigc__p_query_txn_match_t,
  _swigc__p_timespec64,
  _swigc__p_tm,
  _swigc__p_unsigned_int,
  _swigc__p_unsigned_long,
  _swigc__p_void,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic
 * memory is used. Also, since swig_type_info structures store pointers to
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization.
 * The idea is that swig generates all the structures that are needed.
 * The runtime then collects these partially filled structures.
 * The SWIG_InitializeModule function takes these initial arrays out of
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned statically to an initial
 * array. We just loop through that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded.
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif


SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  size_t i;
  swig_module_info *module_head, *iter;
  int init;
  
  /* check to see if the circular list has been setup, if not, set it up */
  if (swig_module.next==0) {
    /* Initialize the swig_module */
    swig_module.type_initial = swig_type_initial;
    swig_module.cast_initial = swig_cast_initial;
    swig_module.next = &swig_module;
    init = 1;
  } else {
    init = 0;
  }
  
  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (!module_head) {
    /* This is the first module loaded for this interpreter */
    /* so set the swig module into the interpreter */
    SWIG_SetModule(clientdata, &swig_module);
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    iter=module_head;
    do {
      if (iter==&swig_module) {
        /* Our module is already in the list, so there's nothing more to do. */
        return;
      }
      iter=iter->next;
    } while (iter!= module_head);
    
    /* otherwise we must add our module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }
  
  /* When multiple interpreters are used, a module could have already been initialized in
       a different interpreter, but not yet have a pointer in this interpreter.
       In this case, we do not want to continue adding types... everything should be
       set up already */
  if (init == 0) return;
  
  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;
    
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
#endif
    
    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
        type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }
    
    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {
      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
        if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
        if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
          printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
          cast->type = ret;
          ret = 0;
        } else {
          /* Check for casting already in the list */
          swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
          if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
          if (!ocast) ret = 0;
        }
      }
      
      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }
      cast++;
    }
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;
  
#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
    printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;
  
  if (init_run) return;
  init_run = 1;
  
  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
          SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{
  /* c-mode */
#endif
}
#endif


SWIG_GUILE_INIT_STATIC void
SWIG_init(void)
{
  SWIG_InitializeModule(0);
  SWIG_PropagateClientData();
  
  scm_c_define_gsubr("gncSplitGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncSplitGetGUID);
  scm_c_define_gsubr("gncTransGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncTransGetGUID);
  scm_c_define_gsubr("gncAccountGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncAccountGetGUID);
  scm_c_define_gsubr("gnc-split-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_split_get_type);
  scm_c_define_gsubr("CREC", 0, 0, 0, (swig_guile_proc) _wrap_CREC);
  scm_c_define_gsubr("YREC", 0, 0, 0, (swig_guile_proc) _wrap_YREC);
  scm_c_define_gsubr("FREC", 0, 0, 0, (swig_guile_proc) _wrap_FREC);
  scm_c_define_gsubr("NREC", 0, 0, 0, (swig_guile_proc) _wrap_NREC);
  scm_c_define_gsubr("VREC", 0, 0, 0, (swig_guile_proc) _wrap_VREC);
  scm_c_define_gsubr("xaccSplitConvertAmount", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitConvertAmount);
  scm_c_define_gsubr("xaccMallocSplit", 1, 0, 0, (swig_guile_proc) _wrap_xaccMallocSplit);
  scm_c_define_gsubr("xaccSplitReinit", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitReinit);
  scm_c_define_gsubr("xaccSplitDestroy", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitDestroy);
  scm_c_define_gsubr("xaccSplitCopyOnto", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitCopyOnto);
  scm_c_define_gsubr("xaccSplitGetBook", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetBook);
  scm_c_define_gsubr("xaccSplitGetAccount", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetAccount);
  scm_c_define_gsubr("xaccSplitSetAccount", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetAccount);
  scm_c_define_gsubr("xaccSplitGetParent", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetParent);
  scm_c_define_gsubr("xaccSplitSetParent", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetParent);
  scm_c_define_gsubr("xaccSplitGetLot", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetLot);
  scm_c_define_gsubr("xaccSplitSetLot", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetLot);
  scm_c_define_gsubr("xaccSplitSetMemo", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetMemo);
  scm_c_define_gsubr("xaccSplitGetMemo", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetMemo);
  scm_c_define_gsubr("xaccSplitSetAction", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetAction);
  scm_c_define_gsubr("xaccSplitGetAction", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetAction);
  scm_c_define_gsubr("xaccSplitSetReconcile", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetReconcile);
  scm_c_define_gsubr("xaccSplitGetReconcile", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetReconcile);
  scm_c_define_gsubr("xaccSplitSetDateReconciledSecs", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetDateReconciledSecs);
  scm_c_define_gsubr("xaccSplitSetDateReconciledTS", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetDateReconciledTS);
  scm_c_define_gsubr("xaccSplitGetDateReconciledTS", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetDateReconciledTS);
  scm_c_define_gsubr("xaccSplitRetDateReconciledTS", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitRetDateReconciledTS);
  scm_c_define_gsubr("xaccSplitGetDateReconciled", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetDateReconciled);
  scm_c_define_gsubr("xaccSplitSetAmount", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetAmount);
  scm_c_define_gsubr("xaccSplitGetAmount", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetAmount);
  scm_c_define_gsubr("xaccSplitSetValue", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetValue);
  scm_c_define_gsubr("xaccSplitGetValue", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetValue);
  scm_c_define_gsubr("xaccSplitSetSharePriceAndAmount", 3, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetSharePriceAndAmount);
  scm_c_define_gsubr("xaccSplitGetSharePrice", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetSharePrice);
  scm_c_define_gsubr("xaccSplitSetBaseValue", 3, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetBaseValue);
  scm_c_define_gsubr("xaccSplitGetBaseValue", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetBaseValue);
  scm_c_define_gsubr("xaccSplitGetBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetBalance);
  scm_c_define_gsubr("xaccSplitGetClearedBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetClearedBalance);
  scm_c_define_gsubr("xaccSplitGetReconciledBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetReconciledBalance);
  scm_c_define_gsubr("xaccSplitEqual", 5, 0, 0, (swig_guile_proc) _wrap_xaccSplitEqual);
  scm_c_define_gsubr("xaccSplitLookup", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitLookup);
  scm_c_define_gsubr("xaccSplitListGetUniqueTransactions", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitListGetUniqueTransactions);
  scm_c_define_gsubr("xaccSplitAddPeerSplit", 3, 0, 0, (swig_guile_proc) _wrap_xaccSplitAddPeerSplit);
  scm_c_define_gsubr("xaccSplitHasPeers", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitHasPeers);
  scm_c_define_gsubr("xaccSplitIsPeerSplit", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitIsPeerSplit);
  scm_c_define_gsubr("xaccSplitRemovePeerSplit", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitRemovePeerSplit);
  scm_c_define_gsubr("xaccSplitMergePeerSplits", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitMergePeerSplits);
  scm_c_define_gsubr("xaccSplitGetOtherSplit", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetOtherSplit);
  scm_c_define_gsubr("xaccSplitGetType", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetType);
  scm_c_define_gsubr("xaccSplitMakeStockSplit", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitMakeStockSplit);
  scm_c_define_gsubr("xaccSplitOrder", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitOrder);
  scm_c_define_gsubr("xaccSplitOrderDateOnly", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitOrderDateOnly);
  scm_c_define_gsubr("xaccSplitCompareAccountFullNames", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitCompareAccountFullNames);
  scm_c_define_gsubr("xaccSplitCompareAccountCodes", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitCompareAccountCodes);
  scm_c_define_gsubr("xaccSplitCompareOtherAccountFullNames", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitCompareOtherAccountFullNames);
  scm_c_define_gsubr("xaccSplitCompareOtherAccountCodes", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitCompareOtherAccountCodes);
  scm_c_define_gsubr("xaccSplitGetCorrAccountFullName", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetCorrAccountFullName);
  scm_c_define_gsubr("xaccSplitGetCorrAccountName", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetCorrAccountName);
  scm_c_define_gsubr("xaccSplitGetCorrAccountCode", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitGetCorrAccountCode);
  scm_c_define_gsubr("xaccSplitSetSharePrice", 2, 0, 0, (swig_guile_proc) _wrap_xaccSplitSetSharePrice);
  scm_c_define_gsubr("xaccSplitVoidFormerAmount", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitVoidFormerAmount);
  scm_c_define_gsubr("xaccSplitVoidFormerValue", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitVoidFormerValue);
  scm_c_define_gsubr("SPLIT-DATE-RECONCILED", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_DATE_RECONCILED);
  scm_c_define_gsubr("SPLIT-BALANCE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_BALANCE);
  scm_c_define_gsubr("SPLIT-CLEARED-BALANCE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_CLEARED_BALANCE);
  scm_c_define_gsubr("SPLIT-RECONCILED-BALANCE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_RECONCILED_BALANCE);
  scm_c_define_gsubr("SPLIT-MEMO", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_MEMO);
  scm_c_define_gsubr("SPLIT-ACTION", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_ACTION);
  scm_c_define_gsubr("SPLIT-RECONCILE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_RECONCILE);
  scm_c_define_gsubr("SPLIT-AMOUNT", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_AMOUNT);
  scm_c_define_gsubr("SPLIT-SHARE-PRICE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_SHARE_PRICE);
  scm_c_define_gsubr("SPLIT-VALUE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_VALUE);
  scm_c_define_gsubr("SPLIT-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_TYPE);
  scm_c_define_gsubr("SPLIT-VOIDED-AMOUNT", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_VOIDED_AMOUNT);
  scm_c_define_gsubr("SPLIT-VOIDED-VALUE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_VOIDED_VALUE);
  scm_c_define_gsubr("SPLIT-LOT", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_LOT);
  scm_c_define_gsubr("SPLIT-TRANS", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_TRANS);
  scm_c_define_gsubr("SPLIT-ACCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_ACCOUNT);
  scm_c_define_gsubr("SPLIT-ACCOUNT-GUID", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_ACCOUNT_GUID);
  scm_c_define_gsubr("SPLIT-ACCT-FULLNAME", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_ACCT_FULLNAME);
  scm_c_define_gsubr("SPLIT-CORR-ACCT-NAME", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_CORR_ACCT_NAME);
  scm_c_define_gsubr("SPLIT-CORR-ACCT-CODE", 0, 0, 0, (swig_guile_proc) _wrap_SPLIT_CORR_ACCT_CODE);
  scm_c_define_gsubr("gnc-account-get-children", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_children);
  scm_c_define_gsubr("gnc-account-get-children-sorted", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_children_sorted);
  scm_c_define_gsubr("gnc-account-get-descendants", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_descendants);
  scm_c_define_gsubr("gnc-account-get-descendants-sorted", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_descendants_sorted);
  SWIG_TypeClientData(SWIGTYPE_p_AccountClass, (void *) &_swig_guile_clientdataAccountClass);
  scm_c_define_gsubr("AccountClass-parent-class-set", 2, 0, 0, (swig_guile_proc) _wrap_AccountClass_parent_class_set);
  scm_c_define_gsubr("AccountClass-parent-class-get", 1, 0, 0, (swig_guile_proc) _wrap_AccountClass_parent_class_get);
  scm_c_define_gsubr("new-AccountClass", 0, 0, 0, (swig_guile_proc) _wrap_new_AccountClass);
  ((swig_guile_clientdata *)(SWIGTYPE_p_AccountClass->clientdata))->destroy = (guile_destructor) _wrap_delete_AccountClass;
  scm_c_define_gsubr("delete-AccountClass", 1, 0, 0, (swig_guile_proc) _wrap_delete_AccountClass);
  SWIG_TypeClientData(SWIGTYPE_p_GncImportMatchMap, (void *) &_swig_guile_clientdataGncImportMatchMap);
  scm_c_define_gsubr("GncImportMatchMap-acc-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImportMatchMap_acc_set);
  scm_c_define_gsubr("GncImportMatchMap-acc-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImportMatchMap_acc_get);
  scm_c_define_gsubr("GncImportMatchMap-book-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImportMatchMap_book_set);
  scm_c_define_gsubr("GncImportMatchMap-book-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImportMatchMap_book_get);
  scm_c_define_gsubr("new-GncImportMatchMap", 0, 0, 0, (swig_guile_proc) _wrap_new_GncImportMatchMap);
  ((swig_guile_clientdata *)(SWIGTYPE_p_GncImportMatchMap->clientdata))->destroy = (guile_destructor) _wrap_delete_GncImportMatchMap;
  scm_c_define_gsubr("delete-GncImportMatchMap", 1, 0, 0, (swig_guile_proc) _wrap_delete_GncImportMatchMap);
  scm_c_define_gsubr("gnc-account-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_type);
  scm_c_define_gsubr("ACCT-TYPE-INVALID", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_INVALID);
  scm_c_define_gsubr("ACCT-TYPE-NONE", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_NONE);
  scm_c_define_gsubr("ACCT-TYPE-BANK", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_BANK);
  scm_c_define_gsubr("ACCT-TYPE-CASH", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_CASH);
  scm_c_define_gsubr("ACCT-TYPE-CREDIT", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_CREDIT);
  scm_c_define_gsubr("ACCT-TYPE-ASSET", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_ASSET);
  scm_c_define_gsubr("ACCT-TYPE-LIABILITY", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_LIABILITY);
  scm_c_define_gsubr("ACCT-TYPE-STOCK", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_STOCK);
  scm_c_define_gsubr("ACCT-TYPE-MUTUAL", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_MUTUAL);
  scm_c_define_gsubr("ACCT-TYPE-CURRENCY", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_CURRENCY);
  scm_c_define_gsubr("ACCT-TYPE-INCOME", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_INCOME);
  scm_c_define_gsubr("ACCT-TYPE-EXPENSE", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_EXPENSE);
  scm_c_define_gsubr("ACCT-TYPE-EQUITY", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_EQUITY);
  scm_c_define_gsubr("ACCT-TYPE-RECEIVABLE", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_RECEIVABLE);
  scm_c_define_gsubr("ACCT-TYPE-PAYABLE", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_PAYABLE);
  scm_c_define_gsubr("ACCT-TYPE-ROOT", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_ROOT);
  scm_c_define_gsubr("ACCT-TYPE-TRADING", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_TRADING);
  scm_c_define_gsubr("NUM-ACCOUNT-TYPES", 0, 0, 0, (swig_guile_proc) _wrap_NUM_ACCOUNT_TYPES);
  scm_c_define_gsubr("ACCT-TYPE-CHECKING", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_CHECKING);
  scm_c_define_gsubr("ACCT-TYPE-SAVINGS", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_SAVINGS);
  scm_c_define_gsubr("ACCT-TYPE-MONEYMRKT", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_MONEYMRKT);
  scm_c_define_gsubr("ACCT-TYPE-CREDITLINE", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_CREDITLINE);
  scm_c_define_gsubr("ACCT-TYPE-LAST", 0, 0, 0, (swig_guile_proc) _wrap_ACCT_TYPE_LAST);
  scm_c_define_gsubr("xaccMallocAccount", 1, 0, 0, (swig_guile_proc) _wrap_xaccMallocAccount);
  scm_c_define_gsubr("gnc-account-create-root", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_create_root);
  scm_c_define_gsubr("xaccCloneAccount", 2, 0, 0, (swig_guile_proc) _wrap_xaccCloneAccount);
  scm_c_define_gsubr("xaccAccountBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountBeginEdit);
  scm_c_define_gsubr("xaccAccountCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountCommitEdit);
  scm_c_define_gsubr("xaccAccountDestroy", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountDestroy);
  scm_c_define_gsubr("xaccAccountEqual", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountEqual);
  scm_c_define_gsubr("xaccAccountOrder", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountOrder);
  scm_c_define_gsubr("gnc-get-account-separator-string", 0, 0, 0, (swig_guile_proc) _wrap_gnc_get_account_separator_string);
  scm_c_define_gsubr("gnc-get-account-separator", 0, 0, 0, (swig_guile_proc) _wrap_gnc_get_account_separator);
  scm_c_define_gsubr("gnc-set-account-separator", 1, 0, 0, (swig_guile_proc) _wrap_gnc_set_account_separator);
  scm_c_define_gsubr("gnc-book-get-root-account", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_get_root_account);
  scm_c_define_gsubr("gnc-book-set-root-account", 2, 0, 0, (swig_guile_proc) _wrap_gnc_book_set_root_account);
  scm_c_define_gsubr("xaccAccountLookup", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountLookup);
  scm_c_define_gsubr("gnc-account-name-violations-errmsg", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_name_violations_errmsg);
  scm_c_define_gsubr("gnc-account-list-name-violations", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_list_name_violations);
  scm_c_define_gsubr("gnc-account-get-book", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_book);
  scm_c_define_gsubr("xaccAccountSetType", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetType);
  scm_c_define_gsubr("xaccAccountSetName", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetName);
  scm_c_define_gsubr("xaccAccountSetCode", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetCode);
  scm_c_define_gsubr("xaccAccountSetDescription", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetDescription);
  scm_c_define_gsubr("xaccAccountSetColor", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetColor);
  scm_c_define_gsubr("xaccAccountSetFilter", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetFilter);
  scm_c_define_gsubr("xaccAccountSetSortOrder", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetSortOrder);
  scm_c_define_gsubr("xaccAccountSetSortReversed", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetSortReversed);
  scm_c_define_gsubr("xaccAccountSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetNotes);
  scm_c_define_gsubr("xaccAccountSetLastNum", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetLastNum);
  scm_c_define_gsubr("gnc-account-set-policy", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_policy);
  scm_c_define_gsubr("xaccAccountGetType", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetType);
  scm_c_define_gsubr("xaccAccountIsPriced", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountIsPriced);
  scm_c_define_gsubr("gnc-account-set-start-balance", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_start_balance);
  scm_c_define_gsubr("gnc-account-set-start-cleared-balance", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_start_cleared_balance);
  scm_c_define_gsubr("gnc-account-set-start-reconciled-balance", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_start_reconciled_balance);
  scm_c_define_gsubr("gnc-account-set-balance-dirty", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_balance_dirty);
  scm_c_define_gsubr("gnc-account-set-sort-dirty", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_set_sort_dirty);
  scm_c_define_gsubr("gnc-account-insert-split", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_insert_split);
  scm_c_define_gsubr("gnc-account-remove-split", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_remove_split);
  scm_c_define_gsubr("xaccAccountGetName", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetName);
  scm_c_define_gsubr("xaccAccountGetCode", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetCode);
  scm_c_define_gsubr("xaccAccountGetDescription", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetDescription);
  scm_c_define_gsubr("xaccAccountGetColor", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetColor);
  scm_c_define_gsubr("xaccAccountGetFilter", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetFilter);
  scm_c_define_gsubr("xaccAccountGetSortOrder", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetSortOrder);
  scm_c_define_gsubr("xaccAccountGetSortReversed", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetSortReversed);
  scm_c_define_gsubr("xaccAccountGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetNotes);
  scm_c_define_gsubr("xaccAccountGetLastNum", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetLastNum);
  scm_c_define_gsubr("gnc-account-get-policy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_policy);
  scm_c_define_gsubr("xaccAccountRecomputeBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountRecomputeBalance);
  scm_c_define_gsubr("xaccAccountSortSplits", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSortSplits);
  scm_c_define_gsubr("gnc-account-get-full-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_full_name);
  scm_c_define_gsubr("xaccAccountGainsAccount", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGainsAccount);
  scm_c_define_gsubr("dxaccAccountSetPriceSrc", 2, 0, 0, (swig_guile_proc) _wrap_dxaccAccountSetPriceSrc);
  scm_c_define_gsubr("dxaccAccountGetPriceSrc", 1, 0, 0, (swig_guile_proc) _wrap_dxaccAccountGetPriceSrc);
  scm_c_define_gsubr("xaccAccountGetAutoInterestXfer", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetAutoInterestXfer);
  scm_c_define_gsubr("xaccAccountSetAutoInterestXfer", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetAutoInterestXfer);
  scm_c_define_gsubr("xaccAccountSetCommodity", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetCommodity);
  scm_c_define_gsubr("xaccAccountGetCommodity", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetCommodity);
  scm_c_define_gsubr("gnc-account-get-currency-or-parent", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_currency_or_parent);
  scm_c_define_gsubr("xaccAccountGetCommoditySCU", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetCommoditySCU);
  scm_c_define_gsubr("xaccAccountGetCommoditySCUi", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetCommoditySCUi);
  scm_c_define_gsubr("xaccAccountSetCommoditySCU", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetCommoditySCU);
  scm_c_define_gsubr("xaccAccountSetNonStdSCU", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetNonStdSCU);
  scm_c_define_gsubr("xaccAccountGetNonStdSCU", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetNonStdSCU);
  scm_c_define_gsubr("xaccAccountGetBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetBalance);
  scm_c_define_gsubr("xaccAccountGetClearedBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetClearedBalance);
  scm_c_define_gsubr("xaccAccountGetReconciledBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconciledBalance);
  scm_c_define_gsubr("xaccAccountGetPresentBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetPresentBalance);
  scm_c_define_gsubr("xaccAccountGetProjectedMinimumBalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetProjectedMinimumBalance);
  scm_c_define_gsubr("xaccAccountGetBalanceAsOfDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetBalanceAsOfDate);
  scm_c_define_gsubr("xaccAccountConvertBalanceToCurrency", 4, 0, 0, (swig_guile_proc) _wrap_xaccAccountConvertBalanceToCurrency);
  scm_c_define_gsubr("xaccAccountConvertBalanceToCurrencyAsOfDate", 5, 0, 0, (swig_guile_proc) _wrap_xaccAccountConvertBalanceToCurrencyAsOfDate);
  scm_c_define_gsubr("xaccAccountGetBalanceInCurrency", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetBalanceInCurrency);
  scm_c_define_gsubr("xaccAccountGetClearedBalanceInCurrency", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetClearedBalanceInCurrency);
  scm_c_define_gsubr("xaccAccountGetReconciledBalanceInCurrency", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconciledBalanceInCurrency);
  scm_c_define_gsubr("xaccAccountGetPresentBalanceInCurrency", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetPresentBalanceInCurrency);
  scm_c_define_gsubr("xaccAccountGetProjectedMinimumBalanceInCurrency", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetProjectedMinimumBalanceInCurrency);
  scm_c_define_gsubr("xaccAccountGetBalanceAsOfDateInCurrency", 4, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetBalanceAsOfDateInCurrency);
  scm_c_define_gsubr("xaccAccountGetBalanceChangeForPeriod", 4, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetBalanceChangeForPeriod);
  scm_c_define_gsubr("gnc-account-append-child", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_append_child);
  scm_c_define_gsubr("gnc-account-remove-child", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_remove_child);
  scm_c_define_gsubr("gnc-account-get-parent", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_parent);
  scm_c_define_gsubr("gnc-account-get-root", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_root);
  scm_c_define_gsubr("gnc-account-is-root", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_is_root);
  scm_c_define_gsubr("gnc-account-n-children", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_n_children);
  scm_c_define_gsubr("gnc-account-child-index", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_child_index);
  scm_c_define_gsubr("gnc-account-nth-child", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_nth_child);
  scm_c_define_gsubr("gnc-account-n-descendants", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_n_descendants);
  scm_c_define_gsubr("gnc-account-get-current-depth", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_current_depth);
  scm_c_define_gsubr("gnc-account-get-tree-depth", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_tree_depth);
  scm_c_define_gsubr("gnc-account-foreach-child", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_foreach_child);
  scm_c_define_gsubr("gnc-account-foreach-descendant", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_foreach_descendant);
  scm_c_define_gsubr("gnc-account-foreach-descendant-until", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_foreach_descendant_until);
  scm_c_define_gsubr("gnc-account-join-children", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_join_children);
  scm_c_define_gsubr("gnc-account-merge-children", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_merge_children);
  scm_c_define_gsubr("xaccAccountSetReconcileChildrenStatus", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetReconcileChildrenStatus);
  scm_c_define_gsubr("xaccAccountGetReconcileChildrenStatus", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconcileChildrenStatus);
  scm_c_define_gsubr("xaccAccountHasAncestor", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountHasAncestor);
  scm_c_define_gsubr("gnc-account-lookup-by-name", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_lookup_by_name);
  scm_c_define_gsubr("gnc-account-lookup-by-full-name", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_lookup_by_full_name);
  scm_c_define_gsubr("gnc-account-lookup-by-code", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_lookup_by_code);
  scm_c_define_gsubr("xaccAccountTypeEnumAsString", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountTypeEnumAsString);
  scm_c_define_gsubr("xaccAccountStringToType", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountStringToType);
  scm_c_define_gsubr("xaccAccountStringToEnum", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountStringToEnum);
  scm_c_define_gsubr("xaccAccountGetTypeStr", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetTypeStr);
  scm_c_define_gsubr("xaccAccountTypesCompatibleWith", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountTypesCompatibleWith);
  scm_c_define_gsubr("xaccParentAccountTypesCompatibleWith", 1, 0, 0, (swig_guile_proc) _wrap_xaccParentAccountTypesCompatibleWith);
  scm_c_define_gsubr("xaccAccountTypesCompatible", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountTypesCompatible);
  scm_c_define_gsubr("xaccAccountTypesValid", 0, 0, 0, (swig_guile_proc) _wrap_xaccAccountTypesValid);
  scm_c_define_gsubr("xaccAccountIsAssetLiabType", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountIsAssetLiabType);
  scm_c_define_gsubr("xaccAccountIsAPARType", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountIsAPARType);
  scm_c_define_gsubr("xaccAccountIsEquityType", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountIsEquityType);
  scm_c_define_gsubr("xaccAccountGetSplitList", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetSplitList);
  scm_c_define_gsubr("xaccAccountCountSplits", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountCountSplits);
  scm_c_define_gsubr("xaccAccountMoveAllSplits", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountMoveAllSplits);
  scm_c_define_gsubr("xaccAccountForEachTransaction", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountForEachTransaction);
  scm_c_define_gsubr("xaccAccountFindTransByDesc", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountFindTransByDesc);
  scm_c_define_gsubr("xaccAccountFindSplitByDesc", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountFindSplitByDesc);
  scm_c_define_gsubr("xaccAccountInsertLot", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountInsertLot);
  scm_c_define_gsubr("xaccAccountRemoveLot", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountRemoveLot);
  scm_c_define_gsubr("xaccAccountGetLotList", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetLotList);
  scm_c_define_gsubr("xaccAccountForEachLot", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountForEachLot);
  scm_c_define_gsubr("xaccAccountFindOpenLots", 4, 0, 0, (swig_guile_proc) _wrap_xaccAccountFindOpenLots);
  scm_c_define_gsubr("xaccAccountGetReconcileLastDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconcileLastDate);
  scm_c_define_gsubr("xaccAccountSetReconcileLastDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetReconcileLastDate);
  scm_c_define_gsubr("xaccAccountGetReconcileLastInterval", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconcileLastInterval);
  scm_c_define_gsubr("xaccAccountSetReconcileLastInterval", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetReconcileLastInterval);
  scm_c_define_gsubr("xaccAccountGetReconcilePostponeDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconcilePostponeDate);
  scm_c_define_gsubr("xaccAccountSetReconcilePostponeDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetReconcilePostponeDate);
  scm_c_define_gsubr("xaccAccountGetReconcilePostponeBalance", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetReconcilePostponeBalance);
  scm_c_define_gsubr("xaccAccountSetReconcilePostponeBalance", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetReconcilePostponeBalance);
  scm_c_define_gsubr("xaccAccountClearReconcilePostpone", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountClearReconcilePostpone);
  scm_c_define_gsubr("PLACEHOLDER-NONE", 0, 0, 0, (swig_guile_proc) _wrap_PLACEHOLDER_NONE);
  scm_c_define_gsubr("PLACEHOLDER-THIS", 0, 0, 0, (swig_guile_proc) _wrap_PLACEHOLDER_THIS);
  scm_c_define_gsubr("PLACEHOLDER-CHILD", 0, 0, 0, (swig_guile_proc) _wrap_PLACEHOLDER_CHILD);
  scm_c_define_gsubr("xaccAccountGetPlaceholder", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetPlaceholder);
  scm_c_define_gsubr("xaccAccountSetPlaceholder", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetPlaceholder);
  scm_c_define_gsubr("xaccAccountGetDescendantPlaceholder", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetDescendantPlaceholder);
  scm_c_define_gsubr("xaccAccountGetHidden", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetHidden);
  scm_c_define_gsubr("xaccAccountSetHidden", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetHidden);
  scm_c_define_gsubr("xaccAccountIsHidden", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountIsHidden);
  scm_c_define_gsubr("xaccAccountGetTaxRelated", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetTaxRelated);
  scm_c_define_gsubr("xaccAccountSetTaxRelated", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetTaxRelated);
  scm_c_define_gsubr("xaccAccountGetTaxUSCode", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetTaxUSCode);
  scm_c_define_gsubr("xaccAccountSetTaxUSCode", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetTaxUSCode);
  scm_c_define_gsubr("xaccAccountGetTaxUSPayerNameSource", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetTaxUSPayerNameSource);
  scm_c_define_gsubr("xaccAccountSetTaxUSPayerNameSource", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetTaxUSPayerNameSource);
  scm_c_define_gsubr("xaccAccountGetTaxUSCopyNumber", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountGetTaxUSCopyNumber);
  scm_c_define_gsubr("xaccAccountSetTaxUSCopyNumber", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetTaxUSCopyNumber);
  scm_c_define_gsubr("xaccAccountSetMark", 2, 0, 0, (swig_guile_proc) _wrap_xaccAccountSetMark);
  scm_c_define_gsubr("xaccClearMark", 2, 0, 0, (swig_guile_proc) _wrap_xaccClearMark);
  scm_c_define_gsubr("xaccClearMarkDown", 2, 0, 0, (swig_guile_proc) _wrap_xaccClearMarkDown);
  scm_c_define_gsubr("gnc-account-tree-begin-staged-transaction-traversals", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_tree_begin_staged_transaction_traversals);
  scm_c_define_gsubr("xaccSplitsBeginStagedTransactionTraversals", 1, 0, 0, (swig_guile_proc) _wrap_xaccSplitsBeginStagedTransactionTraversals);
  scm_c_define_gsubr("xaccAccountBeginStagedTransactionTraversals", 1, 0, 0, (swig_guile_proc) _wrap_xaccAccountBeginStagedTransactionTraversals);
  scm_c_define_gsubr("xaccTransactionTraverse", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransactionTraverse);
  scm_c_define_gsubr("xaccAccountStagedTransactionTraversal", 4, 0, 0, (swig_guile_proc) _wrap_xaccAccountStagedTransactionTraversal);
  scm_c_define_gsubr("gnc-account-tree-staged-transaction-traversal", 4, 0, 0, (swig_guile_proc) _wrap_gnc_account_tree_staged_transaction_traversal);
  scm_c_define_gsubr("xaccAccountTreeForEachTransaction", 3, 0, 0, (swig_guile_proc) _wrap_xaccAccountTreeForEachTransaction);
  scm_c_define_gsubr("gnc-account-imap-create-imap", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_create_imap);
  scm_c_define_gsubr("gnc-account-imap-find-account", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_find_account);
  scm_c_define_gsubr("gnc-account-imap-add-account", 4, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_add_account);
  scm_c_define_gsubr("gnc-account-imap-delete-account", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_delete_account);
  scm_c_define_gsubr("gnc-account-imap-find-account-bayes", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_find_account_bayes);
  scm_c_define_gsubr("gnc-account-imap-add-account-bayes", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_add_account_bayes);
  SWIG_TypeClientData(SWIGTYPE_p_imap_info, (void *) &_swig_guile_clientdataGncImapInfo);
  scm_c_define_gsubr("GncImapInfo-source-account-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_source_account_set);
  scm_c_define_gsubr("GncImapInfo-source-account-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_source_account_get);
  scm_c_define_gsubr("GncImapInfo-map-account-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_map_account_set);
  scm_c_define_gsubr("GncImapInfo-map-account-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_map_account_get);
  scm_c_define_gsubr("GncImapInfo-list-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_list_set);
  scm_c_define_gsubr("GncImapInfo-list-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_list_get);
  scm_c_define_gsubr("GncImapInfo-category-head-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_category_head_set);
  scm_c_define_gsubr("GncImapInfo-category-head-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_category_head_get);
  scm_c_define_gsubr("GncImapInfo-full-category-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_full_category_set);
  scm_c_define_gsubr("GncImapInfo-full-category-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_full_category_get);
  scm_c_define_gsubr("GncImapInfo-match-string-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_match_string_set);
  scm_c_define_gsubr("GncImapInfo-match-string-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_match_string_get);
  scm_c_define_gsubr("GncImapInfo-count-set", 2, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_count_set);
  scm_c_define_gsubr("GncImapInfo-count-get", 1, 0, 0, (swig_guile_proc) _wrap_GncImapInfo_count_get);
  scm_c_define_gsubr("new-GncImapInfo", 0, 0, 0, (swig_guile_proc) _wrap_new_GncImapInfo);
  ((swig_guile_clientdata *)(SWIGTYPE_p_imap_info->clientdata))->destroy = (guile_destructor) _wrap_delete_GncImapInfo;
  scm_c_define_gsubr("delete-GncImapInfo", 1, 0, 0, (swig_guile_proc) _wrap_delete_GncImapInfo);
  scm_c_define_gsubr("gnc-account-imap-get-info-bayes", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_get_info_bayes);
  scm_c_define_gsubr("gnc-account-imap-get-info", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_imap_get_info);
  scm_c_define_gsubr("gnc-account-get-map-entry", 2, 0, 0, (swig_guile_proc) _wrap_gnc_account_get_map_entry);
  scm_c_define_gsubr("gnc-account-delete-map-entry", 3, 0, 0, (swig_guile_proc) _wrap_gnc_account_delete_map_entry);
  scm_c_define_gsubr("DxaccAccountSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_DxaccAccountSetCurrency);
  scm_c_define_gsubr("DxaccAccountGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_DxaccAccountGetCurrency);
  scm_c_define_gsubr("dxaccAccountSetQuoteTZ", 2, 0, 0, (swig_guile_proc) _wrap_dxaccAccountSetQuoteTZ);
  scm_c_define_gsubr("dxaccAccountGetQuoteTZ", 1, 0, 0, (swig_guile_proc) _wrap_dxaccAccountGetQuoteTZ);
  scm_c_define_gsubr("ACCOUNT-KVP", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_KVP);
  scm_c_define_gsubr("ACCOUNT-NAME-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_NAME_);
  scm_c_define_gsubr("ACCOUNT-CODE-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_CODE_);
  scm_c_define_gsubr("ACCOUNT-DESCRIPTION-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_DESCRIPTION_);
  scm_c_define_gsubr("ACCOUNT-COLOR-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_COLOR_);
  scm_c_define_gsubr("ACCOUNT-FILTER-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_FILTER_);
  scm_c_define_gsubr("ACCOUNT-SORT-ORDER-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_SORT_ORDER_);
  scm_c_define_gsubr("ACCOUNT-SORT-REVERSED-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_SORT_REVERSED_);
  scm_c_define_gsubr("ACCOUNT-NOTES-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_NOTES_);
  scm_c_define_gsubr("ACCOUNT-BALANCE-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_BALANCE_);
  scm_c_define_gsubr("ACCOUNT-CLEARED-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_CLEARED_);
  scm_c_define_gsubr("ACCOUNT-RECONCILED-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_RECONCILED_);
  scm_c_define_gsubr("ACCOUNT-PRESENT-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_PRESENT_);
  scm_c_define_gsubr("ACCOUNT-FUTURE-MINIMUM-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_FUTURE_MINIMUM_);
  scm_c_define_gsubr("ACCOUNT-TAX-RELATED", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_TAX_RELATED);
  scm_c_define_gsubr("ACCOUNT-TYPE-", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_TYPE_);
  scm_c_define_gsubr("ACCOUNT-SCU", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_SCU);
  scm_c_define_gsubr("ACCOUNT-NSCU", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_NSCU);
  scm_c_define_gsubr("ACCOUNT-PARENT", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_PARENT);
  scm_c_define_gsubr("ACCOUNT-MATCH-ALL-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_ACCOUNT_MATCH_ALL_TYPE);
  scm_c_define_gsubr("gnc-transaction-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_transaction_get_type);
  scm_c_define_gsubr("TXN-TYPE-NONE", 0, 0, 0, (swig_guile_proc) _wrap_TXN_TYPE_NONE);
  scm_c_define_gsubr("TXN-TYPE-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_TXN_TYPE_INVOICE);
  scm_c_define_gsubr("TXN-TYPE-PAYMENT", 0, 0, 0, (swig_guile_proc) _wrap_TXN_TYPE_PAYMENT);
  scm_c_define_gsubr("TXN-TYPE-LINK", 0, 0, 0, (swig_guile_proc) _wrap_TXN_TYPE_LINK);
  scm_c_define_gsubr("xaccMallocTransaction", 1, 0, 0, (swig_guile_proc) _wrap_xaccMallocTransaction);
  scm_c_define_gsubr("xaccTransDestroy", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransDestroy);
  scm_c_define_gsubr("xaccTransClone", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransClone);
  scm_c_define_gsubr("xaccTransCloneNoKvp", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransCloneNoKvp);
  scm_c_define_gsubr("xaccTransEqual", 6, 0, 0, (swig_guile_proc) _wrap_xaccTransEqual);
  scm_c_define_gsubr("xaccTransBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransBeginEdit);
  scm_c_define_gsubr("xaccTransCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransCommitEdit);
  scm_c_define_gsubr("xaccTransRollbackEdit", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransRollbackEdit);
  scm_c_define_gsubr("xaccTransIsOpen", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransIsOpen);
  scm_c_define_gsubr("xaccTransLookup", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransLookup);
  scm_c_define_gsubr("xaccTransCopyToClipBoard", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransCopyToClipBoard);
  scm_c_define_gsubr("xaccTransCopyOnto", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransCopyOnto);
  scm_c_define_gsubr("xaccTransCopyFromClipBoard", 5, 0, 0, (swig_guile_proc) _wrap_xaccTransCopyFromClipBoard);
  scm_c_define_gsubr("xaccTransFindSplitByAccount", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransFindSplitByAccount);
  scm_c_define_gsubr("xaccTransScrubGains", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransScrubGains);
  scm_c_define_gsubr("gnc-book-count-transactions", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_count_transactions);
  scm_c_define_gsubr("xaccTransUseTradingAccounts", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransUseTradingAccounts);
  scm_c_define_gsubr("xaccTransSortSplits", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransSortSplits);
  scm_c_define_gsubr("xaccTransSetTxnType", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetTxnType);
  scm_c_define_gsubr("xaccTransGetTxnType", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetTxnType);
  scm_c_define_gsubr("xaccTransSetNum", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetNum);
  scm_c_define_gsubr("xaccTransSetDescription", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDescription);
  scm_c_define_gsubr("xaccTransSetAssociation", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetAssociation);
  scm_c_define_gsubr("xaccTransSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetNotes);
  scm_c_define_gsubr("xaccTransGetNum", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetNum);
  scm_c_define_gsubr("xaccTransGetDescription", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetDescription);
  scm_c_define_gsubr("xaccTransGetAssociation", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAssociation);
  scm_c_define_gsubr("xaccTransGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetNotes);
  scm_c_define_gsubr("xaccTransSetIsClosingTxn", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetIsClosingTxn);
  scm_c_define_gsubr("xaccTransGetIsClosingTxn", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetIsClosingTxn);
  scm_c_define_gsubr("xaccTransGetSplit", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetSplit);
  scm_c_define_gsubr("xaccTransGetSplitIndex", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetSplitIndex);
  scm_c_define_gsubr("xaccTransGetSplitList", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetSplitList);
  scm_c_define_gsubr("xaccTransGetPaymentAcctSplitList", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetPaymentAcctSplitList);
  scm_c_define_gsubr("xaccTransGetAPARAcctSplitList", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAPARAcctSplitList);
  scm_c_define_gsubr("xaccTransStillHasSplit", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransStillHasSplit);
  scm_c_define_gsubr("xaccTransGetFirstPaymentAcctSplit", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetFirstPaymentAcctSplit);
  scm_c_define_gsubr("xaccTransGetFirstAPARAcctSplit", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetFirstAPARAcctSplit);
  scm_c_define_gsubr("xaccTransSetReadOnly", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetReadOnly);
  scm_c_define_gsubr("xaccTransClearReadOnly", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransClearReadOnly);
  scm_c_define_gsubr("xaccTransGetReadOnly", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetReadOnly);
  scm_c_define_gsubr("xaccTransIsReadonlyByPostedDate", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransIsReadonlyByPostedDate);
  scm_c_define_gsubr("xaccTransInFutureByPostedDate", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransInFutureByPostedDate);
  scm_c_define_gsubr("xaccTransCountSplits", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransCountSplits);
  scm_c_define_gsubr("xaccTransHasReconciledSplits", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransHasReconciledSplits);
  scm_c_define_gsubr("xaccTransHasReconciledSplitsByAccount", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransHasReconciledSplitsByAccount);
  scm_c_define_gsubr("xaccTransHasSplitsInState", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransHasSplitsInState);
  scm_c_define_gsubr("xaccTransHasSplitsInStateByAccount", 3, 0, 0, (swig_guile_proc) _wrap_xaccTransHasSplitsInStateByAccount);
  scm_c_define_gsubr("xaccTransGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetCurrency);
  scm_c_define_gsubr("xaccTransSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetCurrency);
  scm_c_define_gsubr("xaccTransGetImbalanceValue", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetImbalanceValue);
  scm_c_define_gsubr("xaccTransGetImbalance", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetImbalance);
  scm_c_define_gsubr("xaccTransIsBalanced", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransIsBalanced);
  scm_c_define_gsubr("xaccTransGetAccountValue", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAccountValue);
  scm_c_define_gsubr("xaccTransGetAccountAmount", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAccountAmount);
  scm_c_define_gsubr("xaccTransGetRateForCommodity", 4, 0, 0, (swig_guile_proc) _wrap_xaccTransGetRateForCommodity);
  scm_c_define_gsubr("xaccTransGetAccountConvRate", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAccountConvRate);
  scm_c_define_gsubr("xaccTransGetAccountBalance", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransGetAccountBalance);
  scm_c_define_gsubr("xaccTransOrder", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransOrder);
  scm_c_define_gsubr("xaccTransOrder-num-action", 4, 0, 0, (swig_guile_proc) _wrap_xaccTransOrder_num_action);
  scm_c_define_gsubr("xaccTransSetDate", 4, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDate);
  scm_c_define_gsubr("xaccTransSetDatePostedGDate", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDatePostedGDate);
  scm_c_define_gsubr("xaccTransSetDatePostedSecs", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDatePostedSecs);
  scm_c_define_gsubr("xaccTransSetDatePostedSecsNormalized", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDatePostedSecsNormalized);
  scm_c_define_gsubr("xaccTransSetDateEnteredSecs", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDateEnteredSecs);
  scm_c_define_gsubr("xaccTransSetDateDue", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransSetDateDue);
  scm_c_define_gsubr("xaccTransGetDate", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetDate);
  scm_c_define_gsubr("xaccTransRetDatePosted", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransRetDatePosted);
  scm_c_define_gsubr("xaccTransGetDatePostedGDate", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetDatePostedGDate);
  scm_c_define_gsubr("xaccTransGetDateEntered", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetDateEntered);
  scm_c_define_gsubr("xaccTransRetDateEntered", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransRetDateEntered);
  scm_c_define_gsubr("xaccTransRetDateDue", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransRetDateDue);
  scm_c_define_gsubr("xaccTransVoid", 2, 0, 0, (swig_guile_proc) _wrap_xaccTransVoid);
  scm_c_define_gsubr("xaccTransUnvoid", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransUnvoid);
  scm_c_define_gsubr("xaccTransReverse", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransReverse);
  scm_c_define_gsubr("xaccTransGetReversedBy", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetReversedBy);
  scm_c_define_gsubr("xaccTransGetVoidStatus", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetVoidStatus);
  scm_c_define_gsubr("xaccTransGetVoidReason", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetVoidReason);
  scm_c_define_gsubr("xaccTransGetVoidTime", 1, 0, 0, (swig_guile_proc) _wrap_xaccTransGetVoidTime);
  scm_c_define_gsubr("TRANS-KVP", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_KVP);
  scm_c_define_gsubr("TRANS-NUM", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_NUM);
  scm_c_define_gsubr("TRANS-DESCRIPTION", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_DESCRIPTION);
  scm_c_define_gsubr("TRANS-DATE-ENTERED", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_DATE_ENTERED);
  scm_c_define_gsubr("TRANS-DATE-POSTED", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_DATE_POSTED);
  scm_c_define_gsubr("TRANS-DATE-DUE", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_DATE_DUE);
  scm_c_define_gsubr("TRANS-IMBALANCE", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_IMBALANCE);
  scm_c_define_gsubr("TRANS-IS-BALANCED", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_IS_BALANCED);
  scm_c_define_gsubr("TRANS-IS-CLOSING", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_IS_CLOSING);
  scm_c_define_gsubr("TRANS-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_NOTES);
  scm_c_define_gsubr("TRANS-ASSOCIATION", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_ASSOCIATION);
  scm_c_define_gsubr("TRANS-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_TYPE);
  scm_c_define_gsubr("TRANS-VOID-STATUS", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_VOID_STATUS);
  scm_c_define_gsubr("TRANS-VOID-REASON", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_VOID_REASON);
  scm_c_define_gsubr("TRANS-VOID-TIME", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_VOID_TIME);
  scm_c_define_gsubr("TRANS-SPLITLIST", 0, 0, 0, (swig_guile_proc) _wrap_TRANS_SPLITLIST);
  scm_c_define_gsubr("RECONCILED-MATCH-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_RECONCILED_MATCH_TYPE);
  SWIG_TypeClientData(SWIGTYPE_p_GncLotClass, (void *) &_swig_guile_clientdataGncLotClass);
  scm_c_define_gsubr("GncLotClass-parent-class-set", 2, 0, 0, (swig_guile_proc) _wrap_GncLotClass_parent_class_set);
  scm_c_define_gsubr("GncLotClass-parent-class-get", 1, 0, 0, (swig_guile_proc) _wrap_GncLotClass_parent_class_get);
  scm_c_define_gsubr("new-GncLotClass", 0, 0, 0, (swig_guile_proc) _wrap_new_GncLotClass);
  ((swig_guile_clientdata *)(SWIGTYPE_p_GncLotClass->clientdata))->destroy = (guile_destructor) _wrap_delete_GncLotClass;
  scm_c_define_gsubr("delete-GncLotClass", 1, 0, 0, (swig_guile_proc) _wrap_delete_GncLotClass);
  scm_c_define_gsubr("gnc-lot-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_type);
  scm_c_define_gsubr("gnc-lot-new", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_new);
  scm_c_define_gsubr("gnc-lot-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_destroy);
  scm_c_define_gsubr("gnc-lot-lookup", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_lookup);
  scm_c_define_gsubr("gnc-lot-get-book", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_book);
  scm_c_define_gsubr("gnc-lot-begin-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_begin_edit);
  scm_c_define_gsubr("gnc-lot-commit-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_commit_edit);
  scm_c_define_gsubr("gnc-lot-add-split", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_add_split);
  scm_c_define_gsubr("gnc-lot-remove-split", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_remove_split);
  scm_c_define_gsubr("gnc-lot-get-split-list", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_split_list);
  scm_c_define_gsubr("gnc-lot-count-splits", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_count_splits);
  scm_c_define_gsubr("gnc-lot-get-account", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_account);
  scm_c_define_gsubr("gnc-lot-set-account", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_set_account);
  scm_c_define_gsubr("gnc-lot-get-balance", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_balance);
  scm_c_define_gsubr("gnc-lot-get-balance-before", 4, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_balance_before);
  scm_c_define_gsubr("gnc-lot-is-closed", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_is_closed);
  scm_c_define_gsubr("gnc-lot-get-earliest-split", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_earliest_split);
  scm_c_define_gsubr("gnc-lot-get-latest-split", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_latest_split);
  scm_c_define_gsubr("gnc-lot-set-closed-unknown", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_set_closed_unknown);
  scm_c_define_gsubr("gnc-lot-get-title", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_title);
  scm_c_define_gsubr("gnc-lot-get-notes", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_get_notes);
  scm_c_define_gsubr("gnc-lot-set-title", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_set_title);
  scm_c_define_gsubr("gnc-lot-set-notes", 2, 0, 0, (swig_guile_proc) _wrap_gnc_lot_set_notes);
  scm_c_define_gsubr("gnc-lot-make-default", 1, 0, 0, (swig_guile_proc) _wrap_gnc_lot_make_default);
  scm_c_define_gsubr("LOT-IS-CLOSED", 0, 0, 0, (swig_guile_proc) _wrap_LOT_IS_CLOSED);
  scm_c_define_gsubr("LOT-BALANCE", 0, 0, 0, (swig_guile_proc) _wrap_LOT_BALANCE);
  scm_c_define_gsubr("LOT-TITLE", 0, 0, 0, (swig_guile_proc) _wrap_LOT_TITLE);
  scm_c_define_gsubr("LOT-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_LOT_NOTES);
  scm_c_define_gsubr("gncPriceGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncPriceGetGUID);
  scm_c_define_gsubr("gncBudgetGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncBudgetGetGUID);
  scm_c_define_gsubr("QOF-ID-BOOK-SCM", 0, 0, 0, (swig_guile_proc) _wrap_QOF_ID_BOOK_SCM);
  scm_c_define_gsubr("gnc-transaction-get-date-posted", 1, 0, 0, (swig_guile_proc) _wrap_gnc_transaction_get_date_posted);
  scm_c_define_gsubr("gnc-transaction-get-date-entered", 1, 0, 0, (swig_guile_proc) _wrap_gnc_transaction_get_date_entered);
  scm_c_define_gsubr("gnc-split-get-date-reconciled", 1, 0, 0, (swig_guile_proc) _wrap_gnc_split_get_date_reconciled);
  scm_c_define_gsubr("gnc-transaction-set-date", 2, 0, 0, (swig_guile_proc) _wrap_gnc_transaction_set_date);
  scm_c_define_gsubr("gnc-get-num-action", 2, 0, 0, (swig_guile_proc) _wrap_gnc_get_num_action);
  scm_c_define_gsubr("gnc-get-action-num", 2, 0, 0, (swig_guile_proc) _wrap_gnc_get_action_num);
  scm_c_define_gsubr("gnc-set-num-action", 4, 0, 0, (swig_guile_proc) _wrap_gnc_set_num_action);
  scm_c_define_gsubr("gnc-book-option-num-field-source-change", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_option_num_field_source_change);
  scm_c_define_gsubr("gnc-book-option-book-currency-selected", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_option_book_currency_selected);
  scm_c_define_gsubr("gnc-book-option-register-cb", 3, 0, 0, (swig_guile_proc) _wrap_gnc_book_option_register_cb);
  scm_c_define_gsubr("gnc-book-option-remove-cb", 3, 0, 0, (swig_guile_proc) _wrap_gnc_book_option_remove_cb);
  scm_c_define_gsubr("gnc-timespec2timepair", 1, 0, 0, (swig_guile_proc) _wrap_gnc_timespec2timepair);
  scm_c_define_gsubr("gnc-timepair2timespec", 1, 0, 0, (swig_guile_proc) _wrap_gnc_timepair2timespec);
  scm_c_define_gsubr("gnc-time64-to-GDate", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time64_to_GDate);
  scm_c_define_gsubr("gnc-timepair-p", 1, 0, 0, (swig_guile_proc) _wrap_gnc_timepair_p);
  scm_c_define_gsubr("gnc-guid2scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_guid2scm);
  scm_c_define_gsubr("gnc-scm2guid", 1, 0, 0, (swig_guile_proc) _wrap_gnc_scm2guid);
  scm_c_define_gsubr("gnc-guid-p", 1, 0, 0, (swig_guile_proc) _wrap_gnc_guid_p);
  scm_c_define_gsubr("gnc-query-scm2path", 1, 0, 0, (swig_guile_proc) _wrap_gnc_query_scm2path);
  scm_c_define_gsubr("gnc-query2scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_query2scm);
  scm_c_define_gsubr("gnc-scm2query", 1, 0, 0, (swig_guile_proc) _wrap_gnc_scm2query);
  scm_c_define_gsubr("gnc-numeric-to-scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_to_scm);
  scm_c_define_gsubr("gnc-scm-to-numeric", 1, 0, 0, (swig_guile_proc) _wrap_gnc_scm_to_numeric);
  scm_c_define_gsubr("gnc-scm-to-commodity", 1, 0, 0, (swig_guile_proc) _wrap_gnc_scm_to_commodity);
  scm_c_define_gsubr("gnc-commodity-to-scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_to_scm);
  scm_c_define_gsubr("gnc-book-to-scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_to_scm);
  scm_c_define_gsubr("gnc-get-valid-policy-list", 0, 0, 0, (swig_guile_proc) _wrap_gnc_get_valid_policy_list);
  scm_c_define_gsubr("gnc-valid-policy-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_valid_policy_name);
  scm_c_define_gsubr("PolicyGetName", 1, 0, 0, (swig_guile_proc) _wrap_PolicyGetName);
  scm_c_define_gsubr("PolicyGetDescription", 1, 0, 0, (swig_guile_proc) _wrap_PolicyGetDescription);
  scm_c_define_gsubr("PolicyGetHint", 1, 0, 0, (swig_guile_proc) _wrap_PolicyGetHint);
  scm_c_define_gsubr("xaccGetFIFOPolicy", 0, 0, 0, (swig_guile_proc) _wrap_xaccGetFIFOPolicy);
  scm_c_define_gsubr("xaccGetLIFOPolicy", 0, 0, 0, (swig_guile_proc) _wrap_xaccGetLIFOPolicy);
  scm_c_define_gsubr("gnc-price-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_type);
  scm_c_define_gsubr("gnc-pricedb-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_get_type);
  scm_c_define_gsubr("PRICE-SOURCE-EDIT-DLG", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_EDIT_DLG);
  scm_c_define_gsubr("PRICE-SOURCE-FQ", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_FQ);
  scm_c_define_gsubr("PRICE-SOURCE-USER-PRICE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_USER_PRICE);
  scm_c_define_gsubr("PRICE-SOURCE-XFER-DLG-VAL", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_XFER_DLG_VAL);
  scm_c_define_gsubr("PRICE-SOURCE-SPLIT-REG", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_SPLIT_REG);
  scm_c_define_gsubr("PRICE-SOURCE-STOCK-SPLIT", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_STOCK_SPLIT);
  scm_c_define_gsubr("PRICE-SOURCE-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_INVOICE);
  scm_c_define_gsubr("PRICE-SOURCE-TEMP", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_TEMP);
  scm_c_define_gsubr("PRICE-SOURCE-INVALID", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE_INVALID);
  scm_c_define_gsubr("PRICE-TYPE-LAST", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_TYPE_LAST);
  scm_c_define_gsubr("PRICE-TYPE-UNK", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_TYPE_UNK);
  scm_c_define_gsubr("PRICE-TYPE-TRN", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_TYPE_TRN);
  scm_c_define_gsubr("gnc-price-create", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_create);
  scm_c_define_gsubr("gnc-price-clone", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_clone);
  scm_c_define_gsubr("gnc-price-invert", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_invert);
  scm_c_define_gsubr("gnc-price-ref", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_ref);
  scm_c_define_gsubr("gnc-price-unref", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_unref);
  scm_c_define_gsubr("gnc-price-begin-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_begin_edit);
  scm_c_define_gsubr("gnc-price-commit-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_commit_edit);
  scm_c_define_gsubr("gnc-price-set-commodity", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_commodity);
  scm_c_define_gsubr("gnc-price-set-currency", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_currency);
  scm_c_define_gsubr("gnc-price-set-time", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_time);
  scm_c_define_gsubr("gnc-price-set-time64", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_time64);
  scm_c_define_gsubr("gnc-price-set-source", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_source);
  scm_c_define_gsubr("gnc-price-set-source-string", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_source_string);
  scm_c_define_gsubr("gnc-price-set-typestr", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_typestr);
  scm_c_define_gsubr("gnc-price-set-value", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_set_value);
  scm_c_define_gsubr("gnc-price-lookup", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_lookup);
  scm_c_define_gsubr("gnc-price-get-commodity", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_commodity);
  scm_c_define_gsubr("gnc-price-get-currency", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_currency);
  scm_c_define_gsubr("gnc-price-get-time", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_time);
  scm_c_define_gsubr("gnc-price-get-time64", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_time64);
  scm_c_define_gsubr("gnc-price-get-source", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_source);
  scm_c_define_gsubr("gnc-price-get-source-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_source_string);
  scm_c_define_gsubr("gnc-price-get-typestr", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_typestr);
  scm_c_define_gsubr("gnc-price-get-value", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_get_value);
  scm_c_define_gsubr("gnc-price-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_equal);
  scm_c_define_gsubr("gnc-price-print", 3, 0, 0, (swig_guile_proc) _wrap_gnc_price_print);
  scm_c_define_gsubr("CURRENCY-DENOM", 0, 0, 0, (swig_guile_proc) _wrap_CURRENCY_DENOM);
  scm_c_define_gsubr("COMMODITY-DENOM-MULT", 0, 0, 0, (swig_guile_proc) _wrap_COMMODITY_DENOM_MULT);
  scm_c_define_gsubr("gnc-price-list-insert", 3, 0, 0, (swig_guile_proc) _wrap_gnc_price_list_insert);
  scm_c_define_gsubr("gnc-price-list-remove", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_list_remove);
  scm_c_define_gsubr("gnc-price-list-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_price_list_destroy);
  scm_c_define_gsubr("gnc-price-list-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_price_list_equal);
  scm_c_define_gsubr("gnc-pricedb-get-db", 1, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_get_db);
  scm_c_define_gsubr("gnc-collection-get-pricedb", 1, 0, 0, (swig_guile_proc) _wrap_gnc_collection_get_pricedb);
  scm_c_define_gsubr("gnc-pricedb-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_destroy);
  scm_c_define_gsubr("gnc-pricedb-begin-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_begin_edit);
  scm_c_define_gsubr("gnc-pricedb-commit-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_commit_edit);
  scm_c_define_gsubr("gnc-pricedb-set-bulk-update", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_set_bulk_update);
  scm_c_define_gsubr("gnc-pricedb-add-price", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_add_price);
  scm_c_define_gsubr("gnc-pricedb-remove-price", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_remove_price);
  scm_c_define_gsubr("PRICE-REMOVE-SOURCE-FQ", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_SOURCE_FQ);
  scm_c_define_gsubr("PRICE-REMOVE-SOURCE-USER", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_SOURCE_USER);
  scm_c_define_gsubr("PRICE-REMOVE-SOURCE-APP", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_SOURCE_APP);
  scm_c_define_gsubr("PRICE-REMOVE-SOURCE-COMM", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_SOURCE_COMM);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-NONE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_NONE);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-LAST-WEEKLY", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_LAST_WEEKLY);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-LAST-MONTHLY", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_LAST_MONTHLY);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-LAST-QUARTERLY", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_LAST_QUARTERLY);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-LAST-PERIOD", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_LAST_PERIOD);
  scm_c_define_gsubr("PRICE-REMOVE-KEEP-SCALED", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_REMOVE_KEEP_SCALED);
  scm_c_define_gsubr("gnc-pricedb-remove-old-prices", 6, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_remove_old_prices);
  scm_c_define_gsubr("gnc-pricedb-lookup-latest", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_latest);
  scm_c_define_gsubr("gnc-pricedb-lookup-latest-any-currency", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_latest_any_currency);
  scm_c_define_gsubr("gnc-pricedb-has-prices", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_has_prices);
  scm_c_define_gsubr("gnc-pricedb-get-prices", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_get_prices);
  scm_c_define_gsubr("gnc-pricedb-lookup-at-time", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_at_time);
  scm_c_define_gsubr("gnc-pricedb-lookup-day", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_day);
  scm_c_define_gsubr("gnc-pricedb-lookup-day-t64", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_day_t64);
  scm_c_define_gsubr("gnc-pricedb-lookup-nearest-in-time", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_nearest_in_time);
  scm_c_define_gsubr("gnc-pricedb-lookup-nearest-in-time64", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_nearest_in_time64);
  scm_c_define_gsubr("gnc-pricedb-lookup-nearest-in-time-any-currency", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_nearest_in_time_any_currency);
  scm_c_define_gsubr("gnc-pricedb-lookup-nearest-in-time-any-currency-t64", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_nearest_in_time_any_currency_t64);
  scm_c_define_gsubr("gnc-pricedb-lookup-latest-before", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_latest_before);
  scm_c_define_gsubr("gnc-pricedb-lookup-latest-before-any-currency", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_lookup_latest_before_any_currency);
  scm_c_define_gsubr("gnc-pricedb-convert-balance-latest-price", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_convert_balance_latest_price);
  scm_c_define_gsubr("gnc-pricedb-convert-balance-nearest-price", 5, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_convert_balance_nearest_price);
  scm_c_define_gsubr("gnc-pricedb-foreach-price", 4, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_foreach_price);
  scm_c_define_gsubr("gnc-pricedb-num-prices", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_num_prices);
  scm_c_define_gsubr("gnc-pricedb-nth-price", 3, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_nth_price);
  scm_c_define_gsubr("gnc-pricedb-get-num-prices", 1, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_get_num_prices);
  scm_c_define_gsubr("gnc-pricedb-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_equal);
  scm_c_define_gsubr("gnc-pricedb-print-contents", 2, 0, 0, (swig_guile_proc) _wrap_gnc_pricedb_print_contents);
  scm_c_define_gsubr("PRICE-COMMODITY", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_COMMODITY);
  scm_c_define_gsubr("PRICE-CURRENCY", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_CURRENCY);
  scm_c_define_gsubr("PRICE-DATE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_DATE);
  scm_c_define_gsubr("PRICE-SOURCE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_SOURCE);
  scm_c_define_gsubr("PRICE-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_TYPE);
  scm_c_define_gsubr("PRICE-VALUE", 0, 0, 0, (swig_guile_proc) _wrap_PRICE_VALUE);
  scm_c_define_gsubr("qof-session-new", 0, 0, 0, (swig_guile_proc) _wrap_qof_session_new);
  scm_c_define_gsubr("qof-session-get-book", 1, 0, 0, (swig_guile_proc) _wrap_qof_session_get_book);
  scm_c_define_gsubr("qof-session-get-url", 1, 0, 0, (swig_guile_proc) _wrap_qof_session_get_url);
  scm_c_define_gsubr("timespec-get-type", 0, 0, 0, (swig_guile_proc) _wrap_timespec_get_type);
  scm_c_define_gsubr("gnc-default-strftime-date-format", 0, 1, 0, (swig_guile_proc) _wrap_gnc_default_strftime_date_format);
  scm_c_define_gsubr("MAX-DATE-LENGTH", 0, 0, 0, (swig_guile_proc) _wrap_MAX_DATE_LENGTH);
  scm_c_define_gsubr("QOF-UTC-DATE-FORMAT", 0, 0, 0, (swig_guile_proc) _wrap_QOF_UTC_DATE_FORMAT);
  scm_c_define_gsubr("QOF-DATE-FORMAT-US", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_US);
  scm_c_define_gsubr("QOF-DATE-FORMAT-UK", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_UK);
  scm_c_define_gsubr("QOF-DATE-FORMAT-CE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_CE);
  scm_c_define_gsubr("QOF-DATE-FORMAT-ISO", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_ISO);
  scm_c_define_gsubr("QOF-DATE-FORMAT-LOCALE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_LOCALE);
  scm_c_define_gsubr("QOF-DATE-FORMAT-UTC", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_UTC);
  scm_c_define_gsubr("QOF-DATE-FORMAT-CUSTOM", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_CUSTOM);
  scm_c_define_gsubr("QOF-DATE-FORMAT-UNSET", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_FORMAT_UNSET);
  scm_c_define_gsubr("QOF-DATE-COMPLETION-THISYEAR", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_COMPLETION_THISYEAR);
  scm_c_define_gsubr("QOF-DATE-COMPLETION-SLIDING", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_COMPLETION_SLIDING);
  scm_c_define_gsubr("GNCDATE-MONTH-NUMBER", 0, 0, 0, (swig_guile_proc) _wrap_GNCDATE_MONTH_NUMBER);
  scm_c_define_gsubr("GNCDATE-MONTH-ABBREV", 0, 0, 0, (swig_guile_proc) _wrap_GNCDATE_MONTH_ABBREV);
  scm_c_define_gsubr("GNCDATE-MONTH-NAME", 0, 0, 0, (swig_guile_proc) _wrap_GNCDATE_MONTH_NAME);
  scm_c_define_gsubr("gnc-localtime", 1, 0, 0, (swig_guile_proc) _wrap_gnc_localtime);
  scm_c_define_gsubr("gnc-localtime-r", 2, 0, 0, (swig_guile_proc) _wrap_gnc_localtime_r);
  scm_c_define_gsubr("gnc-gmtime", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gmtime);
  scm_c_define_gsubr("gnc-mktime", 1, 0, 0, (swig_guile_proc) _wrap_gnc_mktime);
  scm_c_define_gsubr("gnc-timegm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_timegm);
  scm_c_define_gsubr("gnc-ctime", 1, 0, 0, (swig_guile_proc) _wrap_gnc_ctime);
  scm_c_define_gsubr("gnc-time", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time);
  scm_c_define_gsubr("gnc-difftime", 2, 0, 0, (swig_guile_proc) _wrap_gnc_difftime);
  scm_c_define_gsubr("gnc-date-dateformat-to-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_date_dateformat_to_string);
  scm_c_define_gsubr("gnc-date-string-to-dateformat", 2, 0, 0, (swig_guile_proc) _wrap_gnc_date_string_to_dateformat);
  scm_c_define_gsubr("gnc-date-monthformat-to-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_date_monthformat_to_string);
  scm_c_define_gsubr("gnc-date-string-to-monthformat", 2, 0, 0, (swig_guile_proc) _wrap_gnc_date_string_to_monthformat);
  scm_c_define_gsubr("gnc-print-time64", 2, 0, 0, (swig_guile_proc) _wrap_gnc_print_time64);
  scm_c_define_gsubr("gnc-g-date-new-today", 0, 0, 0, (swig_guile_proc) _wrap_gnc_g_date_new_today);
  scm_c_define_gsubr("gnc-gdate-set-today", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_today);
  scm_c_define_gsubr("gnc-gdate-set-time64", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_time64);
  scm_c_define_gsubr("timespec-equal", 2, 0, 0, (swig_guile_proc) _wrap_timespec_equal);
  scm_c_define_gsubr("timespec-cmp", 2, 0, 0, (swig_guile_proc) _wrap_timespec_cmp);
  scm_c_define_gsubr("timespec-diff", 2, 0, 0, (swig_guile_proc) _wrap_timespec_diff);
  scm_c_define_gsubr("timespec-abs", 1, 0, 0, (swig_guile_proc) _wrap_timespec_abs);
  scm_c_define_gsubr("timespecCanonicalDayTime", 1, 0, 0, (swig_guile_proc) _wrap_timespecCanonicalDayTime);
  scm_c_define_gsubr("time64CanonicalDayTime", 1, 0, 0, (swig_guile_proc) _wrap_time64CanonicalDayTime);
  scm_c_define_gsubr("timespec-now", 0, 0, 0, (swig_guile_proc) _wrap_timespec_now);
  scm_c_define_gsubr("timespecFromTime64", 2, 0, 0, (swig_guile_proc) _wrap_timespecFromTime64);
  scm_c_define_gsubr("timespecToTime64", 1, 0, 0, (swig_guile_proc) _wrap_timespecToTime64);
  scm_c_define_gsubr("time64-to-gdate", 1, 0, 0, (swig_guile_proc) _wrap_time64_to_gdate);
  scm_c_define_gsubr("timespec-to-gdate", 1, 0, 0, (swig_guile_proc) _wrap_timespec_to_gdate);
  scm_c_define_gsubr("gdate-to-timespec", 1, 0, 0, (swig_guile_proc) _wrap_gdate_to_timespec);
  scm_c_define_gsubr("gdate-to-time64", 1, 0, 0, (swig_guile_proc) _wrap_gdate_to_time64);
  scm_c_define_gsubr("gnc-dmy2time64", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2time64);
  scm_c_define_gsubr("gnc-dmy2time64-neutral", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2time64_neutral);
  scm_c_define_gsubr("gnc-dmy2time64-end", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2time64_end);
  scm_c_define_gsubr("gnc-dmy2timespec", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2timespec);
  scm_c_define_gsubr("gnc-dmy2timespec-end", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2timespec_end);
  scm_c_define_gsubr("gnc-dmy2timespec-neutral", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dmy2timespec_neutral);
  scm_c_define_gsubr("gnc-iso8601-to-time64-gmt", 1, 0, 0, (swig_guile_proc) _wrap_gnc_iso8601_to_time64_gmt);
  scm_c_define_gsubr("gnc-timespec-to-iso8601-buff", 2, 0, 0, (swig_guile_proc) _wrap_gnc_timespec_to_iso8601_buff);
  scm_c_define_gsubr("gnc-time64-to-iso8601-buff", 2, 0, 0, (swig_guile_proc) _wrap_gnc_time64_to_iso8601_buff);
  scm_c_define_gsubr("gnc-timespec2dmy", 4, 0, 0, (swig_guile_proc) _wrap_gnc_timespec2dmy);
  scm_c_define_gsubr("qof-date-format-get", 0, 0, 0, (swig_guile_proc) _wrap_qof_date_format_get);
  scm_c_define_gsubr("qof-date-format-set", 1, 0, 0, (swig_guile_proc) _wrap_qof_date_format_set);
  scm_c_define_gsubr("qof-date-format-get-string", 1, 0, 0, (swig_guile_proc) _wrap_qof_date_format_get_string);
  scm_c_define_gsubr("qof-date-text-format-get-string", 1, 0, 0, (swig_guile_proc) _wrap_qof_date_text_format_get_string);
  scm_c_define_gsubr("qof-date-completion-set", 2, 0, 0, (swig_guile_proc) _wrap_qof_date_completion_set);
  scm_c_define_gsubr("dateSeparator", 0, 0, 0, (swig_guile_proc) _wrap_dateSeparator);
  scm_c_define_gsubr("qof-strftime", 4, 0, 0, (swig_guile_proc) _wrap_qof_strftime);
  scm_c_define_gsubr("qof-print-date-dmy-buff", 5, 0, 0, (swig_guile_proc) _wrap_qof_print_date_dmy_buff);
  scm_c_define_gsubr("qof-print-date-buff", 3, 0, 0, (swig_guile_proc) _wrap_qof_print_date_buff);
  scm_c_define_gsubr("qof-print-gdate", 3, 0, 0, (swig_guile_proc) _wrap_qof_print_gdate);
  scm_c_define_gsubr("qof-print-date", 1, 0, 0, (swig_guile_proc) _wrap_qof_print_date);
  scm_c_define_gsubr("gnc-print-date", 1, 0, 0, (swig_guile_proc) _wrap_gnc_print_date);
  scm_c_define_gsubr("qof-scan-date", 4, 0, 0, (swig_guile_proc) _wrap_qof_scan_date);
  scm_c_define_gsubr("gnc-tm-set-day-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_tm_set_day_start);
  scm_c_define_gsubr("gnc-tm-set-day-middle", 1, 0, 0, (swig_guile_proc) _wrap_gnc_tm_set_day_middle);
  scm_c_define_gsubr("gnc-tm-set-day-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_tm_set_day_end);
  scm_c_define_gsubr("gnc-time64-get-day-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_day_start);
  scm_c_define_gsubr("gnc-time64-get-day-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_day_end);
  scm_c_define_gsubr("gnc-date-get-last-mday", 2, 0, 0, (swig_guile_proc) _wrap_gnc_date_get_last_mday);
  scm_c_define_gsubr("gnc-tm-get-today-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_tm_get_today_start);
  scm_c_define_gsubr("gnc-tm-get-today-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_tm_get_today_end);
  scm_c_define_gsubr("gnc-time64-get-today-start", 0, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_today_start);
  scm_c_define_gsubr("gnc-time64-get-today-end", 0, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_today_end);
  scm_c_define_gsubr("gnc-date-timestamp", 0, 0, 0, (swig_guile_proc) _wrap_gnc_date_timestamp);
  scm_c_define_gsubr("MIN-BUF-LEN", 0, 0, 0, (swig_guile_proc) _wrap_MIN_BUF_LEN);
  scm_c_define_gsubr("gnc-dow-abbrev", 3, 0, 0, (swig_guile_proc) _wrap_gnc_dow_abbrev);
  scm_c_define_gsubr("gnc-gdate-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_equal);
  scm_c_define_gsubr("gnc-gdate-hash", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_hash);
  scm_c_define_gsubr("gnc-time64-get-day-start-gdate", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_day_start_gdate);
  scm_c_define_gsubr("gnc-time64-get-day-end-gdate", 1, 0, 0, (swig_guile_proc) _wrap_gnc_time64_get_day_end_gdate);
  scm_c_define_gsubr("gnc-gdate-set-month-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_month_start);
  scm_c_define_gsubr("gnc-gdate-set-month-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_month_end);
  scm_c_define_gsubr("gnc-gdate-set-prev-month-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_month_start);
  scm_c_define_gsubr("gnc-gdate-set-prev-month-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_month_end);
  scm_c_define_gsubr("gnc-gdate-set-quarter-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_quarter_start);
  scm_c_define_gsubr("gnc-gdate-set-quarter-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_quarter_end);
  scm_c_define_gsubr("gnc-gdate-set-prev-quarter-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_quarter_start);
  scm_c_define_gsubr("gnc-gdate-set-prev-quarter-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_quarter_end);
  scm_c_define_gsubr("gnc-gdate-set-year-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_year_start);
  scm_c_define_gsubr("gnc-gdate-set-year-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_year_end);
  scm_c_define_gsubr("gnc-gdate-set-prev-year-start", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_year_start);
  scm_c_define_gsubr("gnc-gdate-set-prev-year-end", 1, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_year_end);
  scm_c_define_gsubr("gnc-gdate-set-fiscal-year-start", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_fiscal_year_start);
  scm_c_define_gsubr("gnc-gdate-set-fiscal-year-end", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_fiscal_year_end);
  scm_c_define_gsubr("gnc-gdate-set-prev-fiscal-year-start", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_fiscal_year_start);
  scm_c_define_gsubr("gnc-gdate-set-prev-fiscal-year-end", 2, 0, 0, (swig_guile_proc) _wrap_gnc_gdate_set_prev_fiscal_year_end);
  scm_c_define_gsubr("guid-new-return", 0, 0, 0, (swig_guile_proc) _wrap_guid_new_return);
  scm_c_define_gsubr("qof-query-create-for-splits", 0, 0, 0, (swig_guile_proc) _wrap_qof_query_create_for_splits);
  scm_c_define_gsubr("qof-query-run", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_run);
  scm_c_define_gsubr("qof-query-last-run", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_last_run);
  scm_c_define_gsubr("qof-query-run-subquery", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_run_subquery);
  scm_c_define_gsubr("gnc-get-current-session", 0, 0, 0, (swig_guile_proc) _wrap_gnc_get_current_session);
  scm_c_define_gsubr("gnc-clear-current-session", 0, 0, 0, (swig_guile_proc) _wrap_gnc_clear_current_session);
  scm_c_define_gsubr("gnc-set-current-session", 1, 0, 0, (swig_guile_proc) _wrap_gnc_set_current_session);
  scm_c_define_gsubr("gnc-current-session-exist", 0, 0, 0, (swig_guile_proc) _wrap_gnc_current_session_exist);
  scm_c_define_gsubr("QUERY-TXN-MATCH-ALL", 0, 0, 0, (swig_guile_proc) _wrap_QUERY_TXN_MATCH_ALL);
  scm_c_define_gsubr("QUERY-TXN-MATCH-ANY", 0, 0, 0, (swig_guile_proc) _wrap_QUERY_TXN_MATCH_ANY);
  scm_c_define_gsubr("xaccQueryGetSplitsUniqueTrans", 1, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetSplitsUniqueTrans);
  scm_c_define_gsubr("xaccQueryGetTransactions", 2, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetTransactions);
  scm_c_define_gsubr("xaccQueryGetLots", 2, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetLots);
  scm_c_define_gsubr("xaccQueryAddAccountMatch", 4, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddAccountMatch);
  scm_c_define_gsubr("xaccQueryAddAccountGUIDMatch", 4, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddAccountGUIDMatch);
  scm_c_define_gsubr("xaccQueryAddSingleAccountMatch", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddSingleAccountMatch);
  scm_c_define_gsubr("xaccQueryAddStringMatch", 7, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddStringMatch);
  scm_c_define_gsubr("xaccQueryAddDescriptionMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddDescriptionMatch);
  scm_c_define_gsubr("xaccQueryAddNotesMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddNotesMatch);
  scm_c_define_gsubr("xaccQueryAddNumberMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddNumberMatch);
  scm_c_define_gsubr("xaccQueryAddActionMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddActionMatch);
  scm_c_define_gsubr("xaccQueryAddMemoMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddMemoMatch);
  scm_c_define_gsubr("xaccQueryAddValueMatch", 5, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddValueMatch);
  scm_c_define_gsubr("xaccQueryAddSharePriceMatch", 4, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddSharePriceMatch);
  scm_c_define_gsubr("xaccQueryAddSharesMatch", 4, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddSharesMatch);
  scm_c_define_gsubr("xaccQueryAddBalanceMatch", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddBalanceMatch);
  scm_c_define_gsubr("xaccQueryAddNumericMatch", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddNumericMatch);
  scm_c_define_gsubr("xaccQueryAddDateMatch", 10, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddDateMatch);
  scm_c_define_gsubr("xaccQueryAddDateMatchTS", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddDateMatchTS);
  scm_c_define_gsubr("xaccQueryAddDateMatchTT", 6, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddDateMatchTT);
  scm_c_define_gsubr("xaccQueryGetDateMatchTS", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetDateMatchTS);
  scm_c_define_gsubr("xaccQueryGetDateMatchTT", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetDateMatchTT);
  scm_c_define_gsubr("xaccQueryAddClosingTransMatch", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddClosingTransMatch);
  scm_c_define_gsubr("CLEARED-NONE", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_NONE);
  scm_c_define_gsubr("CLEARED-NO", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_NO);
  scm_c_define_gsubr("CLEARED-CLEARED", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_CLEARED);
  scm_c_define_gsubr("CLEARED-RECONCILED", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_RECONCILED);
  scm_c_define_gsubr("CLEARED-FROZEN", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_FROZEN);
  scm_c_define_gsubr("CLEARED-VOIDED", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_VOIDED);
  scm_c_define_gsubr("CLEARED-ALL", 0, 0, 0, (swig_guile_proc) _wrap_CLEARED_ALL);
  scm_c_define_gsubr("xaccQueryAddClearedMatch", 3, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddClearedMatch);
  scm_c_define_gsubr("xaccQueryAddGUIDMatch", 4, 0, 0, (swig_guile_proc) _wrap_xaccQueryAddGUIDMatch);
  scm_c_define_gsubr("xaccQueryGetEarliestDateFound", 1, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetEarliestDateFound);
  scm_c_define_gsubr("xaccQueryGetLatestDateFound", 1, 0, 0, (swig_guile_proc) _wrap_xaccQueryGetLatestDateFound);
  scm_c_define_gsubr("QOF-MOD-QUERY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_MOD_QUERY);
  scm_c_define_gsubr("QOF-QUERY-AND", 0, 0, 0, (swig_guile_proc) _wrap_QOF_QUERY_AND);
  scm_c_define_gsubr("QOF-QUERY-OR", 0, 0, 0, (swig_guile_proc) _wrap_QOF_QUERY_OR);
  scm_c_define_gsubr("QOF-QUERY-NAND", 0, 0, 0, (swig_guile_proc) _wrap_QOF_QUERY_NAND);
  scm_c_define_gsubr("QOF-QUERY-NOR", 0, 0, 0, (swig_guile_proc) _wrap_QOF_QUERY_NOR);
  scm_c_define_gsubr("QOF-QUERY-XOR", 0, 0, 0, (swig_guile_proc) _wrap_QOF_QUERY_XOR);
  scm_c_define_gsubr("QUERY-DEFAULT-SORT", 0, 0, 0, (swig_guile_proc) _wrap_QUERY_DEFAULT_SORT);
  scm_c_define_gsubr("QOF-PARAM-BOOK", 0, 0, 0, (swig_guile_proc) _wrap_QOF_PARAM_BOOK);
  scm_c_define_gsubr("QOF-PARAM-GUID", 0, 0, 0, (swig_guile_proc) _wrap_QOF_PARAM_GUID);
  scm_c_define_gsubr("QOF-PARAM-KVP", 0, 0, 0, (swig_guile_proc) _wrap_QOF_PARAM_KVP);
  scm_c_define_gsubr("QOF-PARAM-ACTIVE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_PARAM_ACTIVE);
  scm_c_define_gsubr("QOF-PARAM-VERSION", 0, 0, 0, (swig_guile_proc) _wrap_QOF_PARAM_VERSION);
  scm_c_define_gsubr("qof-query-init", 0, 0, 0, (swig_guile_proc) _wrap_qof_query_init);
  scm_c_define_gsubr("qof-query-shutdown", 0, 0, 0, (swig_guile_proc) _wrap_qof_query_shutdown);
  scm_c_define_gsubr("qof-query-build-param-list", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_build_param_list);
  scm_c_define_gsubr("qof-query-create", 0, 0, 0, (swig_guile_proc) _wrap_qof_query_create);
  scm_c_define_gsubr("qof-query-create-for", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_create_for);
  scm_c_define_gsubr("qof-query-destroy", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_destroy);
  scm_c_define_gsubr("qof-query-search-for", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_search_for);
  scm_c_define_gsubr("qof-query-set-book", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_set_book);
  scm_c_define_gsubr("qof-query-add-term", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_add_term);
  scm_c_define_gsubr("qof-query-add-guid-match", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_add_guid_match);
  scm_c_define_gsubr("qof-query-add-guid-list-match", 5, 0, 0, (swig_guile_proc) _wrap_qof_query_add_guid_list_match);
  scm_c_define_gsubr("qof-query-add-boolean-match", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_add_boolean_match);
  scm_c_define_gsubr("qof-query-clear", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_clear);
  scm_c_define_gsubr("qof-query-purge-terms", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_purge_terms);
  scm_c_define_gsubr("qof-query-has-terms", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_has_terms);
  scm_c_define_gsubr("qof-query-num-terms", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_num_terms);
  scm_c_define_gsubr("qof-query-has-term-type", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_has_term_type);
  scm_c_define_gsubr("qof-query-get-term-type", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_get_term_type);
  scm_c_define_gsubr("qof-query-copy", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_copy);
  scm_c_define_gsubr("qof-query-invert", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_invert);
  scm_c_define_gsubr("qof-query-merge", 3, 0, 0, (swig_guile_proc) _wrap_qof_query_merge);
  scm_c_define_gsubr("qof-query-merge-in-place", 3, 0, 0, (swig_guile_proc) _wrap_qof_query_merge_in_place);
  scm_c_define_gsubr("qof-query-set-sort-order", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_set_sort_order);
  scm_c_define_gsubr("qof-query-set-sort-options", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_set_sort_options);
  scm_c_define_gsubr("qof-query-set-sort-increasing", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_set_sort_increasing);
  scm_c_define_gsubr("qof-query-set-max-results", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_set_max_results);
  scm_c_define_gsubr("qof-query-equal", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_equal);
  scm_c_define_gsubr("qof-query-print", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_print);
  scm_c_define_gsubr("qof-query-get-search-for", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_get_search_for);
  scm_c_define_gsubr("qof-query-get-books", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_get_books);
  scm_c_define_gsubr("QOF-COMPARE-LT", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_LT);
  scm_c_define_gsubr("QOF-COMPARE-LTE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_LTE);
  scm_c_define_gsubr("QOF-COMPARE-EQUAL", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_EQUAL);
  scm_c_define_gsubr("QOF-COMPARE-GT", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_GT);
  scm_c_define_gsubr("QOF-COMPARE-GTE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_GTE);
  scm_c_define_gsubr("QOF-COMPARE-NEQ", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_NEQ);
  scm_c_define_gsubr("QOF-COMPARE-CONTAINS", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_CONTAINS);
  scm_c_define_gsubr("QOF-COMPARE-NCONTAINS", 0, 0, 0, (swig_guile_proc) _wrap_QOF_COMPARE_NCONTAINS);
  scm_c_define_gsubr("QOF-STRING-MATCH-NORMAL", 0, 0, 0, (swig_guile_proc) _wrap_QOF_STRING_MATCH_NORMAL);
  scm_c_define_gsubr("QOF-STRING-MATCH-CASEINSENSITIVE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_STRING_MATCH_CASEINSENSITIVE);
  scm_c_define_gsubr("QOF-DATE-MATCH-NORMAL", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_MATCH_NORMAL);
  scm_c_define_gsubr("QOF-DATE-MATCH-DAY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_DATE_MATCH_DAY);
  scm_c_define_gsubr("QOF-NUMERIC-MATCH-DEBIT", 0, 0, 0, (swig_guile_proc) _wrap_QOF_NUMERIC_MATCH_DEBIT);
  scm_c_define_gsubr("QOF-NUMERIC-MATCH-CREDIT", 0, 0, 0, (swig_guile_proc) _wrap_QOF_NUMERIC_MATCH_CREDIT);
  scm_c_define_gsubr("QOF-NUMERIC-MATCH-ANY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_NUMERIC_MATCH_ANY);
  scm_c_define_gsubr("QOF-GUID-MATCH-ANY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_GUID_MATCH_ANY);
  scm_c_define_gsubr("QOF-GUID-MATCH-NONE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_GUID_MATCH_NONE);
  scm_c_define_gsubr("QOF-GUID-MATCH-NULL", 0, 0, 0, (swig_guile_proc) _wrap_QOF_GUID_MATCH_NULL);
  scm_c_define_gsubr("QOF-GUID-MATCH-ALL", 0, 0, 0, (swig_guile_proc) _wrap_QOF_GUID_MATCH_ALL);
  scm_c_define_gsubr("QOF-GUID-MATCH-LIST-ANY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_GUID_MATCH_LIST_ANY);
  scm_c_define_gsubr("QOF-CHAR-MATCH-ANY", 0, 0, 0, (swig_guile_proc) _wrap_QOF_CHAR_MATCH_ANY);
  scm_c_define_gsubr("QOF-CHAR-MATCH-NONE", 0, 0, 0, (swig_guile_proc) _wrap_QOF_CHAR_MATCH_NONE);
  SWIG_TypeClientData(SWIGTYPE_p__QofQueryPredData, (void *) &_swig_guile_clientdata_QofQueryPredData);
  scm_c_define_gsubr("-QofQueryPredData-type-name-set", 2, 0, 0, (swig_guile_proc) _wrap__QofQueryPredData_type_name_set);
  scm_c_define_gsubr("-QofQueryPredData-type-name-get", 1, 0, 0, (swig_guile_proc) _wrap__QofQueryPredData_type_name_get);
  scm_c_define_gsubr("-QofQueryPredData-how-set", 2, 0, 0, (swig_guile_proc) _wrap__QofQueryPredData_how_set);
  scm_c_define_gsubr("-QofQueryPredData-how-get", 1, 0, 0, (swig_guile_proc) _wrap__QofQueryPredData_how_get);
  scm_c_define_gsubr("new--QofQueryPredData", 0, 0, 0, (swig_guile_proc) _wrap_new__QofQueryPredData);
  ((swig_guile_clientdata *)(SWIGTYPE_p__QofQueryPredData->clientdata))->destroy = (guile_destructor) _wrap_delete__QofQueryPredData;
  scm_c_define_gsubr("delete--QofQueryPredData", 1, 0, 0, (swig_guile_proc) _wrap_delete__QofQueryPredData);
  scm_c_define_gsubr("qof-query-string-predicate", 4, 0, 0, (swig_guile_proc) _wrap_qof_query_string_predicate);
  scm_c_define_gsubr("qof-query-date-predicate", 3, 0, 0, (swig_guile_proc) _wrap_qof_query_date_predicate);
  scm_c_define_gsubr("qof-query-numeric-predicate", 3, 0, 0, (swig_guile_proc) _wrap_qof_query_numeric_predicate);
  scm_c_define_gsubr("qof-query-guid-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_guid_predicate);
  scm_c_define_gsubr("qof-query-int32-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_int32_predicate);
  scm_c_define_gsubr("qof-query-int64-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_int64_predicate);
  scm_c_define_gsubr("qof-query-double-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_double_predicate);
  scm_c_define_gsubr("qof-query-boolean-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_boolean_predicate);
  scm_c_define_gsubr("qof-query-char-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_char_predicate);
  scm_c_define_gsubr("qof-query-collect-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_collect_predicate);
  scm_c_define_gsubr("qof-query-choice-predicate", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_choice_predicate);
  scm_c_define_gsubr("qof-query-core-predicate-copy", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_core_predicate_copy);
  scm_c_define_gsubr("qof-query-core-predicate-free", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_core_predicate_free);
  scm_c_define_gsubr("qof-query-date-predicate-get-date", 2, 0, 0, (swig_guile_proc) _wrap_qof_query_date_predicate_get_date);
  scm_c_define_gsubr("qof-query-core-to-string", 3, 0, 0, (swig_guile_proc) _wrap_qof_query_core_to_string);
  scm_c_define_gsubr("qof-string-number-compare-func", 4, 0, 0, (swig_guile_proc) _wrap_qof_string_number_compare_func);
  scm_c_define_gsubr("KVP-OPTION-PATH", 0, 0, 0, (swig_guile_proc) _wrap_KVP_OPTION_PATH);
  scm_c_define_gsubr("OPTION-SECTION-ACCOUNTS", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_SECTION_ACCOUNTS);
  scm_c_define_gsubr("OPTION-NAME-TRADING-ACCOUNTS", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_TRADING_ACCOUNTS);
  scm_c_define_gsubr("OPTION-NAME-CURRENCY-ACCOUNTING", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_CURRENCY_ACCOUNTING);
  scm_c_define_gsubr("OPTION-NAME-BOOK-CURRENCY", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_BOOK_CURRENCY);
  scm_c_define_gsubr("OPTION-NAME-DEFAULT-GAINS-POLICY", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_DEFAULT_GAINS_POLICY);
  scm_c_define_gsubr("OPTION-NAME-DEFAULT-GAINS-LOSS-ACCT-GUID", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_DEFAULT_GAINS_LOSS_ACCT_GUID);
  scm_c_define_gsubr("OPTION-NAME-AUTO-READONLY-DAYS", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_AUTO_READONLY_DAYS);
  scm_c_define_gsubr("OPTION-NAME-NUM-FIELD-SOURCE", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_NUM_FIELD_SOURCE);
  scm_c_define_gsubr("OPTION-SECTION-BUDGETING", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_SECTION_BUDGETING);
  scm_c_define_gsubr("OPTION-NAME-DEFAULT-BUDGET", 0, 0, 0, (swig_guile_proc) _wrap_OPTION_NAME_DEFAULT_BUDGET);
  scm_c_define_gsubr("qof-book-use-trading-accounts", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_use_trading_accounts);
  scm_c_define_gsubr("qof-book-get-book-currency-name", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_get_book_currency_name);
  scm_c_define_gsubr("qof-book-get-default-gains-policy", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_get_default_gains_policy);
  scm_c_define_gsubr("qof-book-get-default-gain-loss-acct-guid", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_get_default_gain_loss_acct_guid);
  scm_c_define_gsubr("qof-book-uses-autoreadonly", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_uses_autoreadonly);
  scm_c_define_gsubr("qof-book-get-num-days-autoreadonly", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_get_num_days_autoreadonly);
  scm_c_define_gsubr("qof-book-get-autoreadonly-gdate", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_get_autoreadonly_gdate);
  scm_c_define_gsubr("qof-book-use-split-action-for-num-field", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_use_split_action_for_num_field);
  scm_c_define_gsubr("qof-book-shutting-down", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_shutting_down);
  scm_c_define_gsubr("qof-book-session-not-saved", 1, 0, 0, (swig_guile_proc) _wrap_qof_book_session_not_saved);
  SWIG_TypeClientData(SWIGTYPE_p__gnc_numeric, (void *) &_swig_guile_clientdata_gnc_numeric);
  scm_c_define_gsubr("-gnc-numeric-num-set", 2, 0, 0, (swig_guile_proc) _wrap__gnc_numeric_num_set);
  scm_c_define_gsubr("-gnc-numeric-num-get", 1, 0, 0, (swig_guile_proc) _wrap__gnc_numeric_num_get);
  scm_c_define_gsubr("-gnc-numeric-denom-set", 2, 0, 0, (swig_guile_proc) _wrap__gnc_numeric_denom_set);
  scm_c_define_gsubr("-gnc-numeric-denom-get", 1, 0, 0, (swig_guile_proc) _wrap__gnc_numeric_denom_get);
  scm_c_define_gsubr("new--gnc-numeric", 0, 0, 0, (swig_guile_proc) _wrap_new__gnc_numeric);
  ((swig_guile_clientdata *)(SWIGTYPE_p__gnc_numeric->clientdata))->destroy = (guile_destructor) _wrap_delete__gnc_numeric;
  scm_c_define_gsubr("delete--gnc-numeric", 1, 0, 0, (swig_guile_proc) _wrap_delete__gnc_numeric);
  scm_c_define_gsubr("GNC-NUMERIC-RND-MASK", 0, 0, 0, (swig_guile_proc) _wrap_GNC_NUMERIC_RND_MASK);
  scm_c_define_gsubr("GNC-NUMERIC-DENOM-MASK", 0, 0, 0, (swig_guile_proc) _wrap_GNC_NUMERIC_DENOM_MASK);
  scm_c_define_gsubr("GNC-NUMERIC-SIGFIGS-MASK", 0, 0, 0, (swig_guile_proc) _wrap_GNC_NUMERIC_SIGFIGS_MASK);
  scm_c_define_gsubr("GNC-HOW-RND-FLOOR", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_FLOOR);
  scm_c_define_gsubr("GNC-HOW-RND-CEIL", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_CEIL);
  scm_c_define_gsubr("GNC-HOW-RND-TRUNC", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_TRUNC);
  scm_c_define_gsubr("GNC-HOW-RND-PROMOTE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_PROMOTE);
  scm_c_define_gsubr("GNC-HOW-RND-ROUND-HALF-DOWN", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_ROUND_HALF_DOWN);
  scm_c_define_gsubr("GNC-HOW-RND-ROUND-HALF-UP", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_ROUND_HALF_UP);
  scm_c_define_gsubr("GNC-HOW-RND-ROUND", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_ROUND);
  scm_c_define_gsubr("GNC-HOW-RND-NEVER", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_RND_NEVER);
  scm_c_define_gsubr("GNC-HOW-DENOM-EXACT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_DENOM_EXACT);
  scm_c_define_gsubr("GNC-HOW-DENOM-REDUCE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_DENOM_REDUCE);
  scm_c_define_gsubr("GNC-HOW-DENOM-LCD", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_DENOM_LCD);
  scm_c_define_gsubr("GNC-HOW-DENOM-FIXED", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_DENOM_FIXED);
  scm_c_define_gsubr("GNC-HOW-DENOM-SIGFIG", 0, 0, 0, (swig_guile_proc) _wrap_GNC_HOW_DENOM_SIGFIG);
  scm_c_define_gsubr("gnc-numeric-create", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_create);
  scm_c_define_gsubr("gnc-numeric-zero", 0, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_zero);
  scm_c_define_gsubr("double-to-gnc-numeric", 3, 0, 0, (swig_guile_proc) _wrap_double_to_gnc_numeric);
  scm_c_define_gsubr("string-to-gnc-numeric", 2, 0, 0, (swig_guile_proc) _wrap_string_to_gnc_numeric);
  scm_c_define_gsubr("gnc-numeric-error", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_error);
  scm_c_define_gsubr("gnc-numeric-errorCode-to-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_errorCode_to_string);
  scm_c_define_gsubr("gnc-numeric-num", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_num);
  scm_c_define_gsubr("gnc-numeric-denom", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_denom);
  scm_c_define_gsubr("gnc-numeric-to-double", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_to_double);
  scm_c_define_gsubr("gnc-numeric-to-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_to_string);
  scm_c_define_gsubr("gnc-num-dbg-to-string", 1, 0, 0, (swig_guile_proc) _wrap_gnc_num_dbg_to_string);
  scm_c_define_gsubr("gnc-numeric-check", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_check);
  scm_c_define_gsubr("gnc-numeric-compare", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_compare);
  scm_c_define_gsubr("gnc-numeric-zero-p", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_zero_p);
  scm_c_define_gsubr("gnc-numeric-negative-p", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_negative_p);
  scm_c_define_gsubr("gnc-numeric-positive-p", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_positive_p);
  scm_c_define_gsubr("gnc-numeric-eq", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_eq);
  scm_c_define_gsubr("gnc-numeric-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_equal);
  scm_c_define_gsubr("gnc-numeric-same", 4, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_same);
  scm_c_define_gsubr("gnc-numeric-add", 4, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_add);
  scm_c_define_gsubr("gnc-numeric-sub", 4, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_sub);
  scm_c_define_gsubr("gnc-numeric-mul", 4, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_mul);
  scm_c_define_gsubr("gnc-numeric-div", 4, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_div);
  scm_c_define_gsubr("gnc-numeric-neg", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_neg);
  scm_c_define_gsubr("gnc-numeric-abs", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_abs);
  scm_c_define_gsubr("gnc-numeric-add-fixed", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_add_fixed);
  scm_c_define_gsubr("gnc-numeric-sub-fixed", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_sub_fixed);
  scm_c_define_gsubr("gnc-numeric-convert", 3, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_convert);
  scm_c_define_gsubr("gnc-numeric-reduce", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_reduce);
  scm_c_define_gsubr("gnc-numeric-to-decimal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_to_decimal);
  scm_c_define_gsubr("gnc-numeric-invert", 1, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_invert);
  scm_c_define_gsubr("gnc-numeric-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_numeric_get_type);
  scm_c_define_gsubr("gnc-budget-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_type);
  scm_c_define_gsubr("GNC-BUDGET-MAX-NUM-PERIODS-DIGITS", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BUDGET_MAX_NUM_PERIODS_DIGITS);
  scm_c_define_gsubr("gnc-budget-register", 0, 0, 0, (swig_guile_proc) _wrap_gnc_budget_register);
  scm_c_define_gsubr("gnc-budget-new", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_new);
  scm_c_define_gsubr("gnc-budget-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_destroy);
  scm_c_define_gsubr("gnc-budget-begin-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_begin_edit);
  scm_c_define_gsubr("gnc-budget-commit-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_commit_edit);
  scm_c_define_gsubr("gnc-budget-clone", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_clone);
  scm_c_define_gsubr("gnc-budget-get-guid", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_guid);
  scm_c_define_gsubr("gnc-budget-set-name", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_set_name);
  scm_c_define_gsubr("gnc-budget-get-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_name);
  scm_c_define_gsubr("gnc-budget-set-description", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_set_description);
  scm_c_define_gsubr("gnc-budget-get-description", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_description);
  scm_c_define_gsubr("gnc-budget-set-num-periods", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_set_num_periods);
  scm_c_define_gsubr("gnc-budget-get-num-periods", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_num_periods);
  scm_c_define_gsubr("gnc-budget-set-recurrence", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_set_recurrence);
  scm_c_define_gsubr("gnc-budget-get-recurrence", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_recurrence);
  scm_c_define_gsubr("gnc-budget-get-period-start-date", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_period_start_date);
  scm_c_define_gsubr("gnc-budget-get-period-end-date", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_period_end_date);
  scm_c_define_gsubr("gnc-budget-set-account-period-value", 4, 0, 0, (swig_guile_proc) _wrap_gnc_budget_set_account_period_value);
  scm_c_define_gsubr("gnc-budget-unset-account-period-value", 3, 0, 0, (swig_guile_proc) _wrap_gnc_budget_unset_account_period_value);
  scm_c_define_gsubr("gnc-budget-is-account-period-value-set", 3, 0, 0, (swig_guile_proc) _wrap_gnc_budget_is_account_period_value_set);
  scm_c_define_gsubr("gnc-budget-get-account-period-value", 3, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_account_period_value);
  scm_c_define_gsubr("gnc-budget-get-account-period-actual-value", 3, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_account_period_actual_value);
  scm_c_define_gsubr("gnc-budget-get-default", 1, 0, 0, (swig_guile_proc) _wrap_gnc_budget_get_default);
  scm_c_define_gsubr("gnc-budget-lookup", 2, 0, 0, (swig_guile_proc) _wrap_gnc_budget_lookup);
  scm_c_define_gsubr("gnc-quote-source-set-fq-installed", 2, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_set_fq_installed);
  scm_c_define_gsubr("gnc-commodity-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_type);
  scm_c_define_gsubr("gnc-commodity-namespace-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_namespace_get_type);
  scm_c_define_gsubr("GNC-COMMODITY-TABLE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_TABLE);
  scm_c_define_gsubr("GNC-COMMODITY-NS-LEGACY", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_LEGACY);
  scm_c_define_gsubr("GNC-COMMODITY-NS-TEMPLATE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_TEMPLATE);
  scm_c_define_gsubr("GNC-COMMODITY-NS-ISO", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_ISO);
  scm_c_define_gsubr("GNC-COMMODITY-NS-CURRENCY", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_CURRENCY);
  scm_c_define_gsubr("GNC-COMMODITY-NS-NASDAQ", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_NASDAQ);
  scm_c_define_gsubr("GNC-COMMODITY-NS-NYSE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_NYSE);
  scm_c_define_gsubr("GNC-COMMODITY-NS-EUREX", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_EUREX);
  scm_c_define_gsubr("GNC-COMMODITY-NS-MUTUAL", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_MUTUAL);
  scm_c_define_gsubr("GNC-COMMODITY-NS-AMEX", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_AMEX);
  scm_c_define_gsubr("GNC-COMMODITY-NS-ASX", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_ASX);
  scm_c_define_gsubr("GNC-COMMODITY-NS-ISO-GUI", 0, 0, 0, (swig_guile_proc) _wrap_GNC_COMMODITY_NS_ISO_GUI);
  scm_c_define_gsubr("SOURCE-SINGLE", 0, 0, 0, (swig_guile_proc) _wrap_SOURCE_SINGLE);
  scm_c_define_gsubr("SOURCE-MULTI", 0, 0, 0, (swig_guile_proc) _wrap_SOURCE_MULTI);
  scm_c_define_gsubr("SOURCE-UNKNOWN", 0, 0, 0, (swig_guile_proc) _wrap_SOURCE_UNKNOWN);
  scm_c_define_gsubr("SOURCE-MAX", 0, 0, 0, (swig_guile_proc) _wrap_SOURCE_MAX);
  scm_c_define_gsubr("SOURCE-CURRENCY", 0, 0, 0, (swig_guile_proc) _wrap_SOURCE_CURRENCY);
  scm_c_define_gsubr("gnc-quote-source-fq-installed", 0, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_fq_installed);
  scm_c_define_gsubr("gnc-quote-source-fq-version", 0, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_fq_version);
  scm_c_define_gsubr("gnc-quote-source-num-entries", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_num_entries);
  scm_c_define_gsubr("gnc-quote-source-add-new", 2, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_add_new);
  scm_c_define_gsubr("gnc-quote-source-lookup-by-internal", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_lookup_by_internal);
  scm_c_define_gsubr("gnc-quote-source-lookup-by-ti", 2, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_lookup_by_ti);
  scm_c_define_gsubr("gnc-quote-source-get-supported", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_get_supported);
  scm_c_define_gsubr("gnc-quote-source-get-type", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_get_type);
  scm_c_define_gsubr("gnc-quote-source-get-index", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_get_index);
  scm_c_define_gsubr("gnc-quote-source-get-user-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_get_user_name);
  scm_c_define_gsubr("gnc-quote-source-get-internal-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_quote_source_get_internal_name);
  scm_c_define_gsubr("gnc-commodity-new", 6, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_new);
  scm_c_define_gsubr("gnc-commodity-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_destroy);
  scm_c_define_gsubr("gnc-commodity-copy", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_copy);
  scm_c_define_gsubr("gnc-commodity-clone", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_clone);
  scm_c_define_gsubr("gnc-commodity-get-mnemonic", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_mnemonic);
  scm_c_define_gsubr("gnc-commodity-get-namespace", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_namespace);
  scm_c_define_gsubr("gnc-commodity-get-namespace-ds", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_namespace_ds);
  scm_c_define_gsubr("gnc-commodity-get-fullname", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_fullname);
  scm_c_define_gsubr("gnc-commodity-get-printname", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_printname);
  scm_c_define_gsubr("gnc-commodity-get-cusip", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_cusip);
  scm_c_define_gsubr("gnc-commodity-get-unique-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_unique_name);
  scm_c_define_gsubr("gnc-commodity-get-fraction", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_fraction);
  scm_c_define_gsubr("gnc-commodity-get-quote-flag", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_quote_flag);
  scm_c_define_gsubr("gnc-commodity-get-quote-source", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_quote_source);
  scm_c_define_gsubr("gnc-commodity-get-default-quote-source", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_default_quote_source);
  scm_c_define_gsubr("gnc-commodity-get-quote-tz", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_quote_tz);
  scm_c_define_gsubr("gnc-commodity-get-user-symbol", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_user_symbol);
  scm_c_define_gsubr("gnc-commodity-get-default-symbol", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_default_symbol);
  scm_c_define_gsubr("gnc-commodity-get-nice-symbol", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_get_nice_symbol);
  scm_c_define_gsubr("gnc-commodity-set-mnemonic", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_mnemonic);
  scm_c_define_gsubr("gnc-commodity-set-namespace", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_namespace);
  scm_c_define_gsubr("gnc-commodity-set-fullname", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_fullname);
  scm_c_define_gsubr("gnc-commodity-set-cusip", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_cusip);
  scm_c_define_gsubr("gnc-commodity-set-fraction", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_fraction);
  scm_c_define_gsubr("gnc-commodity-user-set-quote-flag", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_user_set_quote_flag);
  scm_c_define_gsubr("gnc-commodity-set-quote-flag", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_quote_flag);
  scm_c_define_gsubr("gnc-commodity-set-quote-source", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_quote_source);
  scm_c_define_gsubr("gnc-commodity-set-quote-tz", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_quote_tz);
  scm_c_define_gsubr("gnc-commodity-set-user-symbol", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_set_user_symbol);
  scm_c_define_gsubr("gnc-commodity-increment-usage-count", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_increment_usage_count);
  scm_c_define_gsubr("gnc-commodity-decrement-usage-count", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_decrement_usage_count);
  scm_c_define_gsubr("gnc-commodity-equiv", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_equiv);
  scm_c_define_gsubr("gnc-commodity-equal", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_equal);
  scm_c_define_gsubr("gnc-commodity-compare", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_compare);
  scm_c_define_gsubr("gnc-commodity-compare-void", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_compare_void);
  scm_c_define_gsubr("gnc-commodity-namespace-is-iso", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_namespace_is_iso);
  scm_c_define_gsubr("gnc-commodity-is-iso", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_is_iso);
  scm_c_define_gsubr("gnc-commodity-is-currency", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_is_currency);
  scm_c_define_gsubr("gnc-commodity-table-get-table", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_get_table);
  scm_c_define_gsubr("gnc-commodity-table-lookup", 3, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_lookup);
  scm_c_define_gsubr("gnc-commodity-table-lookup-unique", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_lookup_unique);
  scm_c_define_gsubr("gnc-commodity-table-find-full", 3, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_find_full);
  scm_c_define_gsubr("gnc-commodity-find-commodity-by-guid", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_find_commodity_by_guid);
  scm_c_define_gsubr("gnc-commodity-table-insert", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_insert);
  scm_c_define_gsubr("gnc-commodity-table-remove", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_remove);
  scm_c_define_gsubr("gnc-commodity-table-add-default-data", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_add_default_data);
  scm_c_define_gsubr("gnc-commodity-namespace-get-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_namespace_get_name);
  scm_c_define_gsubr("gnc-commodity-namespace-get-gui-name", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_namespace_get_gui_name);
  scm_c_define_gsubr("gnc-commodity-namespace-get-commodity-list", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_namespace_get_commodity_list);
  scm_c_define_gsubr("gnc-commodity-table-has-namespace", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_has_namespace);
  scm_c_define_gsubr("gnc-commodity-table-get-namespaces", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_get_namespaces);
  scm_c_define_gsubr("gnc-commodity-table-get-namespaces-list", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_get_namespaces_list);
  scm_c_define_gsubr("gnc-commodity-table-add-namespace", 3, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_add_namespace);
  scm_c_define_gsubr("gnc-commodity-table-find-namespace", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_find_namespace);
  scm_c_define_gsubr("gnc-commodity-table-delete-namespace", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_delete_namespace);
  scm_c_define_gsubr("gnc-commodity-table-get-size", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_get_size);
  scm_c_define_gsubr("gnc-commodity-table-get-commodities", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_get_commodities);
  scm_c_define_gsubr("gnc-commodity-table-foreach-commodity", 3, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_foreach_commodity);
  scm_c_define_gsubr("gnc-commodity-table-new", 0, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_new);
  scm_c_define_gsubr("gnc-commodity-table-destroy", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_destroy);
  scm_c_define_gsubr("gnc-commodity-obtain-twin", 2, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_obtain_twin);
  scm_c_define_gsubr("gnc-commodity-table-register", 0, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_table_register);
  scm_c_define_gsubr("gnc-commodity-begin-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_begin_edit);
  scm_c_define_gsubr("gnc-commodity-commit-edit", 1, 0, 0, (swig_guile_proc) _wrap_gnc_commodity_commit_edit);
  SWIG_TypeClientData(SWIGTYPE_p__gnc_monetary, (void *) &_swig_guile_clientdata_gnc_monetary);
  scm_c_define_gsubr("-gnc-monetary-commodity-set", 2, 0, 0, (swig_guile_proc) _wrap__gnc_monetary_commodity_set);
  scm_c_define_gsubr("-gnc-monetary-commodity-get", 1, 0, 0, (swig_guile_proc) _wrap__gnc_monetary_commodity_get);
  scm_c_define_gsubr("-gnc-monetary-value-set", 2, 0, 0, (swig_guile_proc) _wrap__gnc_monetary_value_set);
  scm_c_define_gsubr("-gnc-monetary-value-get", 1, 0, 0, (swig_guile_proc) _wrap__gnc_monetary_value_get);
  scm_c_define_gsubr("new--gnc-monetary", 0, 0, 0, (swig_guile_proc) _wrap_new__gnc_monetary);
  ((swig_guile_clientdata *)(SWIGTYPE_p__gnc_monetary->clientdata))->destroy = (guile_destructor) _wrap_delete__gnc_monetary;
  scm_c_define_gsubr("delete--gnc-monetary", 1, 0, 0, (swig_guile_proc) _wrap_delete__gnc_monetary);
  scm_c_define_gsubr("gnc-monetary-create", 2, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_create);
  scm_c_define_gsubr("gnc-monetary-commodity", 1, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_commodity);
  scm_c_define_gsubr("gnc-monetary-value", 1, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_value);
  scm_c_define_gsubr("gnc-monetary-list-add-monetary", 2, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_list_add_monetary);
  scm_c_define_gsubr("gnc-monetary-list-add-value", 3, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_list_add_value);
  scm_c_define_gsubr("gnc-monetary-list-delete-zeros", 1, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_list_delete_zeros);
  scm_c_define_gsubr("gnc-monetary-list-free", 1, 0, 0, (swig_guile_proc) _wrap_gnc_monetary_list_free);
  scm_c_define_gsubr("gnc-hook-add-scm-dangler", 2, 0, 0, (swig_guile_proc) _wrap_gnc_hook_add_scm_dangler);
  scm_c_define_gsubr("gnc-hook-run", 2, 0, 0, (swig_guile_proc) _wrap_gnc_hook_run);
  scm_c_define_gsubr("gnc-hook-create", 3, 0, 0, (swig_guile_proc) _wrap_gnc_hook_create);
  scm_c_define_gsubr("gnc-hook-add-dangler", 3, 0, 0, (swig_guile_proc) _wrap_gnc_hook_add_dangler);
  scm_c_define_gsubr("gnc-hook-remove-dangler", 2, 0, 0, (swig_guile_proc) _wrap_gnc_hook_remove_dangler);
  scm_c_define_gsubr("gnc-hooks-init", 0, 0, 0, (swig_guile_proc) _wrap_gnc_hooks_init);
  scm_c_define_gsubr("HOOK-STARTUP", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_STARTUP);
  scm_c_define_gsubr("HOOK-SHUTDOWN", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_SHUTDOWN);
  scm_c_define_gsubr("HOOK-UI-STARTUP", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_UI_STARTUP);
  scm_c_define_gsubr("HOOK-UI-POST-STARTUP", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_UI_POST_STARTUP);
  scm_c_define_gsubr("HOOK-UI-SHUTDOWN", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_UI_SHUTDOWN);
  scm_c_define_gsubr("HOOK-NEW-BOOK", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_NEW_BOOK);
  scm_c_define_gsubr("HOOK-REPORT", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_REPORT);
  scm_c_define_gsubr("HOOK-CURRENCY-CHANGED", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_CURRENCY_CHANGED);
  scm_c_define_gsubr("HOOK-SAVE-OPTIONS", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_SAVE_OPTIONS);
  scm_c_define_gsubr("HOOK-ADD-EXTENSION", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_ADD_EXTENSION);
  scm_c_define_gsubr("HOOK-BOOK-OPENED", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_BOOK_OPENED);
  scm_c_define_gsubr("HOOK-BOOK-CLOSED", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_BOOK_CLOSED);
  scm_c_define_gsubr("HOOK-BOOK-SAVED", 0, 0, 0, (swig_guile_proc) _wrap_HOOK_BOOK_SAVED);
  scm_c_define_gsubr("gnc-book-get-template-root", 1, 0, 0, (swig_guile_proc) _wrap_gnc_book_get_template_root);
  scm_c_define_gsubr("qof-book-options-delete", 2, 0, 0, (swig_guile_proc) _wrap_qof_book_options_delete);
  scm_c_define_gsubr("qof-book-set-option", 3, 0, 0, (swig_guile_proc) _wrap_qof_book_set_option);
  scm_c_define_gsubr("qof-book-get-option", 2, 0, 0, (swig_guile_proc) _wrap_qof_book_get_option);
  scm_c_define_gsubr("qof-book-get-string-option", 2, 0, 0, (swig_guile_proc) _wrap_qof_book_get_string_option);
  scm_c_define_gsubr("qof-book-set-string-option", 3, 0, 0, (swig_guile_proc) _wrap_qof_book_set_string_option);
  
  {
    char tmp[100];
    
    
    
    
    snprintf(tmp, 100, "(set! %s (%s))", ("TXN-TYPE-NONE"), ("TXN-TYPE-NONE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("TXN-TYPE-INVOICE"), ("TXN-TYPE-INVOICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("TXN-TYPE-PAYMENT"), ("TXN-TYPE-PAYMENT"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-INVALID"), ("ACCT-TYPE-INVALID"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-NONE"), ("ACCT-TYPE-NONE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-BANK"), ("ACCT-TYPE-BANK"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-CASH"), ("ACCT-TYPE-CASH"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-CREDIT"), ("ACCT-TYPE-CREDIT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-ASSET"), ("ACCT-TYPE-ASSET"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-LIABILITY"), ("ACCT-TYPE-LIABILITY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-STOCK"), ("ACCT-TYPE-STOCK"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-MUTUAL"), ("ACCT-TYPE-MUTUAL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-CURRENCY"), ("ACCT-TYPE-CURRENCY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-INCOME"), ("ACCT-TYPE-INCOME"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-EXPENSE"), ("ACCT-TYPE-EXPENSE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-EQUITY"), ("ACCT-TYPE-EQUITY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-RECEIVABLE"), ("ACCT-TYPE-RECEIVABLE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-PAYABLE"), ("ACCT-TYPE-PAYABLE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-ROOT"), ("ACCT-TYPE-ROOT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-TRADING"), ("ACCT-TYPE-TRADING"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("NUM-ACCOUNT-TYPES"), ("NUM-ACCOUNT-TYPES"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-CHECKING"), ("ACCT-TYPE-CHECKING"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-SAVINGS"), ("ACCT-TYPE-SAVINGS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-MONEYMRKT"), ("ACCT-TYPE-MONEYMRKT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCT-TYPE-CREDITLINE"), ("ACCT-TYPE-CREDITLINE"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-QUERY-AND"), ("QOF-QUERY-AND"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-QUERY-OR"), ("QOF-QUERY-OR"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QUERY-TXN-MATCH-ALL"), ("QUERY-TXN-MATCH-ALL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QUERY-TXN-MATCH-ANY"), ("QUERY-TXN-MATCH-ANY"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-GUID-MATCH-ALL"), ("QOF-GUID-MATCH-ALL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-GUID-MATCH-ANY"), ("QOF-GUID-MATCH-ANY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-GUID-MATCH-NULL"), ("QOF-GUID-MATCH-NULL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-GUID-MATCH-NONE"), ("QOF-GUID-MATCH-NONE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-GUID-MATCH-LIST-ANY"), ("QOF-GUID-MATCH-LIST-ANY"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-LT"), ("QOF-COMPARE-LT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-LTE"), ("QOF-COMPARE-LTE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-EQUAL"), ("QOF-COMPARE-EQUAL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-GT"), ("QOF-COMPARE-GT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-GTE"), ("QOF-COMPARE-GTE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-NEQ"), ("QOF-COMPARE-NEQ"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-CONTAINS"), ("QOF-COMPARE-CONTAINS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-COMPARE-NCONTAINS"), ("QOF-COMPARE-NCONTAINS"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-NUMERIC-MATCH-ANY"), ("QOF-NUMERIC-MATCH-ANY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-NUMERIC-MATCH-CREDIT"), ("QOF-NUMERIC-MATCH-CREDIT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-NUMERIC-MATCH-DEBIT"), ("QOF-NUMERIC-MATCH-DEBIT"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-PARAM-BOOK"), ("QOF-PARAM-BOOK"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-PARAM-GUID"), ("QOF-PARAM-GUID"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-PARAM-KVP"), ("QOF-PARAM-KVP"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-PARAM-ACTIVE"), ("QOF-PARAM-ACTIVE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-PARAM-VERSION"), ("QOF-PARAM-VERSION"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("CLEARED-NO"), ("CLEARED-NO"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("CLEARED-CLEARED"), ("CLEARED-CLEARED"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("CLEARED-FROZEN"), ("CLEARED-FROZEN"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("CLEARED-RECONCILED"), ("CLEARED-RECONCILED"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("CLEARED-VOIDED"), ("CLEARED-VOIDED"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("HOOK-REPORT"), ("HOOK-REPORT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("HOOK-SAVE-OPTIONS"), ("HOOK-SAVE-OPTIONS"));       scm_c_eval_string(tmp);;
    
    //SET_ENUM("GNC-ID-ACCOUNT");
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-ID-BOOK-SCM"), ("QOF-ID-BOOK-SCM"));       scm_c_eval_string(tmp);;
    //SET_ENUM("GNC-ID-BUDGET");
    //SET_ENUM("GNC-ID-LOT");
    //SET_ENUM("GNC-ID-PRICE");
    //SET_ENUM("GNC-ID-SPLIT");
    //SET_ENUM("GNC-ID-SCHEDXACTION");
    //SET_ENUM("QOF-ID-SESSION");
    //SET_ENUM("GNC-ID-TRANS");
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QUERY-DEFAULT-SORT"), ("QUERY-DEFAULT-SORT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-LOT"), ("SPLIT-LOT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-TRANS"), ("SPLIT-TRANS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-ACCOUNT"), ("SPLIT-ACCOUNT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-VALUE"), ("SPLIT-VALUE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-MEMO"), ("SPLIT-MEMO"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-ACTION"), ("SPLIT-ACTION"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-DATE-RECONCILED"), ("SPLIT-DATE-RECONCILED"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-ACCT-FULLNAME"), ("SPLIT-ACCT-FULLNAME"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-CORR-ACCT-NAME"), ("SPLIT-CORR-ACCT-NAME"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("SPLIT-CORR-ACCT-CODE"), ("SPLIT-CORR-ACCT-CODE"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("TRANS-DATE-POSTED"), ("TRANS-DATE-POSTED"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("TRANS-DESCRIPTION"), ("TRANS-DESCRIPTION"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("TRANS-NUM"), ("TRANS-NUM"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("KVP-OPTION-PATH"), ("KVP-OPTION-PATH"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-SECTION-ACCOUNTS"), ("OPTION-SECTION-ACCOUNTS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-TRADING-ACCOUNTS"), ("OPTION-NAME-TRADING-ACCOUNTS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-CURRENCY-ACCOUNTING"), ("OPTION-NAME-CURRENCY-ACCOUNTING"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-BOOK-CURRENCY"), ("OPTION-NAME-BOOK-CURRENCY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-DEFAULT-GAINS-POLICY"), ("OPTION-NAME-DEFAULT-GAINS-POLICY"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-DEFAULT-GAINS-LOSS-ACCT-GUID"), ("OPTION-NAME-DEFAULT-GAINS-LOSS-ACCT-GUID"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-AUTO-READONLY-DAYS"), ("OPTION-NAME-AUTO-READONLY-DAYS"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-NUM-FIELD-SOURCE"), ("OPTION-NAME-NUM-FIELD-SOURCE"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-SECTION-BUDGETING"), ("OPTION-SECTION-BUDGETING"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OPTION-NAME-DEFAULT-BUDGET"), ("OPTION-NAME-DEFAULT-BUDGET"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("ACCOUNT-CODE-"), ("ACCOUNT-CODE-"));       scm_c_eval_string(tmp);;  /* sic */
    
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-CEIL"), ("GNC-HOW-RND-CEIL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-TRUNC"), ("GNC-HOW-RND-TRUNC"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-PROMOTE"), ("GNC-HOW-RND-PROMOTE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-ROUND-HALF-DOWN"), ("GNC-HOW-RND-ROUND-HALF-DOWN"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-ROUND-HALF-UP"), ("GNC-HOW-RND-ROUND-HALF-UP"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-ROUND"), ("GNC-HOW-RND-ROUND"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-HOW-RND-NEVER"), ("GNC-HOW-RND-NEVER"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-EDIT-DLG"), ("PRICE-SOURCE-EDIT-DLG"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-FQ"), ("PRICE-SOURCE-FQ"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-USER-PRICE"), ("PRICE-SOURCE-USER-PRICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-XFER-DLG-VAL"), ("PRICE-SOURCE-XFER-DLG-VAL"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-SPLIT-REG"), ("PRICE-SOURCE-SPLIT-REG"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-STOCK-SPLIT"), ("PRICE-SOURCE-STOCK-SPLIT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-TEMP"), ("PRICE-SOURCE-TEMP"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("PRICE-SOURCE-INVALID"), ("PRICE-SOURCE-INVALID"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-US"), ("QOF-DATE-FORMAT-US"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-UK"), ("QOF-DATE-FORMAT-UK"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-CE"), ("QOF-DATE-FORMAT-CE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-ISO"), ("QOF-DATE-FORMAT-ISO"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-LOCALE"), ("QOF-DATE-FORMAT-LOCALE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-UTC"), ("QOF-DATE-FORMAT-UTC"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("QOF-DATE-FORMAT-CUSTOM"), ("QOF-DATE-FORMAT-CUSTOM"));       scm_c_eval_string(tmp);;
    
    
    
  }
  
  
  scm_c_define_gsubr("gncTaxTableReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableReturnGUID);
  scm_c_define_gsubr("gncInvoiceReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceReturnGUID);
  scm_c_define_gsubr("gncJobReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncJobReturnGUID);
  scm_c_define_gsubr("gncVendorReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorReturnGUID);
  scm_c_define_gsubr("gncCustomerReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerReturnGUID);
  scm_c_define_gsubr("gncEmployeeReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeReturnGUID);
  scm_c_define_gsubr("gncTaxTableLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableLookupFlip);
  scm_c_define_gsubr("gncInvoiceLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceLookupFlip);
  scm_c_define_gsubr("gncJobLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncJobLookupFlip);
  scm_c_define_gsubr("gncVendorLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorLookupFlip);
  scm_c_define_gsubr("gncCustomerLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerLookupFlip);
  scm_c_define_gsubr("gncEmployeeLookupFlip", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeLookupFlip);
  scm_c_define_gsubr("GNC-ADDRESS-MODULE-NAME", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ADDRESS_MODULE_NAME);
  scm_c_define_gsubr("GNC-ID-ADDRESS", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_ADDRESS);
  scm_c_define_gsubr("gnc-address-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_address_get_type);
  scm_c_define_gsubr("gncAddressCreate", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressCreate);
  scm_c_define_gsubr("gncAddressDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressDestroy);
  scm_c_define_gsubr("gncAddressBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressBeginEdit);
  scm_c_define_gsubr("gncAddressCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressCommitEdit);
  scm_c_define_gsubr("gncAddressSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetName);
  scm_c_define_gsubr("gncAddressSetAddr1", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetAddr1);
  scm_c_define_gsubr("gncAddressSetAddr2", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetAddr2);
  scm_c_define_gsubr("gncAddressSetAddr3", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetAddr3);
  scm_c_define_gsubr("gncAddressSetAddr4", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetAddr4);
  scm_c_define_gsubr("gncAddressSetPhone", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetPhone);
  scm_c_define_gsubr("gncAddressSetFax", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetFax);
  scm_c_define_gsubr("gncAddressSetEmail", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressSetEmail);
  scm_c_define_gsubr("gncAddressClearDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressClearDirty);
  scm_c_define_gsubr("gncAddressGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetName);
  scm_c_define_gsubr("gncAddressGetAddr1", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetAddr1);
  scm_c_define_gsubr("gncAddressGetAddr2", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetAddr2);
  scm_c_define_gsubr("gncAddressGetAddr3", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetAddr3);
  scm_c_define_gsubr("gncAddressGetAddr4", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetAddr4);
  scm_c_define_gsubr("gncAddressGetPhone", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetPhone);
  scm_c_define_gsubr("gncAddressGetFax", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetFax);
  scm_c_define_gsubr("gncAddressGetEmail", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressGetEmail);
  scm_c_define_gsubr("gncAddressIsDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncAddressIsDirty);
  scm_c_define_gsubr("gncAddressCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressCompare);
  scm_c_define_gsubr("gncAddressEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncAddressEqual);
  scm_c_define_gsubr("ADDRESS-NAME", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_NAME);
  scm_c_define_gsubr("ADDRESS-ONE", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_ONE);
  scm_c_define_gsubr("ADDRESS-TWO", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_TWO);
  scm_c_define_gsubr("ADDRESS-THREE", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_THREE);
  scm_c_define_gsubr("ADDRESS-FOUR", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_FOUR);
  scm_c_define_gsubr("ADDRESS-PHONE", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_PHONE);
  scm_c_define_gsubr("ADDRESS-FAX", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_FAX);
  scm_c_define_gsubr("ADDRESS-EMAIL", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_EMAIL);
  scm_c_define_gsubr("ADDRESS-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_ADDRESS_OWNER);
  scm_c_define_gsubr("GNC-ID-BILLTERM", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_BILLTERM);
  scm_c_define_gsubr("gnc-billterm-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_billterm_get_type);
  scm_c_define_gsubr("GNC-BILLTERM-NAME", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_NAME);
  scm_c_define_gsubr("GNC-BILLTERM-DESC", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_DESC);
  scm_c_define_gsubr("GNC-BILLTERM-DUEDAYS", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_DUEDAYS);
  scm_c_define_gsubr("GNC-BILLTERM-DISCDAYS", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_DISCDAYS);
  scm_c_define_gsubr("GNC-BILLTERM-CUTOFF", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_CUTOFF);
  scm_c_define_gsubr("GNC-BILLTERM-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_TYPE);
  scm_c_define_gsubr("GNC-BILLTERM-DISCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_DISCOUNT);
  scm_c_define_gsubr("GNC-BILLTERM-REFCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_REFCOUNT);
  scm_c_define_gsubr("GNC-TERM-TYPE-DAYS", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TERM_TYPE_DAYS);
  scm_c_define_gsubr("GNC-TERM-TYPE-PROXIMO", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TERM_TYPE_PROXIMO);
  scm_c_define_gsubr("gncBillTermCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermCreate);
  scm_c_define_gsubr("gncBillTermDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermDestroy);
  scm_c_define_gsubr("gncBillTermIncRef", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermIncRef);
  scm_c_define_gsubr("gncBillTermDecRef", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermDecRef);
  scm_c_define_gsubr("gncBillTermChanged", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermChanged);
  scm_c_define_gsubr("gncBillTermBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermBeginEdit);
  scm_c_define_gsubr("gncBillTermCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermCommitEdit);
  scm_c_define_gsubr("gncBillTermSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetName);
  scm_c_define_gsubr("gncBillTermSetDescription", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetDescription);
  scm_c_define_gsubr("gncBillTermSetType", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetType);
  scm_c_define_gsubr("gncBillTermSetDueDays", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetDueDays);
  scm_c_define_gsubr("gncBillTermSetDiscountDays", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetDiscountDays);
  scm_c_define_gsubr("gncBillTermSetDiscount", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetDiscount);
  scm_c_define_gsubr("gncBillTermSetCutoff", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermSetCutoff);
  scm_c_define_gsubr("gncBillTermLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermLookup);
  scm_c_define_gsubr("gncBillTermLookupByName", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermLookupByName);
  scm_c_define_gsubr("gncBillTermGetTerms", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetTerms);
  scm_c_define_gsubr("gncBillTermGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetName);
  scm_c_define_gsubr("gncBillTermGetDescription", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetDescription);
  scm_c_define_gsubr("gncBillTermGetType", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetType);
  scm_c_define_gsubr("gncBillTermGetDueDays", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetDueDays);
  scm_c_define_gsubr("gncBillTermGetDiscountDays", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetDiscountDays);
  scm_c_define_gsubr("gncBillTermGetDiscount", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetDiscount);
  scm_c_define_gsubr("gncBillTermGetCutoff", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetCutoff);
  scm_c_define_gsubr("gncBillTermIsDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermIsDirty);
  scm_c_define_gsubr("gncBillTermGetParent", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetParent);
  scm_c_define_gsubr("gncBillTermReturnChild", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermReturnChild);
  scm_c_define_gsubr("gncBillTermGetRefcount", 1, 0, 0, (swig_guile_proc) _wrap_gncBillTermGetRefcount);
  scm_c_define_gsubr("gncBillTermCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermCompare);
  scm_c_define_gsubr("gncBillTermEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermEqual);
  scm_c_define_gsubr("gncBillTermIsFamily", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermIsFamily);
  scm_c_define_gsubr("gncBillTermComputeDueDate", 2, 0, 0, (swig_guile_proc) _wrap_gncBillTermComputeDueDate);
  scm_c_define_gsubr("OWNER-EXPORT-PDF-DIRNAME", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_EXPORT_PDF_DIRNAME);
  scm_c_define_gsubr("LAST-POSTED-TO-ACCT", 0, 0, 0, (swig_guile_proc) _wrap_LAST_POSTED_TO_ACCT);
  scm_c_define_gsubr("GNC-PAYMENT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_PAYMENT);
  scm_c_define_gsubr("GNC-LAST-ACCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_LAST_ACCOUNT);
  scm_c_define_gsubr("GNC-BILLTERM-MODULE-NAME", 0, 0, 0, (swig_guile_proc) _wrap_GNC_BILLTERM_MODULE_NAME);
  scm_c_define_gsubr("gncBusinessGetList", 3, 0, 0, (swig_guile_proc) _wrap_gncBusinessGetList);
  scm_c_define_gsubr("gncBusinessGetOwnerList", 3, 0, 0, (swig_guile_proc) _wrap_gncBusinessGetOwnerList);
  scm_c_define_gsubr("gncBusinessIsPaymentAcctType", 1, 0, 0, (swig_guile_proc) _wrap_gncBusinessIsPaymentAcctType);
  scm_c_define_gsubr("GNC-ID-CUSTOMER", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_CUSTOMER);
  scm_c_define_gsubr("gnc-customer-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_customer_get_type);
  scm_c_define_gsubr("gncCustomerCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerCreate);
  scm_c_define_gsubr("gncCustomerDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerDestroy);
  scm_c_define_gsubr("gncCustomerBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerBeginEdit);
  scm_c_define_gsubr("gncCustomerCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerCommitEdit);
  scm_c_define_gsubr("gncCustomerSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetID);
  scm_c_define_gsubr("gncCustomerSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetName);
  scm_c_define_gsubr("gncCustomerSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetNotes);
  scm_c_define_gsubr("gncCustomerSetTerms", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetTerms);
  scm_c_define_gsubr("gncCustomerSetTaxIncluded", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetTaxIncluded);
  scm_c_define_gsubr("gncCustomerSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetActive);
  scm_c_define_gsubr("gncCustomerSetDiscount", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetDiscount);
  scm_c_define_gsubr("gncCustomerSetCredit", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetCredit);
  scm_c_define_gsubr("gncCustomerSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetCurrency);
  scm_c_define_gsubr("gncCustomerSetTaxTableOverride", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetTaxTableOverride);
  scm_c_define_gsubr("gncCustomerSetTaxTable", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerSetTaxTable);
  scm_c_define_gsubr("gncCustomerAddJob", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerAddJob);
  scm_c_define_gsubr("gncCustomerRemoveJob", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerRemoveJob);
  scm_c_define_gsubr("gncCustomerLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerLookup);
  scm_c_define_gsubr("gncCustomerGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetID);
  scm_c_define_gsubr("gncCustomerGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetName);
  scm_c_define_gsubr("gncCustomerGetAddr", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetAddr);
  scm_c_define_gsubr("gncCustomerGetShipAddr", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetShipAddr);
  scm_c_define_gsubr("gncCustomerGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetNotes);
  scm_c_define_gsubr("gncCustomerGetTerms", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetTerms);
  scm_c_define_gsubr("gncCustomerGetTaxIncluded", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetTaxIncluded);
  scm_c_define_gsubr("gncCustomerGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetActive);
  scm_c_define_gsubr("gncCustomerGetDiscount", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetDiscount);
  scm_c_define_gsubr("gncCustomerGetCredit", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetCredit);
  scm_c_define_gsubr("gncCustomerGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetCurrency);
  scm_c_define_gsubr("gncCustomerGetTaxTableOverride", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetTaxTableOverride);
  scm_c_define_gsubr("gncCustomerGetTaxTable", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetTaxTable);
  scm_c_define_gsubr("gncCustomerCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerCompare);
  scm_c_define_gsubr("CUSTOMER-ID", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_ID);
  scm_c_define_gsubr("CUSTOMER-NAME", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_NAME);
  scm_c_define_gsubr("CUSTOMER-ADDR", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_ADDR);
  scm_c_define_gsubr("CUSTOMER-SHIPADDR", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_SHIPADDR);
  scm_c_define_gsubr("CUSTOMER-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_NOTES);
  scm_c_define_gsubr("CUSTOMER-DISCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_DISCOUNT);
  scm_c_define_gsubr("CUSTOMER-CREDIT", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_CREDIT);
  scm_c_define_gsubr("CUSTOMER-TT-OVER", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_TT_OVER);
  scm_c_define_gsubr("CUSTOMER-TAX-INC", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_TAX_INC);
  scm_c_define_gsubr("CUSTOMER-TERMS", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_TERMS);
  scm_c_define_gsubr("CUSTOMER-ACTIVE", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_ACTIVE);
  scm_c_define_gsubr("CUSTOMER-SLOTS", 0, 0, 0, (swig_guile_proc) _wrap_CUSTOMER_SLOTS);
  scm_c_define_gsubr("gncCustomerEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerEqual);
  scm_c_define_gsubr("gncCustomerGetJoblist", 2, 0, 0, (swig_guile_proc) _wrap_gncCustomerGetJoblist);
  scm_c_define_gsubr("gncCustomerIsDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncCustomerIsDirty);
  scm_c_define_gsubr("GNC-ID-EMPLOYEE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_EMPLOYEE);
  scm_c_define_gsubr("gnc-employee-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_employee_get_type);
  scm_c_define_gsubr("gncEmployeeCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeCreate);
  scm_c_define_gsubr("gncEmployeeDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeDestroy);
  scm_c_define_gsubr("gncEmployeeBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeBeginEdit);
  scm_c_define_gsubr("gncEmployeeCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeCommitEdit);
  scm_c_define_gsubr("gncEmployeeCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeCompare);
  scm_c_define_gsubr("gncEmployeeSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetID);
  scm_c_define_gsubr("gncEmployeeSetUsername", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetUsername);
  scm_c_define_gsubr("gncEmployeeSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetName);
  scm_c_define_gsubr("gncEmployeeSetLanguage", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetLanguage);
  scm_c_define_gsubr("gncEmployeeSetAcl", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetAcl);
  scm_c_define_gsubr("gncEmployeeSetWorkday", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetWorkday);
  scm_c_define_gsubr("gncEmployeeSetRate", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetRate);
  scm_c_define_gsubr("gncEmployeeSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetCurrency);
  scm_c_define_gsubr("gncEmployeeSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetActive);
  scm_c_define_gsubr("gncEmployeeSetCCard", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeSetCCard);
  scm_c_define_gsubr("qofEmployeeSetAddr", 2, 0, 0, (swig_guile_proc) _wrap_qofEmployeeSetAddr);
  scm_c_define_gsubr("gncEmployeeGetBook", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetBook);
  scm_c_define_gsubr("gncEmployeeGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetID);
  scm_c_define_gsubr("gncEmployeeGetUsername", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetUsername);
  scm_c_define_gsubr("gncEmployeeGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetName);
  scm_c_define_gsubr("gncEmployeeGetAddr", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetAddr);
  scm_c_define_gsubr("gncEmployeeGetLanguage", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetLanguage);
  scm_c_define_gsubr("gncEmployeeGetAcl", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetAcl);
  scm_c_define_gsubr("gncEmployeeGetWorkday", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetWorkday);
  scm_c_define_gsubr("gncEmployeeGetRate", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetRate);
  scm_c_define_gsubr("gncEmployeeGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetCurrency);
  scm_c_define_gsubr("gncEmployeeGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetActive);
  scm_c_define_gsubr("gncEmployeeGetCCard", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeGetCCard);
  scm_c_define_gsubr("gncEmployeeLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeLookup);
  scm_c_define_gsubr("EMPLOYEE-ID", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_ID);
  scm_c_define_gsubr("EMPLOYEE-USERNAME", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_USERNAME);
  scm_c_define_gsubr("EMPLOYEE-NAME", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_NAME);
  scm_c_define_gsubr("EMPLOYEE-ADDR", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_ADDR);
  scm_c_define_gsubr("EMPLOYEE-LANGUAGE", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_LANGUAGE);
  scm_c_define_gsubr("EMPLOYEE-ACL", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_ACL);
  scm_c_define_gsubr("EMPLOYEE-WORKDAY", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_WORKDAY);
  scm_c_define_gsubr("EMPLOYEE-RATE", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_RATE);
  scm_c_define_gsubr("EMPLOYEE-CC", 0, 0, 0, (swig_guile_proc) _wrap_EMPLOYEE_CC);
  scm_c_define_gsubr("gncEmployeeEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncEmployeeEqual);
  scm_c_define_gsubr("gncEmployeeIsDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncEmployeeIsDirty);
  scm_c_define_gsubr("GNC-PAYMENT-CASH", 0, 0, 0, (swig_guile_proc) _wrap_GNC_PAYMENT_CASH);
  scm_c_define_gsubr("GNC-PAYMENT-CARD", 0, 0, 0, (swig_guile_proc) _wrap_GNC_PAYMENT_CARD);
  scm_c_define_gsubr("GNC-DISC-PRETAX", 0, 0, 0, (swig_guile_proc) _wrap_GNC_DISC_PRETAX);
  scm_c_define_gsubr("GNC-DISC-SAMETIME", 0, 0, 0, (swig_guile_proc) _wrap_GNC_DISC_SAMETIME);
  scm_c_define_gsubr("GNC-DISC-POSTTAX", 0, 0, 0, (swig_guile_proc) _wrap_GNC_DISC_POSTTAX);
  scm_c_define_gsubr("GNC-ID-ENTRY", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_ENTRY);
  scm_c_define_gsubr("gnc-entry-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_entry_get_type);
  scm_c_define_gsubr("gncEntryDiscountHowToString", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryDiscountHowToString);
  scm_c_define_gsubr("gncEntryDiscountStringToHow", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryDiscountStringToHow);
  scm_c_define_gsubr("gncEntryPaymentTypeToString", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryPaymentTypeToString);
  scm_c_define_gsubr("gncEntryPaymentStringToType", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryPaymentStringToType);
  scm_c_define_gsubr("gncEntryCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryCreate);
  scm_c_define_gsubr("gncEntryDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryDestroy);
  scm_c_define_gsubr("gncEntrySetDateGDate", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetDateGDate);
  scm_c_define_gsubr("gncEntrySetDate", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetDate);
  scm_c_define_gsubr("gncEntrySetDateEntered", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetDateEntered);
  scm_c_define_gsubr("gncEntrySetDescription", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetDescription);
  scm_c_define_gsubr("gncEntrySetAction", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetAction);
  scm_c_define_gsubr("gncEntrySetNotes", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetNotes);
  scm_c_define_gsubr("gncEntrySetQuantity", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetQuantity);
  scm_c_define_gsubr("gncEntrySetDocQuantity", 3, 0, 0, (swig_guile_proc) _wrap_gncEntrySetDocQuantity);
  scm_c_define_gsubr("gncEntrySetInvAccount", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvAccount);
  scm_c_define_gsubr("gncEntrySetInvPrice", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvPrice);
  scm_c_define_gsubr("gncEntrySetInvTaxable", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvTaxable);
  scm_c_define_gsubr("gncEntrySetInvTaxIncluded", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvTaxIncluded);
  scm_c_define_gsubr("gncEntrySetInvTaxTable", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvTaxTable);
  scm_c_define_gsubr("gncEntrySetInvDiscount", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvDiscount);
  scm_c_define_gsubr("gncEntrySetInvDiscountType", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvDiscountType);
  scm_c_define_gsubr("gncEntrySetInvDiscountHow", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetInvDiscountHow);
  scm_c_define_gsubr("qofEntrySetInvDiscType", 2, 0, 0, (swig_guile_proc) _wrap_qofEntrySetInvDiscType);
  scm_c_define_gsubr("qofEntrySetInvDiscHow", 2, 0, 0, (swig_guile_proc) _wrap_qofEntrySetInvDiscHow);
  scm_c_define_gsubr("gncEntrySetBillAccount", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillAccount);
  scm_c_define_gsubr("gncEntrySetBillPrice", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillPrice);
  scm_c_define_gsubr("gncEntrySetBillTaxable", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillTaxable);
  scm_c_define_gsubr("gncEntrySetBillTaxIncluded", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillTaxIncluded);
  scm_c_define_gsubr("gncEntrySetBillTaxTable", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillTaxTable);
  scm_c_define_gsubr("gncEntrySetBillable", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillable);
  scm_c_define_gsubr("gncEntrySetBillTo", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillTo);
  scm_c_define_gsubr("gncEntrySetBillPayment", 2, 0, 0, (swig_guile_proc) _wrap_gncEntrySetBillPayment);
  scm_c_define_gsubr("gncEntryGetDateGDate", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDateGDate);
  scm_c_define_gsubr("gncEntryGetDate", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDate);
  scm_c_define_gsubr("gncEntryGetDateEntered", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDateEntered);
  scm_c_define_gsubr("gncEntryGetDescription", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDescription);
  scm_c_define_gsubr("gncEntryGetAction", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetAction);
  scm_c_define_gsubr("gncEntryGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetNotes);
  scm_c_define_gsubr("gncEntryGetQuantity", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetQuantity);
  scm_c_define_gsubr("gncEntryGetDocQuantity", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDocQuantity);
  scm_c_define_gsubr("gncEntryGetInvAccount", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvAccount);
  scm_c_define_gsubr("gncEntryGetInvPrice", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvPrice);
  scm_c_define_gsubr("gncEntryGetPrice", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryGetPrice);
  scm_c_define_gsubr("gncEntryGetInvDiscount", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvDiscount);
  scm_c_define_gsubr("gncEntryGetInvDiscountType", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvDiscountType);
  scm_c_define_gsubr("gncEntryGetInvDiscountHow", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvDiscountHow);
  scm_c_define_gsubr("qofEntryGetInvDiscType", 1, 0, 0, (swig_guile_proc) _wrap_qofEntryGetInvDiscType);
  scm_c_define_gsubr("qofEntryGetInvDiscHow", 1, 0, 0, (swig_guile_proc) _wrap_qofEntryGetInvDiscHow);
  scm_c_define_gsubr("gncEntryGetInvTaxable", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvTaxable);
  scm_c_define_gsubr("gncEntryGetInvTaxIncluded", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvTaxIncluded);
  scm_c_define_gsubr("gncEntryGetInvTaxTable", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvTaxTable);
  scm_c_define_gsubr("gncEntryGetBillAccount", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillAccount);
  scm_c_define_gsubr("gncEntryGetBillPrice", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillPrice);
  scm_c_define_gsubr("gncEntryGetBillTaxable", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillTaxable);
  scm_c_define_gsubr("gncEntryGetBillTaxIncluded", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillTaxIncluded);
  scm_c_define_gsubr("gncEntryGetBillTaxTable", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillTaxTable);
  scm_c_define_gsubr("gncEntryGetBillable", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillable);
  scm_c_define_gsubr("gncEntryGetBillTo", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillTo);
  scm_c_define_gsubr("gncEntryGetBillPayment", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBillPayment);
  scm_c_define_gsubr("gncEntryCopy", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryCopy);
  scm_c_define_gsubr("gncEntryGetDocValue", 4, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDocValue);
  scm_c_define_gsubr("gncEntryGetDocTaxValue", 4, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDocTaxValue);
  scm_c_define_gsubr("gncEntryGetDocTaxValues", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDocTaxValues);
  scm_c_define_gsubr("gncEntryGetDocDiscountValue", 4, 0, 0, (swig_guile_proc) _wrap_gncEntryGetDocDiscountValue);
  scm_c_define_gsubr("gncEntryGetBalValue", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBalValue);
  scm_c_define_gsubr("gncEntryGetBalTaxValue", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBalTaxValue);
  scm_c_define_gsubr("gncEntryGetBalTaxValues", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBalTaxValues);
  scm_c_define_gsubr("gncEntryGetBalDiscountValue", 3, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBalDiscountValue);
  scm_c_define_gsubr("gncEntryComputeValue", 0, 0, 1, (swig_guile_proc) _wrap_gncEntryComputeValue_rest);
  scm_c_define_gsubr("gncEntryGetOrder", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetOrder);
  scm_c_define_gsubr("gncEntryGetInvoice", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetInvoice);
  scm_c_define_gsubr("gncEntryGetBill", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryGetBill);
  scm_c_define_gsubr("gncEntryLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryLookup);
  scm_c_define_gsubr("gncEntryIsOpen", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryIsOpen);
  scm_c_define_gsubr("gncEntryBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryBeginEdit);
  scm_c_define_gsubr("gncEntryCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncEntryCommitEdit);
  scm_c_define_gsubr("gncEntryCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncEntryCompare);
  scm_c_define_gsubr("ENTRY-DATE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_DATE);
  scm_c_define_gsubr("ENTRY-DATE-ENTERED", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_DATE_ENTERED);
  scm_c_define_gsubr("ENTRY-DESC", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_DESC);
  scm_c_define_gsubr("ENTRY-ACTION", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_ACTION);
  scm_c_define_gsubr("ENTRY-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_NOTES);
  scm_c_define_gsubr("ENTRY-QTY", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_QTY);
  scm_c_define_gsubr("ENTRY-IPRICE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_IPRICE);
  scm_c_define_gsubr("ENTRY-IACCT", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_IACCT);
  scm_c_define_gsubr("ENTRY-BACCT", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BACCT);
  scm_c_define_gsubr("ENTRY-BPRICE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BPRICE);
  scm_c_define_gsubr("ENTRY-BILLABLE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILLABLE);
  scm_c_define_gsubr("ENTRY-BILLTO", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILLTO);
  scm_c_define_gsubr("ENTRY-ORDER", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_ORDER);
  scm_c_define_gsubr("ENTRY-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INVOICE);
  scm_c_define_gsubr("ENTRY-BILL", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILL);
  scm_c_define_gsubr("ENTRY-INV-DISC-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INV_DISC_TYPE);
  scm_c_define_gsubr("ENTRY-INV-DISC-HOW", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INV_DISC_HOW);
  scm_c_define_gsubr("ENTRY-INV-TAXABLE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INV_TAXABLE);
  scm_c_define_gsubr("ENTRY-BILL-TAXABLE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILL_TAXABLE);
  scm_c_define_gsubr("ENTRY-INV-TAX-INC", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INV_TAX_INC);
  scm_c_define_gsubr("ENTRY-BILL-TAX-INC", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILL_TAX_INC);
  scm_c_define_gsubr("ENTRY-INV-DISCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_INV_DISCOUNT);
  scm_c_define_gsubr("ENTRY-BILL-PAY-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_ENTRY_BILL_PAY_TYPE);
  scm_c_define_gsubr("GNC-ID-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_INVOICE);
  scm_c_define_gsubr("GNC-INVOICE-UNDEFINED", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_UNDEFINED);
  scm_c_define_gsubr("GNC-INVOICE-CUST-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_CUST_INVOICE);
  scm_c_define_gsubr("GNC-INVOICE-VEND-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_VEND_INVOICE);
  scm_c_define_gsubr("GNC-INVOICE-EMPL-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_EMPL_INVOICE);
  scm_c_define_gsubr("GNC-INVOICE-CUST-CREDIT-NOTE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_CUST_CREDIT_NOTE);
  scm_c_define_gsubr("GNC-INVOICE-VEND-CREDIT-NOTE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_VEND_CREDIT_NOTE);
  scm_c_define_gsubr("GNC-INVOICE-EMPL-CREDIT-NOTE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_EMPL_CREDIT_NOTE);
  scm_c_define_gsubr("GNC-INVOICE-NUM-TYPES", 0, 0, 0, (swig_guile_proc) _wrap_GNC_INVOICE_NUM_TYPES);
  scm_c_define_gsubr("gnc-invoice-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_invoice_get_type);
  scm_c_define_gsubr("gncInvoiceCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceCreate);
  scm_c_define_gsubr("gncInvoiceDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceDestroy);
  scm_c_define_gsubr("gncInvoiceCopy", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceCopy);
  scm_c_define_gsubr("gncInvoiceSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetID);
  scm_c_define_gsubr("gncInvoiceSetOwner", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetOwner);
  scm_c_define_gsubr("gncInvoiceSetDateOpenedGDate", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetDateOpenedGDate);
  scm_c_define_gsubr("gncInvoiceSetDateOpened", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetDateOpened);
  scm_c_define_gsubr("gncInvoiceSetDatePosted", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetDatePosted);
  scm_c_define_gsubr("gncInvoiceSetTerms", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetTerms);
  scm_c_define_gsubr("gncInvoiceSetBillingID", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetBillingID);
  scm_c_define_gsubr("gncInvoiceSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetNotes);
  scm_c_define_gsubr("gncInvoiceSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetCurrency);
  scm_c_define_gsubr("gncInvoiceSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetActive);
  scm_c_define_gsubr("gncInvoiceSetIsCreditNote", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetIsCreditNote);
  scm_c_define_gsubr("gncInvoiceSetBillTo", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetBillTo);
  scm_c_define_gsubr("gncInvoiceSetToChargeAmount", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSetToChargeAmount);
  scm_c_define_gsubr("gncInvoiceAddEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceAddEntry);
  scm_c_define_gsubr("gncInvoiceRemoveEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceRemoveEntry);
  scm_c_define_gsubr("gncInvoiceAddPrice", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceAddPrice);
  scm_c_define_gsubr("gncBillAddEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncBillAddEntry);
  scm_c_define_gsubr("gncBillRemoveEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncBillRemoveEntry);
  scm_c_define_gsubr("gncInvoiceSortEntries", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceSortEntries);
  scm_c_define_gsubr("gncInvoiceRemoveEntries", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceRemoveEntries);
  scm_c_define_gsubr("gncInvoiceGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetID);
  scm_c_define_gsubr("gncInvoiceGetOwner", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetOwner);
  scm_c_define_gsubr("gncInvoiceGetDateOpened", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetDateOpened);
  scm_c_define_gsubr("gncInvoiceGetDatePosted", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetDatePosted);
  scm_c_define_gsubr("gncInvoiceGetDateDue", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetDateDue);
  scm_c_define_gsubr("gncInvoiceGetTerms", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTerms);
  scm_c_define_gsubr("gncInvoiceGetBillingID", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetBillingID);
  scm_c_define_gsubr("gncInvoiceGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetNotes);
  scm_c_define_gsubr("gncInvoiceGetOwnerType", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetOwnerType);
  scm_c_define_gsubr("gncInvoiceGetTypeListForOwnerType", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTypeListForOwnerType);
  scm_c_define_gsubr("gncInvoiceGetType", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetType);
  scm_c_define_gsubr("gncInvoiceGetTypeString", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTypeString);
  scm_c_define_gsubr("gncInvoiceGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetCurrency);
  scm_c_define_gsubr("gncInvoiceGetBillTo", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetBillTo);
  scm_c_define_gsubr("gncInvoiceGetToChargeAmount", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetToChargeAmount);
  scm_c_define_gsubr("gncInvoiceGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetActive);
  scm_c_define_gsubr("gncInvoiceGetIsCreditNote", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetIsCreditNote);
  scm_c_define_gsubr("gncInvoiceGetPostedLot", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetPostedLot);
  scm_c_define_gsubr("gncInvoiceGetPostedTxn", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetPostedTxn);
  scm_c_define_gsubr("gncInvoiceGetPostedAcc", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetPostedAcc);
  scm_c_define_gsubr("gncInvoiceGetTotal", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTotal);
  scm_c_define_gsubr("gncInvoiceGetTotalOf", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTotalOf);
  scm_c_define_gsubr("gncInvoiceGetTotalSubtotal", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTotalSubtotal);
  scm_c_define_gsubr("gncInvoiceGetTotalTax", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetTotalTax);
  scm_c_define_gsubr("gncInvoiceGetEntries", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetEntries);
  scm_c_define_gsubr("gncInvoiceGetPrice", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetPrice);
  scm_c_define_gsubr("gncInvoiceAmountPositive", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceAmountPositive);
  scm_c_define_gsubr("gncInvoiceGetForeignCurrencies", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetForeignCurrencies);
  scm_c_define_gsubr("gncInvoicePostToAccount", 7, 0, 0, (swig_guile_proc) _wrap_gncInvoicePostToAccount);
  scm_c_define_gsubr("gncInvoiceUnpost", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceUnpost);
  scm_c_define_gsubr("gncInvoiceAutoApplyPayments", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceAutoApplyPayments);
  scm_c_define_gsubr("gncInvoiceApplyPayment", 8, 0, 0, (swig_guile_proc) _wrap_gncInvoiceApplyPayment);
  scm_c_define_gsubr("gncInvoiceGetInvoiceFromTxn", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetInvoiceFromTxn);
  scm_c_define_gsubr("gncInvoiceGetInvoiceFromLot", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetInvoiceFromLot);
  scm_c_define_gsubr("gncInvoiceLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceLookup);
  scm_c_define_gsubr("gncInvoiceBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceBeginEdit);
  scm_c_define_gsubr("gncInvoiceCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceCommitEdit);
  scm_c_define_gsubr("gncInvoiceCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceCompare);
  scm_c_define_gsubr("gncInvoiceDateExists", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceDateExists);
  scm_c_define_gsubr("gncInvoiceIsPosted", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceIsPosted);
  scm_c_define_gsubr("gncInvoiceIsPaid", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceIsPaid);
  scm_c_define_gsubr("INVOICE-ID", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_ID);
  scm_c_define_gsubr("INVOICE-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_OWNER);
  scm_c_define_gsubr("INVOICE-OPENED", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_OPENED);
  scm_c_define_gsubr("INVOICE-POSTED", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_POSTED);
  scm_c_define_gsubr("INVOICE-DUE", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_DUE);
  scm_c_define_gsubr("INVOICE-IS-POSTED", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_IS_POSTED);
  scm_c_define_gsubr("INVOICE-IS-PAID", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_IS_PAID);
  scm_c_define_gsubr("INVOICE-TERMS", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_TERMS);
  scm_c_define_gsubr("INVOICE-BILLINGID", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_BILLINGID);
  scm_c_define_gsubr("INVOICE-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_NOTES);
  scm_c_define_gsubr("INVOICE-ACC", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_ACC);
  scm_c_define_gsubr("INVOICE-POST-TXN", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_POST_TXN);
  scm_c_define_gsubr("INVOICE-POST-LOT", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_POST_LOT);
  scm_c_define_gsubr("INVOICE-IS-CN", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_IS_CN);
  scm_c_define_gsubr("INVOICE-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_TYPE);
  scm_c_define_gsubr("INVOICE-TYPE-STRING", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_TYPE_STRING);
  scm_c_define_gsubr("INVOICE-BILLTO", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_BILLTO);
  scm_c_define_gsubr("INVOICE-ENTRIES", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_ENTRIES);
  scm_c_define_gsubr("INVOICE-JOB", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_JOB);
  scm_c_define_gsubr("INVOICE-FROM-LOT", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_FROM_LOT);
  scm_c_define_gsubr("INVOICE-FROM-TXN", 0, 0, 0, (swig_guile_proc) _wrap_INVOICE_FROM_TXN);
  scm_c_define_gsubr("gncInvoiceGetBook", 1, 0, 0, (swig_guile_proc) _wrap_gncInvoiceGetBook);
  scm_c_define_gsubr("gncInvoiceEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncInvoiceEqual);
  scm_c_define_gsubr("GNC-ID-JOB", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_JOB);
  scm_c_define_gsubr("gnc-job-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_job_get_type);
  scm_c_define_gsubr("gncJobCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncJobCreate);
  scm_c_define_gsubr("gncJobDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncJobDestroy);
  scm_c_define_gsubr("gncJobSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetID);
  scm_c_define_gsubr("gncJobSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetName);
  scm_c_define_gsubr("gncJobSetReference", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetReference);
  scm_c_define_gsubr("gncJobSetRate", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetRate);
  scm_c_define_gsubr("gncJobSetOwner", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetOwner);
  scm_c_define_gsubr("gncJobSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncJobSetActive);
  scm_c_define_gsubr("gncJobBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncJobBeginEdit);
  scm_c_define_gsubr("gncJobCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncJobCommitEdit);
  scm_c_define_gsubr("gncJobGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetID);
  scm_c_define_gsubr("gncJobGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetName);
  scm_c_define_gsubr("gncJobGetReference", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetReference);
  scm_c_define_gsubr("gncJobGetRate", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetRate);
  scm_c_define_gsubr("gncJobGetOwner", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetOwner);
  scm_c_define_gsubr("gncJobGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncJobGetActive);
  scm_c_define_gsubr("gncJobLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncJobLookup);
  scm_c_define_gsubr("gncJobCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncJobCompare);
  scm_c_define_gsubr("gncJobEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncJobEqual);
  scm_c_define_gsubr("JOB-ID", 0, 0, 0, (swig_guile_proc) _wrap_JOB_ID);
  scm_c_define_gsubr("JOB-NAME", 0, 0, 0, (swig_guile_proc) _wrap_JOB_NAME);
  scm_c_define_gsubr("JOB-REFERENCE", 0, 0, 0, (swig_guile_proc) _wrap_JOB_REFERENCE);
  scm_c_define_gsubr("JOB-RATE", 0, 0, 0, (swig_guile_proc) _wrap_JOB_RATE);
  scm_c_define_gsubr("JOB-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_JOB_OWNER);
  scm_c_define_gsubr("Q-JOB-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_Q_JOB_OWNER);
  scm_c_define_gsubr("JOB-ACTIVE", 0, 0, 0, (swig_guile_proc) _wrap_JOB_ACTIVE);
  scm_c_define_gsubr("GNC-ID-ORDER", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_ORDER);
  scm_c_define_gsubr("gnc-order-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_order_get_type);
  scm_c_define_gsubr("gncOrderCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderCreate);
  scm_c_define_gsubr("gncOrderDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderDestroy);
  scm_c_define_gsubr("gncOrderSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetID);
  scm_c_define_gsubr("gncOrderSetOwner", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetOwner);
  scm_c_define_gsubr("gncOrderSetDateOpened", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetDateOpened);
  scm_c_define_gsubr("gncOrderSetDateClosed", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetDateClosed);
  scm_c_define_gsubr("gncOrderSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetNotes);
  scm_c_define_gsubr("gncOrderSetReference", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetReference);
  scm_c_define_gsubr("gncOrderSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderSetActive);
  scm_c_define_gsubr("gncOrderAddEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderAddEntry);
  scm_c_define_gsubr("gncOrderRemoveEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderRemoveEntry);
  scm_c_define_gsubr("gncOrderGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetID);
  scm_c_define_gsubr("gncOrderGetOwner", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetOwner);
  scm_c_define_gsubr("gncOrderGetDateOpened", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetDateOpened);
  scm_c_define_gsubr("gncOrderGetDateClosed", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetDateClosed);
  scm_c_define_gsubr("gncOrderGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetNotes);
  scm_c_define_gsubr("gncOrderGetReference", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetReference);
  scm_c_define_gsubr("gncOrderGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetActive);
  scm_c_define_gsubr("gncOrderGetEntries", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderGetEntries);
  scm_c_define_gsubr("gncOrderBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderBeginEdit);
  scm_c_define_gsubr("gncOrderCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderCommitEdit);
  scm_c_define_gsubr("gncOrderCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderCompare);
  scm_c_define_gsubr("gncOrderIsClosed", 1, 0, 0, (swig_guile_proc) _wrap_gncOrderIsClosed);
  scm_c_define_gsubr("gncOrderLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncOrderLookup);
  scm_c_define_gsubr("ORDER-ID", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_ID);
  scm_c_define_gsubr("ORDER-REFERENCE", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_REFERENCE);
  scm_c_define_gsubr("ORDER-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_OWNER);
  scm_c_define_gsubr("ORDER-OPENED", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_OPENED);
  scm_c_define_gsubr("ORDER-CLOSED", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_CLOSED);
  scm_c_define_gsubr("ORDER-IS-CLOSED", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_IS_CLOSED);
  scm_c_define_gsubr("ORDER-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_ORDER_NOTES);
  scm_c_define_gsubr("GNC-ID-OWNER", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_OWNER);
  scm_c_define_gsubr("GNC-OWNER-NONE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_NONE);
  scm_c_define_gsubr("GNC-OWNER-UNDEFINED", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_UNDEFINED);
  scm_c_define_gsubr("GNC-OWNER-CUSTOMER", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_CUSTOMER);
  scm_c_define_gsubr("GNC-OWNER-JOB", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_JOB);
  scm_c_define_gsubr("GNC-OWNER-VENDOR", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_VENDOR);
  scm_c_define_gsubr("GNC-OWNER-EMPLOYEE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_OWNER_EMPLOYEE);
  scm_c_define_gsubr("qofOwnerGetType", 1, 0, 0, (swig_guile_proc) _wrap_qofOwnerGetType);
  scm_c_define_gsubr("qofOwnerGetOwner", 1, 0, 0, (swig_guile_proc) _wrap_qofOwnerGetOwner);
  scm_c_define_gsubr("qofOwnerSetEntity", 2, 0, 0, (swig_guile_proc) _wrap_qofOwnerSetEntity);
  scm_c_define_gsubr("GNC-IS-OWNER", 1, 0, 0, (swig_guile_proc) _wrap_GNC_IS_OWNER);
  scm_c_define_gsubr("gncOwnerTypeToQofIdType", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerTypeToQofIdType);
  scm_c_define_gsubr("gncOwnerRegister", 0, 0, 0, (swig_guile_proc) _wrap_gncOwnerRegister);
  scm_c_define_gsubr("gncOwnerInitUndefined", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerInitUndefined);
  scm_c_define_gsubr("gncOwnerInitCustomer", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerInitCustomer);
  scm_c_define_gsubr("gncOwnerInitJob", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerInitJob);
  scm_c_define_gsubr("gncOwnerInitVendor", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerInitVendor);
  scm_c_define_gsubr("gncOwnerInitEmployee", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerInitEmployee);
  scm_c_define_gsubr("gncOwnerGetType", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetType);
  scm_c_define_gsubr("gncOwnerIsValid", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerIsValid);
  scm_c_define_gsubr("gncOwnerGetUndefined", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetUndefined);
  scm_c_define_gsubr("gncOwnerGetCustomer", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetCustomer);
  scm_c_define_gsubr("gncOwnerGetJob", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetJob);
  scm_c_define_gsubr("gncOwnerGetVendor", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetVendor);
  scm_c_define_gsubr("gncOwnerGetEmployee", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetEmployee);
  scm_c_define_gsubr("gncOwnerGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetID);
  scm_c_define_gsubr("gncOwnerGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetName);
  scm_c_define_gsubr("gncOwnerGetAddr", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetAddr);
  scm_c_define_gsubr("gncOwnerGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetActive);
  scm_c_define_gsubr("gncOwnerGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetCurrency);
  scm_c_define_gsubr("gncOwnerSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerSetActive);
  scm_c_define_gsubr("gncOwnerCopy", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerCopy);
  scm_c_define_gsubr("gncOwnerEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerEqual);
  scm_c_define_gsubr("gncOwnerGCompareFunc", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerGCompareFunc);
  scm_c_define_gsubr("gncOwnerCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerCompare);
  scm_c_define_gsubr("gncOwnerGetGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetGUID);
  scm_c_define_gsubr("gncOwnerReturnGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerReturnGUID);
  scm_c_define_gsubr("gncOwnerGetEndOwner", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetEndOwner);
  scm_c_define_gsubr("gncOwnerGetEndGUID", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetEndGUID);
  scm_c_define_gsubr("gncOwnerAttachToLot", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerAttachToLot);
  scm_c_define_gsubr("gncOwnerLotMatchOwnerFunc", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerLotMatchOwnerFunc);
  scm_c_define_gsubr("gncOwnerLotsSortFunc", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerLotsSortFunc);
  scm_c_define_gsubr("gncOwnerGetOwnerFromLot", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetOwnerFromLot);
  scm_c_define_gsubr("gncOwnerGetOwnerFromTxn", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetOwnerFromTxn);
  scm_c_define_gsubr("gncOwnerGetOwnerFromTypeGuid", 4, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetOwnerFromTypeGuid);
  scm_c_define_gsubr("gncOwnerCreatePaymentLot", 9, 0, 0, (swig_guile_proc) _wrap_gncOwnerCreatePaymentLot);
  scm_c_define_gsubr("gncOwnerAutoApplyPaymentsWithLots", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerAutoApplyPaymentsWithLots);
  scm_c_define_gsubr("gncOwnerApplyPayment", 0, 0, 1, (swig_guile_proc) _wrap_gncOwnerApplyPayment_rest);
  scm_c_define_gsubr("gncOwnerFindOffsettingSplit", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerFindOffsettingSplit);
  scm_c_define_gsubr("gncOwnerReduceSplitTo", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerReduceSplitTo);
  scm_c_define_gsubr("gncOwnerSetLotLinkMemo", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerSetLotLinkMemo);
  scm_c_define_gsubr("gncOwnerGetAccountTypesList", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetAccountTypesList);
  scm_c_define_gsubr("gncOwnerGetCommoditiesList", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetCommoditiesList);
  scm_c_define_gsubr("gncOwnerGetBalanceInCurrency", 2, 0, 0, (swig_guile_proc) _wrap_gncOwnerGetBalanceInCurrency);
  scm_c_define_gsubr("OWNER-TYPE", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_TYPE);
  scm_c_define_gsubr("OWNER-TYPE-STRING", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_TYPE_STRING);
  scm_c_define_gsubr("OWNER-CUSTOMER", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_CUSTOMER);
  scm_c_define_gsubr("OWNER-JOB", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_JOB);
  scm_c_define_gsubr("OWNER-VENDOR", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_VENDOR);
  scm_c_define_gsubr("OWNER-EMPLOYEE", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_EMPLOYEE);
  scm_c_define_gsubr("OWNER-PARENT", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_PARENT);
  scm_c_define_gsubr("OWNER-PARENTG", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_PARENTG);
  scm_c_define_gsubr("OWNER-NAME", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_NAME);
  scm_c_define_gsubr("OWNER-FROM-LOT", 0, 0, 0, (swig_guile_proc) _wrap_OWNER_FROM_LOT);
  scm_c_define_gsubr("gncOwnerNew", 0, 0, 0, (swig_guile_proc) _wrap_gncOwnerNew);
  scm_c_define_gsubr("gncOwnerFree", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerFree);
  scm_c_define_gsubr("gncOwnerBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerBeginEdit);
  scm_c_define_gsubr("gncOwnerCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerCommitEdit);
  scm_c_define_gsubr("gncOwnerDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncOwnerDestroy);
  scm_c_define_gsubr("GNC-ID-TAXTABLE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_TAXTABLE);
  scm_c_define_gsubr("gnc-taxtable-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_taxtable_get_type);
  scm_c_define_gsubr("GNC-AMT-TYPE-VALUE", 0, 0, 0, (swig_guile_proc) _wrap_GNC_AMT_TYPE_VALUE);
  scm_c_define_gsubr("GNC-AMT-TYPE-PERCENT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_AMT_TYPE_PERCENT);
  scm_c_define_gsubr("GNC-TAXINCLUDED-YES", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TAXINCLUDED_YES);
  scm_c_define_gsubr("GNC-TAXINCLUDED-NO", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TAXINCLUDED_NO);
  scm_c_define_gsubr("GNC-TAXINCLUDED-USEGLOBAL", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TAXINCLUDED_USEGLOBAL);
  scm_c_define_gsubr("gncAmountTypeToString", 1, 0, 0, (swig_guile_proc) _wrap_gncAmountTypeToString);
  scm_c_define_gsubr("gncAmountStringToType", 2, 0, 0, (swig_guile_proc) _wrap_gncAmountStringToType);
  scm_c_define_gsubr("gncTaxIncludedTypeToString", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxIncludedTypeToString);
  scm_c_define_gsubr("gncTaxIncludedStringToType", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxIncludedStringToType);
  scm_c_define_gsubr("gncTaxTableCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableCreate);
  scm_c_define_gsubr("gncTaxTableDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableDestroy);
  scm_c_define_gsubr("gncTaxTableEntryCreate", 0, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryCreate);
  scm_c_define_gsubr("gncTaxTableEntryDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryDestroy);
  scm_c_define_gsubr("gncTaxTableSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableSetName);
  scm_c_define_gsubr("gncTaxTableIncRef", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableIncRef);
  scm_c_define_gsubr("gncTaxTableDecRef", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableDecRef);
  scm_c_define_gsubr("gncTaxTableEntrySetAccount", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntrySetAccount);
  scm_c_define_gsubr("gncTaxTableEntrySetType", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntrySetType);
  scm_c_define_gsubr("gncTaxTableEntrySetAmount", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntrySetAmount);
  scm_c_define_gsubr("gncTaxTableAddEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableAddEntry);
  scm_c_define_gsubr("gncTaxTableRemoveEntry", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableRemoveEntry);
  scm_c_define_gsubr("gncTaxTableChanged", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableChanged);
  scm_c_define_gsubr("gncTaxTableBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableBeginEdit);
  scm_c_define_gsubr("gncTaxTableCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableCommitEdit);
  scm_c_define_gsubr("gncTaxTableEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEqual);
  scm_c_define_gsubr("gncTaxTableLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableLookup);
  scm_c_define_gsubr("gncTaxTableLookupByName", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableLookupByName);
  scm_c_define_gsubr("gncTaxTableGetTables", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableGetTables);
  scm_c_define_gsubr("gncTaxTableGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableGetName);
  scm_c_define_gsubr("gncTaxTableGetParent", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableGetParent);
  scm_c_define_gsubr("gncTaxTableReturnChild", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableReturnChild);
  scm_c_define_gsubr("gncTaxTableGetEntries", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableGetEntries);
  scm_c_define_gsubr("gncTaxTableGetRefcount", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableGetRefcount);
  scm_c_define_gsubr("gncTaxTableLastModified", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableLastModified);
  scm_c_define_gsubr("gncTaxTableEntryGetAccount", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryGetAccount);
  scm_c_define_gsubr("gncTaxTableEntryGetType", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryGetType);
  scm_c_define_gsubr("gncTaxTableEntryGetAmount", 1, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryGetAmount);
  scm_c_define_gsubr("gncTaxTableCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableCompare);
  scm_c_define_gsubr("gncTaxTableEntryCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryCompare);
  scm_c_define_gsubr("gncTaxTableEntryEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncTaxTableEntryEqual);
  SWIG_TypeClientData(SWIGTYPE_p__gncAccountValue, (void *) &_swig_guile_clientdata_gncAccountValue);
  scm_c_define_gsubr("-gncAccountValue-account-set", 2, 0, 0, (swig_guile_proc) _wrap__gncAccountValue_account_set);
  scm_c_define_gsubr("-gncAccountValue-account-get", 1, 0, 0, (swig_guile_proc) _wrap__gncAccountValue_account_get);
  scm_c_define_gsubr("-gncAccountValue-value-set", 2, 0, 0, (swig_guile_proc) _wrap__gncAccountValue_value_set);
  scm_c_define_gsubr("-gncAccountValue-value-get", 1, 0, 0, (swig_guile_proc) _wrap__gncAccountValue_value_get);
  scm_c_define_gsubr("new--gncAccountValue", 0, 0, 0, (swig_guile_proc) _wrap_new__gncAccountValue);
  ((swig_guile_clientdata *)(SWIGTYPE_p__gncAccountValue->clientdata))->destroy = (guile_destructor) _wrap_delete__gncAccountValue;
  scm_c_define_gsubr("delete--gncAccountValue", 1, 0, 0, (swig_guile_proc) _wrap_delete__gncAccountValue);
  scm_c_define_gsubr("gncAccountValueAdd", 3, 0, 0, (swig_guile_proc) _wrap_gncAccountValueAdd);
  scm_c_define_gsubr("gncAccountValueAddList", 2, 0, 0, (swig_guile_proc) _wrap_gncAccountValueAddList);
  scm_c_define_gsubr("gncAccountValueTotal", 1, 0, 0, (swig_guile_proc) _wrap_gncAccountValueTotal);
  scm_c_define_gsubr("gncAccountValueDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncAccountValueDestroy);
  scm_c_define_gsubr("GNC-TT-NAME", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TT_NAME);
  scm_c_define_gsubr("GNC-TT-REFCOUNT", 0, 0, 0, (swig_guile_proc) _wrap_GNC_TT_REFCOUNT);
  scm_c_define_gsubr("GNC-ID-VENDOR", 0, 0, 0, (swig_guile_proc) _wrap_GNC_ID_VENDOR);
  scm_c_define_gsubr("gnc-vendor-get-type", 0, 0, 0, (swig_guile_proc) _wrap_gnc_vendor_get_type);
  scm_c_define_gsubr("gncVendorCreate", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorCreate);
  scm_c_define_gsubr("gncVendorDestroy", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorDestroy);
  scm_c_define_gsubr("gncVendorSetID", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetID);
  scm_c_define_gsubr("gncVendorSetName", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetName);
  scm_c_define_gsubr("gncVendorSetNotes", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetNotes);
  scm_c_define_gsubr("gncVendorSetTerms", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetTerms);
  scm_c_define_gsubr("gncVendorSetTaxIncluded", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetTaxIncluded);
  scm_c_define_gsubr("gncVendorSetCurrency", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetCurrency);
  scm_c_define_gsubr("gncVendorSetActive", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetActive);
  scm_c_define_gsubr("gncVendorSetTaxTableOverride", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetTaxTableOverride);
  scm_c_define_gsubr("gncVendorSetTaxTable", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorSetTaxTable);
  scm_c_define_gsubr("gncVendorAddJob", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorAddJob);
  scm_c_define_gsubr("gncVendorRemoveJob", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorRemoveJob);
  scm_c_define_gsubr("gncVendorBeginEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorBeginEdit);
  scm_c_define_gsubr("gncVendorCommitEdit", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorCommitEdit);
  scm_c_define_gsubr("gncVendorGetID", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetID);
  scm_c_define_gsubr("gncVendorGetName", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetName);
  scm_c_define_gsubr("gncVendorGetAddr", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetAddr);
  scm_c_define_gsubr("gncVendorGetNotes", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetNotes);
  scm_c_define_gsubr("gncVendorGetTerms", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetTerms);
  scm_c_define_gsubr("gncVendorGetTaxIncluded", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetTaxIncluded);
  scm_c_define_gsubr("gncVendorGetCurrency", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetCurrency);
  scm_c_define_gsubr("gncVendorGetActive", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetActive);
  scm_c_define_gsubr("gncVendorGetTaxTableOverride", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetTaxTableOverride);
  scm_c_define_gsubr("gncVendorGetTaxTable", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorGetTaxTable);
  scm_c_define_gsubr("gncVendorCompare", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorCompare);
  scm_c_define_gsubr("gncVendorLookup", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorLookup);
  scm_c_define_gsubr("VENDOR-ID", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_ID);
  scm_c_define_gsubr("VENDOR-NAME", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_NAME);
  scm_c_define_gsubr("VENDOR-ADDR", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_ADDR);
  scm_c_define_gsubr("VENDOR-NOTES", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_NOTES);
  scm_c_define_gsubr("VENDOR-TERMS", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_TERMS);
  scm_c_define_gsubr("VENDOR-TAX-INC", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_TAX_INC);
  scm_c_define_gsubr("VENDOR-ACTIVE", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_ACTIVE);
  scm_c_define_gsubr("VENDOR-TAX-OVERRIDE", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_TAX_OVERRIDE);
  scm_c_define_gsubr("VENDOR-TAX-TABLE", 0, 0, 0, (swig_guile_proc) _wrap_VENDOR_TAX_TABLE);
  scm_c_define_gsubr("gncVendorEqual", 2, 0, 0, (swig_guile_proc) _wrap_gncVendorEqual);
  scm_c_define_gsubr("gncVendorIsDirty", 1, 0, 0, (swig_guile_proc) _wrap_gncVendorIsDirty);
  scm_c_define_gsubr("gnc-scm-to-account-value-ptr", 1, 0, 0, (swig_guile_proc) _wrap_gnc_scm_to_account_value_ptr);
  scm_c_define_gsubr("gnc-account-value-ptr-to-scm", 1, 0, 0, (swig_guile_proc) _wrap_gnc_account_value_ptr_to_scm);
  scm_c_define_gsubr("URL-TYPE-CUSTOMER", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_CUSTOMER);
  scm_c_define_gsubr("URL-TYPE-VENDOR", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_VENDOR);
  scm_c_define_gsubr("URL-TYPE-EMPLOYEE", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_EMPLOYEE);
  scm_c_define_gsubr("URL-TYPE-JOB", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_JOB);
  scm_c_define_gsubr("URL-TYPE-INVOICE", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_INVOICE);
  scm_c_define_gsubr("URL-TYPE-OWNERREPORT", 0, 0, 0, (swig_guile_proc) _wrap_URL_TYPE_OWNERREPORT);
  scm_c_define_gsubr("qof-query-create-for-invoices", 0, 0, 0, (swig_guile_proc) _wrap_qof_query_create_for_invoices);
  scm_c_define_gsubr("qof-query-run-for-invoices", 1, 0, 0, (swig_guile_proc) _wrap_qof_query_run_for_invoices);
  
  {
    char tmp[100];
    
    
    
    
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-OWNER-CUSTOMER"), ("GNC-OWNER-CUSTOMER"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-OWNER-VENDOR"), ("GNC-OWNER-VENDOR"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-OWNER-EMPLOYEE"), ("GNC-OWNER-EMPLOYEE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-OWNER-JOB"), ("GNC-OWNER-JOB"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-AMT-TYPE-VALUE"), ("GNC-AMT-TYPE-VALUE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-AMT-TYPE-PERCENT"), ("GNC-AMT-TYPE-PERCENT"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-CUSTOMER"), ("URL-TYPE-CUSTOMER"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-VENDOR"), ("URL-TYPE-VENDOR"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-EMPLOYEE"), ("URL-TYPE-EMPLOYEE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-JOB"), ("URL-TYPE-JOB"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-INVOICE"), ("URL-TYPE-INVOICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("URL-TYPE-OWNERREPORT"), ("URL-TYPE-OWNERREPORT"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("INVOICE-FROM-TXN"), ("INVOICE-FROM-TXN"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("INVOICE-FROM-LOT"), ("INVOICE-FROM-LOT"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("INVOICE-OWNER"), ("INVOICE-OWNER"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("INVOICE-BILLTO"), ("INVOICE-BILLTO"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OWNER-PARENTG"), ("OWNER-PARENTG"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("OWNER-FROM-LOT"), ("OWNER-FROM-LOT"));       scm_c_eval_string(tmp);;
    
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-UNDEFINED"), ("GNC-INVOICE-UNDEFINED"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-CUST-INVOICE"), ("GNC-INVOICE-CUST-INVOICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-VEND-INVOICE"), ("GNC-INVOICE-VEND-INVOICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-EMPL-INVOICE"), ("GNC-INVOICE-EMPL-INVOICE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-CUST-CREDIT-NOTE"), ("GNC-INVOICE-CUST-CREDIT-NOTE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-VEND-CREDIT-NOTE"), ("GNC-INVOICE-VEND-CREDIT-NOTE"));       scm_c_eval_string(tmp);;
    snprintf(tmp, 100, "(set! %s (%s))", ("GNC-INVOICE-EMPL-CREDIT-NOTE"), ("GNC-INVOICE-EMPL-CREDIT-NOTE"));       scm_c_eval_string(tmp);;
    
    
  }
  
  
}

#ifdef __cplusplus
}
#endif

/* Linkage: module */
static void SWIG_init_helper(void *data)
{
SWIG_init();
scm_c_export("gncSplitGetGUID", "gncTransGetGUID", "gncAccountGetGUID", "gnc-split-get-type", "CREC", "YREC", "FREC", "NREC", "VREC", "xaccSplitConvertAmount", "xaccMallocSplit", "xaccSplitReinit", "xaccSplitDestroy", "xaccSplitCopyOnto", "xaccSplitGetBook", "xaccSplitGetAccount", "xaccSplitSetAccount", "xaccSplitGetParent", "xaccSplitSetParent", "xaccSplitGetLot", "xaccSplitSetLot", "xaccSplitSetMemo", "xaccSplitGetMemo", "xaccSplitSetAction", "xaccSplitGetAction", "xaccSplitSetReconcile", "xaccSplitGetReconcile", "xaccSplitSetDateReconciledSecs", "xaccSplitSetDateReconciledTS", "xaccSplitGetDateReconciledTS", "xaccSplitRetDateReconciledTS", "xaccSplitGetDateReconciled", "xaccSplitSetAmount", "xaccSplitGetAmount", "xaccSplitSetValue", "xaccSplitGetValue", "xaccSplitSetSharePriceAndAmount", "xaccSplitGetSharePrice", "xaccSplitSetBaseValue", "xaccSplitGetBaseValue", "xaccSplitGetBalance", "xaccSplitGetClearedBalance", "xaccSplitGetReconciledBalance", "xaccSplitEqual", "xaccSplitLookup", "xaccSplitListGetUniqueTransactions", "xaccSplitAddPeerSplit", "xaccSplitHasPeers", "xaccSplitIsPeerSplit", "xaccSplitRemovePeerSplit", "xaccSplitMergePeerSplits", "xaccSplitGetOtherSplit", "xaccSplitGetType", "xaccSplitMakeStockSplit", "xaccSplitOrder", "xaccSplitOrderDateOnly", "xaccSplitCompareAccountFullNames", "xaccSplitCompareAccountCodes", "xaccSplitCompareOtherAccountFullNames", "xaccSplitCompareOtherAccountCodes", "xaccSplitGetCorrAccountFullName", "xaccSplitGetCorrAccountName", "xaccSplitGetCorrAccountCode", "xaccSplitSetSharePrice", "xaccSplitVoidFormerAmount", "xaccSplitVoidFormerValue", "SPLIT-DATE-RECONCILED", "SPLIT-BALANCE", "SPLIT-CLEARED-BALANCE", "SPLIT-RECONCILED-BALANCE", "SPLIT-MEMO", "SPLIT-ACTION", "SPLIT-RECONCILE", "SPLIT-AMOUNT", "SPLIT-SHARE-PRICE", "SPLIT-VALUE", "SPLIT-TYPE", "SPLIT-VOIDED-AMOUNT", "SPLIT-VOIDED-VALUE", "SPLIT-LOT", "SPLIT-TRANS", "SPLIT-ACCOUNT", "SPLIT-ACCOUNT-GUID", "SPLIT-ACCT-FULLNAME", "SPLIT-CORR-ACCT-NAME", "SPLIT-CORR-ACCT-CODE", "gnc-account-get-children", "gnc-account-get-children-sorted", "gnc-account-get-descendants", "gnc-account-get-descendants-sorted", "AccountClass-parent-class-set", "AccountClass-parent-class-get", "new-AccountClass", "delete-AccountClass", "GncImportMatchMap-acc-set", "GncImportMatchMap-acc-get", "GncImportMatchMap-book-set", "GncImportMatchMap-book-get", "new-GncImportMatchMap", "delete-GncImportMatchMap", "gnc-account-get-type", "ACCT-TYPE-INVALID", "ACCT-TYPE-NONE", "ACCT-TYPE-BANK", "ACCT-TYPE-CASH", "ACCT-TYPE-CREDIT", "ACCT-TYPE-ASSET", "ACCT-TYPE-LIABILITY", "ACCT-TYPE-STOCK", "ACCT-TYPE-MUTUAL", "ACCT-TYPE-CURRENCY", "ACCT-TYPE-INCOME", "ACCT-TYPE-EXPENSE", "ACCT-TYPE-EQUITY", "ACCT-TYPE-RECEIVABLE", "ACCT-TYPE-PAYABLE", "ACCT-TYPE-ROOT", "ACCT-TYPE-TRADING", "NUM-ACCOUNT-TYPES", "ACCT-TYPE-CHECKING", "ACCT-TYPE-SAVINGS", "ACCT-TYPE-MONEYMRKT", "ACCT-TYPE-CREDITLINE", "ACCT-TYPE-LAST", "xaccMallocAccount", "gnc-account-create-root", "xaccCloneAccount", "xaccAccountBeginEdit", "xaccAccountCommitEdit", "xaccAccountDestroy", "xaccAccountEqual", "xaccAccountOrder", "gnc-get-account-separator-string", "gnc-get-account-separator", "gnc-set-account-separator", "gnc-book-get-root-account", "gnc-book-set-root-account", "xaccAccountLookup", "gnc-account-name-violations-errmsg", "gnc-account-list-name-violations", "gnc-account-get-book", "xaccAccountSetType", "xaccAccountSetName", "xaccAccountSetCode", "xaccAccountSetDescription", "xaccAccountSetColor", "xaccAccountSetFilter", "xaccAccountSetSortOrder", "xaccAccountSetSortReversed", "xaccAccountSetNotes", "xaccAccountSetLastNum", "gnc-account-set-policy", "xaccAccountGetType", "xaccAccountIsPriced", "gnc-account-set-start-balance", "gnc-account-set-start-cleared-balance", "gnc-account-set-start-reconciled-balance", "gnc-account-set-balance-dirty", "gnc-account-set-sort-dirty", "gnc-account-insert-split", "gnc-account-remove-split", "xaccAccountGetName", "xaccAccountGetCode", "xaccAccountGetDescription", "xaccAccountGetColor", "xaccAccountGetFilter", "xaccAccountGetSortOrder", "xaccAccountGetSortReversed", "xaccAccountGetNotes", "xaccAccountGetLastNum", "gnc-account-get-policy", "xaccAccountRecomputeBalance", "xaccAccountSortSplits", "gnc-account-get-full-name", "xaccAccountGainsAccount", "dxaccAccountSetPriceSrc", "dxaccAccountGetPriceSrc", "xaccAccountGetAutoInterestXfer", "xaccAccountSetAutoInterestXfer", "xaccAccountSetCommodity", "xaccAccountGetCommodity", "gnc-account-get-currency-or-parent", "xaccAccountGetCommoditySCU", "xaccAccountGetCommoditySCUi", "xaccAccountSetCommoditySCU", "xaccAccountSetNonStdSCU", "xaccAccountGetNonStdSCU", "xaccAccountGetBalance", "xaccAccountGetClearedBalance", "xaccAccountGetReconciledBalance", "xaccAccountGetPresentBalance", "xaccAccountGetProjectedMinimumBalance", "xaccAccountGetBalanceAsOfDate", "xaccAccountConvertBalanceToCurrency", "xaccAccountConvertBalanceToCurrencyAsOfDate", "xaccAccountGetBalanceInCurrency", "xaccAccountGetClearedBalanceInCurrency", "xaccAccountGetReconciledBalanceInCurrency", "xaccAccountGetPresentBalanceInCurrency", "xaccAccountGetProjectedMinimumBalanceInCurrency", "xaccAccountGetBalanceAsOfDateInCurrency", "xaccAccountGetBalanceChangeForPeriod", "gnc-account-append-child", "gnc-account-remove-child", "gnc-account-get-parent", "gnc-account-get-root", "gnc-account-is-root", "gnc-account-n-children", "gnc-account-child-index", "gnc-account-nth-child", "gnc-account-n-descendants", "gnc-account-get-current-depth", "gnc-account-get-tree-depth", "gnc-account-foreach-child", "gnc-account-foreach-descendant", "gnc-account-foreach-descendant-until", "gnc-account-join-children", "gnc-account-merge-children", "xaccAccountSetReconcileChildrenStatus", "xaccAccountGetReconcileChildrenStatus", "xaccAccountHasAncestor", "gnc-account-lookup-by-name", "gnc-account-lookup-by-full-name", "gnc-account-lookup-by-code", "xaccAccountTypeEnumAsString", "xaccAccountStringToType", "xaccAccountStringToEnum", "xaccAccountGetTypeStr", "xaccAccountTypesCompatibleWith", "xaccParentAccountTypesCompatibleWith", "xaccAccountTypesCompatible", "xaccAccountTypesValid", "xaccAccountIsAssetLiabType", "xaccAccountIsAPARType", "xaccAccountIsEquityType", "xaccAccountGetSplitList", "xaccAccountCountSplits", "xaccAccountMoveAllSplits", "xaccAccountForEachTransaction", "xaccAccountFindTransByDesc", "xaccAccountFindSplitByDesc", "xaccAccountInsertLot", "xaccAccountRemoveLot", "xaccAccountGetLotList", "xaccAccountForEachLot", "xaccAccountFindOpenLots", "xaccAccountGetReconcileLastDate", "xaccAccountSetReconcileLastDate", "xaccAccountGetReconcileLastInterval", "xaccAccountSetReconcileLastInterval", "xaccAccountGetReconcilePostponeDate", "xaccAccountSetReconcilePostponeDate", "xaccAccountGetReconcilePostponeBalance", "xaccAccountSetReconcilePostponeBalance", "xaccAccountClearReconcilePostpone", "PLACEHOLDER-NONE", "PLACEHOLDER-THIS", "PLACEHOLDER-CHILD", "xaccAccountGetPlaceholder", "xaccAccountSetPlaceholder", "xaccAccountGetDescendantPlaceholder", "xaccAccountGetHidden", "xaccAccountSetHidden", "xaccAccountIsHidden", "xaccAccountGetTaxRelated", "xaccAccountSetTaxRelated", "xaccAccountGetTaxUSCode", "xaccAccountSetTaxUSCode", "xaccAccountGetTaxUSPayerNameSource", "xaccAccountSetTaxUSPayerNameSource", "xaccAccountGetTaxUSCopyNumber", "xaccAccountSetTaxUSCopyNumber", "xaccAccountSetMark", "xaccClearMark", "xaccClearMarkDown", "gnc-account-tree-begin-staged-transaction-traversals", "xaccSplitsBeginStagedTransactionTraversals", "xaccAccountBeginStagedTransactionTraversals", "xaccTransactionTraverse", "xaccAccountStagedTransactionTraversal", "gnc-account-tree-staged-transaction-traversal", "xaccAccountTreeForEachTransaction", "gnc-account-imap-create-imap", "gnc-account-imap-find-account", "gnc-account-imap-add-account", "gnc-account-imap-delete-account", "gnc-account-imap-find-account-bayes", "gnc-account-imap-add-account-bayes", "GncImapInfo-source-account-set", "GncImapInfo-source-account-get", "GncImapInfo-map-account-set", "GncImapInfo-map-account-get", "GncImapInfo-list-set", "GncImapInfo-list-get", "GncImapInfo-category-head-set", "GncImapInfo-category-head-get", "GncImapInfo-full-category-set", "GncImapInfo-full-category-get", "GncImapInfo-match-string-set", "GncImapInfo-match-string-get", "GncImapInfo-count-set", "GncImapInfo-count-get", "new-GncImapInfo", "delete-GncImapInfo", "gnc-account-imap-get-info-bayes", "gnc-account-imap-get-info", "gnc-account-get-map-entry", "gnc-account-delete-map-entry", "DxaccAccountSetCurrency", "DxaccAccountGetCurrency", "dxaccAccountSetQuoteTZ", "dxaccAccountGetQuoteTZ", "ACCOUNT-KVP", "ACCOUNT-NAME-", "ACCOUNT-CODE-", "ACCOUNT-DESCRIPTION-", "ACCOUNT-COLOR-", "ACCOUNT-FILTER-", "ACCOUNT-SORT-ORDER-", "ACCOUNT-SORT-REVERSED-", "ACCOUNT-NOTES-", "ACCOUNT-BALANCE-", "ACCOUNT-CLEARED-", "ACCOUNT-RECONCILED-", "ACCOUNT-PRESENT-", "ACCOUNT-FUTURE-MINIMUM-", "ACCOUNT-TAX-RELATED", "ACCOUNT-TYPE-", "ACCOUNT-SCU", "ACCOUNT-NSCU", "ACCOUNT-PARENT", "ACCOUNT-MATCH-ALL-TYPE", "gnc-transaction-get-type", "TXN-TYPE-NONE", "TXN-TYPE-INVOICE", "TXN-TYPE-PAYMENT", "TXN-TYPE-LINK", "xaccMallocTransaction", "xaccTransDestroy", "xaccTransClone", "xaccTransCloneNoKvp", "xaccTransEqual", "xaccTransBeginEdit", "xaccTransCommitEdit", "xaccTransRollbackEdit", "xaccTransIsOpen", "xaccTransLookup", "xaccTransCopyToClipBoard", "xaccTransCopyOnto", "xaccTransCopyFromClipBoard", "xaccTransFindSplitByAccount", "xaccTransScrubGains", "gnc-book-count-transactions", "xaccTransUseTradingAccounts", "xaccTransSortSplits", "xaccTransSetTxnType", "xaccTransGetTxnType", "xaccTransSetNum", "xaccTransSetDescription", "xaccTransSetAssociation", "xaccTransSetNotes", "xaccTransGetNum", "xaccTransGetDescription", "xaccTransGetAssociation", "xaccTransGetNotes", "xaccTransSetIsClosingTxn", "xaccTransGetIsClosingTxn", "xaccTransGetSplit", "xaccTransGetSplitIndex", "xaccTransGetSplitList", "xaccTransGetPaymentAcctSplitList", "xaccTransGetAPARAcctSplitList", "xaccTransStillHasSplit", "xaccTransGetFirstPaymentAcctSplit", "xaccTransGetFirstAPARAcctSplit", "xaccTransSetReadOnly", "xaccTransClearReadOnly", "xaccTransGetReadOnly", "xaccTransIsReadonlyByPostedDate", "xaccTransInFutureByPostedDate", "xaccTransCountSplits", "xaccTransHasReconciledSplits", "xaccTransHasReconciledSplitsByAccount", "xaccTransHasSplitsInState", "xaccTransHasSplitsInStateByAccount", "xaccTransGetCurrency", "xaccTransSetCurrency", "xaccTransGetImbalanceValue", "xaccTransGetImbalance", "xaccTransIsBalanced", "xaccTransGetAccountValue", "xaccTransGetAccountAmount", "xaccTransGetRateForCommodity", "xaccTransGetAccountConvRate", "xaccTransGetAccountBalance", "xaccTransOrder", "xaccTransOrder-num-action", "xaccTransSetDate", "xaccTransSetDatePostedGDate", "xaccTransSetDatePostedSecs", "xaccTransSetDatePostedSecsNormalized", "xaccTransSetDateEnteredSecs", "xaccTransSetDateDue", "xaccTransGetDate", "xaccTransRetDatePosted", "xaccTransGetDatePostedGDate", "xaccTransGetDateEntered", "xaccTransRetDateEntered", "xaccTransRetDateDue", "xaccTransVoid", "xaccTransUnvoid", "xaccTransReverse", "xaccTransGetReversedBy", "xaccTransGetVoidStatus", "xaccTransGetVoidReason", "xaccTransGetVoidTime", "TRANS-KVP", "TRANS-NUM", "TRANS-DESCRIPTION", "TRANS-DATE-ENTERED", "TRANS-DATE-POSTED", "TRANS-DATE-DUE", "TRANS-IMBALANCE", "TRANS-IS-BALANCED", "TRANS-IS-CLOSING", "TRANS-NOTES", "TRANS-ASSOCIATION", "TRANS-TYPE", "TRANS-VOID-STATUS", "TRANS-VOID-REASON", "TRANS-VOID-TIME", "TRANS-SPLITLIST", "RECONCILED-MATCH-TYPE", "GncLotClass-parent-class-set", "GncLotClass-parent-class-get", "new-GncLotClass", "delete-GncLotClass", "gnc-lot-get-type", "gnc-lot-new", "gnc-lot-destroy", "gnc-lot-lookup", "gnc-lot-get-book", "gnc-lot-begin-edit", "gnc-lot-commit-edit", "gnc-lot-add-split", "gnc-lot-remove-split", "gnc-lot-get-split-list", "gnc-lot-count-splits", "gnc-lot-get-account", "gnc-lot-set-account", "gnc-lot-get-balance", "gnc-lot-get-balance-before", "gnc-lot-is-closed", "gnc-lot-get-earliest-split", "gnc-lot-get-latest-split", "gnc-lot-set-closed-unknown", "gnc-lot-get-title", "gnc-lot-get-notes", "gnc-lot-set-title", "gnc-lot-set-notes", "gnc-lot-make-default", "LOT-IS-CLOSED", "LOT-BALANCE", "LOT-TITLE", "LOT-NOTES", "gncPriceGetGUID", "gncBudgetGetGUID", "QOF-ID-BOOK-SCM", "gnc-transaction-get-date-posted", "gnc-transaction-get-date-entered", "gnc-split-get-date-reconciled", "gnc-transaction-set-date", "gnc-get-num-action", "gnc-get-action-num", "gnc-set-num-action", "gnc-book-option-num-field-source-change", "gnc-book-option-book-currency-selected", "gnc-book-option-register-cb", "gnc-book-option-remove-cb", "gnc-timespec2timepair", "gnc-timepair2timespec", "gnc-time64-to-GDate", "gnc-timepair-p", "gnc-guid2scm", "gnc-scm2guid", "gnc-guid-p", "gnc-query-scm2path", "gnc-query2scm", "gnc-scm2query", "gnc-numeric-to-scm", "gnc-scm-to-numeric", "gnc-scm-to-commodity", "gnc-commodity-to-scm", "gnc-book-to-scm", "gnc-get-valid-policy-list", "gnc-valid-policy-name", "PolicyGetName", "PolicyGetDescription", "PolicyGetHint", "xaccGetFIFOPolicy", "xaccGetLIFOPolicy", "gnc-price-get-type", "gnc-pricedb-get-type", "PRICE-SOURCE-EDIT-DLG", "PRICE-SOURCE-FQ", "PRICE-SOURCE-USER-PRICE", "PRICE-SOURCE-XFER-DLG-VAL", "PRICE-SOURCE-SPLIT-REG", "PRICE-SOURCE-STOCK-SPLIT", "PRICE-SOURCE-INVOICE", "PRICE-SOURCE-TEMP", "PRICE-SOURCE-INVALID", "PRICE-TYPE-LAST", "PRICE-TYPE-UNK", "PRICE-TYPE-TRN", "gnc-price-create", "gnc-price-clone", "gnc-price-invert", "gnc-price-ref", "gnc-price-unref", "gnc-price-begin-edit", "gnc-price-commit-edit", "gnc-price-set-commodity", "gnc-price-set-currency", "gnc-price-set-time", "gnc-price-set-time64", "gnc-price-set-source", "gnc-price-set-source-string", "gnc-price-set-typestr", "gnc-price-set-value", "gnc-price-lookup", "gnc-price-get-commodity", "gnc-price-get-currency", "gnc-price-get-time", "gnc-price-get-time64", "gnc-price-get-source", "gnc-price-get-source-string", "gnc-price-get-typestr", "gnc-price-get-value", "gnc-price-equal", "gnc-price-print", "CURRENCY-DENOM", "COMMODITY-DENOM-MULT", "gnc-price-list-insert", "gnc-price-list-remove", "gnc-price-list-destroy", "gnc-price-list-equal", "gnc-pricedb-get-db", "gnc-collection-get-pricedb", "gnc-pricedb-destroy", "gnc-pricedb-begin-edit", "gnc-pricedb-commit-edit", "gnc-pricedb-set-bulk-update", "gnc-pricedb-add-price", "gnc-pricedb-remove-price", "PRICE-REMOVE-SOURCE-FQ", "PRICE-REMOVE-SOURCE-USER", "PRICE-REMOVE-SOURCE-APP", "PRICE-REMOVE-SOURCE-COMM", "PRICE-REMOVE-KEEP-NONE", "PRICE-REMOVE-KEEP-LAST-WEEKLY", "PRICE-REMOVE-KEEP-LAST-MONTHLY", "PRICE-REMOVE-KEEP-LAST-QUARTERLY", "PRICE-REMOVE-KEEP-LAST-PERIOD", "PRICE-REMOVE-KEEP-SCALED", "gnc-pricedb-remove-old-prices", "gnc-pricedb-lookup-latest", "gnc-pricedb-lookup-latest-any-currency", "gnc-pricedb-has-prices", "gnc-pricedb-get-prices", "gnc-pricedb-lookup-at-time", "gnc-pricedb-lookup-day", "gnc-pricedb-lookup-day-t64", "gnc-pricedb-lookup-nearest-in-time", "gnc-pricedb-lookup-nearest-in-time64", "gnc-pricedb-lookup-nearest-in-time-any-currency", "gnc-pricedb-lookup-nearest-in-time-any-currency-t64", "gnc-pricedb-lookup-latest-before", "gnc-pricedb-lookup-latest-before-any-currency", "gnc-pricedb-convert-balance-latest-price", "gnc-pricedb-convert-balance-nearest-price", "gnc-pricedb-foreach-price", "gnc-pricedb-num-prices", "gnc-pricedb-nth-price", "gnc-pricedb-get-num-prices", "gnc-pricedb-equal", "gnc-pricedb-print-contents", "PRICE-COMMODITY", "PRICE-CURRENCY", "PRICE-DATE", "PRICE-SOURCE", "PRICE-TYPE", "PRICE-VALUE", "qof-session-new", "qof-session-get-book", "qof-session-get-url", "timespec-get-type", "gnc-default-strftime-date-format", "MAX-DATE-LENGTH", "QOF-UTC-DATE-FORMAT", "QOF-DATE-FORMAT-US", "QOF-DATE-FORMAT-UK", "QOF-DATE-FORMAT-CE", "QOF-DATE-FORMAT-ISO", "QOF-DATE-FORMAT-LOCALE", "QOF-DATE-FORMAT-UTC", "QOF-DATE-FORMAT-CUSTOM", "QOF-DATE-FORMAT-UNSET", "QOF-DATE-COMPLETION-THISYEAR", "QOF-DATE-COMPLETION-SLIDING", "GNCDATE-MONTH-NUMBER", "GNCDATE-MONTH-ABBREV", "GNCDATE-MONTH-NAME", "gnc-localtime", "gnc-localtime-r", "gnc-gmtime", "gnc-mktime", "gnc-timegm", "gnc-ctime", "gnc-time", "gnc-difftime", "gnc-date-dateformat-to-string", "gnc-date-string-to-dateformat", "gnc-date-monthformat-to-string", "gnc-date-string-to-monthformat", "gnc-print-time64", "gnc-g-date-new-today", "gnc-gdate-set-today", "gnc-gdate-set-time64", "timespec-equal", "timespec-cmp", "timespec-diff", "timespec-abs", "timespecCanonicalDayTime", "time64CanonicalDayTime", "timespec-now", "timespecFromTime64", "timespecToTime64", "time64-to-gdate", "timespec-to-gdate", "gdate-to-timespec", "gdate-to-time64", "gnc-dmy2time64", "gnc-dmy2time64-neutral", "gnc-dmy2time64-end", "gnc-dmy2timespec", "gnc-dmy2timespec-end", "gnc-dmy2timespec-neutral", "gnc-iso8601-to-time64-gmt", "gnc-timespec-to-iso8601-buff", "gnc-time64-to-iso8601-buff", "gnc-timespec2dmy", "qof-date-format-get", "qof-date-format-set", "qof-date-format-get-string", "qof-date-text-format-get-string", "qof-date-completion-set", "dateSeparator", "qof-strftime", "qof-print-date-dmy-buff", "qof-print-date-buff", "qof-print-gdate", "qof-print-date", "gnc-print-date", "qof-scan-date", "gnc-tm-set-day-start", "gnc-tm-set-day-middle", "gnc-tm-set-day-end", "gnc-time64-get-day-start", "gnc-time64-get-day-end", "gnc-date-get-last-mday", "gnc-tm-get-today-start", "gnc-tm-get-today-end", "gnc-time64-get-today-start", "gnc-time64-get-today-end", "gnc-date-timestamp", "MIN-BUF-LEN", "gnc-dow-abbrev", "gnc-gdate-equal", "gnc-gdate-hash", "gnc-time64-get-day-start-gdate", "gnc-time64-get-day-end-gdate", "gnc-gdate-set-month-start", "gnc-gdate-set-month-end", "gnc-gdate-set-prev-month-start", "gnc-gdate-set-prev-month-end", "gnc-gdate-set-quarter-start", "gnc-gdate-set-quarter-end", "gnc-gdate-set-prev-quarter-start", "gnc-gdate-set-prev-quarter-end", "gnc-gdate-set-year-start", "gnc-gdate-set-year-end", "gnc-gdate-set-prev-year-start", "gnc-gdate-set-prev-year-end", "gnc-gdate-set-fiscal-year-start", "gnc-gdate-set-fiscal-year-end", "gnc-gdate-set-prev-fiscal-year-start", "gnc-gdate-set-prev-fiscal-year-end", "guid-new-return", "qof-query-create-for-splits", "qof-query-run", "qof-query-last-run", "qof-query-run-subquery", "gnc-get-current-session", "gnc-clear-current-session", "gnc-set-current-session", "gnc-current-session-exist", "QUERY-TXN-MATCH-ALL", "QUERY-TXN-MATCH-ANY", "xaccQueryGetSplitsUniqueTrans", "xaccQueryGetTransactions", "xaccQueryGetLots", "xaccQueryAddAccountMatch", "xaccQueryAddAccountGUIDMatch", "xaccQueryAddSingleAccountMatch", "xaccQueryAddStringMatch", "xaccQueryAddDescriptionMatch", "xaccQueryAddNotesMatch", "xaccQueryAddNumberMatch", "xaccQueryAddActionMatch", "xaccQueryAddMemoMatch", "xaccQueryAddValueMatch", "xaccQueryAddSharePriceMatch", "xaccQueryAddSharesMatch", "xaccQueryAddBalanceMatch", "xaccQueryAddNumericMatch", "xaccQueryAddDateMatch", "xaccQueryAddDateMatchTS", "xaccQueryAddDateMatchTT", "xaccQueryGetDateMatchTS", "xaccQueryGetDateMatchTT", "xaccQueryAddClosingTransMatch", "CLEARED-NONE", "CLEARED-NO", "CLEARED-CLEARED", "CLEARED-RECONCILED", "CLEARED-FROZEN", "CLEARED-VOIDED", "CLEARED-ALL", "xaccQueryAddClearedMatch", "xaccQueryAddGUIDMatch", "xaccQueryGetEarliestDateFound", "xaccQueryGetLatestDateFound", "QOF-MOD-QUERY", "QOF-QUERY-AND", "QOF-QUERY-OR", "QOF-QUERY-NAND", "QOF-QUERY-NOR", "QOF-QUERY-XOR", "QUERY-DEFAULT-SORT", "QOF-PARAM-BOOK", "QOF-PARAM-GUID", "QOF-PARAM-KVP", "QOF-PARAM-ACTIVE", "QOF-PARAM-VERSION", "qof-query-init", "qof-query-shutdown", "qof-query-build-param-list", "qof-query-create", "qof-query-create-for", "qof-query-destroy", "qof-query-search-for", "qof-query-set-book", "qof-query-add-term", "qof-query-add-guid-match", "qof-query-add-guid-list-match", "qof-query-add-boolean-match", "qof-query-clear", "qof-query-purge-terms", "qof-query-has-terms", "qof-query-num-terms", "qof-query-has-term-type", "qof-query-get-term-type", "qof-query-copy", "qof-query-invert", "qof-query-merge", "qof-query-merge-in-place", "qof-query-set-sort-order", "qof-query-set-sort-options", "qof-query-set-sort-increasing", "qof-query-set-max-results", "qof-query-equal", "qof-query-print", "qof-query-get-search-for", "qof-query-get-books", "QOF-COMPARE-LT", "QOF-COMPARE-LTE", "QOF-COMPARE-EQUAL", "QOF-COMPARE-GT", "QOF-COMPARE-GTE", "QOF-COMPARE-NEQ", "QOF-COMPARE-CONTAINS", "QOF-COMPARE-NCONTAINS", "QOF-STRING-MATCH-NORMAL", "QOF-STRING-MATCH-CASEINSENSITIVE", "QOF-DATE-MATCH-NORMAL", "QOF-DATE-MATCH-DAY", "QOF-NUMERIC-MATCH-DEBIT", "QOF-NUMERIC-MATCH-CREDIT", "QOF-NUMERIC-MATCH-ANY", "QOF-GUID-MATCH-ANY", "QOF-GUID-MATCH-NONE", "QOF-GUID-MATCH-NULL", "QOF-GUID-MATCH-ALL", "QOF-GUID-MATCH-LIST-ANY", "QOF-CHAR-MATCH-ANY", "QOF-CHAR-MATCH-NONE", "-QofQueryPredData-type-name-set", "-QofQueryPredData-type-name-get", "-QofQueryPredData-how-set", "-QofQueryPredData-how-get", "new--QofQueryPredData", "delete--QofQueryPredData", "qof-query-string-predicate", "qof-query-date-predicate", "qof-query-numeric-predicate", "qof-query-guid-predicate", "qof-query-int32-predicate", "qof-query-int64-predicate", "qof-query-double-predicate", "qof-query-boolean-predicate", "qof-query-char-predicate", "qof-query-collect-predicate", "qof-query-choice-predicate", "qof-query-core-predicate-copy", "qof-query-core-predicate-free", "qof-query-date-predicate-get-date", "qof-query-core-to-string", "qof-string-number-compare-func", "KVP-OPTION-PATH", "OPTION-SECTION-ACCOUNTS", "OPTION-NAME-TRADING-ACCOUNTS", "OPTION-NAME-CURRENCY-ACCOUNTING", "OPTION-NAME-BOOK-CURRENCY", "OPTION-NAME-DEFAULT-GAINS-POLICY", "OPTION-NAME-DEFAULT-GAINS-LOSS-ACCT-GUID", "OPTION-NAME-AUTO-READONLY-DAYS", "OPTION-NAME-NUM-FIELD-SOURCE", "OPTION-SECTION-BUDGETING", "OPTION-NAME-DEFAULT-BUDGET", "qof-book-use-trading-accounts", "qof-book-get-book-currency-name", "qof-book-get-default-gains-policy", "qof-book-get-default-gain-loss-acct-guid", "qof-book-uses-autoreadonly", "qof-book-get-num-days-autoreadonly", "qof-book-get-autoreadonly-gdate", "qof-book-use-split-action-for-num-field", "qof-book-shutting-down", "qof-book-session-not-saved", "-gnc-numeric-num-set", "-gnc-numeric-num-get", "-gnc-numeric-denom-set", "-gnc-numeric-denom-get", "new--gnc-numeric", "delete--gnc-numeric", "GNC-NUMERIC-RND-MASK", "GNC-NUMERIC-DENOM-MASK", "GNC-NUMERIC-SIGFIGS-MASK", "GNC-HOW-RND-FLOOR", "GNC-HOW-RND-CEIL", "GNC-HOW-RND-TRUNC", "GNC-HOW-RND-PROMOTE", "GNC-HOW-RND-ROUND-HALF-DOWN", "GNC-HOW-RND-ROUND-HALF-UP", "GNC-HOW-RND-ROUND", "GNC-HOW-RND-NEVER", "GNC-HOW-DENOM-EXACT", "GNC-HOW-DENOM-REDUCE", "GNC-HOW-DENOM-LCD", "GNC-HOW-DENOM-FIXED", "GNC-HOW-DENOM-SIGFIG", "gnc-numeric-create", "gnc-numeric-zero", "double-to-gnc-numeric", "string-to-gnc-numeric", "gnc-numeric-error", "gnc-numeric-errorCode-to-string", "gnc-numeric-num", "gnc-numeric-denom", "gnc-numeric-to-double", "gnc-numeric-to-string", "gnc-num-dbg-to-string", "gnc-numeric-check", "gnc-numeric-compare", "gnc-numeric-zero-p", "gnc-numeric-negative-p", "gnc-numeric-positive-p", "gnc-numeric-eq", "gnc-numeric-equal", "gnc-numeric-same", "gnc-numeric-add", "gnc-numeric-sub", "gnc-numeric-mul", "gnc-numeric-div", "gnc-numeric-neg", "gnc-numeric-abs", "gnc-numeric-add-fixed", "gnc-numeric-sub-fixed", "gnc-numeric-convert", "gnc-numeric-reduce", "gnc-numeric-to-decimal", "gnc-numeric-invert", "gnc-numeric-get-type", "gnc-budget-get-type", "GNC-BUDGET-MAX-NUM-PERIODS-DIGITS", "gnc-budget-register", "gnc-budget-new", "gnc-budget-destroy", "gnc-budget-begin-edit", "gnc-budget-commit-edit", "gnc-budget-clone", "gnc-budget-get-guid", "gnc-budget-set-name", "gnc-budget-get-name", "gnc-budget-set-description", "gnc-budget-get-description", "gnc-budget-set-num-periods", "gnc-budget-get-num-periods", "gnc-budget-set-recurrence", "gnc-budget-get-recurrence", "gnc-budget-get-period-start-date", "gnc-budget-get-period-end-date", "gnc-budget-set-account-period-value", "gnc-budget-unset-account-period-value", "gnc-budget-is-account-period-value-set", "gnc-budget-get-account-period-value", "gnc-budget-get-account-period-actual-value", "gnc-budget-get-default", "gnc-budget-lookup", "gnc-quote-source-set-fq-installed", "gnc-commodity-get-type", "gnc-commodity-namespace-get-type", "GNC-COMMODITY-TABLE", "GNC-COMMODITY-NS-LEGACY", "GNC-COMMODITY-NS-TEMPLATE", "GNC-COMMODITY-NS-ISO", "GNC-COMMODITY-NS-CURRENCY", "GNC-COMMODITY-NS-NASDAQ", "GNC-COMMODITY-NS-NYSE", "GNC-COMMODITY-NS-EUREX", "GNC-COMMODITY-NS-MUTUAL", "GNC-COMMODITY-NS-AMEX", "GNC-COMMODITY-NS-ASX", "GNC-COMMODITY-NS-ISO-GUI", "SOURCE-SINGLE", "SOURCE-MULTI", "SOURCE-UNKNOWN", "SOURCE-MAX", "SOURCE-CURRENCY", "gnc-quote-source-fq-installed", "gnc-quote-source-fq-version", "gnc-quote-source-num-entries", "gnc-quote-source-add-new", "gnc-quote-source-lookup-by-internal", "gnc-quote-source-lookup-by-ti", "gnc-quote-source-get-supported", "gnc-quote-source-get-type", "gnc-quote-source-get-index", "gnc-quote-source-get-user-name", "gnc-quote-source-get-internal-name", "gnc-commodity-new", "gnc-commodity-destroy", "gnc-commodity-copy", "gnc-commodity-clone", "gnc-commodity-get-mnemonic", "gnc-commodity-get-namespace", "gnc-commodity-get-namespace-ds", "gnc-commodity-get-fullname", "gnc-commodity-get-printname", "gnc-commodity-get-cusip", "gnc-commodity-get-unique-name", "gnc-commodity-get-fraction", "gnc-commodity-get-quote-flag", "gnc-commodity-get-quote-source", "gnc-commodity-get-default-quote-source", "gnc-commodity-get-quote-tz", "gnc-commodity-get-user-symbol", "gnc-commodity-get-default-symbol", "gnc-commodity-get-nice-symbol", "gnc-commodity-set-mnemonic", "gnc-commodity-set-namespace", "gnc-commodity-set-fullname", "gnc-commodity-set-cusip", "gnc-commodity-set-fraction", "gnc-commodity-user-set-quote-flag", "gnc-commodity-set-quote-flag", "gnc-commodity-set-quote-source", "gnc-commodity-set-quote-tz", "gnc-commodity-set-user-symbol", "gnc-commodity-increment-usage-count", "gnc-commodity-decrement-usage-count", "gnc-commodity-equiv", "gnc-commodity-equal", "gnc-commodity-compare", "gnc-commodity-compare-void", "gnc-commodity-namespace-is-iso", "gnc-commodity-is-iso", "gnc-commodity-is-currency", "gnc-commodity-table-get-table", "gnc-commodity-table-lookup", "gnc-commodity-table-lookup-unique", "gnc-commodity-table-find-full", "gnc-commodity-find-commodity-by-guid", "gnc-commodity-table-insert", "gnc-commodity-table-remove", "gnc-commodity-table-add-default-data", "gnc-commodity-namespace-get-name", "gnc-commodity-namespace-get-gui-name", "gnc-commodity-namespace-get-commodity-list", "gnc-commodity-table-has-namespace", "gnc-commodity-table-get-namespaces", "gnc-commodity-table-get-namespaces-list", "gnc-commodity-table-add-namespace", "gnc-commodity-table-find-namespace", "gnc-commodity-table-delete-namespace", "gnc-commodity-table-get-size", "gnc-commodity-table-get-commodities", "gnc-commodity-table-foreach-commodity", "gnc-commodity-table-new", "gnc-commodity-table-destroy", "gnc-commodity-obtain-twin", "gnc-commodity-table-register", "gnc-commodity-begin-edit", "gnc-commodity-commit-edit", "-gnc-monetary-commodity-set", "-gnc-monetary-commodity-get", "-gnc-monetary-value-set", "-gnc-monetary-value-get", "new--gnc-monetary", "delete--gnc-monetary", "gnc-monetary-create", "gnc-monetary-commodity", "gnc-monetary-value", "gnc-monetary-list-add-monetary", "gnc-monetary-list-add-value", "gnc-monetary-list-delete-zeros", "gnc-monetary-list-free", "gnc-hook-add-scm-dangler", "gnc-hook-run", "gnc-hook-create", "gnc-hook-add-dangler", "gnc-hook-remove-dangler", "gnc-hooks-init", "HOOK-STARTUP", "HOOK-SHUTDOWN", "HOOK-UI-STARTUP", "HOOK-UI-POST-STARTUP", "HOOK-UI-SHUTDOWN", "HOOK-NEW-BOOK", "HOOK-REPORT", "HOOK-CURRENCY-CHANGED", "HOOK-SAVE-OPTIONS", "HOOK-ADD-EXTENSION", "HOOK-BOOK-OPENED", "HOOK-BOOK-CLOSED", "HOOK-BOOK-SAVED", "gnc-book-get-template-root", "qof-book-options-delete", "qof-book-set-option", "qof-book-get-option", "qof-book-get-string-option", "qof-book-set-string-option", "gncTaxTableReturnGUID", "gncInvoiceReturnGUID", "gncJobReturnGUID", "gncVendorReturnGUID", "gncCustomerReturnGUID", "gncEmployeeReturnGUID", "gncTaxTableLookupFlip", "gncInvoiceLookupFlip", "gncJobLookupFlip", "gncVendorLookupFlip", "gncCustomerLookupFlip", "gncEmployeeLookupFlip", "GNC-ADDRESS-MODULE-NAME", "GNC-ID-ADDRESS", "gnc-address-get-type", "gncAddressCreate", "gncAddressDestroy", "gncAddressBeginEdit", "gncAddressCommitEdit", "gncAddressSetName", "gncAddressSetAddr1", "gncAddressSetAddr2", "gncAddressSetAddr3", "gncAddressSetAddr4", "gncAddressSetPhone", "gncAddressSetFax", "gncAddressSetEmail", "gncAddressClearDirty", "gncAddressGetName", "gncAddressGetAddr1", "gncAddressGetAddr2", "gncAddressGetAddr3", "gncAddressGetAddr4", "gncAddressGetPhone", "gncAddressGetFax", "gncAddressGetEmail", "gncAddressIsDirty", "gncAddressCompare", "gncAddressEqual", "ADDRESS-NAME", "ADDRESS-ONE", "ADDRESS-TWO", "ADDRESS-THREE", "ADDRESS-FOUR", "ADDRESS-PHONE", "ADDRESS-FAX", "ADDRESS-EMAIL", "ADDRESS-OWNER", "GNC-ID-BILLTERM", "gnc-billterm-get-type", "GNC-BILLTERM-NAME", "GNC-BILLTERM-DESC", "GNC-BILLTERM-DUEDAYS", "GNC-BILLTERM-DISCDAYS", "GNC-BILLTERM-CUTOFF", "GNC-BILLTERM-TYPE", "GNC-BILLTERM-DISCOUNT", "GNC-BILLTERM-REFCOUNT", "GNC-TERM-TYPE-DAYS", "GNC-TERM-TYPE-PROXIMO", "gncBillTermCreate", "gncBillTermDestroy", "gncBillTermIncRef", "gncBillTermDecRef", "gncBillTermChanged", "gncBillTermBeginEdit", "gncBillTermCommitEdit", "gncBillTermSetName", "gncBillTermSetDescription", "gncBillTermSetType", "gncBillTermSetDueDays", "gncBillTermSetDiscountDays", "gncBillTermSetDiscount", "gncBillTermSetCutoff", "gncBillTermLookup", "gncBillTermLookupByName", "gncBillTermGetTerms", "gncBillTermGetName", "gncBillTermGetDescription", "gncBillTermGetType", "gncBillTermGetDueDays", "gncBillTermGetDiscountDays", "gncBillTermGetDiscount", "gncBillTermGetCutoff", "gncBillTermIsDirty", "gncBillTermGetParent", "gncBillTermReturnChild", "gncBillTermGetRefcount", "gncBillTermCompare", "gncBillTermEqual", "gncBillTermIsFamily", "gncBillTermComputeDueDate", "OWNER-EXPORT-PDF-DIRNAME", "LAST-POSTED-TO-ACCT", "GNC-PAYMENT", "GNC-LAST-ACCOUNT", "GNC-BILLTERM-MODULE-NAME", "gncBusinessGetList", "gncBusinessGetOwnerList", "gncBusinessIsPaymentAcctType", "GNC-ID-CUSTOMER", "gnc-customer-get-type", "gncCustomerCreate", "gncCustomerDestroy", "gncCustomerBeginEdit", "gncCustomerCommitEdit", "gncCustomerSetID", "gncCustomerSetName", "gncCustomerSetNotes", "gncCustomerSetTerms", "gncCustomerSetTaxIncluded", "gncCustomerSetActive", "gncCustomerSetDiscount", "gncCustomerSetCredit", "gncCustomerSetCurrency", "gncCustomerSetTaxTableOverride", "gncCustomerSetTaxTable", "gncCustomerAddJob", "gncCustomerRemoveJob", "gncCustomerLookup", "gncCustomerGetID", "gncCustomerGetName", "gncCustomerGetAddr", "gncCustomerGetShipAddr", "gncCustomerGetNotes", "gncCustomerGetTerms", "gncCustomerGetTaxIncluded", "gncCustomerGetActive", "gncCustomerGetDiscount", "gncCustomerGetCredit", "gncCustomerGetCurrency", "gncCustomerGetTaxTableOverride", "gncCustomerGetTaxTable", "gncCustomerCompare", "CUSTOMER-ID", "CUSTOMER-NAME", "CUSTOMER-ADDR", "CUSTOMER-SHIPADDR", "CUSTOMER-NOTES", "CUSTOMER-DISCOUNT", "CUSTOMER-CREDIT", "CUSTOMER-TT-OVER", "CUSTOMER-TAX-INC", "CUSTOMER-TERMS", "CUSTOMER-ACTIVE", "CUSTOMER-SLOTS", "gncCustomerEqual", "gncCustomerGetJoblist", "gncCustomerIsDirty", "GNC-ID-EMPLOYEE", "gnc-employee-get-type", "gncEmployeeCreate", "gncEmployeeDestroy", "gncEmployeeBeginEdit", "gncEmployeeCommitEdit", "gncEmployeeCompare", "gncEmployeeSetID", "gncEmployeeSetUsername", "gncEmployeeSetName", "gncEmployeeSetLanguage", "gncEmployeeSetAcl", "gncEmployeeSetWorkday", "gncEmployeeSetRate", "gncEmployeeSetCurrency", "gncEmployeeSetActive", "gncEmployeeSetCCard", "qofEmployeeSetAddr", "gncEmployeeGetBook", "gncEmployeeGetID", "gncEmployeeGetUsername", "gncEmployeeGetName", "gncEmployeeGetAddr", "gncEmployeeGetLanguage", "gncEmployeeGetAcl", "gncEmployeeGetWorkday", "gncEmployeeGetRate", "gncEmployeeGetCurrency", "gncEmployeeGetActive", "gncEmployeeGetCCard", "gncEmployeeLookup", "EMPLOYEE-ID", "EMPLOYEE-USERNAME", "EMPLOYEE-NAME", "EMPLOYEE-ADDR", "EMPLOYEE-LANGUAGE", "EMPLOYEE-ACL", "EMPLOYEE-WORKDAY", "EMPLOYEE-RATE", "EMPLOYEE-CC", "gncEmployeeEqual", "gncEmployeeIsDirty", "GNC-PAYMENT-CASH", "GNC-PAYMENT-CARD", "GNC-DISC-PRETAX", "GNC-DISC-SAMETIME", "GNC-DISC-POSTTAX", "GNC-ID-ENTRY", "gnc-entry-get-type", "gncEntryDiscountHowToString", "gncEntryDiscountStringToHow", "gncEntryPaymentTypeToString", "gncEntryPaymentStringToType", "gncEntryCreate", "gncEntryDestroy", "gncEntrySetDateGDate", "gncEntrySetDate", "gncEntrySetDateEntered", "gncEntrySetDescription", "gncEntrySetAction", "gncEntrySetNotes", "gncEntrySetQuantity", "gncEntrySetDocQuantity", "gncEntrySetInvAccount", "gncEntrySetInvPrice", "gncEntrySetInvTaxable", "gncEntrySetInvTaxIncluded", "gncEntrySetInvTaxTable", "gncEntrySetInvDiscount", "gncEntrySetInvDiscountType", "gncEntrySetInvDiscountHow", "qofEntrySetInvDiscType", "qofEntrySetInvDiscHow", "gncEntrySetBillAccount", "gncEntrySetBillPrice", "gncEntrySetBillTaxable", "gncEntrySetBillTaxIncluded", "gncEntrySetBillTaxTable", "gncEntrySetBillable", "gncEntrySetBillTo", "gncEntrySetBillPayment", "gncEntryGetDateGDate", "gncEntryGetDate", "gncEntryGetDateEntered", "gncEntryGetDescription", "gncEntryGetAction", "gncEntryGetNotes", "gncEntryGetQuantity", "gncEntryGetDocQuantity", "gncEntryGetInvAccount", "gncEntryGetInvPrice", "gncEntryGetPrice", "gncEntryGetInvDiscount", "gncEntryGetInvDiscountType", "gncEntryGetInvDiscountHow", "qofEntryGetInvDiscType", "qofEntryGetInvDiscHow", "gncEntryGetInvTaxable", "gncEntryGetInvTaxIncluded", "gncEntryGetInvTaxTable", "gncEntryGetBillAccount", "gncEntryGetBillPrice", "gncEntryGetBillTaxable", "gncEntryGetBillTaxIncluded", "gncEntryGetBillTaxTable", "gncEntryGetBillable", "gncEntryGetBillTo", "gncEntryGetBillPayment", "gncEntryCopy", "gncEntryGetDocValue", "gncEntryGetDocTaxValue", "gncEntryGetDocTaxValues", "gncEntryGetDocDiscountValue", "gncEntryGetBalValue", "gncEntryGetBalTaxValue", "gncEntryGetBalTaxValues", "gncEntryGetBalDiscountValue", "gncEntryComputeValue", "gncEntryGetOrder", "gncEntryGetInvoice", "gncEntryGetBill", "gncEntryLookup", "gncEntryIsOpen", "gncEntryBeginEdit", "gncEntryCommitEdit", "gncEntryCompare", "ENTRY-DATE", "ENTRY-DATE-ENTERED", "ENTRY-DESC", "ENTRY-ACTION", "ENTRY-NOTES", "ENTRY-QTY", "ENTRY-IPRICE", "ENTRY-IACCT", "ENTRY-BACCT", "ENTRY-BPRICE", "ENTRY-BILLABLE", "ENTRY-BILLTO", "ENTRY-ORDER", "ENTRY-INVOICE", "ENTRY-BILL", "ENTRY-INV-DISC-TYPE", "ENTRY-INV-DISC-HOW", "ENTRY-INV-TAXABLE", "ENTRY-BILL-TAXABLE", "ENTRY-INV-TAX-INC", "ENTRY-BILL-TAX-INC", "ENTRY-INV-DISCOUNT", "ENTRY-BILL-PAY-TYPE", "GNC-ID-INVOICE", "GNC-INVOICE-UNDEFINED", "GNC-INVOICE-CUST-INVOICE", "GNC-INVOICE-VEND-INVOICE", "GNC-INVOICE-EMPL-INVOICE", "GNC-INVOICE-CUST-CREDIT-NOTE", "GNC-INVOICE-VEND-CREDIT-NOTE", "GNC-INVOICE-EMPL-CREDIT-NOTE", "GNC-INVOICE-NUM-TYPES", "gnc-invoice-get-type", "gncInvoiceCreate", "gncInvoiceDestroy", "gncInvoiceCopy", "gncInvoiceSetID", "gncInvoiceSetOwner", "gncInvoiceSetDateOpenedGDate", "gncInvoiceSetDateOpened", "gncInvoiceSetDatePosted", "gncInvoiceSetTerms", "gncInvoiceSetBillingID", "gncInvoiceSetNotes", "gncInvoiceSetCurrency", "gncInvoiceSetActive", "gncInvoiceSetIsCreditNote", "gncInvoiceSetBillTo", "gncInvoiceSetToChargeAmount", "gncInvoiceAddEntry", "gncInvoiceRemoveEntry", "gncInvoiceAddPrice", "gncBillAddEntry", "gncBillRemoveEntry", "gncInvoiceSortEntries", "gncInvoiceRemoveEntries", "gncInvoiceGetID", "gncInvoiceGetOwner", "gncInvoiceGetDateOpened", "gncInvoiceGetDatePosted", "gncInvoiceGetDateDue", "gncInvoiceGetTerms", "gncInvoiceGetBillingID", "gncInvoiceGetNotes", "gncInvoiceGetOwnerType", "gncInvoiceGetTypeListForOwnerType", "gncInvoiceGetType", "gncInvoiceGetTypeString", "gncInvoiceGetCurrency", "gncInvoiceGetBillTo", "gncInvoiceGetToChargeAmount", "gncInvoiceGetActive", "gncInvoiceGetIsCreditNote", "gncInvoiceGetPostedLot", "gncInvoiceGetPostedTxn", "gncInvoiceGetPostedAcc", "gncInvoiceGetTotal", "gncInvoiceGetTotalOf", "gncInvoiceGetTotalSubtotal", "gncInvoiceGetTotalTax", "gncInvoiceGetEntries", "gncInvoiceGetPrice", "gncInvoiceAmountPositive", "gncInvoiceGetForeignCurrencies", "gncInvoicePostToAccount", "gncInvoiceUnpost", "gncInvoiceAutoApplyPayments", "gncInvoiceApplyPayment", "gncInvoiceGetInvoiceFromTxn", "gncInvoiceGetInvoiceFromLot", "gncInvoiceLookup", "gncInvoiceBeginEdit", "gncInvoiceCommitEdit", "gncInvoiceCompare", "gncInvoiceDateExists", "gncInvoiceIsPosted", "gncInvoiceIsPaid", "INVOICE-ID", "INVOICE-OWNER", "INVOICE-OPENED", "INVOICE-POSTED", "INVOICE-DUE", "INVOICE-IS-POSTED", "INVOICE-IS-PAID", "INVOICE-TERMS", "INVOICE-BILLINGID", "INVOICE-NOTES", "INVOICE-ACC", "INVOICE-POST-TXN", "INVOICE-POST-LOT", "INVOICE-IS-CN", "INVOICE-TYPE", "INVOICE-TYPE-STRING", "INVOICE-BILLTO", "INVOICE-ENTRIES", "INVOICE-JOB", "INVOICE-FROM-LOT", "INVOICE-FROM-TXN", "gncInvoiceGetBook", "gncInvoiceEqual", "GNC-ID-JOB", "gnc-job-get-type", "gncJobCreate", "gncJobDestroy", "gncJobSetID", "gncJobSetName", "gncJobSetReference", "gncJobSetRate", "gncJobSetOwner", "gncJobSetActive", "gncJobBeginEdit", "gncJobCommitEdit", "gncJobGetID", "gncJobGetName", "gncJobGetReference", "gncJobGetRate", "gncJobGetOwner", "gncJobGetActive", "gncJobLookup", "gncJobCompare", "gncJobEqual", "JOB-ID", "JOB-NAME", "JOB-REFERENCE", "JOB-RATE", "JOB-OWNER", "Q-JOB-OWNER", "JOB-ACTIVE", "GNC-ID-ORDER", "gnc-order-get-type", "gncOrderCreate", "gncOrderDestroy", "gncOrderSetID", "gncOrderSetOwner", "gncOrderSetDateOpened", "gncOrderSetDateClosed", "gncOrderSetNotes", "gncOrderSetReference", "gncOrderSetActive", "gncOrderAddEntry", "gncOrderRemoveEntry", "gncOrderGetID", "gncOrderGetOwner", "gncOrderGetDateOpened", "gncOrderGetDateClosed", "gncOrderGetNotes", "gncOrderGetReference", "gncOrderGetActive", "gncOrderGetEntries", "gncOrderBeginEdit", "gncOrderCommitEdit", "gncOrderCompare", "gncOrderIsClosed", "gncOrderLookup", "ORDER-ID", "ORDER-REFERENCE", "ORDER-OWNER", "ORDER-OPENED", "ORDER-CLOSED", "ORDER-IS-CLOSED", "ORDER-NOTES", "GNC-ID-OWNER", "GNC-OWNER-NONE", "GNC-OWNER-UNDEFINED", "GNC-OWNER-CUSTOMER", "GNC-OWNER-JOB", "GNC-OWNER-VENDOR", "GNC-OWNER-EMPLOYEE", "qofOwnerGetType", "qofOwnerGetOwner", "qofOwnerSetEntity", "GNC-IS-OWNER", "gncOwnerTypeToQofIdType", "gncOwnerRegister", "gncOwnerInitUndefined", "gncOwnerInitCustomer", "gncOwnerInitJob", "gncOwnerInitVendor", "gncOwnerInitEmployee", "gncOwnerGetType", "gncOwnerIsValid", "gncOwnerGetUndefined", "gncOwnerGetCustomer", "gncOwnerGetJob", "gncOwnerGetVendor", "gncOwnerGetEmployee", "gncOwnerGetID", "gncOwnerGetName", "gncOwnerGetAddr", "gncOwnerGetActive", "gncOwnerGetCurrency", "gncOwnerSetActive", "gncOwnerCopy", "gncOwnerEqual", "gncOwnerGCompareFunc", "gncOwnerCompare", "gncOwnerGetGUID", "gncOwnerReturnGUID", "gncOwnerGetEndOwner", "gncOwnerGetEndGUID", "gncOwnerAttachToLot", "gncOwnerLotMatchOwnerFunc", "gncOwnerLotsSortFunc", "gncOwnerGetOwnerFromLot", "gncOwnerGetOwnerFromTxn", "gncOwnerGetOwnerFromTypeGuid", "gncOwnerCreatePaymentLot", "gncOwnerAutoApplyPaymentsWithLots", "gncOwnerApplyPayment", "gncOwnerFindOffsettingSplit", "gncOwnerReduceSplitTo", "gncOwnerSetLotLinkMemo", "gncOwnerGetAccountTypesList", "gncOwnerGetCommoditiesList", "gncOwnerGetBalanceInCurrency", "OWNER-TYPE", "OWNER-TYPE-STRING", "OWNER-CUSTOMER", "OWNER-JOB", "OWNER-VENDOR", "OWNER-EMPLOYEE", "OWNER-PARENT", "OWNER-PARENTG", "OWNER-NAME", "OWNER-FROM-LOT", "gncOwnerNew", "gncOwnerFree", "gncOwnerBeginEdit", "gncOwnerCommitEdit", "gncOwnerDestroy", "GNC-ID-TAXTABLE", "gnc-taxtable-get-type", "GNC-AMT-TYPE-VALUE", "GNC-AMT-TYPE-PERCENT", "GNC-TAXINCLUDED-YES", "GNC-TAXINCLUDED-NO", "GNC-TAXINCLUDED-USEGLOBAL", "gncAmountTypeToString", "gncAmountStringToType", "gncTaxIncludedTypeToString", "gncTaxIncludedStringToType", "gncTaxTableCreate", "gncTaxTableDestroy", "gncTaxTableEntryCreate", "gncTaxTableEntryDestroy", "gncTaxTableSetName", "gncTaxTableIncRef", "gncTaxTableDecRef", "gncTaxTableEntrySetAccount", "gncTaxTableEntrySetType", "gncTaxTableEntrySetAmount", "gncTaxTableAddEntry", "gncTaxTableRemoveEntry", "gncTaxTableChanged", "gncTaxTableBeginEdit", "gncTaxTableCommitEdit", "gncTaxTableEqual", "gncTaxTableLookup", "gncTaxTableLookupByName", "gncTaxTableGetTables", "gncTaxTableGetName", "gncTaxTableGetParent", "gncTaxTableReturnChild", "gncTaxTableGetEntries", "gncTaxTableGetRefcount", "gncTaxTableLastModified", "gncTaxTableEntryGetAccount", "gncTaxTableEntryGetType", "gncTaxTableEntryGetAmount", "gncTaxTableCompare", "gncTaxTableEntryCompare", "gncTaxTableEntryEqual", "-gncAccountValue-account-set", "-gncAccountValue-account-get", "-gncAccountValue-value-set", "-gncAccountValue-value-get", "new--gncAccountValue", "delete--gncAccountValue", "gncAccountValueAdd", "gncAccountValueAddList", "gncAccountValueTotal", "gncAccountValueDestroy", "GNC-TT-NAME", "GNC-TT-REFCOUNT", "GNC-ID-VENDOR", "gnc-vendor-get-type", "gncVendorCreate", "gncVendorDestroy", "gncVendorSetID", "gncVendorSetName", "gncVendorSetNotes", "gncVendorSetTerms", "gncVendorSetTaxIncluded", "gncVendorSetCurrency", "gncVendorSetActive", "gncVendorSetTaxTableOverride", "gncVendorSetTaxTable", "gncVendorAddJob", "gncVendorRemoveJob", "gncVendorBeginEdit", "gncVendorCommitEdit", "gncVendorGetID", "gncVendorGetName", "gncVendorGetAddr", "gncVendorGetNotes", "gncVendorGetTerms", "gncVendorGetTaxIncluded", "gncVendorGetCurrency", "gncVendorGetActive", "gncVendorGetTaxTableOverride", "gncVendorGetTaxTable", "gncVendorCompare", "gncVendorLookup", "VENDOR-ID", "VENDOR-NAME", "VENDOR-ADDR", "VENDOR-NOTES", "VENDOR-TERMS", "VENDOR-TAX-INC", "VENDOR-ACTIVE", "VENDOR-TAX-OVERRIDE", "VENDOR-TAX-TABLE", "gncVendorEqual", "gncVendorIsDirty", "gnc-scm-to-account-value-ptr", "gnc-account-value-ptr-to-scm", "URL-TYPE-CUSTOMER", "URL-TYPE-VENDOR", "URL-TYPE-EMPLOYEE", "URL-TYPE-JOB", "URL-TYPE-INVOICE", "URL-TYPE-OWNERREPORT", "qof-query-create-for-invoices", "qof-query-run-for-invoices", NULL);
}

SCM
scm_init_sw_engine_module (void)
{
scm_c_define_module("sw_engine",
  SWIG_init_helper, NULL);
return SCM_UNSPECIFIED;
}

