/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.6
 * 
 * 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. 
 * ----------------------------------------------------------------------------- */

#define SWIGPERL
#define SWIG_CASTRANK_MODE

/* -----------------------------------------------------------------------------
 *  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 (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  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


/* -----------------------------------------------------------------------------
 * 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
#  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 not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  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_TypeCompare(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}


/*
  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) {
      register size_t l = 0;
      register size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	register size_t i = (l + r) >> 1; 
	const char *iname = iter->types[i]->name;
	if (iname) {
	  register 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 {
      register 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";
  register const unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    register 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) {
  register unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    register char d = *(c++);
    register unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = ((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = ((d - ('a'-10)) << 4);
    else 
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (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

/*  Errors in SWIG */
#define  SWIG_UnknownError    	   -1 
#define  SWIG_IOError        	   -2 
#define  SWIG_RuntimeError   	   -3 
#define  SWIG_IndexError     	   -4 
#define  SWIG_TypeError      	   -5 
#define  SWIG_DivisionByZero 	   -6 
#define  SWIG_OverflowError  	   -7 
#define  SWIG_SyntaxError    	   -8 
#define  SWIG_ValueError     	   -9 
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12 
#define  SWIG_NullReferenceError   -13



#ifdef __cplusplus
/* Needed on some windows machines---since MS plays funny games with the header files under C++ */
#include <math.h>
#include <stdlib.h>
extern "C" {
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

/* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */

/* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */
#ifndef PERL_REVISION
#  if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION))
#    define PERL_PATCHLEVEL_H_IMPLICIT
#    include <patchlevel.h>
#  endif
#  if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL)))
#    include <could_not_find_Perl_patchlevel.h>
#  endif
#  ifndef PERL_REVISION
#    define PERL_REVISION       (5)
#    define PERL_VERSION        PATCHLEVEL
#    define PERL_SUBVERSION     SUBVERSION
#  endif
#endif

#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE)
#define PerlIO_exportFILE(fh,fl) (FILE*)(fh)
#endif

#ifndef SvIOK_UV
# define SvIOK_UV(sv)       (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv)))
#endif

#ifndef SvUOK
# define SvUOK(sv)           SvIOK_UV(sv)
#endif

#if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5)))
#  define PL_sv_undef               sv_undef
#  define PL_na	                    na
#  define PL_errgv                  errgv
#  define PL_sv_no                  sv_no
#  define PL_sv_yes                 sv_yes
#  define PL_markstack_ptr          markstack_ptr
#endif

#ifndef IVSIZE
#  ifdef LONGSIZE
#    define IVSIZE LONGSIZE
#  else
#    define IVSIZE 4 /* A bold guess, but the best we can make. */
#  endif
#endif

#ifndef INT2PTR
#  if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE)
#    define PTRV                  UV
#    define INT2PTR(any,d)        (any)(d)
#  else
#    if PTRSIZE == LONGSIZE
#      define PTRV                unsigned long
#    else
#      define PTRV                unsigned
#    endif
#    define INT2PTR(any,d)        (any)(PTRV)(d)
#  endif

#  define NUM2PTR(any,d)  (any)(PTRV)(d)
#  define PTR2IV(p)       INT2PTR(IV,p)
#  define PTR2UV(p)       INT2PTR(UV,p)
#  define PTR2NV(p)       NUM2PTR(NV,p)

#  if PTRSIZE == LONGSIZE
#    define PTR2ul(p)     (unsigned long)(p)
#  else
#    define PTR2ul(p)     INT2PTR(unsigned long,p)
#  endif
#endif /* !INT2PTR */

#ifndef SvPV_nolen
# define SvPV_nolen(x) SvPV(x,PL_na)
#endif

#ifndef get_sv
#  define get_sv perl_get_sv
#endif

#ifndef ERRSV
#  define ERRSV get_sv("@",FALSE)
#endif

#ifndef pTHX_
#define pTHX_
#endif   

#include <string.h>
#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------
 * error manipulation
 * ----------------------------------------------------------------------------- */

SWIGINTERN const char*
SWIG_Perl_ErrorType(int code) {
  switch(code) {
  case SWIG_MemoryError:
    return "MemoryError";
  case SWIG_IOError:
    return "IOError";
  case SWIG_RuntimeError:
    return "RuntimeError";
  case SWIG_IndexError:
    return "IndexError";
  case SWIG_TypeError:
    return "TypeError";
  case SWIG_DivisionByZero:
    return "ZeroDivisionError";
  case SWIG_OverflowError:
    return "OverflowError";
  case SWIG_SyntaxError:
    return "SyntaxError";
  case SWIG_ValueError:
    return "ValueError";
  case SWIG_SystemError:
    return "SystemError";
  case SWIG_AttributeError:
    return "AttributeError";
  default:
    return "RuntimeError";
  }
}


/* -----------------------------------------------------------------------------
 * perlrun.swg
 *
 * This file contains the runtime support for Perl modules
 * and includes code for managing global variables and pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

#ifdef PERL_OBJECT
#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
#define SWIG_PERL_OBJECT_CALL pPerl,
#else
#define SWIG_PERL_OBJECT_DECL
#define SWIG_PERL_OBJECT_CALL
#endif

/* Common SWIG API */

/* for raw pointers */
#define SWIG_ConvertPtr(obj, pp, type, flags)           SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
#define SWIG_NewPointerObj(p, type, flags)              SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)

/* for raw packed data */
#define SWIG_ConvertPacked(obj, p, s, type)             SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
#define SWIG_NewPackedObj(p, s, type)	                SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type)

/* for class or struct pointers */
#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)

/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_ConvertPtr(obj, pptr, type, 0)
#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_NewPointerObj(ptr, type, 0)

/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_NewPackedObj(ptr, sz, type)


/* Runtime API */

#define SWIG_GetModule(clientdata)                      SWIG_Perl_GetModule()
#define SWIG_SetModule(clientdata, pointer)             SWIG_Perl_SetModule(pointer)


/* Error manipulation */

#define SWIG_ErrorType(code)                            SWIG_Perl_ErrorType(code)               
#define SWIG_Error(code, msg)            		sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg)
#define SWIG_fail                        		goto fail						    

/* Perl-specific SWIG API */

#define SWIG_MakePtr(sv, ptr, type, flags)              SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags)
#define SWIG_MakePackedObj(sv, p, s, type)	        SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type)
#define SWIG_SetError(str)                              SWIG_Error(SWIG_RuntimeError, str)


#define SWIG_PERL_DECL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_DECL arg1)
#define SWIG_PERL_CALL_ARGS_1(arg1)                     (SWIG_PERL_OBJECT_CALL arg1)
#define SWIG_PERL_DECL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_DECL arg1, arg2)
#define SWIG_PERL_CALL_ARGS_2(arg1, arg2)               (SWIG_PERL_OBJECT_CALL arg1, arg2)

/* -----------------------------------------------------------------------------
 * pointers/data manipulation
 * ----------------------------------------------------------------------------- */

/* For backward compatibility only */
#define SWIG_POINTER_EXCEPTION  0

#ifdef __cplusplus
extern "C" {
#endif

#define SWIG_OWNER   SWIG_POINTER_OWN
#define SWIG_SHADOW  SWIG_OWNER << 1

#define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL

/* SWIG Perl macros */

/* Macro to declare an XS function */
#ifndef XSPROTO
#   define XSPROTO(name) void name(pTHX_ CV* cv)
#endif

/* Macro to call an XS function */
#ifdef PERL_OBJECT 
#  define SWIG_CALLXS(_name) _name(cv,pPerl) 
#else 
#  ifndef MULTIPLICITY 
#    define SWIG_CALLXS(_name) _name(cv) 
#  else 
#    define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) 
#  endif 
#endif 

#ifdef PERL_OBJECT
#define MAGIC_PPERL  CPerlObj *pPerl = (CPerlObj *) this;

#ifdef __cplusplus
extern "C" {
#endif
typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *);
#ifdef __cplusplus
}
#endif

#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)
#define SWIGCLASS_STATIC

#else /* PERL_OBJECT */

#define MAGIC_PPERL
#define SWIGCLASS_STATIC static SWIGUNUSED

#ifndef MULTIPLICITY
#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b)

#ifdef __cplusplus
extern "C" {
#endif
typedef int (*SwigMagicFunc)(SV *, MAGIC *);
#ifdef __cplusplus
}
#endif

#else /* MULTIPLICITY */

#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b)

#ifdef __cplusplus
extern "C" {
#endif
typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *);
#ifdef __cplusplus
}
#endif

#endif /* MULTIPLICITY */
#endif /* PERL_OBJECT */

#  ifdef PERL_OBJECT
#    define SWIG_croak_null() SWIG_Perl_croak_null(pPerl)
static void SWIG_Perl_croak_null(CPerlObj *pPerl)
#  else
static void SWIG_croak_null()
#  endif
{
  SV *err = get_sv("@", GV_ADD);
#  if (PERL_VERSION < 6)
  croak("%_", err);
#  else
  if (sv_isobject(err))
    croak(0);
  else
    croak("%s", SvPV_nolen(err));
#  endif
}


/* 
   Define how strict is the cast between strings and integers/doubles
   when overloading between these types occurs.
   
   The default is making it as strict as possible by using SWIG_AddCast
   when needed.
   
   You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to
   disable the SWIG_AddCast, making the casting between string and
   numbers less strict.

   In the end, we try to solve the overloading between strings and
   numerical types in the more natural way, but if you can avoid it,
   well, avoid it using %rename, for example.
*/
#ifndef SWIG_PERL_NO_STRICT_STR2NUM
# ifndef SWIG_PERL_STRICT_STR2NUM
#  define SWIG_PERL_STRICT_STR2NUM
# endif
#endif
#ifdef SWIG_PERL_STRICT_STR2NUM
/* string takes precedence */
#define SWIG_Str2NumCast(x) SWIG_AddCast(x)  
#else
/* number takes precedence */
#define SWIG_Str2NumCast(x) x
#endif



#include <stdlib.h>

SWIGRUNTIME const char *
SWIG_Perl_TypeProxyName(const swig_type_info *type) {
  if (!type) return NULL;
  if (type->clientdata != NULL) {
    return (const char*) type->clientdata;
  } 
  else {
    return type->name;
  }
}

/* Identical to SWIG_TypeCheck, except for strcmp comparison */
SWIGRUNTIME swig_cast_info *
SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(SWIG_Perl_TypeProxyName(iter->type), 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;
}

/* Function for getting a pointer value */

SWIGRUNTIME int
SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
  swig_cast_info *tc;
  void *voidptr = (void *)0;
  SV *tsv = 0;

  if (own)
    *own = 0;

  /* If magical, apply more magic */
  if (SvGMAGICAL(sv))
    mg_get(sv);

  /* Check to see if this is an object */
  if (sv_isobject(sv)) {
    IV tmp = 0;
    tsv = (SV*) SvRV(sv);
    if ((SvTYPE(tsv) == SVt_PVHV)) {
      MAGIC *mg;
      if (SvMAGICAL(tsv)) {
        mg = mg_find(tsv,'P');
        if (mg) {
          sv = mg->mg_obj;
          if (sv_isobject(sv)) {
	    tsv = (SV*)SvRV(sv);
            tmp = SvIV(tsv);
          }
        }
      } else {
        return SWIG_ERROR;
      }
    } else {
      tmp = SvIV(tsv);
    }
    voidptr = INT2PTR(void *,tmp);
  } else if (! SvOK(sv)) {            /* Check for undef */
    *(ptr) = (void *) 0;
    return SWIG_OK;
  } else if (SvTYPE(sv) == SVt_RV) {  /* Check for NULL pointer */
    if (!SvROK(sv)) {
      /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value.  */
      if (SvIOK(sv)) {
        return SWIG_ERROR;
      } else {
        /* NULL pointer (reference to undef). */
        *(ptr) = (void *) 0;
        return SWIG_OK;
      }
    } else {
      return SWIG_ERROR;
    }
  } else {                            /* Don't know what it is */
    return SWIG_ERROR;
  }
  if (_t) {
    /* Now see if the types match */
    char *_c = HvNAME(SvSTASH(SvRV(sv)));
    tc = SWIG_TypeProxyCheck(_c,_t);
    if (!tc) {
      return SWIG_ERROR;
    }
    {
      int newmemory = 0;
      *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
      if (newmemory == SWIG_CAST_NEW_MEMORY) {
        assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
        if (own)
          *own = *own | SWIG_CAST_NEW_MEMORY;
      }
    }
  } else {
    *ptr = voidptr;
  }

  /* 
   *  DISOWN implementation: we need a perl guru to check this one.
   */
  if (tsv && (flags & SWIG_POINTER_DISOWN)) {
    /* 
     *  almost copy paste code from below SWIG_POINTER_OWN setting
     */
    SV *obj = sv;
    HV *stash = SvSTASH(SvRV(obj));
    GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
    if (isGV(gv)) {
      HV *hv = GvHVn(gv);
      /*
       * To set ownership (see below), a newSViv(1) entry is added. 
       * Hence, to remove ownership, we delete the entry.
       */
      if (hv_exists_ent(hv, obj, 0)) {
	hv_delete_ent(hv, obj, 0, 0);
      }
    }
  }
  return SWIG_OK;
}

SWIGRUNTIME int
SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
  return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
}

SWIGRUNTIME void
SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
  if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
    SV *self;
    SV *obj=newSV(0);
    HV *hash=newHV();
    HV *stash;
    sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr);
    stash=SvSTASH(SvRV(obj));
    if (flags & SWIG_POINTER_OWN) {
      HV *hv;
      GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE);
      if (!isGV(gv))
        gv_init(gv, stash, "OWNER", 5, FALSE);
      hv=GvHVn(gv);
      hv_store_ent(hv, obj, newSViv(1), 0);
    }
    sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0);
    SvREFCNT_dec(obj);
    self=newRV_noinc((SV *)hash);
    sv_setsv(sv, self);
    SvREFCNT_dec((SV *)self);
    sv_bless(sv, stash);
  }
  else {
    sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr);
  }
}

SWIGRUNTIMEINLINE SV *
SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) {
  SV *result = sv_newmortal();
  SWIG_MakePtr(result, ptr, t, flags);
  return result;
}

SWIGRUNTIME void
SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) {
  char result[1024];
  char *r = result;
  if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  strcpy(r,SWIG_Perl_TypeProxyName(type));
  sv_setpv(sv, result);
}

SWIGRUNTIME SV *
SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) {
  SV *result = sv_newmortal();
  SWIG_Perl_MakePackedObj(result, ptr, sz, type);
  return result;
}

/* Convert a packed value value */
SWIGRUNTIME int
SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) {
  swig_cast_info *tc;
  const char  *c = 0;

  if ((!obj) || (!SvOK(obj))) return SWIG_ERROR;
  c = SvPV_nolen(obj);
  /* Pointer values must start with leading underscore */
  if (*c != '_') return SWIG_ERROR;
  c++;
  c = SWIG_UnpackData(c,ptr,sz);
  if (ty) {
    tc = SWIG_TypeCheck(c,ty);
    if (!tc) return SWIG_ERROR;
  }
  return SWIG_OK;
}


/* Macros for low-level exception handling */
#define SWIG_croak(x)    { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; }


typedef XSPROTO(SwigPerlWrapper);
typedef SwigPerlWrapper *SwigPerlWrapperPtr;

/* Structure for command table */
typedef struct {
  const char         *name;
  SwigPerlWrapperPtr  wrapper;
} swig_command_info;

/* Information for constant table */

#define SWIG_INT     1
#define SWIG_FLOAT   2
#define SWIG_STRING  3
#define SWIG_POINTER 4
#define SWIG_BINARY  5

/* Constant information structure */
typedef struct swig_constant_info {
    int              type;
    const char      *name;
    long             lvalue;
    double           dvalue;
    void            *pvalue;
    swig_type_info **ptype;
} swig_constant_info;


/* Structure for variable table */
typedef struct {
  const char   *name;
  SwigMagicFunc   set;
  SwigMagicFunc   get;
  swig_type_info  **type;
} swig_variable_info;

/* Magic variable code */
#ifndef PERL_OBJECT
# ifdef __cplusplus
#  define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast<char*>(a),b,c)
# else
#  define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c)
# endif
# ifndef MULTIPLICITY
SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) 
# else
SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) 
# endif
#else
#  define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c)
SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) 
#endif
{
  MAGIC *mg;
  sv_magic(sv,sv,'U',name,strlen(name));
  mg = mg_find(sv,'U');
  mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL));
  mg->mg_virtual->svt_get = (SwigMagicFunc) get;
  mg->mg_virtual->svt_set = (SwigMagicFunc) set;
  mg->mg_virtual->svt_len = 0;
  mg->mg_virtual->svt_clear = 0;
  mg->mg_virtual->svt_free = 0;
}


SWIGRUNTIME swig_module_info *
SWIG_Perl_GetModule(void) {
  static void *type_pointer = (void *)0;
  SV *pointer;

  /* first check if pointer already created */
  if (!type_pointer) {
    pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI);
    if (pointer && SvOK(pointer)) {
      type_pointer = INT2PTR(swig_type_info **, SvIV(pointer));
    }
  }

  return (swig_module_info *) type_pointer;
}

SWIGRUNTIME void
SWIG_Perl_SetModule(swig_module_info *module) {
  SV *pointer;

  /* create a new pointer */
  pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI);
  sv_setiv(pointer, PTR2IV(module));
}

#ifdef __cplusplus
}
#endif

/* Workaround perl5 global namespace pollution. Note that undefining library
 * functions like fopen will not solve the problem on all platforms as fopen
 * might be a macro on Windows but not necessarily on other operating systems. */
#ifdef do_open
  #undef do_open
#endif
#ifdef do_close
  #undef do_close
#endif
#ifdef do_exec
  #undef do_exec
#endif
#ifdef scalar
  #undef scalar
#endif
#ifdef list
  #undef list
#endif
#ifdef apply
  #undef apply
#endif
#ifdef convert
  #undef convert
#endif
#ifdef Error
  #undef Error
#endif
#ifdef form
  #undef form
#endif
#ifdef vform
  #undef vform
#endif
#ifdef LABEL
  #undef LABEL
#endif
#ifdef METHOD
  #undef METHOD
#endif
#ifdef Move
  #undef Move
#endif
#ifdef yylex
  #undef yylex
#endif
#ifdef yyparse
  #undef yyparse
#endif
#ifdef yyerror
  #undef yyerror
#endif
#ifdef invert
  #undef invert
#endif
#ifdef ref
  #undef ref
#endif
#ifdef read
  #undef read
#endif
#ifdef write
  #undef write
#endif
#ifdef eof
  #undef eof
#endif
#ifdef bool
  #undef bool
#endif
#ifdef close
  #undef close
#endif
#ifdef rewind
  #undef rewind
#endif
#ifdef free
  #undef free
#endif
#ifdef malloc
  #undef malloc
#endif
#ifdef calloc
  #undef calloc
#endif
#ifdef Stat
  #undef Stat
#endif
#ifdef check
  #undef check
#endif
#ifdef seekdir
  #undef seekdir
#endif
#ifdef open
  #undef open
#endif
#ifdef readdir
  #undef readdir
#endif
#ifdef bind
  #undef bind
#endif
#ifdef access
  #undef access
#endif
#ifdef stat
  #undef stat
#endif



#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 

#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 



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

#define SWIGTYPE_p_AccuracyOpt_t swig_types[0]
#define SWIGTYPE_p_AssistanceData swig_types[1]
#define SWIGTYPE_p_AssistanceNeeded swig_types[2]
#define SWIGTYPE_p_AssistanceSupported swig_types[3]
#define SWIGTYPE_p_BIT_STRING_t swig_types[4]
#define SWIGTYPE_p_CellInfo_t swig_types[5]
#define SWIGTYPE_p_EnvironmentCharacter_t swig_types[6]
#define SWIGTYPE_p_Ext_GeographicalInformation_t swig_types[7]
#define SWIGTYPE_p_Extended_reference_t swig_types[8]
#define SWIGTYPE_p_ExtensionContainer swig_types[9]
#define SWIGTYPE_p_FQDN_t swig_types[10]
#define SWIGTYPE_p_GANSSPositionMethods swig_types[11]
#define SWIGTYPE_p_GPS_AssistData swig_types[12]
#define SWIGTYPE_p_GPS_MeasureInfo swig_types[13]
#define SWIGTYPE_p_IA5String_t swig_types[14]
#define SWIGTYPE_p_IPAddress_t swig_types[15]
#define SWIGTYPE_p_KeyIdentity2_t swig_types[16]
#define SWIGTYPE_p_KeyIdentity3_t swig_types[17]
#define SWIGTYPE_p_KeyIdentity4_t swig_types[18]
#define SWIGTYPE_p_KeyIdentity_t swig_types[19]
#define SWIGTYPE_p_LocationError swig_types[20]
#define SWIGTYPE_p_LocationId swig_types[21]
#define SWIGTYPE_p_LocationInfo swig_types[22]
#define SWIGTYPE_p_MAC_t swig_types[23]
#define SWIGTYPE_p_MeasureResponseTime_t swig_types[24]
#define SWIGTYPE_p_MethodType swig_types[25]
#define SWIGTYPE_p_MethodType_PR swig_types[26]
#define SWIGTYPE_p_MethodType_t_choice swig_types[27]
#define SWIGTYPE_p_MoreAssDataToBeSent_t swig_types[28]
#define SWIGTYPE_p_MsgBuffer swig_types[29]
#define SWIGTYPE_p_MsrAssistData swig_types[30]
#define SWIGTYPE_p_MsrPosition_Req swig_types[31]
#define SWIGTYPE_p_MsrPosition_Rsp swig_types[32]
#define SWIGTYPE_p_MultipleSets swig_types[33]
#define SWIGTYPE_p_NULL_t swig_types[34]
#define SWIGTYPE_p_Notification swig_types[35]
#define SWIGTYPE_p_OCTET_STRING_t swig_types[36]
#define SWIGTYPE_p_OTD_MeasureInfo swig_types[37]
#define SWIGTYPE_p_PosCapabilities_t swig_types[38]
#define SWIGTYPE_p_PosCapability_Req swig_types[39]
#define SWIGTYPE_p_PosCapability_Rsp swig_types[40]
#define SWIGTYPE_p_PosMethod_t swig_types[41]
#define SWIGTYPE_p_PosPayLoad swig_types[42]
#define SWIGTYPE_p_PosPayLoad_PR swig_types[43]
#define SWIGTYPE_p_PosPayLoad_t_choice swig_types[44]
#define SWIGTYPE_p_Position swig_types[45]
#define SWIGTYPE_p_PositionInstruct swig_types[46]
#define SWIGTYPE_p_PositionMethod_t swig_types[47]
#define SWIGTYPE_p_ProtocolError swig_types[48]
#define SWIGTYPE_p_QoP swig_types[49]
#define SWIGTYPE_p_RRLP_Component swig_types[50]
#define SWIGTYPE_p_RRLP_Component_PR swig_types[51]
#define SWIGTYPE_p_RRLP_Component_t_choice swig_types[52]
#define SWIGTYPE_p_RRLP_PDU swig_types[53]
#define SWIGTYPE_p_ReferenceAssistData swig_types[54]
#define SWIGTYPE_p_ReferenceIdentity swig_types[55]
#define SWIGTYPE_p_Rel5_AssistanceData_Extension swig_types[56]
#define SWIGTYPE_p_Rel5_MsrPosition_Req_Extension swig_types[57]
#define SWIGTYPE_p_Rel7_AssistanceData_Extension swig_types[58]
#define SWIGTYPE_p_Rel7_MsrPosition_Req_Extension swig_types[59]
#define SWIGTYPE_p_Rel98_AssistanceData_Extension swig_types[60]
#define SWIGTYPE_p_Rel98_MsrPosition_Req_Extension swig_types[61]
#define SWIGTYPE_p_Rel_5_MsrPosition_Rsp_Extension swig_types[62]
#define SWIGTYPE_p_Rel_5_ProtocolError_Extension swig_types[63]
#define SWIGTYPE_p_Rel_7_MsrPosition_Rsp_Extension swig_types[64]
#define SWIGTYPE_p_Rel_98_MsrPosition_Rsp_Extension swig_types[65]
#define SWIGTYPE_p_RequestedAssistData swig_types[66]
#define SWIGTYPE_p_SETAuthKey swig_types[67]
#define SWIGTYPE_p_SETCapabilities_t swig_types[68]
#define SWIGTYPE_p_SETId swig_types[69]
#define SWIGTYPE_p_SETId_PR swig_types[70]
#define SWIGTYPE_p_SETId_t_choice swig_types[71]
#define SWIGTYPE_p_SETNonce_t swig_types[72]
#define SWIGTYPE_p_SLPAddress swig_types[73]
#define SWIGTYPE_p_SLPAddress_PR swig_types[74]
#define SWIGTYPE_p_SLPAddress_t_choice swig_types[75]
#define SWIGTYPE_p_SPCAuthKey swig_types[76]
#define SWIGTYPE_p_SUPLAUTHREQ swig_types[77]
#define SWIGTYPE_p_SUPLAUTHRESP swig_types[78]
#define SWIGTYPE_p_SUPLEND swig_types[79]
#define SWIGTYPE_p_SUPLINIT swig_types[80]
#define SWIGTYPE_p_SUPLPOS swig_types[81]
#define SWIGTYPE_p_SUPLPOSINIT swig_types[82]
#define SWIGTYPE_p_SUPLRESPONSE swig_types[83]
#define SWIGTYPE_p_SUPLSTART swig_types[84]
#define SWIGTYPE_p_SatelliteInfo_t swig_types[85]
#define SWIGTYPE_p_SessionID swig_types[86]
#define SWIGTYPE_p_SetSessionID swig_types[87]
#define SWIGTYPE_p_SlpSessionID swig_types[88]
#define SWIGTYPE_p_StatusCode_t swig_types[89]
#define SWIGTYPE_p_SystemInfoAssistData swig_types[90]
#define SWIGTYPE_p_ULP_PDU swig_types[91]
#define SWIGTYPE_p_UlpMessage swig_types[92]
#define SWIGTYPE_p_UlpMessage_PR swig_types[93]
#define SWIGTYPE_p_UlpMessage_t_choice swig_types[94]
#define SWIGTYPE_p_UseMultipleSets_t swig_types[95]
#define SWIGTYPE_p_Velocity swig_types[96]
#define SWIGTYPE_p_Ver_t swig_types[97]
#define SWIGTYPE_p_Version_t swig_types[98]
#define SWIGTYPE_p_asn_TYPE_descriptor_t swig_types[99]
#define SWIGTYPE_p_char swig_types[100]
#define SWIGTYPE_p_ellipsoid_point swig_types[101]
#define SWIGTYPE_p_long swig_types[102]
static swig_type_info *swig_types[104];
static swig_module_info swig_module = {swig_types, 103, 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) -------- */

#define SWIG_init    boot_Net__Radio__Location__SUPL__XS

#define SWIG_name   "Net::Radio::Location::SUPL::XSc::boot_Net__Radio__Location__SUPL__XS"
#define SWIG_prefix "Net::Radio::Location::SUPL::XSc::"

#define SWIGVERSION 0x020006 
#define SWIG_VERSION SWIGVERSION


#define SWIG_as_voidptr(a) (void *)((const void *)(a)) 
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 


#ifdef __cplusplus
extern "C"
#endif
#ifndef PERL_OBJECT
#ifndef MULTIPLICITY
SWIGEXPORT void SWIG_init (CV* cv);
#else
SWIGEXPORT void SWIG_init (pTHXo_ CV* cv);
#endif
#else
SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
#endif


#include "asn1/ULP-PDU.h"
#include "asn1/RRLP-PDU.h"

struct per_target_buffer
{
	uint8_t *buf;
	size_t pos;
	size_t size;
};

static int per_output(const void *data, size_t size, void *op_key);
static const char * asn_dec_rval_code_str(enum asn_dec_rval_code_e code);

typedef struct _MsgBuffer
{
	uint8_t *buf;
	ssize_t size;
} MsgBuffer;

static MsgBuffer encode_ulp_pdu(struct ULP_PDU *pdu);


static int
encode_phone_numer(OCTET_STRING_t *tgt, const char *number, ssize_t nsiz)
{
    ssize_t slen, i;

    if(NULL == tgt)
        return -EINVAL;

    if(NULL == number && nsiz > 0)
        return -EINVAL;

    asn_DEF_OCTET_STRING.free_struct( &asn_DEF_OCTET_STRING, tgt, 1);
    tgt->buf = calloc( 9, 1 );
    memset( tgt->buf, 0xFF, 8 );
    tgt->size = 8;

    if(NULL == number)
        return 0;

    slen = nsiz < 0 ? strlen(number) : nsiz;

    for(i = 0; i < slen; ++i) {
        uint8_t c;
        /* ssize_t n = i + 1;
        ssize_t p = 2*(n-1)+1; */

        c = number[i] - '0';
        if(c > 9) {
            FREEMEM(tgt->buf);
            errno = EINVAL;
            return -1;
        }

        if(i%2) {
            /* lower half-byte - overwrites previously written 0xF */
            tgt->buf[i/2] = c * 16 + (tgt->buf[i/2] & 0x0F);
        } else {
            /* upper half-byte - always write 0xF into lower half-byte */
            tgt->buf[i/2] &= 0xF0;
            tgt->buf[i/2] |= c;
        }
    }
    tgt->buf[8] = '\0';	/* Couldn't use memcpy(len+1)! */

    return 0;
}

SWIGINTERN void delete_SUPLAUTHREQ(struct SUPLAUTHREQ *self){
	asn_DEF_SUPLAUTHREQ.free_struct(&asn_DEF_SUPLAUTHREQ, self, 1);
    }
SWIGINTERN char *SUPLAUTHREQ_dump(struct SUPLAUTHREQ *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLAUTHREQ.print_struct(&asn_DEF_SUPLAUTHREQ, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }

SWIGINTERNINLINE SV *
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
{
  SV *obj = sv_newmortal();
  if (carray) {
    sv_setpvn(obj, carray, size);
  } else {
    sv_setsv(obj, &PL_sv_undef);
  }
  return obj;
}


SWIGINTERNINLINE SV * 
SWIG_FromCharPtr(const char *cptr)
{ 
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
}

SWIGINTERN char *SUPLAUTHREQ_xml_dump(struct SUPLAUTHREQ *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLAUTHREQ, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN void delete_SUPLAUTHRESP(struct SUPLAUTHRESP *self){
	asn_DEF_SUPLAUTHRESP.free_struct(&asn_DEF_SUPLAUTHRESP, self, 1);
    }
SWIGINTERN char *SUPLAUTHRESP_dump(struct SUPLAUTHRESP *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLAUTHREQ.print_struct(&asn_DEF_SUPLAUTHREQ, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLAUTHRESP_xml_dump(struct SUPLAUTHRESP *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLAUTHREQ, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN void delete_SUPLEND(struct SUPLEND *self){
	asn_DEF_SUPLEND.free_struct(&asn_DEF_SUPLEND, self, 1);
    }
SWIGINTERN char *SUPLEND_dump(struct SUPLEND *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLEND.print_struct(&asn_DEF_SUPLEND, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLEND_xml_dump(struct SUPLEND *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLEND, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }

SWIGINTERN int
SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val)
{
  if (SvNIOK(obj)) {
    if (val) *val = SvNV(obj);
    return SWIG_OK;
  } else if (SvIOK(obj)) {
    if (val) *val = (double) SvIV(obj);
    return SWIG_AddCast(SWIG_OK);
  } else {
    const char *nptr = SvPV_nolen(obj);
    if (nptr) {
      char *endptr;
      double v;
      errno = 0;
      v = strtod(nptr, &endptr);
      if (errno == ERANGE) {
	errno = 0;
	return SWIG_OverflowError;
      } else {
	if (*endptr == '\0') {
	  if (val) *val = v;
	  return SWIG_Str2NumCast(SWIG_OK);
	}
      }
    }
  }
  return SWIG_TypeError;
}


#include <float.h>


#include <math.h>


SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double *d, double min, double max) {
  double x = *d;
  if ((min <= x && x <= max)) {
   double fx = floor(x);
   double cx = ceil(x);
   double rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
   if ((errno == EDOM) || (errno == ERANGE)) {
     errno = 0;
   } else {
     double summ, reps, diff;
     if (rd < x) {
       diff = x - rd;
     } else if (rd > x) {
       diff = rd - x;
     } else {
       return 1;
     }
     summ = rd + x;
     reps = diff/summ;
     if (reps < 8*DBL_EPSILON) {
       *d = rd;
       return 1;
     }
   }
  }
  return 0;
}


SWIGINTERN int
SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val)
{
  if (SvUOK(obj)) {
    UV v = SvUV(obj);
    if (v <= LONG_MAX) {
      if (val) *val = v;
      return SWIG_OK;
    }
    return SWIG_OverflowError;
  } else if (SvIOK(obj)) {
    IV v = SvIV(obj);
    if (v >= LONG_MIN && v <= LONG_MAX) {
      if(val) *val = v;
      return SWIG_OK;
    }
    return SWIG_OverflowError;
  } else {
    int dispatch = 0;
    const char *nptr = SvPV_nolen(obj);
    if (nptr) {
      char *endptr;
      long v;
      errno = 0;
      v = strtol(nptr, &endptr,0);
      if (errno == ERANGE) {
	errno = 0;
	return SWIG_OverflowError;
      } else {
	if (*endptr == '\0') {
	  if (val) *val = v;
	  return SWIG_Str2NumCast(SWIG_OK);
	}
      }
    }
    if (!dispatch) {
      double d;
      int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
	if (val) *val = (long)(d);
	return res;
      }
    }
  }
  return SWIG_TypeError;
}


SWIGINTERNINLINE SV *
SWIG_From_long  SWIG_PERL_DECL_ARGS_1(long value)
{
  SV *sv;
  if (value >= IV_MIN && value <= IV_MAX)
    sv = newSViv(value);
  else
    sv = newSVpvf("%ld", value);
  return sv_2mortal(sv);
}

SWIGINTERN void delete_SUPLINIT(struct SUPLINIT *self){
	asn_DEF_SUPLINIT.free_struct(&asn_DEF_SUPLINIT, self, 1);
    }
SWIGINTERN char *SUPLINIT_dump(struct SUPLINIT *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLINIT.print_struct(&asn_DEF_SUPLINIT, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLINIT_xml_dump(struct SUPLINIT *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLINIT, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN void delete_SUPLPOS(struct SUPLPOS *self){
	asn_DEF_SUPLPOS.free_struct(&asn_DEF_SUPLPOS, self, 1);
    }
SWIGINTERN char *SUPLPOS_dump(struct SUPLPOS *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLPOS.print_struct(&asn_DEF_SUPLPOS, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLPOS_xml_dump(struct SUPLPOS *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLPOS, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }

SWIGINTERNINLINE SV *
SWIG_From_int  SWIG_PERL_DECL_ARGS_1(int value)
{    
  return SWIG_From_long  SWIG_PERL_CALL_ARGS_1(value);
}

SWIGINTERN void delete_SUPLPOSINIT(struct SUPLPOSINIT *self){
	asn_DEF_SUPLPOSINIT.free_struct(&asn_DEF_SUPLPOSINIT, self, 1);
    }
SWIGINTERN char *SUPLPOSINIT_dump(struct SUPLPOSINIT *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLPOSINIT.print_struct(&asn_DEF_SUPLPOSINIT, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLPOSINIT_xml_dump(struct SUPLPOSINIT *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLPOSINIT, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }

#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
#   define LLONG_MAX __LONG_LONG_MAX__
#   define LLONG_MIN (-LLONG_MAX - 1LL)
#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif


SWIGINTERN int
SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) 
{
  if (SvUOK(obj)) {
    UV v = SvUV(obj);
    if (v <= ULONG_MAX) {
      if (val) *val = v;
      return SWIG_OK;
    }
    return SWIG_OverflowError;
  } else if (SvIOK(obj)) {
    IV v = SvIV(obj);
    if (v >= 0 && v <= ULONG_MAX) {
      if (val) *val = v;
      return SWIG_OK;
    }
    return SWIG_OverflowError;
  } else {
    int dispatch = 0;
    const char *nptr = SvPV_nolen(obj);
    if (nptr) {
      char *endptr;
      unsigned long v;
      errno = 0;
      v = strtoul(nptr, &endptr,0);
      if (errno == ERANGE) {
	errno = 0;
	return SWIG_OverflowError;
      } else {
	if (*endptr == '\0') {
	  if (val) *val = v;
	  return SWIG_Str2NumCast(SWIG_OK);
	}
      }
    }
    if (!dispatch) {
      double d;
      int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d));
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
	if (val) *val = (unsigned long)(d);
	return res;
      }
    }
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UINT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (unsigned int)(v);
    }
  }  
  return res;
}


SWIGINTERN int
SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val)
{
  long v;
  int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v < INT_MIN || v > INT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = (int)(v);
    }
  }  
  return res;
}

SWIGINTERN void SUPLPOSINIT_set_capabilities(struct SUPLPOSINIT *self,unsigned int pos_tech,enum PrefMethod pref_method,unsigned int pos_proto){
	self->sETCapabilities.posTechnology.agpsSETassisted = (pos_tech & (1 << 0)) ? 1 : 0;
	self->sETCapabilities.posTechnology.agpsSETBased = (pos_tech & (1 << 1)) ? 1 : 0;
	self->sETCapabilities.posTechnology.autonomousGPS = (pos_tech & (1 << 2)) ? 1 : 0;
	self->sETCapabilities.posTechnology.aFLT = (pos_tech & (1 << 3)) ? 1 : 0;
	self->sETCapabilities.posTechnology.eCID = (pos_tech & (1 << 4)) ? 1 : 0;
	self->sETCapabilities.posTechnology.eOTD = (pos_tech & (1 << 5)) ? 1 : 0;
	self->sETCapabilities.posTechnology.oTDOA = (pos_tech & (1 << 6)) ? 1 : 0;

	self->sETCapabilities.prefMethod = pref_method;

	self->sETCapabilities.posProtocol.tia801 = pos_proto & (1 << 0) ? 1 : 0;
	self->sETCapabilities.posProtocol.rrlp = pos_proto & (1 << 1) ? 1 : 0;
	self->sETCapabilities.posProtocol.rrc = pos_proto & (1 << 2) ? 1 : 0;
    }
SWIGINTERN void SUPLPOSINIT_set_requested_assist_data(struct SUPLPOSINIT *self,unsigned int requested_assist_data){
	if(self->requestedAssistData != NULL) {
	    asn_DEF_RequestedAssistData.free_struct(&asn_DEF_RequestedAssistData, &self->requestedAssistData, 0);
	    self->requestedAssistData = NULL;
	}

	self->requestedAssistData = calloc(1, sizeof(*(self->requestedAssistData)));
	if( NULL == self->requestedAssistData )
	    croak( "Can't allocate memory for new RequestedAssistData object" );

	self->requestedAssistData->almanacRequested = requested_assist_data & (1 << 0) ? 1 : 0;
	self->requestedAssistData->utcModelRequested = requested_assist_data & (1 << 1) ? 1 : 0;
	self->requestedAssistData->ionosphericModelRequested = requested_assist_data & (1 << 2) ? 1 : 0;
	self->requestedAssistData->dgpsCorrectionsRequested = requested_assist_data & (1 << 3) ? 1 : 0;
	self->requestedAssistData->referenceLocationRequested = requested_assist_data & (1 << 4) ? 1 : 0;
	self->requestedAssistData->referenceTimeRequested = requested_assist_data & (1 << 5) ? 1 : 0;
	self->requestedAssistData->acquisitionAssistanceRequested = requested_assist_data & (1 << 6) ? 1 : 0;
	self->requestedAssistData->realTimeIntegrityRequested = requested_assist_data & (1 << 7) ? 1 : 0;
	self->requestedAssistData->navigationModelRequested = 0;
    }
SWIGINTERN void SUPLPOSINIT_update_requested_assist_data(struct SUPLPOSINIT *self,unsigned int requested_assist_data){
	if( NULL == self->requestedAssistData )
	    SUPLPOSINIT_set_requested_assist_data(self, requested_assist_data);
	else {
	    self->requestedAssistData->almanacRequested = requested_assist_data & (1 << 0) ? 1 : 0;
	    self->requestedAssistData->utcModelRequested = requested_assist_data & (1 << 1) ? 1 : 0;
	    self->requestedAssistData->ionosphericModelRequested = requested_assist_data & (1 << 2) ? 1 : 0;
	    self->requestedAssistData->dgpsCorrectionsRequested = requested_assist_data & (1 << 3) ? 1 : 0;
	    self->requestedAssistData->referenceLocationRequested = requested_assist_data & (1 << 4) ? 1 : 0;
	    self->requestedAssistData->referenceTimeRequested = requested_assist_data & (1 << 5) ? 1 : 0;
	    self->requestedAssistData->acquisitionAssistanceRequested = requested_assist_data & (1 << 6) ? 1 : 0;
	    self->requestedAssistData->realTimeIntegrityRequested = requested_assist_data & (1 << 7) ? 1 : 0;
	}
    }
SWIGINTERN void SUPLPOSINIT_set_requested_assist_navigation_modell(struct SUPLPOSINIT *self,long gpsWeek,long gpsToe,long nSAT,long toeLimit,SatelliteInfo_t *sat_info){
	if( NULL == self->requestedAssistData )
	    SUPLPOSINIT_set_requested_assist_data(self, 0);

	self->requestedAssistData->navigationModelRequested = 1;
	if(self->requestedAssistData->navigationModelData != NULL) {
	    asn_DEF_NavigationModel.free_struct(&asn_DEF_NavigationModel, &self->requestedAssistData->navigationModelData, 0);
	    self->requestedAssistData->navigationModelData = NULL;
	}

	self->requestedAssistData->navigationModelData = calloc(1, sizeof(*(self->requestedAssistData->navigationModelData)));
	if( NULL == self->requestedAssistData->navigationModelData )
	    croak( "Can't allocate memory for new NavigationModel object" );

	self->requestedAssistData->navigationModelData->gpsWeek = gpsWeek;
	self->requestedAssistData->navigationModelData->gpsToe = gpsToe;
	self->requestedAssistData->navigationModelData->nSAT = nSAT;
	self->requestedAssistData->navigationModelData->toeLimit = toeLimit;
	self->requestedAssistData->navigationModelData->satInfo = sat_info;
    }
SWIGINTERN void SUPLPOSINIT_set_gsm_location_info(struct SUPLPOSINIT *self,long mcc,long mnc,long lac,long cellid,long ta){
	LocationId_t *dst = &self->locationId;

        if( mcc < 0 || mcc > 999 )
            croak("MCC exceeds range (0..999)");

        if( mnc < 0 || mnc > 999 )
            croak("MNC exceeds range (0..999)");

        if( lac < 0 || lac > 65535 )
            croak("LAC exceeds range (0..65535)");

        if( cellid < 0 || cellid > 65535 )
            croak("CellId exceeds range (0..65535)");

	dst->cellInfo.present = CellInfo_PR_gsmCell;
	dst->cellInfo.choice.gsmCell.refMCC = mcc;
	dst->cellInfo.choice.gsmCell.refMNC = mnc;
	dst->cellInfo.choice.gsmCell.refLAC = lac;
	dst->cellInfo.choice.gsmCell.refCI = cellid;
        if( ta >= 0 && ta < 256 ) {
            dst->cellInfo.choice.gsmCell.tA = calloc(1, sizeof(*(dst->cellInfo.choice.gsmCell.tA)));
            dst->cellInfo.choice.gsmCell.tA[0] = ta;
        }
    }
SWIGINTERN void SUPLPOSINIT_set_wcdma_location_info(struct SUPLPOSINIT *self,long mcc,long mnc,long cellid){
	LocationId_t *dst = &self->locationId;

        if( mcc < 0 || mcc > 999 )
            croak("MCC exceeds range (0..999)");

        if( mnc < 0 || mnc > 999 )
            croak("MNC exceeds range (0..999)");

        if( cellid < 0 || cellid > 268435455 )
            croak("CellId exceeds range (0..268435455)");

	dst->cellInfo.present = CellInfo_PR_wcdmaCell;
	dst->cellInfo.choice.wcdmaCell.refMCC = mcc;
	dst->cellInfo.choice.wcdmaCell.refMNC = mnc;
	dst->cellInfo.choice.wcdmaCell.refUC = cellid;
	// dst->cellInfo.choice.wcdmaCell.frequencyInfo = ...;
	// dst->cellInfo.choice.wcdmaCell.primaryScramblingCode = ...;
	// dst->cellInfo.choice.wcdmaCell.measuredResultsList = ...;
    }
SWIGINTERN void SUPLPOSINIT_set_position_estimate(struct SUPLPOSINIT *self,time_t when,long latitudeSign,long latitude,long longitude){
	struct tm *gm_when;

        if( latitudeSign < 0 || latitudeSign > 1 )
            croak("latitudeSign must be 0 or 1");

        if( latitude < 0 || latitude > 179 )
            croak("latitude exceeds range (0..179)");

        if( longitude < 0 || longitude > 359 )
            croak("longitude exceeds range (0..359)");

        if( NULL == self->position ) {
            self->position = calloc(1, sizeof(*(self->position)));
            if( NULL == self->position )
                croak( "Can't allocate memory for new Position object" );
        }

	gm_when = gmtime(&when);
	asn_time2UT(&self->position->timestamp, gm_when, 1);
	self->position->positionEstimate.latitudeSign = latitudeSign;
	self->position->positionEstimate.latitude = latitude;
	self->position->positionEstimate.longitude = longitude;
    }
SWIGINTERN void delete_SUPLRESPONSE(struct SUPLRESPONSE *self){
	asn_DEF_SUPLRESPONSE.free_struct(&asn_DEF_SUPLRESPONSE, self, 1);
    }
SWIGINTERN char *SUPLRESPONSE_dump(struct SUPLRESPONSE *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLRESPONSE.print_struct(&asn_DEF_SUPLRESPONSE, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLRESPONSE_xml_dump(struct SUPLRESPONSE *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLRESPONSE, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN void delete_SUPLSTART(struct SUPLSTART *self){
	asn_DEF_SUPLSTART.free_struct(&asn_DEF_SUPLSTART, self, 1);
    }
SWIGINTERN char *SUPLSTART_dump(struct SUPLSTART *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_SUPLSTART.print_struct(&asn_DEF_SUPLSTART, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *SUPLSTART_xml_dump(struct SUPLSTART *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_SUPLSTART, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN struct ULP_PDU *new_ULP_PDU__SWIG_0(){
	struct ULP_PDU *newobj;
	newobj = calloc( 1, sizeof(*newobj) );
	if( NULL == newobj )
	    croak( "Can't allocate memory for new ULP_PDU object" );

	newobj->version.maj = 1;
	newobj->version.min = 0;
	newobj->version.servind = 0;
	return newobj;
    }

SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)
{
  static int init = 0;
  static swig_type_info* info = 0;
  if (!init) {
    info = SWIG_TypeQuery("_p_char");
    init = 1;
  }
  return info;
}


SWIGINTERN int
SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc)
{
  if (SvMAGICAL(obj)) {
     SV *tmp = sv_newmortal();
     SvSetSV(tmp, obj);
     obj = tmp;
  }
  if (SvPOK(obj)) {
    STRLEN len = 0;
    char *cstr = SvPV(obj, len); 
    size_t size = len + 1;
    if (cptr)  {
      if (alloc) {
	if (*alloc == SWIG_NEWOBJ) {
	  *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
	} else {
	  *cptr = cstr;
	  *alloc = SWIG_OLDOBJ;
	}
      }
    }
    if (psize) *psize = size;
    return SWIG_OK;
  } else {
    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
    if (pchar_descriptor) {
      char* vptr = 0; 
      if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
	if (cptr) *cptr = vptr;
	if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
	if (alloc) *alloc = SWIG_OLDOBJ;
	return SWIG_OK;
      }
    }
  }
  return SWIG_TypeError;
}





SWIGINTERNINLINE int
SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0);
  if (SWIG_IsOK(res) && val) *val = (size_t)(v);
  return res;
}

SWIGINTERN struct ULP_PDU *new_ULP_PDU__SWIG_1(char const *data,size_t data_len){
	struct ULP_PDU *newobj = NULL;
        asn_dec_rval_t rval;
        asn_per_data_t per_data = { data, 0, data_len * 8 };

        rval = asn_DEF_ULP_PDU.uper_decoder( 0, &asn_DEF_ULP_PDU,
                                        NULL, (void **)&newobj,
                                        &per_data);
        if (rval.code != RC_OK) {
                /* Free partially decoded rrlp */
                asn_DEF_ULP_PDU.free_struct(
                        &asn_DEF_ULP_PDU, newobj, 0);

                croak("error parsing SUPL pdu on byte %u with %s",
                        (unsigned)rval.consumed,
                        asn_dec_rval_code_str(rval.code));

                return NULL; /* unreached */
        }

        return newobj;
    }
SWIGINTERN void delete_ULP_PDU(struct ULP_PDU *self){
	asn_DEF_ULP_PDU.free_struct(&asn_DEF_ULP_PDU, self, 0);
    }
SWIGINTERN void ULP_PDU_set_version(struct ULP_PDU *self,int maj,int min,int servind){
	if( maj == 1 && min == 0 && servind == 0 ) {
	    self->version.maj = maj;
	    self->version.min = min;
	    self->version.servind = servind;
	}
	else {
	    croak( "Unsupported SUPL version" );
	}
    }
SWIGINTERN void ULP_PDU_copy_SlpSessionId(struct ULP_PDU *self,struct ULP_PDU *src_pdu){
	struct SlpSessionID *src, *dst;
	OCTET_STRING_t *srcaddr;
	OCTET_STRING_t *dstaddr;

	if( NULL == src_pdu )
	    return; /* nothing to do or croak? */

	src = src_pdu->sessionID.slpSessionID;

	if( NULL == src )
	    return; /* nothing to do */

	if( NULL != self->sessionID.slpSessionID ) {
	    asn_DEF_SlpSessionID.free_struct(&asn_DEF_SlpSessionID, &self->sessionID.slpSessionID, 1);
	    self->sessionID.slpSessionID = NULL;
	}
        else
            self->sessionID.slpSessionID = dst = calloc(1, sizeof(*(self->sessionID.slpSessionID)));
        if( NULL == dst )
            croak("Out of memory allocating new SlpSessionID");

	OCTET_STRING_fromBuf(&dst->sessionID, src->sessionID.buf, src->sessionID.size);
	switch (src->slpId.present)
	{
	case SLPAddress_PR_iPAddress:
	    dst->slpId.present = SLPAddress_PR_iPAddress;
	    switch (src->slpId.choice.iPAddress.present)
	    {
	    case IPAddress_PR_ipv4Address:
		dst->slpId.choice.iPAddress.present = IPAddress_PR_ipv4Address;
		srcaddr = &src->slpId.choice.iPAddress.choice.ipv4Address;
		dstaddr = &dst->slpId.choice.iPAddress.choice.ipv4Address;

		break;

	    case IPAddress_PR_ipv6Address:
		dst->slpId.choice.iPAddress.present = IPAddress_PR_ipv6Address;
		srcaddr = &src->slpId.choice.iPAddress.choice.ipv6Address;
		dstaddr = &dst->slpId.choice.iPAddress.choice.ipv6Address;

		break;

	    default:
		dst->slpId.choice.iPAddress.present = IPAddress_PR_NOTHING;
		croak("Invalid: source has slpSessionId but neither IP-Address nor FQDN content");

		break;
	    }

	    break;

	case SLPAddress_PR_fQDN:
	    dst->slpId.present = SLPAddress_PR_fQDN;
	    srcaddr = &src->slpId.choice.fQDN;
	    dstaddr = &dst->slpId.choice.fQDN;

	    break;

	default:
	    /* error */
	    dst->slpId.present = SLPAddress_PR_NOTHING;
	    croak("Invalid: source has slpSessionId but neither IP-Address nor FQDN content");

	    break;
	}
	OCTET_STRING_fromBuf(dstaddr, srcaddr->buf, srcaddr->size);
    }
SWIGINTERN void ULP_PDU_setSetSessionId_to_imsi(struct ULP_PDU *self,int sessionId,char *imsi){
	if( NULL != self->sessionID.setSessionID ) {
	    asn_DEF_SetSessionID.free_struct(&asn_DEF_SetSessionID, &self->sessionID.setSessionID, 1);
	    self->sessionID.setSessionID = NULL;
	}
        else
            self->sessionID.setSessionID = calloc(1, sizeof(*(self->sessionID.setSessionID)));

        self->sessionID.setSessionID->sessionId = sessionId;
        self->sessionID.setSessionID->setId.present = SETId_PR_imsi;
	encode_phone_numer(&self->sessionID.setSessionID->setId.choice.imsi, imsi, -1);
    }
SWIGINTERN void ULP_PDU_setSetSessionId_to_msisdn(struct ULP_PDU *self,int sessionId,char *msisdn){
	if( NULL != self->sessionID.setSessionID ) {
	    asn_DEF_SetSessionID.free_struct(&asn_DEF_SetSessionID, &self->sessionID.setSessionID, 1);
	    self->sessionID.setSessionID = NULL;
	}
        else
            self->sessionID.setSessionID = calloc(1, sizeof(*(self->sessionID.setSessionID)));

        self->sessionID.setSessionID->sessionId = sessionId;
	self->sessionID.setSessionID->setId.present = SETId_PR_msisdn;
	encode_phone_numer(&self->sessionID.setSessionID->setId.choice.msisdn, msisdn, -1);
    }
SWIGINTERN void ULP_PDU_copy_SetSessionId(struct ULP_PDU *self,struct ULP_PDU *src_pdu){
	struct SetSessionID *src, *dst;
        OCTET_STRING_t *srcaddr;
        OCTET_STRING_t *dstaddr;

	if( NULL == src_pdu )
            return; /* nothing to do */

	src = src_pdu->sessionID.setSessionID;
        if( NULL == src )
	    return; /* nothing to do */

	if( NULL != self->sessionID.setSessionID ) {
	    asn_DEF_SetSessionID.free_struct(&asn_DEF_SetSessionID, &self->sessionID.setSessionID, 1);
	    self->sessionID.setSessionID = NULL;
	}
        else
            self->sessionID.setSessionID = dst = calloc(1, sizeof(*dst));
        if( NULL == dst )
            croak("Out of memory allocating new SetSessionID");
        dst->sessionId = src->sessionId;
        switch( src->setId.present )
        {
        case SETId_PR_msisdn:
            dst->setId.present = SETId_PR_msisdn;
            dstaddr = &dst->setId.choice.msisdn;
            srcaddr = &src->setId.choice.msisdn;
            break;

        case SETId_PR_mdn:
            dst->setId.present = SETId_PR_mdn;
            dstaddr = &dst->setId.choice.mdn;
            srcaddr = &src->setId.choice.mdn;
            break;

        case SETId_PR_min:
            dst->setId.present = SETId_PR_min;
            dstaddr = (OCTET_STRING_t *)&dst->setId.choice.min;
            srcaddr = (OCTET_STRING_t *)&src->setId.choice.min;
            dst->setId.choice.min.bits_unused = src->setId.choice.min.bits_unused;
            break;

        case SETId_PR_imsi:
            dst->setId.present = SETId_PR_imsi;
            dstaddr = &dst->setId.choice.imsi;
            srcaddr = &src->setId.choice.imsi;
            break;

        case SETId_PR_nai:
            dst->setId.present = SETId_PR_nai;
            dstaddr = &dst->setId.choice.nai;
            srcaddr = &src->setId.choice.nai;
            break;

        case SETId_PR_iPAddress:
	    dst->setId.present = SETId_PR_iPAddress;
	    switch (src->setId.choice.iPAddress.present)
	    {
	    case IPAddress_PR_ipv4Address:
		dst->setId.choice.iPAddress.present = IPAddress_PR_ipv4Address;
		srcaddr = &src->setId.choice.iPAddress.choice.ipv4Address;
		dstaddr = &dst->setId.choice.iPAddress.choice.ipv4Address;

		break;

	    case IPAddress_PR_ipv6Address:
		dst->setId.choice.iPAddress.present = IPAddress_PR_ipv6Address;
		srcaddr = &src->setId.choice.iPAddress.choice.ipv6Address;
		dstaddr = &dst->setId.choice.iPAddress.choice.ipv6Address;

		break;

	    default:
		dst->setId.choice.iPAddress.present = IPAddress_PR_NOTHING;
		croak("Invalid source IP-Address");

		break;
	    }

	    break;
        default:
            srcaddr = NULL;
            break; /* keep SETId_PR_NOTHING */
        }

        if(srcaddr)
            OCTET_STRING_fromBuf(dstaddr, srcaddr->buf, srcaddr->size);

        return;
    }
SWIGINTERN void ULP_PDU_copy_SessionId(struct ULP_PDU *self,struct ULP_PDU *src_pdu){
        asn_DEF_SessionID.free_struct(&asn_DEF_SessionID, &self->sessionID, 1);

        if( NULL == src_pdu )
            return;

        if( src_pdu->sessionID.setSessionID )
            ULP_PDU_copy_SetSessionId(self, src_pdu);

        if( src_pdu->sessionID.slpSessionID )
            ULP_PDU_copy_SlpSessionId(self, src_pdu);

        return;
    }
SWIGINTERN void ULP_PDU_set_message_type(struct ULP_PDU *self,UlpMessage_PR kinda){
	if(self->message.present != UlpMessage_PR_NOTHING) {
	    asn_DEF_UlpMessage.free_struct(&asn_DEF_UlpMessage, &self->message, 1);
	    memset(&self->message, 0, sizeof(self->message));
	}

	switch(kinda) {
	case UlpMessage_PR_msSUPLINIT:
	    break;

	case UlpMessage_PR_msSUPLSTART:
	    break;

	case UlpMessage_PR_msSUPLRESPONSE:
	    break;

	case UlpMessage_PR_msSUPLPOSINIT:
	    break;

	case UlpMessage_PR_msSUPLPOS:
	    break;

	case UlpMessage_PR_msSUPLEND:
	    break;

	case UlpMessage_PR_msSUPLAUTHREQ:
	    break;

	case UlpMessage_PR_msSUPLAUTHRESP:
	    break;

	default:
	    croak("Invalid value for message type %d, expecting between %d .. %d",
		    (int)kinda,
		    (int)UlpMessage_PR_msSUPLINIT,
		    (int)UlpMessage_PR_msSUPLAUTHRESP);

	    break;
	}

	self->message.present = kinda;
    }
SWIGINTERN MsgBuffer ULP_PDU_encode(struct ULP_PDU *self){
	return encode_ulp_pdu(self);
    }
SWIGINTERN char *ULP_PDU_dump(struct ULP_PDU *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_ULP_PDU.print_struct(&asn_DEF_ULP_PDU, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *ULP_PDU_xml_dump(struct ULP_PDU *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_ULP_PDU, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
typedef union {
  SUPLINIT_t	 msSUPLINIT;
  SUPLSTART_t	 msSUPLSTART;
  SUPLRESPONSE_t	 msSUPLRESPONSE;
  SUPLPOSINIT_t	 msSUPLPOSINIT;
  SUPLPOS_t	 msSUPLPOS;
  SUPLEND_t	 msSUPLEND;
  SUPLAUTHREQ_t	 msSUPLAUTHREQ;
  SUPLAUTHRESP_t	 msSUPLAUTHRESP;
  
} UlpMessage_t_choice;


typedef union {
  IPAddress_t	 iPAddress;
  FQDN_t	 fQDN;
  
} SLPAddress_t_choice;


SWIGINTERN void delete_SLPAddress(struct SLPAddress *self){
	asn_DEF_SLPAddress.free_struct(&asn_DEF_SLPAddress, self, 1);
    }
SWIGINTERN void SLPAddress_set_ipaddress(struct SLPAddress *self,IPAddress_t ipaddr){
	self->present = SLPAddress_PR_iPAddress;
	self->choice.iPAddress = ipaddr;
    }
SWIGINTERN void SLPAddress_set_fqdn(struct SLPAddress *self,char const *buf){
	self->present = SLPAddress_PR_fQDN;
	OCTET_STRING_fromString(&self->choice.fQDN, buf);
    }
SWIGINTERN int SLPAddress_is_ipv4(struct SLPAddress *self){
	return (self->present == SLPAddress_PR_iPAddress) &&
	       (((self->choice.iPAddress.present == IPAddress_PR_ipv4Address) && 
	         (self->choice.iPAddress.choice.ipv4Address.size == 4)));
    }
SWIGINTERN int SLPAddress_is_ipv6(struct SLPAddress *self){
	return (self->present == SLPAddress_PR_iPAddress) &&
	       (((self->choice.iPAddress.present == IPAddress_PR_ipv6Address) && 
	         (self->choice.iPAddress.choice.ipv6Address.size == 16)));
    }
SWIGINTERN int SLPAddress_is_ip(struct SLPAddress *self){
	return SLPAddress_is_ipv4(self) || SLPAddress_is_ipv6(self);
    }
SWIGINTERN int SLPAddress_is_fqdn(struct SLPAddress *self){
	return (self->present == SLPAddress_PR_iPAddress) &&
	       (self->choice.fQDN.size > 0 && self->choice.fQDN.buf != NULL);
    }
SWIGINTERN int SLPAddress_is_valid(struct SLPAddress *self){
	return SLPAddress_is_ip(self) || SLPAddress_is_fqdn(self);
    }
typedef union {
  OCTET_STRING_t	 tia801payload;
  OCTET_STRING_t	 rrcPayload;
  OCTET_STRING_t	 rrlpPayload;
  
} PosPayLoad_t_choice;


typedef union {
  OCTET_STRING_t	 msisdn;
  OCTET_STRING_t	 mdn;
  BIT_STRING_t	 min;
  OCTET_STRING_t	 imsi;
  IA5String_t	 nai;
  IPAddress_t	 iPAddress;
  
} SETId_t_choice;



enum {
    posEstimate_type_ellipsoid_point = 0, // 0000
    posEstimate_type_ellipsoid_point_with_uncertainty_circle = 1, // 0001
    posEstimate_type_ellipsoid_point_with_uncertainty_ellipse = 3, // 0011
    posEstimate_type_polygon = 5, // 0101
    posEstimate_type_ellipsoid_point_with_altitude = 8, // 1000
    posEstimate_type_ellipsoid_point_with_altitude_and_uncertainty_ellipse = 9, // 1001
    posEstimate_type_ellipsoid_arc = 10, // 1010
};

struct ellipsoid_point {
    enum {
        ellipsoid_point_north = 0,
        ellipsoid_point_south = 1
    } sign_of_latitude;
    unsigned int latitude;
    unsigned int longitude;
};

#if __BYTE_ORDER == __LITTLE_ENDIAN
#define MAKE_OCTET_TUPLE2(i1,l1,i2,l2) \
uint8_t i2:l2; \
uint8_t i1:l1
#elif __BYTE_ORDER == __BIG_ENDIAN
#define MAKE_OCTET_TUPLE2(i1,l1,i2,l2) \
uint8_t i1:l1; \
uint8_t i2:l2
#else
# error "Please fix <bits/endian.h>"
#endif

struct ellipsoid_point_shape_data {
    MAKE_OCTET_TUPLE2(sign,1, latitude_high,7);
    uint8_t latitude_mid;
    uint8_t latitude_low;
    uint8_t longitude_high;
    uint8_t longitude_mid;
    uint8_t longitude_low;
};

struct ellipsoid_point_shape {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
};

struct ellipsoid_point_shape_with_uncertainy_circle {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
    MAKE_OCTET_TUPLE2(spare,1, uncertainty_code,7);
};

struct ellipsoid_point_shape_with_uncertainy_ellipse {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
    MAKE_OCTET_TUPLE2(spare0,1, uncertainty_semi_major,7);
    MAKE_OCTET_TUPLE2(spare1,1, uncertainty_semi_minor,7);
    uint8_t orientation_of_major_axis;
    MAKE_OCTET_TUPLE2(spare2,1, confidence,7);
};

struct polygon {
    MAKE_OCTET_TUPLE2(type,4, npoints,4);
    struct ellipsoid_point_shape_data points[];
};

enum {
    altitude_expresses_height = 0,
    altitude_expresses_depth = 1
};

struct ellipsoid_point_shape_with_altitude {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
    MAKE_OCTET_TUPLE2(altitude_direction,1, altitude_high,7);
    uint8_t altitude_low;
};

struct ellipsoid_point_shape_with_altitude_and_uncertainy_ellipse {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
    MAKE_OCTET_TUPLE2(altitude_direction,1, altitude_high,7);
    uint8_t altitude_low;
    MAKE_OCTET_TUPLE2(spare0,1, uncertainty_semi_major,7);
    MAKE_OCTET_TUPLE2(spare1,1, uncertainty_semi_minor,7);
    uint8_t orientation_of_major_axis;
    MAKE_OCTET_TUPLE2(spare2,1, uncertainty_altitude,7);
    MAKE_OCTET_TUPLE2(spare3,1, confidence,7);
};

struct ellipsoid_arc {
    MAKE_OCTET_TUPLE2(type,4, padding,4);
    struct ellipsoid_point_shape_data ellipsoid_point;
    uint8_t inner_radius_high;
    uint8_t inner_radius_low;
    MAKE_OCTET_TUPLE2(spare0,1, uncertainty_radius,7);
    uint8_t offset_angle;
    uint8_t included_angle;
    MAKE_OCTET_TUPLE2(space1,1, confidence,7);
};

static double
get_fixpoint_arith_multiplier() {
    double fpam = 1E6;
    return fpam;
}

static void
encode_ellipsoid_point(struct ellipsoid_point_shape_data *point, unsigned int south, unsigned int latitude, unsigned int longitude) {
    double dtmp;
    unsigned int utmp;
    int itmp;

    point->sign = south;

    dtmp = latitude;
    dtmp /= get_fixpoint_arith_multiplier();
    dtmp *= (1<<23);
    dtmp /= 90;
    utmp = (unsigned int)dtmp;
    point->latitude_high = (utmp >> 16) & 0x7F;
    point->latitude_mid = (utmp >> 8) & 0xFF;
    point->latitude_low = utmp & 0xFF;

    dtmp = longitude;
    dtmp /= get_fixpoint_arith_multiplier();
    dtmp *= (1<<24);
    dtmp /= 360;
    itmp = (int)dtmp;
    point->longitude_high = (itmp >> 16) & 0xFF;
    point->longitude_mid = (itmp >> 8) & 0xFF;
    point->longitude_low = itmp & 0xFF;
}

static unsigned int
calc_uncertainty_code(unsigned int uncertainty, unsigned int C, double x) {
    double tmp;
    double num, denum;

    tmp = uncertainty;
    tmp /= C;
    tmp += 1;
    num = log(tmp);

    tmp = 1 + x;
    denum = log(tmp);

    tmp = num/denum;
    return (unsigned int)tmp;
}

static void *
prepare_geographical_information_buf(OCTET_STRING_t *posEstimate, size_t shape_size, const char *type_for_err) {
    asn_DEF_OCTET_STRING.free_struct(&asn_DEF_OCTET_STRING, posEstimate, 1);

    posEstimate->buf = calloc( 1, shape_size );
    if( NULL == posEstimate->buf )
        croak("Couldn't allocate memory to encode %s", type_for_err);
    posEstimate->size = shape_size;

    return posEstimate->buf;
}

SWIGINTERN struct RRLP_PDU *new_RRLP_PDU__SWIG_0(){
	struct RRLP_PDU *newobj;
        newobj = calloc( 1, sizeof(*newobj) );
        if( NULL == newobj )
            croak( "Can't allocate memory for new RRLP_PDU object" );

        return newobj;
    }
SWIGINTERN struct RRLP_PDU *new_RRLP_PDU__SWIG_1(char const *data,size_t data_len){
	struct RRLP_PDU *newobj = NULL;
        asn_dec_rval_t rval;
        asn_per_data_t per_data = { data, 0, data_len * 8 };

        rval = asn_DEF_RRLP_PDU.uper_decoder( 0, &asn_DEF_RRLP_PDU,
                                        NULL, (void **)&newobj,
                                        &per_data);
        if (rval.code != RC_OK) {
                /* Free partially decoded rrlp */
                asn_DEF_RRLP_PDU.free_struct(
                        &asn_DEF_RRLP_PDU, newobj, 0);

                croak("error parsing RRLP pdu on byte %u with %s",
                        (unsigned)rval.consumed,
                        asn_dec_rval_code_str(rval.code));

                return NULL; /* unreached */
        }

        return newobj;
    }
SWIGINTERN void delete_RRLP_PDU(struct RRLP_PDU *self){
	asn_DEF_RRLP_PDU.free_struct(&asn_DEF_RRLP_PDU, self, 1);
    }
SWIGINTERN MsgBuffer RRLP_PDU_encode(struct RRLP_PDU *self){
	/* asn_per_data_t per_data; */
	struct per_target_buffer per_buf;
	asn_enc_rval_t rval = { 0 };
	MsgBuffer retbuf = { NULL, -1 };

	per_buf.buf = calloc( 4096, sizeof(uint8_t) );
	per_buf.pos = 0;
	per_buf.size = 4096;
	rval = uper_encode(&asn_DEF_RRLP_PDU, self, &per_output, &per_buf);

	if (rval.encoded == -1) {
		free(per_buf.buf);
		croak("error encoding RRLP pdu %s: %s",
			rval.failed_type->name,
			strerror(errno));

		return retbuf; /* unreached */
	}

	retbuf.buf = per_buf.buf;
	retbuf.size = per_buf.pos;

	return retbuf;
    }
SWIGINTERN char *RRLP_PDU_dump(struct RRLP_PDU *self){
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	asn_DEF_RRLP_PDU.print_struct(&asn_DEF_RRLP_PDU, self, 4, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN char *RRLP_PDU_xml_dump(struct RRLP_PDU *self){
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf = { calloc( 4096, sizeof(*per_buf.buf) ), 0, 4096 };

	rval = xer_encode( &asn_DEF_RRLP_PDU, self, XER_F_BASIC, &per_output, &per_buf);

	return (char *)per_buf.buf;
    }
SWIGINTERN void RRLP_PDU_set_component_type(struct RRLP_PDU *self,RRLP_Component_PR kind_of){
	if(self->component.present != RRLP_Component_PR_NOTHING) {
	    asn_DEF_RRLP_PDU.free_struct(&asn_DEF_RRLP_PDU, &self->component, 1);
	    memset(&self->component, 0, sizeof(self->component));
	}

        switch(kind_of)
        {
        case RRLP_Component_PR_msrPositionReq:
            break;
        case RRLP_Component_PR_msrPositionRsp:
            break;
        case RRLP_Component_PR_assistanceData:
            break;
        case RRLP_Component_PR_assistanceDataAck:
            break;
        case RRLP_Component_PR_protocolError:
            break;
        case RRLP_Component_PR_posCapabilityReq:
            break;
        case RRLP_Component_PR_posCapabilityRsp:
            break;
	default:
	    croak("Invalid value for component type %d, expecting between %d .. %d",
		    (int)kind_of,
		    (int)RRLP_Component_PR_msrPositionReq,
		    (int)RRLP_Component_PR_posCapabilityRsp);

	    break;
        }

        self->component.present = kind_of;

        return;
    }
typedef union {
  MsrPosition_Req_t	 msrPositionReq;
  MsrPosition_Rsp_t	 msrPositionRsp;
  AssistanceData_t	 assistanceData;
  NULL_t	 assistanceDataAck;
  ProtocolError_t	 protocolError;
  
  PosCapability_Req_t	 posCapabilityReq;
  PosCapability_Rsp_t	 posCapabilityRsp;
} RRLP_Component_t_choice;


typedef union {
  AccuracyOpt_t	 msAssisted;
  Accuracy_t	 msBased;
  Accuracy_t	 msBasedPref;
  Accuracy_t	 msAssistedPref;
} MethodType_t_choice;


SWIGINTERN struct LocationInfo *new_LocationInfo__SWIG_0(long refFrame,unsigned int fixType){
	struct LocationInfo *newobj;
        if( refFrame < 0 || refFrame > 65535 )
            croak("refFrame exceeds range (0..65535)");

        if( fixType != FixType_twoDFix && fixType != FixType_threeDFix )
	    croak( "fixType must be one of following values: FixType_twoDFix, FixType_threeDFix" );

	newobj = calloc( 1, sizeof(*newobj) );
	if( NULL == newobj )
	    croak( "Can't allocate memory for new LocationInfo object" );

	newobj->refFrame = refFrame;
        newobj->fixType = fixType;

        return newobj;
    }
SWIGINTERN struct LocationInfo *new_LocationInfo__SWIG_1(long refFrame,long gpsTOW,unsigned int fixType){
	struct LocationInfo *newobj;
        if( refFrame < 0 || refFrame > 65535 )
            croak("refFrame exceeds range (0..65535)");

        if( gpsTOW < 0 || gpsTOW > 14399999 )
            croak("gpsTOW exceeds range (0..14399999)");

        if( fixType != FixType_twoDFix && fixType != FixType_threeDFix )
	    croak( "fixType must be one of following values: FixType_twoDFix, FixType_threeDFix" );

	newobj = calloc( 1, sizeof(*newobj) );
	if( NULL == newobj )
	    croak( "Can't allocate memory for new LocationInfo object" );

        newobj->gpsTOW = calloc( 1, sizeof(*newobj) );;
	if( NULL == newobj->gpsTOW ) {
            asn_DEF_LocationInfo.free_struct(&asn_DEF_LocationInfo, newobj, 0);
	    croak( "Can't allocate memory for new gpsTOW object" );
        }
	newobj->refFrame = refFrame;
	*(newobj->gpsTOW) = gpsTOW;
        newobj->fixType = fixType;

        return newobj;
    }
SWIGINTERN void delete_LocationInfo(struct LocationInfo *self){
	asn_DEF_LocationInfo.free_struct(&asn_DEF_LocationInfo, self, 0);
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_0(struct LocationInfo *self,unsigned int south,unsigned int latitude,unsigned int longitude){
        struct ellipsoid_point_shape *target;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid point");
        target->type = posEstimate_type_ellipsoid_point;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_1(struct LocationInfo *self,unsigned int south,unsigned int latitude,unsigned int longitude,unsigned int uncertainty){
        struct ellipsoid_point_shape_with_uncertainy_circle *target;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid point with uncertainy circle");
        target->type = posEstimate_type_ellipsoid_point_with_uncertainty_circle;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);
        // uncertainty = C((1 + x )^K − 1) .. with C = 10 and x = 0,1.
        target->uncertainty_code = calc_uncertainty_code(uncertainty, 10, 0.1);

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_2(struct LocationInfo *self,int south,unsigned int latitude,unsigned int longitude,unsigned int uncertainty_semi_major,unsigned int uncertainty_semi_minor,unsigned int orientation_of_major_axis,unsigned int confidence){
        struct ellipsoid_point_shape_with_uncertainy_ellipse *target;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid point with uncertainy ellipse");
        target->type = posEstimate_type_ellipsoid_point_with_uncertainty_ellipse;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);
        // uncertainty = C((1 + x )^K − 1) .. with C = 10 and x = 0,1.
        target->uncertainty_semi_major = calc_uncertainty_code(uncertainty_semi_major, 10, 0.1);
        target->uncertainty_semi_minor = calc_uncertainty_code(uncertainty_semi_minor, 10, 0.1);
        target->orientation_of_major_axis = orientation_of_major_axis / 2;
        target->confidence = confidence;

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_3(struct LocationInfo *self,struct ellipsoid_point *points,unsigned int amount){
        struct polygon *target;
        unsigned i;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target) + amount * sizeof(target->points[0]), "polygon");
        target->type = posEstimate_type_polygon;
        target->npoints = amount;

        for( i = 0; i < amount; ++i ) {
            encode_ellipsoid_point( &target->points[i], points[i].sign_of_latitude, points[i].latitude, points[i].longitude);
        }

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_4(struct LocationInfo *self,int south,unsigned int latitude,unsigned int longitude,int depth_altitude,unsigned int altitude){
        struct ellipsoid_point_shape_with_altitude *target;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid point with altitude");
        target->type = posEstimate_type_ellipsoid_point_with_altitude;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);

        target->altitude_direction = depth_altitude;
        target->altitude_high = (altitude >> 8) & 0x7F;
        target->altitude_low = altitude & 0xFF;

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_5(struct LocationInfo *self,int south,unsigned int latitude,unsigned int longitude,int depth_altitude,unsigned int altitude,unsigned int uncertainty_semi_major,unsigned int uncertainty_semi_minor,unsigned int orientation_of_major_axis,unsigned int uncertainty_altitude,unsigned int confidence){
        struct ellipsoid_point_shape_with_altitude_and_uncertainy_ellipse *target;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid point with altitude and uncertainy ellipse");
        target->type = posEstimate_type_ellipsoid_point_with_altitude_and_uncertainty_ellipse;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);

        target->altitude_direction = depth_altitude;
        target->altitude_high = (altitude >> 8) & 0x7F;
        target->altitude_low = altitude & 0xFF;

        // uncertainty = C((1 + x )^K − 1) .. with C = 10 and x = 0,1.
        target->uncertainty_semi_major = calc_uncertainty_code(uncertainty_semi_major, 10, 0.1);
        target->uncertainty_semi_minor = calc_uncertainty_code(uncertainty_semi_minor, 10, 0.1);
        target->orientation_of_major_axis = orientation_of_major_axis / 2;

        // Uncertainty Altitude h = C((1 + x )^K − 1) .. with C = 45 and x = 0,025.
        target->uncertainty_altitude = calc_uncertainty_code(uncertainty_altitude, 45, 0.025);

        target->confidence = confidence;

        return;
    }
SWIGINTERN void LocationInfo_set_posEstimate__SWIG_6(struct LocationInfo *self,int south,unsigned int latitude,unsigned int longitude,unsigned int inner_radius,unsigned int uncertainty_radius,unsigned int offset_angle,unsigned int included_angle,unsigned int confidence){
        struct ellipsoid_arc *target;
        uint16_t inner;

	target = prepare_geographical_information_buf(&self->posEstimate, sizeof(*target), "ellipsoid arc");
        target->type = posEstimate_type_ellipsoid_arc;

        encode_ellipsoid_point( &target->ellipsoid_point, south, latitude, longitude);

        inner = inner_radius / 5;
        target->inner_radius_high = (inner >> 8) & 0xFF;
        target->inner_radius_low = inner & 0xFF;

        // uncertainty = C((1 + x )^K − 1) .. with C = 10 and x = 0,1.
        target->uncertainty_radius = calc_uncertainty_code(uncertainty_radius, 10, 0.1);

        target->offset_angle = offset_angle / 2;
        target->included_angle = (included_angle + 1) / 2; // good enough ?

        target->confidence = confidence;
    }
SWIGINTERN double LocationInfo_get_fixpoint_arith_multiplier(){
        return get_fixpoint_arith_multiplier();
    }

SWIGINTERNINLINE SV *
SWIG_From_double  SWIG_PERL_DECL_ARGS_1(double value)
{
  return sv_2mortal(newSVnv(value));
}


static int
per_output(const void *data, size_t size, void *op_key)
{
	struct per_target_buffer *pb = op_key;
	if (pb->size < (pb->pos + size)) {
		uint8_t *tmp = realloc(pb->buf, pb->size + 4096);
		if (!tmp) {
			/* XXX report error */
			abort();
		}
		pb->buf = tmp;
		pb->size += 4096;
	}
	memcpy( pb->buf + pb->pos, data, size );
	pb->pos += size;

	return 0;
}

static const char *
asn_dec_rval_code_str(enum asn_dec_rval_code_e code)
{
    switch(code)
    {
    case RC_OK:
	return "RC_OK - Decoded successfully";

    case RC_WMORE:
	return "RC_WMORE - More data expected, call again";

    case RC_FAIL:
	return "RC_FAIL - Failure to decode data";

    default:
	return "Unknown decoder error code";
    }
}

static MsgBuffer
encode_ulp_pdu(struct ULP_PDU *pdu)
{
	/* asn_per_data_t per_data; */
	struct per_target_buffer per_buf;
	asn_enc_rval_t rval = { 0 };
	MsgBuffer retbuf = { NULL, -1 };

	if (NULL == pdu)
		return retbuf;

	per_buf.buf = calloc( 4096, sizeof(uint8_t) );
	per_buf.pos = 0;
	per_buf.size = 4096;
	rval = uper_encode(&asn_DEF_ULP_PDU, pdu, &per_output, &per_buf);

	if (rval.encoded == -1) {
		free(per_buf.buf);
		croak("error encoding ULP pdu %s: %s",
			rval.failed_type->name,
			strerror(errno));

		return retbuf; /* unreached */
	}

	if (0 == pdu->length) {
		pdu->length = per_buf.pos;
		per_buf.pos = 0;

		/* encode 2nd with length set */
		rval = uper_encode( &asn_DEF_ULP_PDU, pdu, &per_output, &per_buf);
	}

#if 0
	xer_fprint(stdout, &asn_DEF_ULP_PDU, pdu);
	fflush(stdout);
#endif

	if (rval.encoded == -1) {
		free(per_buf.buf);
		croak("error encoding ULP pdu %s: %s",
			rval.failed_type->name,
			strerror(errno));

		return retbuf; /* unreached */
	}

	retbuf.buf = per_buf.buf;
	retbuf.size = per_buf.pos;

	return retbuf;
}

static struct ULP_PDU *
decode_ulp_pdu(MsgBuffer buf)
{
	struct ULP_PDU *ulp_pdu = NULL;
	asn_dec_rval_t rval;
	asn_per_data_t per_data = { buf.buf, 0, ((size_t)buf.size) * 8 };

	rval = asn_DEF_ULP_PDU.uper_decoder( 0, &asn_DEF_ULP_PDU,
					NULL, (void **)&ulp_pdu,
					&per_data);
	if (rval.code != RC_OK) {
		/* Free partially decoded ulp-pdu */
		asn_DEF_ULP_PDU.free_struct(
			&asn_DEF_ULP_PDU, ulp_pdu, 0);

		croak("error parsing ULP pdu on byte %u with %s",
			(unsigned)rval.consumed,
			asn_dec_rval_code_str(rval.code));

		return NULL; /* unreached */
	}

#if 0
	xer_fprint(stdout, &asn_DEF_ULP_PDU, ulp_pdu);
#endif

	return ulp_pdu;
}

static char *
ulp_pdu_to_xml(MsgBuffer buf)
{
	asn_enc_rval_t rval = { 0 };
	struct per_target_buffer per_buf;
	struct ULP_PDU *tmp_pdu = decode_ulp_pdu(buf);

	if (NULL == tmp_pdu)
		return NULL;

	per_buf.buf = calloc( 4096, sizeof(uint8_t) );
	per_buf.pos = 0;
	per_buf.size = 4096;
	rval = xer_encode( &asn_DEF_ULP_PDU, tmp_pdu, XER_F_BASIC, &per_output, &per_buf);

	asn_DEF_ULP_PDU.free_struct(&asn_DEF_ULP_PDU, tmp_pdu, 0);

	if (rval.encoded == -1) {
		free(per_buf.buf);
		croak("error encoding ULP pdu %s: %s",
			rval.failed_type->name,
			strerror(errno));

		return NULL; /* unreached */
	}

	return (char *)per_buf.buf;
}

static char *
dump_ulp_pdu(MsgBuffer buf)
{
	struct per_target_buffer per_buf;
	struct ULP_PDU *tmp_pdu = decode_ulp_pdu(buf);

	if (NULL == tmp_pdu)
		return NULL;

	per_buf.buf = calloc( 4096, sizeof(uint8_t) );
	per_buf.pos = 0;
	per_buf.size = 4096;
	asn_DEF_ULP_PDU.print_struct( &asn_DEF_ULP_PDU, tmp_pdu, 4, &per_output, &per_buf);
	asn_DEF_ULP_PDU.free_struct(&asn_DEF_ULP_PDU, tmp_pdu, 0);

	return (char *)per_buf.buf;
}


#ifdef __cplusplus
extern "C" {
#endif

#ifdef PERL_OBJECT
#define MAGIC_CLASS _wrap_Net__Radio__Location__SUPL__XS_var::
class _wrap_Net__Radio__Location__SUPL__XS_var : public CPerlObj {
public:
#else
#define MAGIC_CLASS
#endif
SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) {
    MAGIC_PPERL
    croak("Value is read-only.");
    return 0;
}
SWIGCLASS_STATIC int _wrap_asn_DEF_SessionID_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_SessionID""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_SessionID""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_SessionID = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SessionID_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_SessionID));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SetSessionID_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_SetSessionID""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_SetSessionID""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_SetSessionID = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SetSessionID_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_SetSessionID));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SETId_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_SETId""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_SETId""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_SETId = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SETId_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_SETId));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SlpSessionID_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_SlpSessionID""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_SlpSessionID""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_SlpSessionID = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_SlpSessionID_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_SlpSessionID));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_AssistanceData_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_AssistanceData""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_AssistanceData""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_AssistanceData = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_AssistanceData_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_AssistanceData));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_PosCapability_Req_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_PosCapability_Req""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_PosCapability_Req""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_PosCapability_Req = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_PosCapability_Req_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_PosCapability_Req));
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_PosCapability_Rsp_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_asn_TYPE_descriptor_t,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""asn_DEF_PosCapability_Rsp""' of type '""asn_TYPE_descriptor_t""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""asn_DEF_PosCapability_Rsp""' of type '""asn_TYPE_descriptor_t""'");
    } else {
      asn_DEF_PosCapability_Rsp = *((asn_TYPE_descriptor_t *)(argp));
    }
  }
fail:
  return 1;
}


SWIGCLASS_STATIC int _wrap_asn_DEF_PosCapability_Rsp_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) {
  MAGIC_PPERL
  sv_setiv(SvRV(sv), PTR2IV(&asn_DEF_PosCapability_Rsp));
  return 1;
}




#ifdef PERL_OBJECT
};
#endif

#ifdef __cplusplus
}
#endif

#ifdef __cplusplus
extern "C" {
#endif
XS(_wrap_SUPLAUTHREQ_t_sETNonce_set) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    SETNonce_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_sETNonce_set(self,sETNonce);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_sETNonce_set" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_SETNonce_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLAUTHREQ_t_sETNonce_set" "', argument " "2"" of type '" "SETNonce_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLAUTHREQ_t_sETNonce_set" "', argument " "2"" of type '" "SETNonce_t""'");
      } else {
        arg2 = *((SETNonce_t *)(argp2));
      }
    }
    if (arg1) (arg1)->sETNonce = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHREQ_t_sETNonce_get) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETNonce_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_sETNonce_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_sETNonce_get" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    result =  ((arg1)->sETNonce);
    ST(argvi) = SWIG_NewPointerObj((SETNonce_t *)memcpy((SETNonce_t *)malloc(sizeof(SETNonce_t)),&result,sizeof(SETNonce_t)), SWIGTYPE_p_SETNonce_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHREQ_t_keyIdentity2_set) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    KeyIdentity2_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_keyIdentity2_set(self,keyIdentity2);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_keyIdentity2_set" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_KeyIdentity2_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLAUTHREQ_t_keyIdentity2_set" "', argument " "2"" of type '" "KeyIdentity2_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLAUTHREQ_t_keyIdentity2_set" "', argument " "2"" of type '" "KeyIdentity2_t""'");
      } else {
        arg2 = *((KeyIdentity2_t *)(argp2));
      }
    }
    if (arg1) (arg1)->keyIdentity2 = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHREQ_t_keyIdentity2_get) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    KeyIdentity2_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_keyIdentity2_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_keyIdentity2_get" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    result =  ((arg1)->keyIdentity2);
    ST(argvi) = SWIG_NewPointerObj((KeyIdentity2_t *)memcpy((KeyIdentity2_t *)malloc(sizeof(KeyIdentity2_t)),&result,sizeof(KeyIdentity2_t)), SWIGTYPE_p_KeyIdentity2_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLAUTHREQ_t) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLAUTHREQ_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLAUTHREQ_t" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    delete_SUPLAUTHREQ(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHREQ_t_dump) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_dump" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    result = (char *)SUPLAUTHREQ_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHREQ_t_xml_dump) {
  {
    struct SUPLAUTHREQ *arg1 = (struct SUPLAUTHREQ *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHREQ_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHREQ_t_xml_dump" "', argument " "1"" of type '" "struct SUPLAUTHREQ *""'"); 
    }
    arg1 = (struct SUPLAUTHREQ *)(argp1);
    result = (char *)SUPLAUTHREQ_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLAUTHREQ_t) {
  {
    int argvi = 0;
    struct SUPLAUTHREQ *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLAUTHREQ_t();");
    }
    result = (struct SUPLAUTHREQ *)calloc(1, sizeof(struct SUPLAUTHREQ));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLAUTHREQ, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_sPCAuthKey_set) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    struct SPCAuthKey *arg2 = (struct SPCAuthKey *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_sPCAuthKey_set(self,sPCAuthKey);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_sPCAuthKey_set" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SPCAuthKey, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLAUTHRESP_t_sPCAuthKey_set" "', argument " "2"" of type '" "struct SPCAuthKey *""'"); 
    }
    arg2 = (struct SPCAuthKey *)(argp2);
    if (arg1) (arg1)->sPCAuthKey = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_sPCAuthKey_get) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SPCAuthKey *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_sPCAuthKey_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_sPCAuthKey_get" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    result = (struct SPCAuthKey *) ((arg1)->sPCAuthKey);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SPCAuthKey, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_keyIdentity3_set) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    KeyIdentity3_t *arg2 = (KeyIdentity3_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_keyIdentity3_set(self,keyIdentity3);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_keyIdentity3_set" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_KeyIdentity3_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLAUTHRESP_t_keyIdentity3_set" "', argument " "2"" of type '" "KeyIdentity3_t *""'"); 
    }
    arg2 = (KeyIdentity3_t *)(argp2);
    if (arg1) (arg1)->keyIdentity3 = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_keyIdentity3_get) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    KeyIdentity3_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_keyIdentity3_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_keyIdentity3_get" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    result = (KeyIdentity3_t *) ((arg1)->keyIdentity3);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KeyIdentity3_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_statusCode_set) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    StatusCode_t *arg2 = (StatusCode_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_statusCode_set(self,statusCode);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_statusCode_set" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_StatusCode_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLAUTHRESP_t_statusCode_set" "', argument " "2"" of type '" "StatusCode_t *""'"); 
    }
    arg2 = (StatusCode_t *)(argp2);
    if (arg1) (arg1)->statusCode = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_statusCode_get) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    StatusCode_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_statusCode_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_statusCode_get" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    result = (StatusCode_t *) ((arg1)->statusCode);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StatusCode_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLAUTHRESP_t) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLAUTHRESP_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLAUTHRESP_t" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    delete_SUPLAUTHRESP(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_dump) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_dump" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    result = (char *)SUPLAUTHRESP_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLAUTHRESP_t_xml_dump) {
  {
    struct SUPLAUTHRESP *arg1 = (struct SUPLAUTHRESP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLAUTHRESP_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLAUTHRESP_t_xml_dump" "', argument " "1"" of type '" "struct SUPLAUTHRESP *""'"); 
    }
    arg1 = (struct SUPLAUTHRESP *)(argp1);
    result = (char *)SUPLAUTHRESP_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLAUTHRESP_t) {
  {
    int argvi = 0;
    struct SUPLAUTHRESP *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLAUTHRESP_t();");
    }
    result = (struct SUPLAUTHRESP *)calloc(1, sizeof(struct SUPLAUTHRESP));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLAUTHRESP, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_position_set) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    struct Position *arg2 = (struct Position *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLEND_t_position_set(self,position);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_position_set" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Position, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLEND_t_position_set" "', argument " "2"" of type '" "struct Position *""'"); 
    }
    arg2 = (struct Position *)(argp2);
    if (arg1) (arg1)->position = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_position_get) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Position *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLEND_t_position_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_position_get" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    result = (struct Position *) ((arg1)->position);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Position, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_statusCode_set) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    StatusCode_t *arg2 = (StatusCode_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLEND_t_statusCode_set(self,statusCode);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_statusCode_set" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_StatusCode_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLEND_t_statusCode_set" "', argument " "2"" of type '" "StatusCode_t *""'"); 
    }
    arg2 = (StatusCode_t *)(argp2);
    if (arg1) (arg1)->statusCode = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_statusCode_get) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    StatusCode_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLEND_t_statusCode_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_statusCode_get" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    result = (StatusCode_t *) ((arg1)->statusCode);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_StatusCode_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_ver_set) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    Ver_t *arg2 = (Ver_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLEND_t_ver_set(self,ver);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_ver_set" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      arg2 = calloc(1, sizeof(*(arg2)));
      if( NULL == arg2 )
      croak("Out of memory allocating new " "Ver_t");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
      arg2->bits_unused = 0;
    }
    if (arg1) (arg1)->ver = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_ver_get) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Ver_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLEND_t_ver_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_ver_get" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    result = (Ver_t *) ((arg1)->ver);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)(result->buf), result->size); // XXX bits_unused ...
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLEND_t) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLEND_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLEND_t" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    delete_SUPLEND(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_dump) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLEND_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_dump" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    result = (char *)SUPLEND_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLEND_t_xml_dump) {
  {
    struct SUPLEND *arg1 = (struct SUPLEND *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLEND_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLEND_t_xml_dump" "', argument " "1"" of type '" "struct SUPLEND *""'"); 
    }
    arg1 = (struct SUPLEND *)(argp1);
    result = (char *)SUPLEND_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLEND_t) {
  {
    int argvi = 0;
    struct SUPLEND *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLEND_t();");
    }
    result = (struct SUPLEND *)calloc(1, sizeof(struct SUPLEND));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLEND, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_posMethod_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    PosMethod_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_posMethod_set(self,posMethod);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_posMethod_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_PosMethod_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLINIT_t_posMethod_set" "', argument " "2"" of type '" "PosMethod_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLINIT_t_posMethod_set" "', argument " "2"" of type '" "PosMethod_t""'");
      } else {
        arg2 = *((PosMethod_t *)(argp2));
      }
    }
    if (arg1) (arg1)->posMethod = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_posMethod_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosMethod_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_posMethod_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_posMethod_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result =  ((arg1)->posMethod);
    ST(argvi) = SWIG_NewPointerObj((PosMethod_t *)memcpy((PosMethod_t *)malloc(sizeof(PosMethod_t)),&result,sizeof(PosMethod_t)), SWIGTYPE_p_PosMethod_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_notification_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    struct Notification *arg2 = (struct Notification *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_notification_set(self,notification);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_notification_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Notification, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLINIT_t_notification_set" "', argument " "2"" of type '" "struct Notification *""'"); 
    }
    arg2 = (struct Notification *)(argp2);
    if (arg1) (arg1)->notification = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_notification_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Notification *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_notification_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_notification_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (struct Notification *) ((arg1)->notification);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Notification, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_sLPAddress_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    struct SLPAddress *arg2 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_sLPAddress_set(self,sLPAddress);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_sLPAddress_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SLPAddress, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLINIT_t_sLPAddress_set" "', argument " "2"" of type '" "struct SLPAddress *""'"); 
    }
    arg2 = (struct SLPAddress *)(argp2);
    if (arg1) (arg1)->sLPAddress = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_sLPAddress_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SLPAddress *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_sLPAddress_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_sLPAddress_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (struct SLPAddress *) ((arg1)->sLPAddress);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_qoP_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    struct QoP *arg2 = (struct QoP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_qoP_set(self,qoP);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_qoP_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_QoP, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLINIT_t_qoP_set" "', argument " "2"" of type '" "struct QoP *""'"); 
    }
    arg2 = (struct QoP *)(argp2);
    if (arg1) (arg1)->qoP = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_qoP_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct QoP *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_qoP_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_qoP_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (struct QoP *) ((arg1)->qoP);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QoP, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_sLPMode_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    SLPMode_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_sLPMode_set(self,sLPMode);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_sLPMode_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLINIT_t_sLPMode_set" "', argument " "2"" of type '" "SLPMode_t""'");
    } 
    arg2 = (SLPMode_t)(val2);
    if (arg1) (arg1)->sLPMode = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_sLPMode_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SLPMode_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_sLPMode_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_sLPMode_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (SLPMode_t) ((arg1)->sLPMode);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_mAC_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    MAC_t *arg2 = (MAC_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_mAC_set(self,mAC);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_mAC_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      arg2 = calloc(1, sizeof(*(arg2)));
      if( NULL == arg2 )
      croak("Out of memory allocating new " "MAC_t");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->mAC = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_mAC_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MAC_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_mAC_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_mAC_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (MAC_t *) ((arg1)->mAC);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)(result->buf), result->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_keyIdentity_set) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    KeyIdentity_t *arg2 = (KeyIdentity_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLINIT_t_keyIdentity_set(self,keyIdentity);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_keyIdentity_set" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      arg2 = calloc(1, sizeof(*(arg2)));
      if( NULL == arg2 )
      croak("Out of memory allocating new " "KeyIdentity_t");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->keyIdentity = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_keyIdentity_get) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    KeyIdentity_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_keyIdentity_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_keyIdentity_get" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (KeyIdentity_t *) ((arg1)->keyIdentity);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)(result->buf), result->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLINIT_t) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLINIT_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLINIT_t" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    delete_SUPLINIT(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_dump) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_dump" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (char *)SUPLINIT_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLINIT_t_xml_dump) {
  {
    struct SUPLINIT *arg1 = (struct SUPLINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLINIT_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLINIT_t_xml_dump" "', argument " "1"" of type '" "struct SUPLINIT *""'"); 
    }
    arg1 = (struct SUPLINIT *)(argp1);
    result = (char *)SUPLINIT_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLINIT_t) {
  {
    int argvi = 0;
    struct SUPLINIT *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLINIT_t();");
    }
    result = (struct SUPLINIT *)calloc(1, sizeof(struct SUPLINIT));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLINIT, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_posPayLoad_set) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    PosPayLoad_t *arg2 = (PosPayLoad_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOS_t_posPayLoad_set(self,posPayLoad);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_posPayLoad_set" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PosPayLoad, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOS_t_posPayLoad_set" "', argument " "2"" of type '" "PosPayLoad_t *""'"); 
    }
    arg2 = (PosPayLoad_t *)(argp2);
    if (arg1) (arg1)->posPayLoad = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_posPayLoad_get) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosPayLoad_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOS_t_posPayLoad_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_posPayLoad_get" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    result = (PosPayLoad_t *)& ((arg1)->posPayLoad);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosPayLoad, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_velocity_set) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    struct Velocity *arg2 = (struct Velocity *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOS_t_velocity_set(self,velocity);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_velocity_set" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Velocity, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOS_t_velocity_set" "', argument " "2"" of type '" "struct Velocity *""'"); 
    }
    arg2 = (struct Velocity *)(argp2);
    if (arg1) (arg1)->velocity = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_velocity_get) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Velocity *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOS_t_velocity_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_velocity_get" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    result = (struct Velocity *) ((arg1)->velocity);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Velocity, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLPOS_t) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLPOS_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLPOS_t" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    delete_SUPLPOS(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_dump) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOS_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_dump" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    result = (char *)SUPLPOS_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOS_t_xml_dump) {
  {
    struct SUPLPOS *arg1 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOS_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOS_t_xml_dump" "', argument " "1"" of type '" "struct SUPLPOS *""'"); 
    }
    arg1 = (struct SUPLPOS *)(argp1);
    result = (char *)SUPLPOS_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLPOS_t) {
  {
    int argvi = 0;
    struct SUPLPOS *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLPOS_t();");
    }
    result = (struct SUPLPOS *)calloc(1, sizeof(struct SUPLPOS));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLPOS, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_sETCapabilities_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    SETCapabilities_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_sETCapabilities_set(self,sETCapabilities);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_sETCapabilities_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_SETCapabilities_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOSINIT_t_sETCapabilities_set" "', argument " "2"" of type '" "SETCapabilities_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLPOSINIT_t_sETCapabilities_set" "', argument " "2"" of type '" "SETCapabilities_t""'");
      } else {
        arg2 = *((SETCapabilities_t *)(argp2));
      }
    }
    if (arg1) (arg1)->sETCapabilities = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_sETCapabilities_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETCapabilities_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_sETCapabilities_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_sETCapabilities_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result =  ((arg1)->sETCapabilities);
    ST(argvi) = SWIG_NewPointerObj((SETCapabilities_t *)memcpy((SETCapabilities_t *)malloc(sizeof(SETCapabilities_t)),&result,sizeof(SETCapabilities_t)), SWIGTYPE_p_SETCapabilities_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_requestedAssistData_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    struct RequestedAssistData *arg2 = (struct RequestedAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_requestedAssistData_set(self,requestedAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_requestedAssistData_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_RequestedAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOSINIT_t_requestedAssistData_set" "', argument " "2"" of type '" "struct RequestedAssistData *""'"); 
    }
    arg2 = (struct RequestedAssistData *)(argp2);
    if (arg1) (arg1)->requestedAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_requestedAssistData_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct RequestedAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_requestedAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_requestedAssistData_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (struct RequestedAssistData *) ((arg1)->requestedAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RequestedAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_locationId_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    LocationId_t *arg2 = (LocationId_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_locationId_set(self,locationId);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_locationId_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOSINIT_t_locationId_set" "', argument " "2"" of type '" "LocationId_t *""'"); 
    }
    arg2 = (LocationId_t *)(argp2);
    if (arg1) (arg1)->locationId = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_locationId_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    LocationId_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_locationId_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_locationId_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (LocationId_t *)& ((arg1)->locationId);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationId, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_position_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    struct Position *arg2 = (struct Position *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_position_set(self,position);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_position_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Position, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOSINIT_t_position_set" "', argument " "2"" of type '" "struct Position *""'"); 
    }
    arg2 = (struct Position *)(argp2);
    if (arg1) (arg1)->position = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_position_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Position *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_position_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_position_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (struct Position *) ((arg1)->position);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Position, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_sUPLPOS_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    struct SUPLPOS *arg2 = (struct SUPLPOS *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_sUPLPOS_set(self,sUPLPOS);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_sUPLPOS_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLPOS, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLPOSINIT_t_sUPLPOS_set" "', argument " "2"" of type '" "struct SUPLPOS *""'"); 
    }
    arg2 = (struct SUPLPOS *)(argp2);
    if (arg1) (arg1)->sUPLPOS = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_sUPLPOS_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SUPLPOS *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_sUPLPOS_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_sUPLPOS_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (struct SUPLPOS *) ((arg1)->sUPLPOS);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLPOS, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_ver_set) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    Ver_t *arg2 = (Ver_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_ver_set(self,ver);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_ver_set" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      arg2 = calloc(1, sizeof(*(arg2)));
      if( NULL == arg2 )
      croak("Out of memory allocating new " "Ver_t");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
      arg2->bits_unused = 0;
    }
    if (arg1) (arg1)->ver = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_ver_get) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Ver_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_ver_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_ver_get" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (Ver_t *) ((arg1)->ver);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)(result->buf), result->size); // XXX bits_unused ...
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLPOSINIT_t) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLPOSINIT_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLPOSINIT_t" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    delete_SUPLPOSINIT(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_dump) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_dump" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (char *)SUPLPOSINIT_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_xml_dump) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_xml_dump" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    result = (char *)SUPLPOSINIT_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_capabilities) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    unsigned int arg2 ;
    enum PrefMethod arg3 ;
    unsigned int arg4 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 4) || (items > 4)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_capabilities(self,pos_tech,pref_method,pos_proto);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_capabilities" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_capabilities" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SUPLPOSINIT_t_set_capabilities" "', argument " "3"" of type '" "enum PrefMethod""'");
    } 
    arg3 = (enum PrefMethod)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SUPLPOSINIT_t_set_capabilities" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    SUPLPOSINIT_set_capabilities(arg1,arg2,arg3,arg4);
    ST(argvi) = sv_newmortal();
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_requested_assist_data) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    unsigned int arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_requested_assist_data(self,requested_assist_data);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_requested_assist_data" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_requested_assist_data" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    SUPLPOSINIT_set_requested_assist_data(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_update_requested_assist_data) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    unsigned int arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_update_requested_assist_data(self,requested_assist_data);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_update_requested_assist_data" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_update_requested_assist_data" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    SUPLPOSINIT_update_requested_assist_data(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_requested_assist_navigation_modell) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    long arg2 ;
    long arg3 ;
    long arg4 ;
    long arg5 ;
    SatelliteInfo_t *arg6 = (SatelliteInfo_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    long val3 ;
    int ecode3 = 0 ;
    long val4 ;
    int ecode4 = 0 ;
    long val5 ;
    int ecode5 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 6) || (items > 6)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_requested_assist_navigation_modell(self,gpsWeek,gpsToe,nSAT,toeLimit,sat_info);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_requested_assist_navigation_modell" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_requested_assist_navigation_modell" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SUPLPOSINIT_t_set_requested_assist_navigation_modell" "', argument " "3"" of type '" "long""'");
    } 
    arg3 = (long)(val3);
    ecode4 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SUPLPOSINIT_t_set_requested_assist_navigation_modell" "', argument " "4"" of type '" "long""'");
    } 
    arg4 = (long)(val4);
    ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SUPLPOSINIT_t_set_requested_assist_navigation_modell" "', argument " "5"" of type '" "long""'");
    } 
    arg5 = (long)(val5);
    {
      AV *tempav;
      I32 len;
      int i;
      SV  **tv;
      
      /* verify input type */
      if(!SvROK(ST(5)))
      croak("Argument 6 is not a reference.");
      if(SvTYPE(SvRV(ST(5))) != SVt_PVAV)
      croak("Argument 6 is not an array.");
      
      arg6 = calloc(1, sizeof(*arg6));
      
      tempav = (AV *)SvRV(ST(5));
      arg6->list.count = arg6->list.size = av_len(tempav);
      /* arg6->list.free = asn_DEF_SatelliteInfoElement. ??? */
      arg6->list.array = calloc(arg6->list.size, sizeof(*arg6->list.array));
      
      for (i = 0; i <= arg6->list.size; ++i) {
        AV *inner_av;
        SV **inner_iv;
        
        tv = av_fetch(tempav, i, 0);	
        if(NULL == tv) {
          asn_DEF_SatelliteInfo.free_struct(&asn_DEF_SatelliteInfo, arg6, 0);
          croak( "Couldn't fetch element at position %d", i );
        }
        
        if(SvTYPE(SvRV(*tv)) != SVt_PVAV) {
          asn_DEF_SatelliteInfo.free_struct(&asn_DEF_SatelliteInfo, arg6, 0);
          croak("Element at position %d is not an array", i);
        }
        
        arg6->list.array[i] = calloc(1, sizeof(*arg6->list.array[i]));
        if(NULL == arg6->list.array[i]) {
          asn_DEF_SatelliteInfo.free_struct(&asn_DEF_SatelliteInfo, arg6, 0);
          croak("Couldn't allocate memory to transform element at %d position into SatelliteInfoElement", i);
        }
        
        inner_av = (AV *)SvRV(*tv);
        
        inner_iv = av_fetch(inner_av, 0, 0);
        if(NULL == inner_iv) {
          asn_DEF_SatelliteInfo.free_struct(&asn_DEF_SatelliteInfo, arg6, 0);
          croak( "Couldn't fetch satId from element at position %d", i );
        }
        arg6->list.array[i]->satId = SvIV(*inner_iv);
        
        inner_iv = av_fetch(inner_av, 1, 0);
        if(NULL == inner_iv) {
          asn_DEF_SatelliteInfo.free_struct(&asn_DEF_SatelliteInfo, arg6, 0);
          croak( "Couldn't fetch iODE from element at position %d", i );
        }
        arg6->list.array[i]->iODE = SvIV(*inner_iv);
      }
    }
    SUPLPOSINIT_set_requested_assist_navigation_modell(arg1,arg2,arg3,arg4,arg5,arg6);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_gsm_location_info) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    long arg2 ;
    long arg3 ;
    long arg4 ;
    long arg5 ;
    long arg6 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    long val3 ;
    int ecode3 = 0 ;
    long val4 ;
    int ecode4 = 0 ;
    long val5 ;
    int ecode5 = 0 ;
    long val6 ;
    int ecode6 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 6) || (items > 6)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_gsm_location_info(self,mcc,mnc,lac,cellid,ta);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "3"" of type '" "long""'");
    } 
    arg3 = (long)(val3);
    ecode4 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "4"" of type '" "long""'");
    } 
    arg4 = (long)(val4);
    ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "5"" of type '" "long""'");
    } 
    arg5 = (long)(val5);
    ecode6 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SUPLPOSINIT_t_set_gsm_location_info" "', argument " "6"" of type '" "long""'");
    } 
    arg6 = (long)(val6);
    SUPLPOSINIT_set_gsm_location_info(arg1,arg2,arg3,arg4,arg5,arg6);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_wcdma_location_info) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    long arg2 ;
    long arg3 ;
    long arg4 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    long val3 ;
    int ecode3 = 0 ;
    long val4 ;
    int ecode4 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 4) || (items > 4)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_wcdma_location_info(self,mcc,mnc,cellid);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_wcdma_location_info" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_wcdma_location_info" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SUPLPOSINIT_t_set_wcdma_location_info" "', argument " "3"" of type '" "long""'");
    } 
    arg3 = (long)(val3);
    ecode4 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SUPLPOSINIT_t_set_wcdma_location_info" "', argument " "4"" of type '" "long""'");
    } 
    arg4 = (long)(val4);
    SUPLPOSINIT_set_wcdma_location_info(arg1,arg2,arg3,arg4);
    ST(argvi) = sv_newmortal();
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLPOSINIT_t_set_position_estimate) {
  {
    struct SUPLPOSINIT *arg1 = (struct SUPLPOSINIT *) 0 ;
    time_t arg2 ;
    long arg3 ;
    long arg4 ;
    long arg5 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    long val3 ;
    int ecode3 = 0 ;
    long val4 ;
    int ecode4 = 0 ;
    long val5 ;
    int ecode5 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 5) || (items > 5)) {
      SWIG_croak("Usage: SUPLPOSINIT_t_set_position_estimate(self,when,latitudeSign,latitude,longitude);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLPOSINIT_t_set_position_estimate" "', argument " "1"" of type '" "struct SUPLPOSINIT *""'"); 
    }
    arg1 = (struct SUPLPOSINIT *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SUPLPOSINIT_t_set_position_estimate" "', argument " "2"" of type '" "time_t""'");
    } 
    arg2 = (time_t)(val2);
    ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SUPLPOSINIT_t_set_position_estimate" "', argument " "3"" of type '" "long""'");
    } 
    arg3 = (long)(val3);
    ecode4 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SUPLPOSINIT_t_set_position_estimate" "', argument " "4"" of type '" "long""'");
    } 
    arg4 = (long)(val4);
    ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SUPLPOSINIT_t_set_position_estimate" "', argument " "5"" of type '" "long""'");
    } 
    arg5 = (long)(val5);
    SUPLPOSINIT_set_position_estimate(arg1,arg2,arg3,arg4,arg5);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLPOSINIT_t) {
  {
    int argvi = 0;
    struct SUPLPOSINIT *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLPOSINIT_t();");
    }
    result = (struct SUPLPOSINIT *)calloc(1, sizeof(struct SUPLPOSINIT));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLPOSINIT, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_posMethod_set) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    PosMethod_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_posMethod_set(self,posMethod);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_posMethod_set" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_PosMethod_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLRESPONSE_t_posMethod_set" "', argument " "2"" of type '" "PosMethod_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLRESPONSE_t_posMethod_set" "', argument " "2"" of type '" "PosMethod_t""'");
      } else {
        arg2 = *((PosMethod_t *)(argp2));
      }
    }
    if (arg1) (arg1)->posMethod = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_posMethod_get) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosMethod_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_posMethod_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_posMethod_get" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result =  ((arg1)->posMethod);
    ST(argvi) = SWIG_NewPointerObj((PosMethod_t *)memcpy((PosMethod_t *)malloc(sizeof(PosMethod_t)),&result,sizeof(PosMethod_t)), SWIGTYPE_p_PosMethod_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_sLPAddress_set) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    struct SLPAddress *arg2 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_sLPAddress_set(self,sLPAddress);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_sLPAddress_set" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SLPAddress, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLRESPONSE_t_sLPAddress_set" "', argument " "2"" of type '" "struct SLPAddress *""'"); 
    }
    arg2 = (struct SLPAddress *)(argp2);
    if (arg1) (arg1)->sLPAddress = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_sLPAddress_get) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SLPAddress *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_sLPAddress_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_sLPAddress_get" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result = (struct SLPAddress *) ((arg1)->sLPAddress);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_sETAuthKey_set) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    struct SETAuthKey *arg2 = (struct SETAuthKey *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_sETAuthKey_set(self,sETAuthKey);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_sETAuthKey_set" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SETAuthKey, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLRESPONSE_t_sETAuthKey_set" "', argument " "2"" of type '" "struct SETAuthKey *""'"); 
    }
    arg2 = (struct SETAuthKey *)(argp2);
    if (arg1) (arg1)->sETAuthKey = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_sETAuthKey_get) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SETAuthKey *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_sETAuthKey_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_sETAuthKey_get" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result = (struct SETAuthKey *) ((arg1)->sETAuthKey);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SETAuthKey, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_keyIdentity4_set) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    KeyIdentity4_t *arg2 = (KeyIdentity4_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_keyIdentity4_set(self,keyIdentity4);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_keyIdentity4_set" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_KeyIdentity4_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLRESPONSE_t_keyIdentity4_set" "', argument " "2"" of type '" "KeyIdentity4_t *""'"); 
    }
    arg2 = (KeyIdentity4_t *)(argp2);
    if (arg1) (arg1)->keyIdentity4 = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_keyIdentity4_get) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    KeyIdentity4_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_keyIdentity4_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_keyIdentity4_get" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result = (KeyIdentity4_t *) ((arg1)->keyIdentity4);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KeyIdentity4_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLRESPONSE_t) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLRESPONSE_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLRESPONSE_t" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    delete_SUPLRESPONSE(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_dump) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_dump" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result = (char *)SUPLRESPONSE_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLRESPONSE_t_xml_dump) {
  {
    struct SUPLRESPONSE *arg1 = (struct SUPLRESPONSE *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLRESPONSE_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLRESPONSE_t_xml_dump" "', argument " "1"" of type '" "struct SUPLRESPONSE *""'"); 
    }
    arg1 = (struct SUPLRESPONSE *)(argp1);
    result = (char *)SUPLRESPONSE_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLRESPONSE_t) {
  {
    int argvi = 0;
    struct SUPLRESPONSE *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLRESPONSE_t();");
    }
    result = (struct SUPLRESPONSE *)calloc(1, sizeof(struct SUPLRESPONSE));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLRESPONSE, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_sETCapabilities_set) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    SETCapabilities_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLSTART_t_sETCapabilities_set(self,sETCapabilities);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_sETCapabilities_set" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_SETCapabilities_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLSTART_t_sETCapabilities_set" "', argument " "2"" of type '" "SETCapabilities_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SUPLSTART_t_sETCapabilities_set" "', argument " "2"" of type '" "SETCapabilities_t""'");
      } else {
        arg2 = *((SETCapabilities_t *)(argp2));
      }
    }
    if (arg1) (arg1)->sETCapabilities = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_sETCapabilities_get) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETCapabilities_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLSTART_t_sETCapabilities_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_sETCapabilities_get" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    result =  ((arg1)->sETCapabilities);
    ST(argvi) = SWIG_NewPointerObj((SETCapabilities_t *)memcpy((SETCapabilities_t *)malloc(sizeof(SETCapabilities_t)),&result,sizeof(SETCapabilities_t)), SWIGTYPE_p_SETCapabilities_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_locationId_set) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    LocationId_t *arg2 = (LocationId_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLSTART_t_locationId_set(self,locationId);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_locationId_set" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLSTART_t_locationId_set" "', argument " "2"" of type '" "LocationId_t *""'"); 
    }
    arg2 = (LocationId_t *)(argp2);
    if (arg1) (arg1)->locationId = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_locationId_get) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    LocationId_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLSTART_t_locationId_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_locationId_get" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    result = (LocationId_t *)& ((arg1)->locationId);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationId, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_qoP_set) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    struct QoP *arg2 = (struct QoP *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SUPLSTART_t_qoP_set(self,qoP);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_qoP_set" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_QoP, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SUPLSTART_t_qoP_set" "', argument " "2"" of type '" "struct QoP *""'"); 
    }
    arg2 = (struct QoP *)(argp2);
    if (arg1) (arg1)->qoP = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_qoP_get) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct QoP *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLSTART_t_qoP_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_qoP_get" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    result = (struct QoP *) ((arg1)->qoP);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QoP, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SUPLSTART_t) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SUPLSTART_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SUPLSTART_t" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    delete_SUPLSTART(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_dump) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLSTART_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_dump" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    result = (char *)SUPLSTART_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SUPLSTART_t_xml_dump) {
  {
    struct SUPLSTART *arg1 = (struct SUPLSTART *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SUPLSTART_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SUPLSTART_t_xml_dump" "', argument " "1"" of type '" "struct SUPLSTART *""'"); 
    }
    arg1 = (struct SUPLSTART *)(argp1);
    result = (char *)SUPLSTART_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SUPLSTART_t) {
  {
    int argvi = 0;
    struct SUPLSTART *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SUPLSTART_t();");
    }
    result = (struct SUPLSTART *)calloc(1, sizeof(struct SUPLSTART));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLSTART, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_length_set) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    long arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_length_set(self,length);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_length_set" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ULP_PDU_t_length_set" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    if (arg1) (arg1)->length = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_length_get) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    long result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_length_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_length_get" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = (long) ((arg1)->length);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_version_set) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    Version_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_version_set(self,version);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_version_set" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_Version_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_version_set" "', argument " "2"" of type '" "Version_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ULP_PDU_t_version_set" "', argument " "2"" of type '" "Version_t""'");
      } else {
        arg2 = *((Version_t *)(argp2));
      }
    }
    if (arg1) (arg1)->version = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_version_get) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Version_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_version_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_version_get" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result =  ((arg1)->version);
    ST(argvi) = SWIG_NewPointerObj((Version_t *)memcpy((Version_t *)malloc(sizeof(Version_t)),&result,sizeof(Version_t)), SWIGTYPE_p_Version_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_sessionID_set) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    SessionID_t *arg2 = (SessionID_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_sessionID_set(self,sessionID);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_sessionID_set" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SessionID, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_sessionID_set" "', argument " "2"" of type '" "SessionID_t *""'"); 
    }
    arg2 = (SessionID_t *)(argp2);
    if (arg1) (arg1)->sessionID = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_sessionID_get) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SessionID_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_sessionID_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_sessionID_get" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = (SessionID_t *)& ((arg1)->sessionID);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SessionID, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_message_set) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    UlpMessage_t *arg2 = (UlpMessage_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_message_set(self,message);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_message_set" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_UlpMessage, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_message_set" "', argument " "2"" of type '" "UlpMessage_t *""'"); 
    }
    arg2 = (UlpMessage_t *)(argp2);
    if (arg1) (arg1)->message = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_message_get) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    UlpMessage_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_message_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_message_get" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = (UlpMessage_t *)& ((arg1)->message);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UlpMessage, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_ULP_PDU_t__SWIG_0) {
  {
    int argvi = 0;
    struct ULP_PDU *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_ULP_PDU_t();");
    }
    result = (struct ULP_PDU *)new_ULP_PDU__SWIG_0();
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ULP_PDU, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_new_ULP_PDU_t__SWIG_1) {
  {
    char *arg1 = (char *) 0 ;
    size_t arg2 ;
    int argvi = 0;
    struct ULP_PDU *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: new_ULP_PDU_t(data,data_len);");
    }
    {
      if(ST(0) == NULL) {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_ULP_PDU_t" "', argument " "data" " of type '" "MsgBuffer""'");
      }
      if( SvFLAGS(ST(0)) & (SVf_OK & ~SVf_ROK) ) {
        arg1 = SvPV(ST(0), arg2);
      }
      else {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_ULP_PDU_t" "', argument " "data" " of type '" "MsgBuffer""'");
      }
    }
    result = (struct ULP_PDU *)new_ULP_PDU__SWIG_1((char const *)arg1,arg2);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ULP_PDU, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_ULP_PDU_t) {
  dXSARGS;
  
  {
    unsigned long _index = 0;
    SWIG_TypeRank _rank = 0; 
    if (items == 0) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 1;
        if (_rank == _rankm) goto dispatch;
      }
    }
    if (items == 1) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (items > 1) {
        {
          {
            int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
            _v = SWIG_CheckState(res);
          }
        }
        if (!_v) goto check_2;
        _ranki += _v*_pi;
        _rankm += _pi;
        _pi *= SWIG_MAXCASTRANK;
      }
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 2;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_2:
    
  dispatch:
    switch(_index) {
    case 1:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ULP_PDU_t__SWIG_0); return;
    case 2:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_ULP_PDU_t__SWIG_1); return;
    }
  }
  
  croak("No matching function for overloaded 'new_ULP_PDU_t'");
  XSRETURN(0);
}


XS(_wrap_delete_ULP_PDU_t) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_ULP_PDU_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ULP_PDU_t" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    delete_ULP_PDU(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_set_version) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    int arg2 ;
    int arg3 ;
    int arg4 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int val3 ;
    int ecode3 = 0 ;
    int val4 ;
    int ecode4 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 4) || (items > 4)) {
      SWIG_croak("Usage: ULP_PDU_t_set_version(self,maj,min,servind);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_set_version" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ULP_PDU_t_set_version" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ULP_PDU_t_set_version" "', argument " "3"" of type '" "int""'");
    } 
    arg3 = (int)(val3);
    ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ULP_PDU_t_set_version" "', argument " "4"" of type '" "int""'");
    } 
    arg4 = (int)(val4);
    ULP_PDU_set_version(arg1,arg2,arg3,arg4);
    ST(argvi) = sv_newmortal();
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_copy_SlpSessionId) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    struct ULP_PDU *arg2 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_copy_SlpSessionId(self,src_pdu);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_copy_SlpSessionId" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_copy_SlpSessionId" "', argument " "2"" of type '" "struct ULP_PDU *""'"); 
    }
    arg2 = (struct ULP_PDU *)(argp2);
    ULP_PDU_copy_SlpSessionId(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_setSetSessionId_to_imsi) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    int arg2 ;
    char *arg3 = (char *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int res3 ;
    char *buf3 = 0 ;
    int alloc3 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 3) || (items > 3)) {
      SWIG_croak("Usage: ULP_PDU_t_setSetSessionId_to_imsi(self,sessionId,imsi);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_setSetSessionId_to_imsi" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ULP_PDU_t_setSetSessionId_to_imsi" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ULP_PDU_t_setSetSessionId_to_imsi" "', argument " "3"" of type '" "char *""'");
    }
    arg3 = (char *)(buf3);
    ULP_PDU_setSetSessionId_to_imsi(arg1,arg2,arg3);
    ST(argvi) = sv_newmortal();
    
    
    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
    XSRETURN(argvi);
  fail:
    
    
    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_setSetSessionId_to_msisdn) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    int arg2 ;
    char *arg3 = (char *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int res3 ;
    char *buf3 = 0 ;
    int alloc3 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 3) || (items > 3)) {
      SWIG_croak("Usage: ULP_PDU_t_setSetSessionId_to_msisdn(self,sessionId,msisdn);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_setSetSessionId_to_msisdn" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ULP_PDU_t_setSetSessionId_to_msisdn" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ULP_PDU_t_setSetSessionId_to_msisdn" "', argument " "3"" of type '" "char *""'");
    }
    arg3 = (char *)(buf3);
    ULP_PDU_setSetSessionId_to_msisdn(arg1,arg2,arg3);
    ST(argvi) = sv_newmortal();
    
    
    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
    XSRETURN(argvi);
  fail:
    
    
    if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_copy_SetSessionId) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    struct ULP_PDU *arg2 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_copy_SetSessionId(self,src_pdu);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_copy_SetSessionId" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_copy_SetSessionId" "', argument " "2"" of type '" "struct ULP_PDU *""'"); 
    }
    arg2 = (struct ULP_PDU *)(argp2);
    ULP_PDU_copy_SetSessionId(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_copy_SessionId) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    struct ULP_PDU *arg2 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_copy_SessionId(self,src_pdu);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_copy_SessionId" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ULP_PDU_t_copy_SessionId" "', argument " "2"" of type '" "struct ULP_PDU *""'"); 
    }
    arg2 = (struct ULP_PDU *)(argp2);
    ULP_PDU_copy_SessionId(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_set_message_type) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    UlpMessage_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ULP_PDU_t_set_message_type(self,kinda);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_set_message_type" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ULP_PDU_t_set_message_type" "', argument " "2"" of type '" "UlpMessage_PR""'");
    } 
    arg2 = (UlpMessage_PR)(val2);
    ULP_PDU_set_message_type(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_encode) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MsgBuffer result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_encode(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_encode" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = ULP_PDU_encode(arg1);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_2mortal(newSVpv((&result)->buf, (&result)->size));
      ++argvi; /* intentional - not portable between languages */
    }
    
    do {
      if( (&result)->buf ) free((&result)->buf); 
    } while(0);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_dump) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_dump" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = (char *)ULP_PDU_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ULP_PDU_t_xml_dump) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ULP_PDU_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ULP_PDU_t_xml_dump" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = (char *)ULP_PDU_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_present_set) {
  {
    struct UlpMessage *arg1 = (struct UlpMessage *) 0 ;
    UlpMessage_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_present_set" "', argument " "1"" of type '" "struct UlpMessage *""'"); 
    }
    arg1 = (struct UlpMessage *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UlpMessage_t_present_set" "', argument " "2"" of type '" "UlpMessage_PR""'");
    } 
    arg2 = (UlpMessage_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_present_get) {
  {
    struct UlpMessage *arg1 = (struct UlpMessage *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    UlpMessage_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_present_get" "', argument " "1"" of type '" "struct UlpMessage *""'"); 
    }
    arg1 = (struct UlpMessage *)(argp1);
    result = (UlpMessage_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_get) {
  {
    struct UlpMessage *arg1 = (struct UlpMessage *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    UlpMessage_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_get" "', argument " "1"" of type '" "struct UlpMessage *""'"); 
    }
    arg1 = (struct UlpMessage *)(argp1);
    result = (UlpMessage_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UlpMessage_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_UlpMessage_t) {
  {
    int argvi = 0;
    struct UlpMessage *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_UlpMessage_t();");
    }
    result = (struct UlpMessage *)calloc(1, sizeof(struct UlpMessage));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UlpMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_UlpMessage_t) {
  {
    struct UlpMessage *arg1 = (struct UlpMessage *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_UlpMessage_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UlpMessage_t" "', argument " "1"" of type '" "struct UlpMessage *""'"); 
    }
    arg1 = (struct UlpMessage *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLINIT_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLINIT_t *arg2 = (SUPLINIT_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLINIT_set(self,msSUPLINIT);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLINIT_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLINIT, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLINIT_set" "', argument " "2"" of type '" "SUPLINIT_t *""'"); 
    }
    arg2 = (SUPLINIT_t *)(argp2);
    if (arg1) (arg1)->msSUPLINIT = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLINIT_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLINIT_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLINIT_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLINIT_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLINIT_t *)& ((arg1)->msSUPLINIT);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLINIT, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLSTART_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLSTART_t *arg2 = (SUPLSTART_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLSTART_set(self,msSUPLSTART);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLSTART_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLSTART, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLSTART_set" "', argument " "2"" of type '" "SUPLSTART_t *""'"); 
    }
    arg2 = (SUPLSTART_t *)(argp2);
    if (arg1) (arg1)->msSUPLSTART = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLSTART_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLSTART_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLSTART_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLSTART_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLSTART_t *)& ((arg1)->msSUPLSTART);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLSTART, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLRESPONSE_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLRESPONSE_t *arg2 = (SUPLRESPONSE_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLRESPONSE_set(self,msSUPLRESPONSE);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLRESPONSE_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLRESPONSE, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLRESPONSE_set" "', argument " "2"" of type '" "SUPLRESPONSE_t *""'"); 
    }
    arg2 = (SUPLRESPONSE_t *)(argp2);
    if (arg1) (arg1)->msSUPLRESPONSE = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLRESPONSE_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLRESPONSE_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLRESPONSE_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLRESPONSE_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLRESPONSE_t *)& ((arg1)->msSUPLRESPONSE);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLRESPONSE, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLPOSINIT_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLPOSINIT_t *arg2 = (SUPLPOSINIT_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLPOSINIT_set(self,msSUPLPOSINIT);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLPOSINIT_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLPOSINIT, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLPOSINIT_set" "', argument " "2"" of type '" "SUPLPOSINIT_t *""'"); 
    }
    arg2 = (SUPLPOSINIT_t *)(argp2);
    if (arg1) (arg1)->msSUPLPOSINIT = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLPOSINIT_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLPOSINIT_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLPOSINIT_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLPOSINIT_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLPOSINIT_t *)& ((arg1)->msSUPLPOSINIT);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLPOSINIT, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLPOS_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLPOS_t *arg2 = (SUPLPOS_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLPOS_set(self,msSUPLPOS);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLPOS_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLPOS, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLPOS_set" "', argument " "2"" of type '" "SUPLPOS_t *""'"); 
    }
    arg2 = (SUPLPOS_t *)(argp2);
    if (arg1) (arg1)->msSUPLPOS = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLPOS_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLPOS_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLPOS_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLPOS_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLPOS_t *)& ((arg1)->msSUPLPOS);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLPOS, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLEND_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLEND_t *arg2 = (SUPLEND_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLEND_set(self,msSUPLEND);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLEND_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLEND, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLEND_set" "', argument " "2"" of type '" "SUPLEND_t *""'"); 
    }
    arg2 = (SUPLEND_t *)(argp2);
    if (arg1) (arg1)->msSUPLEND = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLEND_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLEND_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLEND_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLEND_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLEND_t *)& ((arg1)->msSUPLEND);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLEND, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLAUTHREQ_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLAUTHREQ_t *arg2 = (SUPLAUTHREQ_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLAUTHREQ_set(self,msSUPLAUTHREQ);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLAUTHREQ_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLAUTHREQ, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLAUTHREQ_set" "', argument " "2"" of type '" "SUPLAUTHREQ_t *""'"); 
    }
    arg2 = (SUPLAUTHREQ_t *)(argp2);
    if (arg1) (arg1)->msSUPLAUTHREQ = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLAUTHREQ_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLAUTHREQ_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLAUTHREQ_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLAUTHREQ_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLAUTHREQ_t *)& ((arg1)->msSUPLAUTHREQ);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLAUTHREQ, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLAUTHRESP_set) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    SUPLAUTHRESP_t *arg2 = (SUPLAUTHRESP_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLAUTHRESP_set(self,msSUPLAUTHRESP);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLAUTHRESP_set" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SUPLAUTHRESP, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UlpMessage_t_choice_msSUPLAUTHRESP_set" "', argument " "2"" of type '" "SUPLAUTHRESP_t *""'"); 
    }
    arg2 = (SUPLAUTHRESP_t *)(argp2);
    if (arg1) (arg1)->msSUPLAUTHRESP = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_UlpMessage_t_choice_msSUPLAUTHRESP_get) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SUPLAUTHRESP_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: UlpMessage_t_choice_msSUPLAUTHRESP_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UlpMessage_t_choice_msSUPLAUTHRESP_get" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    result = (SUPLAUTHRESP_t *)& ((arg1)->msSUPLAUTHRESP);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SUPLAUTHRESP, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_UlpMessage_t_choice) {
  {
    int argvi = 0;
    UlpMessage_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_UlpMessage_t_choice();");
    }
    result = (UlpMessage_t_choice *)calloc(1, sizeof(UlpMessage_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UlpMessage_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_UlpMessage_t_choice) {
  {
    UlpMessage_t_choice *arg1 = (UlpMessage_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_UlpMessage_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_UlpMessage_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UlpMessage_t_choice" "', argument " "1"" of type '" "UlpMessage_t_choice *""'"); 
    }
    arg1 = (UlpMessage_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_present_set) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    SLPAddress_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SLPAddress_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_present_set" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SLPAddress_t_present_set" "', argument " "2"" of type '" "SLPAddress_PR""'");
    } 
    arg2 = (SLPAddress_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_present_get) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SLPAddress_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_present_get" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (SLPAddress_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_choice_get) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SLPAddress_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_choice_get" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (SLPAddress_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SLPAddress_t) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SLPAddress_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SLPAddress_t" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    delete_SLPAddress(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_set_ipaddress) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    IPAddress_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SLPAddress_t_set_ipaddress(self,ipaddr);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_set_ipaddress" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not an embedded ip address.");
      if( SvCUR(ST(1)) == 4 ) {
        // IPv4
        (&arg2)->present = IPAddress_PR_ipv4Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv4Address, SvPV_nolen(ST(1)), 4);
      }
      else if( SvCUR(ST(1)) == 16 ) {
        // IPv6
        (&arg2)->present = IPAddress_PR_ipv6Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv6Address, SvPV_nolen(ST(1)), 16);
      }
      else
      croak("Argument 2 is not an embedded ip address.");
    }
    SLPAddress_set_ipaddress(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_set_fqdn) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    char *arg2 = (char *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int res2 ;
    char *buf2 = 0 ;
    int alloc2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SLPAddress_t_set_fqdn(self,buf);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_set_fqdn" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SLPAddress_t_set_fqdn" "', argument " "2"" of type '" "char const *""'");
    }
    arg2 = (char *)(buf2);
    SLPAddress_set_fqdn(arg1,(char const *)arg2);
    ST(argvi) = sv_newmortal();
    
    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
    XSRETURN(argvi);
  fail:
    
    if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_is_ipv4) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    int result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_is_ipv4(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_is_ipv4" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (int)SLPAddress_is_ipv4(arg1);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_is_ipv6) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    int result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_is_ipv6(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_is_ipv6" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (int)SLPAddress_is_ipv6(arg1);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_is_ip) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    int result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_is_ip(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_is_ip" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (int)SLPAddress_is_ip(arg1);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_is_fqdn) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    int result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_is_fqdn(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_is_fqdn" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (int)SLPAddress_is_fqdn(arg1);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_is_valid) {
  {
    struct SLPAddress *arg1 = (struct SLPAddress *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    int result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_is_valid(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_is_valid" "', argument " "1"" of type '" "struct SLPAddress *""'"); 
    }
    arg1 = (struct SLPAddress *)(argp1);
    result = (int)SLPAddress_is_valid(arg1);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SLPAddress_t) {
  {
    int argvi = 0;
    struct SLPAddress *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SLPAddress_t();");
    }
    result = (struct SLPAddress *)calloc(1, sizeof(struct SLPAddress));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_choice_iPAddress_set) {
  {
    SLPAddress_t_choice *arg1 = (SLPAddress_t_choice *) 0 ;
    IPAddress_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SLPAddress_t_choice_iPAddress_set(self,iPAddress);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_choice_iPAddress_set" "', argument " "1"" of type '" "SLPAddress_t_choice *""'"); 
    }
    arg1 = (SLPAddress_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not an embedded ip address.");
      if( SvCUR(ST(1)) == 4 ) {
        // IPv4
        (&arg2)->present = IPAddress_PR_ipv4Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv4Address, SvPV_nolen(ST(1)), 4);
      }
      else if( SvCUR(ST(1)) == 16 ) {
        // IPv6
        (&arg2)->present = IPAddress_PR_ipv6Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv6Address, SvPV_nolen(ST(1)), 16);
      }
      else
      croak("Argument 2 is not an embedded ip address.");
    }
    if (arg1) (arg1)->iPAddress = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_choice_iPAddress_get) {
  {
    SLPAddress_t_choice *arg1 = (SLPAddress_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    IPAddress_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_choice_iPAddress_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_choice_iPAddress_get" "', argument " "1"" of type '" "SLPAddress_t_choice *""'"); 
    }
    arg1 = (SLPAddress_t_choice *)(argp1);
    result =  ((arg1)->iPAddress);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      if(IPAddress_PR_ipv4Address == (&result)->present && 4 == (&result)->choice.ipv4Address.size) {
        sv_setpvn(ST(argvi), (char *)((&result)->choice.ipv4Address.buf), 4);
      }
      else if(IPAddress_PR_ipv6Address == (&result)->present && 16 == (&result)->choice.ipv4Address.size) {
        sv_setpvn(ST(argvi), (char *)((&result)->choice.ipv6Address.buf), 16);
      }
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_choice_fQDN_set) {
  {
    SLPAddress_t_choice *arg1 = (SLPAddress_t_choice *) 0 ;
    FQDN_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SLPAddress_t_choice_fQDN_set(self,fQDN);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_choice_fQDN_set" "', argument " "1"" of type '" "SLPAddress_t_choice *""'"); 
    }
    arg1 = (SLPAddress_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->fQDN = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SLPAddress_t_choice_fQDN_get) {
  {
    SLPAddress_t_choice *arg1 = (SLPAddress_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    FQDN_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SLPAddress_t_choice_fQDN_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SLPAddress_t_choice_fQDN_get" "', argument " "1"" of type '" "SLPAddress_t_choice *""'"); 
    }
    arg1 = (SLPAddress_t_choice *)(argp1);
    result =  ((arg1)->fQDN);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SLPAddress_t_choice) {
  {
    int argvi = 0;
    SLPAddress_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SLPAddress_t_choice();");
    }
    result = (SLPAddress_t_choice *)calloc(1, sizeof(SLPAddress_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SLPAddress_t_choice) {
  {
    SLPAddress_t_choice *arg1 = (SLPAddress_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SLPAddress_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SLPAddress_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SLPAddress_t_choice" "', argument " "1"" of type '" "SLPAddress_t_choice *""'"); 
    }
    arg1 = (SLPAddress_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_present_set) {
  {
    struct PosPayLoad *arg1 = (struct PosPayLoad *) 0 ;
    PosPayLoad_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosPayLoad_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_present_set" "', argument " "1"" of type '" "struct PosPayLoad *""'"); 
    }
    arg1 = (struct PosPayLoad *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PosPayLoad_t_present_set" "', argument " "2"" of type '" "PosPayLoad_PR""'");
    } 
    arg2 = (PosPayLoad_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_present_get) {
  {
    struct PosPayLoad *arg1 = (struct PosPayLoad *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosPayLoad_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosPayLoad_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_present_get" "', argument " "1"" of type '" "struct PosPayLoad *""'"); 
    }
    arg1 = (struct PosPayLoad *)(argp1);
    result = (PosPayLoad_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_get) {
  {
    struct PosPayLoad *arg1 = (struct PosPayLoad *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosPayLoad_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_get" "', argument " "1"" of type '" "struct PosPayLoad *""'"); 
    }
    arg1 = (struct PosPayLoad *)(argp1);
    result = (PosPayLoad_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosPayLoad_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_PosPayLoad_t) {
  {
    int argvi = 0;
    struct PosPayLoad *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_PosPayLoad_t();");
    }
    result = (struct PosPayLoad *)calloc(1, sizeof(struct PosPayLoad));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosPayLoad, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_PosPayLoad_t) {
  {
    struct PosPayLoad *arg1 = (struct PosPayLoad *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_PosPayLoad_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PosPayLoad_t" "', argument " "1"" of type '" "struct PosPayLoad *""'"); 
    }
    arg1 = (struct PosPayLoad *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_tia801payload_set) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_tia801payload_set(self,tia801payload);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_tia801payload_set" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->tia801payload = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_tia801payload_get) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_tia801payload_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_tia801payload_get" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    result =  ((arg1)->tia801payload);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_rrcPayload_set) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_rrcPayload_set(self,rrcPayload);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_rrcPayload_set" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->rrcPayload = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_rrcPayload_get) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_rrcPayload_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_rrcPayload_get" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    result =  ((arg1)->rrcPayload);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_rrlpPayload_set) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_rrlpPayload_set(self,rrlpPayload);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_rrlpPayload_set" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->rrlpPayload = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosPayLoad_t_choice_rrlpPayload_get) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosPayLoad_t_choice_rrlpPayload_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosPayLoad_t_choice_rrlpPayload_get" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    result =  ((arg1)->rrlpPayload);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_PosPayLoad_t_choice) {
  {
    int argvi = 0;
    PosPayLoad_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_PosPayLoad_t_choice();");
    }
    result = (PosPayLoad_t_choice *)calloc(1, sizeof(PosPayLoad_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosPayLoad_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_PosPayLoad_t_choice) {
  {
    PosPayLoad_t_choice *arg1 = (PosPayLoad_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_PosPayLoad_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosPayLoad_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PosPayLoad_t_choice" "', argument " "1"" of type '" "PosPayLoad_t_choice *""'"); 
    }
    arg1 = (PosPayLoad_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationId_t_cellInfo_set) {
  {
    struct LocationId *arg1 = (struct LocationId *) 0 ;
    CellInfo_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationId_t_cellInfo_set(self,cellInfo);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationId_t_cellInfo_set" "', argument " "1"" of type '" "struct LocationId *""'"); 
    }
    arg1 = (struct LocationId *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CellInfo_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocationId_t_cellInfo_set" "', argument " "2"" of type '" "CellInfo_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LocationId_t_cellInfo_set" "', argument " "2"" of type '" "CellInfo_t""'");
      } else {
        arg2 = *((CellInfo_t *)(argp2));
      }
    }
    if (arg1) (arg1)->cellInfo = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationId_t_cellInfo_get) {
  {
    struct LocationId *arg1 = (struct LocationId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    CellInfo_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationId_t_cellInfo_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationId_t_cellInfo_get" "', argument " "1"" of type '" "struct LocationId *""'"); 
    }
    arg1 = (struct LocationId *)(argp1);
    result =  ((arg1)->cellInfo);
    ST(argvi) = SWIG_NewPointerObj((CellInfo_t *)memcpy((CellInfo_t *)malloc(sizeof(CellInfo_t)),&result,sizeof(CellInfo_t)), SWIGTYPE_p_CellInfo_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationId_t_status_set) {
  {
    struct LocationId *arg1 = (struct LocationId *) 0 ;
    Status_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationId_t_status_set(self,status);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationId_t_status_set" "', argument " "1"" of type '" "struct LocationId *""'"); 
    }
    arg1 = (struct LocationId *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationId_t_status_set" "', argument " "2"" of type '" "Status_t""'");
    } 
    arg2 = (Status_t)(val2);
    if (arg1) (arg1)->status = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationId_t_status_get) {
  {
    struct LocationId *arg1 = (struct LocationId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Status_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationId_t_status_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationId_t_status_get" "', argument " "1"" of type '" "struct LocationId *""'"); 
    }
    arg1 = (struct LocationId *)(argp1);
    result = (Status_t) ((arg1)->status);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_LocationId_t) {
  {
    int argvi = 0;
    struct LocationId *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_LocationId_t();");
    }
    result = (struct LocationId *)calloc(1, sizeof(struct LocationId));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationId, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_LocationId_t) {
  {
    struct LocationId *arg1 = (struct LocationId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_LocationId_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationId, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocationId_t" "', argument " "1"" of type '" "struct LocationId *""'"); 
    }
    arg1 = (struct LocationId *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SessionID_t_setSessionID_set) {
  {
    struct SessionID *arg1 = (struct SessionID *) 0 ;
    struct SetSessionID *arg2 = (struct SetSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SessionID_t_setSessionID_set(self,setSessionID);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SessionID_t_setSessionID_set" "', argument " "1"" of type '" "struct SessionID *""'"); 
    }
    arg1 = (struct SessionID *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SetSessionID, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SessionID_t_setSessionID_set" "', argument " "2"" of type '" "struct SetSessionID *""'"); 
    }
    arg2 = (struct SetSessionID *)(argp2);
    if (arg1) (arg1)->setSessionID = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SessionID_t_setSessionID_get) {
  {
    struct SessionID *arg1 = (struct SessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SetSessionID *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SessionID_t_setSessionID_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SessionID_t_setSessionID_get" "', argument " "1"" of type '" "struct SessionID *""'"); 
    }
    arg1 = (struct SessionID *)(argp1);
    result = (struct SetSessionID *) ((arg1)->setSessionID);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SetSessionID, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SessionID_t_slpSessionID_set) {
  {
    struct SessionID *arg1 = (struct SessionID *) 0 ;
    struct SlpSessionID *arg2 = (struct SlpSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SessionID_t_slpSessionID_set(self,slpSessionID);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SessionID_t_slpSessionID_set" "', argument " "1"" of type '" "struct SessionID *""'"); 
    }
    arg1 = (struct SessionID *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SlpSessionID, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SessionID_t_slpSessionID_set" "', argument " "2"" of type '" "struct SlpSessionID *""'"); 
    }
    arg2 = (struct SlpSessionID *)(argp2);
    if (arg1) (arg1)->slpSessionID = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SessionID_t_slpSessionID_get) {
  {
    struct SessionID *arg1 = (struct SessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SlpSessionID *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SessionID_t_slpSessionID_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SessionID_t_slpSessionID_get" "', argument " "1"" of type '" "struct SessionID *""'"); 
    }
    arg1 = (struct SessionID *)(argp1);
    result = (struct SlpSessionID *) ((arg1)->slpSessionID);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SlpSessionID, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SessionID_t) {
  {
    int argvi = 0;
    struct SessionID *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SessionID_t();");
    }
    result = (struct SessionID *)calloc(1, sizeof(struct SessionID));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SessionID, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SessionID_t) {
  {
    struct SessionID *arg1 = (struct SessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SessionID_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SessionID, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SessionID_t" "', argument " "1"" of type '" "struct SessionID *""'"); 
    }
    arg1 = (struct SessionID *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SetSessionID_t_sessionId_set) {
  {
    struct SetSessionID *arg1 = (struct SetSessionID *) 0 ;
    long arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SetSessionID_t_sessionId_set(self,sessionId);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SetSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetSessionID_t_sessionId_set" "', argument " "1"" of type '" "struct SetSessionID *""'"); 
    }
    arg1 = (struct SetSessionID *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SetSessionID_t_sessionId_set" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    if (arg1) (arg1)->sessionId = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SetSessionID_t_sessionId_get) {
  {
    struct SetSessionID *arg1 = (struct SetSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    long result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SetSessionID_t_sessionId_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SetSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetSessionID_t_sessionId_get" "', argument " "1"" of type '" "struct SetSessionID *""'"); 
    }
    arg1 = (struct SetSessionID *)(argp1);
    result = (long) ((arg1)->sessionId);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SetSessionID_t_setId_set) {
  {
    struct SetSessionID *arg1 = (struct SetSessionID *) 0 ;
    SETId_t *arg2 = (SETId_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SetSessionID_t_setId_set(self,setId);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SetSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetSessionID_t_setId_set" "', argument " "1"" of type '" "struct SetSessionID *""'"); 
    }
    arg1 = (struct SetSessionID *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SETId, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SetSessionID_t_setId_set" "', argument " "2"" of type '" "SETId_t *""'"); 
    }
    arg2 = (SETId_t *)(argp2);
    if (arg1) (arg1)->setId = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SetSessionID_t_setId_get) {
  {
    struct SetSessionID *arg1 = (struct SetSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETId_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SetSessionID_t_setId_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SetSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetSessionID_t_setId_get" "', argument " "1"" of type '" "struct SetSessionID *""'"); 
    }
    arg1 = (struct SetSessionID *)(argp1);
    result = (SETId_t *)& ((arg1)->setId);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SETId, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SetSessionID_t) {
  {
    int argvi = 0;
    struct SetSessionID *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SetSessionID_t();");
    }
    result = (struct SetSessionID *)calloc(1, sizeof(struct SetSessionID));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SetSessionID, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SetSessionID_t) {
  {
    struct SetSessionID *arg1 = (struct SetSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SetSessionID_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SetSessionID, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SetSessionID_t" "', argument " "1"" of type '" "struct SetSessionID *""'"); 
    }
    arg1 = (struct SetSessionID *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_present_set) {
  {
    struct SETId *arg1 = (struct SETId *) 0 ;
    SETId_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_present_set" "', argument " "1"" of type '" "struct SETId *""'"); 
    }
    arg1 = (struct SETId *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SETId_t_present_set" "', argument " "2"" of type '" "SETId_PR""'");
    } 
    arg2 = (SETId_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_present_get) {
  {
    struct SETId *arg1 = (struct SETId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETId_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_present_get" "', argument " "1"" of type '" "struct SETId *""'"); 
    }
    arg1 = (struct SETId *)(argp1);
    result = (SETId_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_get) {
  {
    struct SETId *arg1 = (struct SETId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SETId_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_get" "', argument " "1"" of type '" "struct SETId *""'"); 
    }
    arg1 = (struct SETId *)(argp1);
    result = (SETId_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SETId_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SETId_t) {
  {
    int argvi = 0;
    struct SETId *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SETId_t();");
    }
    result = (struct SETId *)calloc(1, sizeof(struct SETId));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SETId, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SETId_t) {
  {
    struct SETId *arg1 = (struct SETId *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SETId_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SETId_t" "', argument " "1"" of type '" "struct SETId *""'"); 
    }
    arg1 = (struct SETId *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_msisdn_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_msisdn_set(self,msisdn);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_msisdn_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->msisdn = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_msisdn_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_msisdn_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_msisdn_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->msisdn);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_mdn_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_mdn_set(self,mdn);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_mdn_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->mdn = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_mdn_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_mdn_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_mdn_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->mdn);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_min_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    BIT_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_min_set(self,min);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_min_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
      (&arg2)->bits_unused = 0;
    }
    if (arg1) (arg1)->min = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_min_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    BIT_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_min_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_min_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->min);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size); // XXX bits_unused ...
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_imsi_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_imsi_set(self,imsi);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_imsi_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->imsi = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_imsi_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_imsi_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_imsi_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->imsi);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_nai_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    IA5String_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_nai_set(self,nai);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_nai_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->nai = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_nai_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    IA5String_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_nai_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_nai_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->nai);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_iPAddress_set) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    IPAddress_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SETId_t_choice_iPAddress_set(self,iPAddress);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_iPAddress_set" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not an embedded ip address.");
      if( SvCUR(ST(1)) == 4 ) {
        // IPv4
        (&arg2)->present = IPAddress_PR_ipv4Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv4Address, SvPV_nolen(ST(1)), 4);
      }
      else if( SvCUR(ST(1)) == 16 ) {
        // IPv6
        (&arg2)->present = IPAddress_PR_ipv6Address;
        OCTET_STRING_fromBuf(&(&arg2)->choice.ipv6Address, SvPV_nolen(ST(1)), 16);
      }
      else
      croak("Argument 2 is not an embedded ip address.");
    }
    if (arg1) (arg1)->iPAddress = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SETId_t_choice_iPAddress_get) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    IPAddress_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SETId_t_choice_iPAddress_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SETId_t_choice_iPAddress_get" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    result =  ((arg1)->iPAddress);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      if(IPAddress_PR_ipv4Address == (&result)->present && 4 == (&result)->choice.ipv4Address.size) {
        sv_setpvn(ST(argvi), (char *)((&result)->choice.ipv4Address.buf), 4);
      }
      else if(IPAddress_PR_ipv6Address == (&result)->present && 16 == (&result)->choice.ipv4Address.size) {
        sv_setpvn(ST(argvi), (char *)((&result)->choice.ipv6Address.buf), 16);
      }
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SETId_t_choice) {
  {
    int argvi = 0;
    SETId_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SETId_t_choice();");
    }
    result = (SETId_t_choice *)calloc(1, sizeof(SETId_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SETId_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SETId_t_choice) {
  {
    SETId_t_choice *arg1 = (SETId_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SETId_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SETId_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SETId_t_choice" "', argument " "1"" of type '" "SETId_t_choice *""'"); 
    }
    arg1 = (SETId_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SlpSessionID_t_sessionID_set) {
  {
    struct SlpSessionID *arg1 = (struct SlpSessionID *) 0 ;
    OCTET_STRING_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SlpSessionID_t_sessionID_set(self,sessionID);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SlpSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SlpSessionID_t_sessionID_set" "', argument " "1"" of type '" "struct SlpSessionID *""'"); 
    }
    arg1 = (struct SlpSessionID *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->sessionID = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SlpSessionID_t_sessionID_get) {
  {
    struct SlpSessionID *arg1 = (struct SlpSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    OCTET_STRING_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SlpSessionID_t_sessionID_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SlpSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SlpSessionID_t_sessionID_get" "', argument " "1"" of type '" "struct SlpSessionID *""'"); 
    }
    arg1 = (struct SlpSessionID *)(argp1);
    result =  ((arg1)->sessionID);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_SlpSessionID_t_slpId_set) {
  {
    struct SlpSessionID *arg1 = (struct SlpSessionID *) 0 ;
    SLPAddress_t *arg2 = (SLPAddress_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: SlpSessionID_t_slpId_set(self,slpId);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SlpSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SlpSessionID_t_slpId_set" "', argument " "1"" of type '" "struct SlpSessionID *""'"); 
    }
    arg1 = (struct SlpSessionID *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SLPAddress, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SlpSessionID_t_slpId_set" "', argument " "2"" of type '" "SLPAddress_t *""'"); 
    }
    arg2 = (SLPAddress_t *)(argp2);
    if (arg1) (arg1)->slpId = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_SlpSessionID_t_slpId_get) {
  {
    struct SlpSessionID *arg1 = (struct SlpSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    SLPAddress_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: SlpSessionID_t_slpId_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SlpSessionID, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SlpSessionID_t_slpId_get" "', argument " "1"" of type '" "struct SlpSessionID *""'"); 
    }
    arg1 = (struct SlpSessionID *)(argp1);
    result = (SLPAddress_t *)& ((arg1)->slpId);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SLPAddress, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_SlpSessionID_t) {
  {
    int argvi = 0;
    struct SlpSessionID *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_SlpSessionID_t();");
    }
    result = (struct SlpSessionID *)calloc(1, sizeof(struct SlpSessionID));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SlpSessionID, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_SlpSessionID_t) {
  {
    struct SlpSessionID *arg1 = (struct SlpSessionID *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_SlpSessionID_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SlpSessionID, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SlpSessionID_t" "', argument " "1"" of type '" "struct SlpSessionID *""'"); 
    }
    arg1 = (struct SlpSessionID *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_referenceNumber_set) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    long arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_PDU_t_referenceNumber_set(self,referenceNumber);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_referenceNumber_set" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RRLP_PDU_t_referenceNumber_set" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    if (arg1) (arg1)->referenceNumber = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_referenceNumber_get) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    long result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_PDU_t_referenceNumber_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_referenceNumber_get" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    result = (long) ((arg1)->referenceNumber);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_component_set) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    RRLP_Component_t *arg2 = (RRLP_Component_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_PDU_t_component_set(self,component);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_component_set" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_RRLP_Component, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_PDU_t_component_set" "', argument " "2"" of type '" "RRLP_Component_t *""'"); 
    }
    arg2 = (RRLP_Component_t *)(argp2);
    if (arg1) (arg1)->component = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_component_get) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    RRLP_Component_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_PDU_t_component_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_component_get" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    result = (RRLP_Component_t *)& ((arg1)->component);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_Component, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_RRLP_PDU_t__SWIG_0) {
  {
    int argvi = 0;
    struct RRLP_PDU *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_RRLP_PDU_t();");
    }
    result = (struct RRLP_PDU *)new_RRLP_PDU__SWIG_0();
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_PDU, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_new_RRLP_PDU_t__SWIG_1) {
  {
    char *arg1 = (char *) 0 ;
    size_t arg2 ;
    int argvi = 0;
    struct RRLP_PDU *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: new_RRLP_PDU_t(data,data_len);");
    }
    {
      if(ST(0) == NULL) {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_RRLP_PDU_t" "', argument " "data" " of type '" "MsgBuffer""'");
      }
      if( SvFLAGS(ST(0)) & (SVf_OK & ~SVf_ROK) ) {
        arg1 = SvPV(ST(0), arg2);
      }
      else {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_RRLP_PDU_t" "', argument " "data" " of type '" "MsgBuffer""'");
      }
    }
    result = (struct RRLP_PDU *)new_RRLP_PDU__SWIG_1((char const *)arg1,arg2);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_PDU, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_RRLP_PDU_t) {
  dXSARGS;
  
  {
    unsigned long _index = 0;
    SWIG_TypeRank _rank = 0; 
    if (items == 0) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 1;
        if (_rank == _rankm) goto dispatch;
      }
    }
    if (items == 1) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (items > 1) {
        {
          {
            int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
            _v = SWIG_CheckState(res);
          }
        }
        if (!_v) goto check_2;
        _ranki += _v*_pi;
        _rankm += _pi;
        _pi *= SWIG_MAXCASTRANK;
      }
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 2;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_2:
    
  dispatch:
    switch(_index) {
    case 1:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_RRLP_PDU_t__SWIG_0); return;
    case 2:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_RRLP_PDU_t__SWIG_1); return;
    }
  }
  
  croak("No matching function for overloaded 'new_RRLP_PDU_t'");
  XSRETURN(0);
}


XS(_wrap_delete_RRLP_PDU_t) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_RRLP_PDU_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RRLP_PDU_t" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    delete_RRLP_PDU(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_encode) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MsgBuffer result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_PDU_t_encode(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_encode" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    result = RRLP_PDU_encode(arg1);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_2mortal(newSVpv((&result)->buf, (&result)->size));
      ++argvi; /* intentional - not portable between languages */
    }
    
    do {
      if( (&result)->buf ) free((&result)->buf); 
    } while(0);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_dump) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_PDU_t_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_dump" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    result = (char *)RRLP_PDU_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_xml_dump) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_PDU_t_xml_dump(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_xml_dump" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    result = (char *)RRLP_PDU_xml_dump(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    
    free((char*)result);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_PDU_t_set_component_type) {
  {
    struct RRLP_PDU *arg1 = (struct RRLP_PDU *) 0 ;
    RRLP_Component_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_PDU_t_set_component_type(self,kind_of);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_PDU_t_set_component_type" "', argument " "1"" of type '" "struct RRLP_PDU *""'"); 
    }
    arg1 = (struct RRLP_PDU *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RRLP_PDU_t_set_component_type" "', argument " "2"" of type '" "RRLP_Component_PR""'");
    } 
    arg2 = (RRLP_Component_PR)(val2);
    RRLP_PDU_set_component_type(arg1,arg2);
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_present_set) {
  {
    struct RRLP_Component *arg1 = (struct RRLP_Component *) 0 ;
    RRLP_Component_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_present_set" "', argument " "1"" of type '" "struct RRLP_Component *""'"); 
    }
    arg1 = (struct RRLP_Component *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RRLP_Component_t_present_set" "', argument " "2"" of type '" "RRLP_Component_PR""'");
    } 
    arg2 = (RRLP_Component_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_present_get) {
  {
    struct RRLP_Component *arg1 = (struct RRLP_Component *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    RRLP_Component_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_present_get" "', argument " "1"" of type '" "struct RRLP_Component *""'"); 
    }
    arg1 = (struct RRLP_Component *)(argp1);
    result = (RRLP_Component_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_get) {
  {
    struct RRLP_Component *arg1 = (struct RRLP_Component *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    RRLP_Component_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_get" "', argument " "1"" of type '" "struct RRLP_Component *""'"); 
    }
    arg1 = (struct RRLP_Component *)(argp1);
    result = (RRLP_Component_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_Component_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_RRLP_Component_t) {
  {
    int argvi = 0;
    struct RRLP_Component *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_RRLP_Component_t();");
    }
    result = (struct RRLP_Component *)calloc(1, sizeof(struct RRLP_Component));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_Component, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_RRLP_Component_t) {
  {
    struct RRLP_Component *arg1 = (struct RRLP_Component *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_RRLP_Component_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RRLP_Component_t" "', argument " "1"" of type '" "struct RRLP_Component *""'"); 
    }
    arg1 = (struct RRLP_Component *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_msrPositionReq_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    MsrPosition_Req_t *arg2 = (MsrPosition_Req_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_msrPositionReq_set(self,msrPositionReq);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_msrPositionReq_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_msrPositionReq_set" "', argument " "2"" of type '" "MsrPosition_Req_t *""'"); 
    }
    arg2 = (MsrPosition_Req_t *)(argp2);
    if (arg1) (arg1)->msrPositionReq = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_msrPositionReq_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MsrPosition_Req_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_msrPositionReq_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_msrPositionReq_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (MsrPosition_Req_t *)& ((arg1)->msrPositionReq);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrPosition_Req, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_msrPositionRsp_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    MsrPosition_Rsp_t *arg2 = (MsrPosition_Rsp_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_msrPositionRsp_set(self,msrPositionRsp);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_msrPositionRsp_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_msrPositionRsp_set" "', argument " "2"" of type '" "MsrPosition_Rsp_t *""'"); 
    }
    arg2 = (MsrPosition_Rsp_t *)(argp2);
    if (arg1) (arg1)->msrPositionRsp = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_msrPositionRsp_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MsrPosition_Rsp_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_msrPositionRsp_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_msrPositionRsp_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (MsrPosition_Rsp_t *)& ((arg1)->msrPositionRsp);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrPosition_Rsp, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_assistanceData_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    AssistanceData_t *arg2 = (AssistanceData_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_assistanceData_set(self,assistanceData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_assistanceData_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_assistanceData_set" "', argument " "2"" of type '" "AssistanceData_t *""'"); 
    }
    arg2 = (AssistanceData_t *)(argp2);
    if (arg1) (arg1)->assistanceData = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_assistanceData_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    AssistanceData_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_assistanceData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_assistanceData_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (AssistanceData_t *)& ((arg1)->assistanceData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssistanceData, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_assistanceDataAck_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    NULL_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_assistanceDataAck_set(self,assistanceDataAck);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_assistanceDataAck_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_NULL_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_assistanceDataAck_set" "', argument " "2"" of type '" "NULL_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RRLP_Component_t_choice_assistanceDataAck_set" "', argument " "2"" of type '" "NULL_t""'");
      } else {
        arg2 = *((NULL_t *)(argp2));
      }
    }
    if (arg1) (arg1)->assistanceDataAck = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_assistanceDataAck_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    NULL_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_assistanceDataAck_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_assistanceDataAck_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result =  ((arg1)->assistanceDataAck);
    ST(argvi) = SWIG_NewPointerObj((NULL_t *)memcpy((NULL_t *)malloc(sizeof(NULL_t)),&result,sizeof(NULL_t)), SWIGTYPE_p_NULL_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_protocolError_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    ProtocolError_t *arg2 = (ProtocolError_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_protocolError_set(self,protocolError);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_protocolError_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_protocolError_set" "', argument " "2"" of type '" "ProtocolError_t *""'"); 
    }
    arg2 = (ProtocolError_t *)(argp2);
    if (arg1) (arg1)->protocolError = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_protocolError_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    ProtocolError_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_protocolError_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_protocolError_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (ProtocolError_t *)& ((arg1)->protocolError);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProtocolError, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_posCapabilityReq_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    PosCapability_Req_t *arg2 = (PosCapability_Req_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_posCapabilityReq_set(self,posCapabilityReq);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_posCapabilityReq_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_posCapabilityReq_set" "', argument " "2"" of type '" "PosCapability_Req_t *""'"); 
    }
    arg2 = (PosCapability_Req_t *)(argp2);
    if (arg1) (arg1)->posCapabilityReq = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_posCapabilityReq_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosCapability_Req_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_posCapabilityReq_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_posCapabilityReq_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (PosCapability_Req_t *)& ((arg1)->posCapabilityReq);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosCapability_Req, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_posCapabilityRsp_set) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    PosCapability_Rsp_t *arg2 = (PosCapability_Rsp_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_posCapabilityRsp_set(self,posCapabilityRsp);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_posCapabilityRsp_set" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RRLP_Component_t_choice_posCapabilityRsp_set" "', argument " "2"" of type '" "PosCapability_Rsp_t *""'"); 
    }
    arg2 = (PosCapability_Rsp_t *)(argp2);
    if (arg1) (arg1)->posCapabilityRsp = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_RRLP_Component_t_choice_posCapabilityRsp_get) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosCapability_Rsp_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: RRLP_Component_t_choice_posCapabilityRsp_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RRLP_Component_t_choice_posCapabilityRsp_get" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    result = (PosCapability_Rsp_t *)& ((arg1)->posCapabilityRsp);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosCapability_Rsp, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_RRLP_Component_t_choice) {
  {
    int argvi = 0;
    RRLP_Component_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_RRLP_Component_t_choice();");
    }
    result = (RRLP_Component_t_choice *)calloc(1, sizeof(RRLP_Component_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RRLP_Component_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_RRLP_Component_t_choice) {
  {
    RRLP_Component_t_choice *arg1 = (RRLP_Component_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_RRLP_Component_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RRLP_Component_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RRLP_Component_t_choice" "', argument " "1"" of type '" "RRLP_Component_t_choice *""'"); 
    }
    arg1 = (RRLP_Component_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_positionInstruct_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    PositionInstruct_t *arg2 = (PositionInstruct_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_positionInstruct_set(self,positionInstruct);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_positionInstruct_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_positionInstruct_set" "', argument " "2"" of type '" "PositionInstruct_t *""'"); 
    }
    arg2 = (PositionInstruct_t *)(argp2);
    if (arg1) (arg1)->positionInstruct = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_positionInstruct_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PositionInstruct_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_positionInstruct_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_positionInstruct_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (PositionInstruct_t *)& ((arg1)->positionInstruct);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PositionInstruct, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_referenceAssistData_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct ReferenceAssistData *arg2 = (struct ReferenceAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_referenceAssistData_set(self,referenceAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_referenceAssistData_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ReferenceAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_referenceAssistData_set" "', argument " "2"" of type '" "struct ReferenceAssistData *""'"); 
    }
    arg2 = (struct ReferenceAssistData *)(argp2);
    if (arg1) (arg1)->referenceAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_referenceAssistData_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ReferenceAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_referenceAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_referenceAssistData_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct ReferenceAssistData *) ((arg1)->referenceAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ReferenceAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_msrAssistData_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct MsrAssistData *arg2 = (struct MsrAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_msrAssistData_set(self,msrAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_msrAssistData_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_msrAssistData_set" "', argument " "2"" of type '" "struct MsrAssistData *""'"); 
    }
    arg2 = (struct MsrAssistData *)(argp2);
    if (arg1) (arg1)->msrAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_msrAssistData_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct MsrAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_msrAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_msrAssistData_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct MsrAssistData *) ((arg1)->msrAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_systemInfoAssistData_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct SystemInfoAssistData *arg2 = (struct SystemInfoAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_systemInfoAssistData_set(self,systemInfoAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_systemInfoAssistData_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SystemInfoAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_systemInfoAssistData_set" "', argument " "2"" of type '" "struct SystemInfoAssistData *""'"); 
    }
    arg2 = (struct SystemInfoAssistData *)(argp2);
    if (arg1) (arg1)->systemInfoAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_systemInfoAssistData_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SystemInfoAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_systemInfoAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_systemInfoAssistData_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct SystemInfoAssistData *) ((arg1)->systemInfoAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SystemInfoAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_gps_AssistData_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct GPS_AssistData *arg2 = (struct GPS_AssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_gps_AssistData_set(self,gps_AssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_gps_AssistData_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_GPS_AssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_gps_AssistData_set" "', argument " "2"" of type '" "struct GPS_AssistData *""'"); 
    }
    arg2 = (struct GPS_AssistData *)(argp2);
    if (arg1) (arg1)->gps_AssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_gps_AssistData_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct GPS_AssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_gps_AssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_gps_AssistData_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct GPS_AssistData *) ((arg1)->gps_AssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPS_AssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_extensionContainer_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_extensionContainer_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_extensionContainer_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_extensionContainer_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct Rel98_MsrPosition_Req_Extension *arg2 = (struct Rel98_MsrPosition_Req_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set(self,rel98_MsrPosition_Req_extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel98_MsrPosition_Req_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set" "', argument " "2"" of type '" "struct Rel98_MsrPosition_Req_Extension *""'"); 
    }
    arg2 = (struct Rel98_MsrPosition_Req_Extension *)(argp2);
    if (arg1) (arg1)->rel98_MsrPosition_Req_extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel98_MsrPosition_Req_extension_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel98_MsrPosition_Req_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel98_MsrPosition_Req_extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel98_MsrPosition_Req_extension_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct Rel98_MsrPosition_Req_Extension *) ((arg1)->rel98_MsrPosition_Req_extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel98_MsrPosition_Req_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct Rel5_MsrPosition_Req_Extension *arg2 = (struct Rel5_MsrPosition_Req_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set(self,rel5_MsrPosition_Req_extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel5_MsrPosition_Req_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set" "', argument " "2"" of type '" "struct Rel5_MsrPosition_Req_Extension *""'"); 
    }
    arg2 = (struct Rel5_MsrPosition_Req_Extension *)(argp2);
    if (arg1) (arg1)->rel5_MsrPosition_Req_extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel5_MsrPosition_Req_extension_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel5_MsrPosition_Req_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel5_MsrPosition_Req_extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel5_MsrPosition_Req_extension_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct Rel5_MsrPosition_Req_Extension *) ((arg1)->rel5_MsrPosition_Req_extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel5_MsrPosition_Req_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    struct Rel7_MsrPosition_Req_Extension *arg2 = (struct Rel7_MsrPosition_Req_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set(self,rel7_MsrPosition_Req_extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel7_MsrPosition_Req_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set" "', argument " "2"" of type '" "struct Rel7_MsrPosition_Req_Extension *""'"); 
    }
    arg2 = (struct Rel7_MsrPosition_Req_Extension *)(argp2);
    if (arg1) (arg1)->rel7_MsrPosition_Req_extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Req_t_rel7_MsrPosition_Req_extension_get) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel7_MsrPosition_Req_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Req_t_rel7_MsrPosition_Req_extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Req_t_rel7_MsrPosition_Req_extension_get" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    result = (struct Rel7_MsrPosition_Req_Extension *) ((arg1)->rel7_MsrPosition_Req_extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel7_MsrPosition_Req_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_MsrPosition_Req_t) {
  {
    int argvi = 0;
    struct MsrPosition_Req *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_MsrPosition_Req_t();");
    }
    result = (struct MsrPosition_Req *)calloc(1, sizeof(struct MsrPosition_Req));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrPosition_Req, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_MsrPosition_Req_t) {
  {
    struct MsrPosition_Req *arg1 = (struct MsrPosition_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_MsrPosition_Req_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Req, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrPosition_Req_t" "', argument " "1"" of type '" "struct MsrPosition_Req *""'"); 
    }
    arg1 = (struct MsrPosition_Req *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_multipleSets_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct MultipleSets *arg2 = (struct MultipleSets *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_multipleSets_set(self,multipleSets);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_multipleSets_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MultipleSets, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_multipleSets_set" "', argument " "2"" of type '" "struct MultipleSets *""'"); 
    }
    arg2 = (struct MultipleSets *)(argp2);
    if (arg1) (arg1)->multipleSets = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_multipleSets_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct MultipleSets *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_multipleSets_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_multipleSets_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct MultipleSets *) ((arg1)->multipleSets);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MultipleSets, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_referenceIdentity_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct ReferenceIdentity *arg2 = (struct ReferenceIdentity *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_referenceIdentity_set(self,referenceIdentity);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_referenceIdentity_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ReferenceIdentity, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_referenceIdentity_set" "', argument " "2"" of type '" "struct ReferenceIdentity *""'"); 
    }
    arg2 = (struct ReferenceIdentity *)(argp2);
    if (arg1) (arg1)->referenceIdentity = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_referenceIdentity_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ReferenceIdentity *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_referenceIdentity_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_referenceIdentity_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct ReferenceIdentity *) ((arg1)->referenceIdentity);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ReferenceIdentity, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_otd_MeasureInfo_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct OTD_MeasureInfo *arg2 = (struct OTD_MeasureInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_otd_MeasureInfo_set(self,otd_MeasureInfo);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_otd_MeasureInfo_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_OTD_MeasureInfo, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_otd_MeasureInfo_set" "', argument " "2"" of type '" "struct OTD_MeasureInfo *""'"); 
    }
    arg2 = (struct OTD_MeasureInfo *)(argp2);
    if (arg1) (arg1)->otd_MeasureInfo = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_otd_MeasureInfo_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct OTD_MeasureInfo *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_otd_MeasureInfo_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_otd_MeasureInfo_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct OTD_MeasureInfo *) ((arg1)->otd_MeasureInfo);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OTD_MeasureInfo, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_locationInfo_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct LocationInfo *arg2 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_locationInfo_set(self,locationInfo);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_locationInfo_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_LocationInfo, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_locationInfo_set" "', argument " "2"" of type '" "struct LocationInfo *""'"); 
    }
    arg2 = (struct LocationInfo *)(argp2);
    if (arg1) (arg1)->locationInfo = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_locationInfo_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct LocationInfo *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_locationInfo_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_locationInfo_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct LocationInfo *) ((arg1)->locationInfo);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationInfo, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_gps_MeasureInfo_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct GPS_MeasureInfo *arg2 = (struct GPS_MeasureInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_gps_MeasureInfo_set(self,gps_MeasureInfo);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_gps_MeasureInfo_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_GPS_MeasureInfo, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_gps_MeasureInfo_set" "', argument " "2"" of type '" "struct GPS_MeasureInfo *""'"); 
    }
    arg2 = (struct GPS_MeasureInfo *)(argp2);
    if (arg1) (arg1)->gps_MeasureInfo = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_gps_MeasureInfo_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct GPS_MeasureInfo *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_gps_MeasureInfo_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_gps_MeasureInfo_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct GPS_MeasureInfo *) ((arg1)->gps_MeasureInfo);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPS_MeasureInfo, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_locationError_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct LocationError *arg2 = (struct LocationError *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_locationError_set(self,locationError);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_locationError_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_LocationError, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_locationError_set" "', argument " "2"" of type '" "struct LocationError *""'"); 
    }
    arg2 = (struct LocationError *)(argp2);
    if (arg1) (arg1)->locationError = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_locationError_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct LocationError *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_locationError_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_locationError_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct LocationError *) ((arg1)->locationError);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationError, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_extensionContainer_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_extensionContainer_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_extensionContainer_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_extensionContainer_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct Rel_98_MsrPosition_Rsp_Extension *arg2 = (struct Rel_98_MsrPosition_Rsp_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set(self,rel_98_MsrPosition_Rsp_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel_98_MsrPosition_Rsp_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set" "', argument " "2"" of type '" "struct Rel_98_MsrPosition_Rsp_Extension *""'"); 
    }
    arg2 = (struct Rel_98_MsrPosition_Rsp_Extension *)(argp2);
    if (arg1) (arg1)->rel_98_MsrPosition_Rsp_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel_98_MsrPosition_Rsp_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct Rel_98_MsrPosition_Rsp_Extension *) ((arg1)->rel_98_MsrPosition_Rsp_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel_98_MsrPosition_Rsp_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct Rel_5_MsrPosition_Rsp_Extension *arg2 = (struct Rel_5_MsrPosition_Rsp_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set(self,rel_5_MsrPosition_Rsp_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel_5_MsrPosition_Rsp_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set" "', argument " "2"" of type '" "struct Rel_5_MsrPosition_Rsp_Extension *""'"); 
    }
    arg2 = (struct Rel_5_MsrPosition_Rsp_Extension *)(argp2);
    if (arg1) (arg1)->rel_5_MsrPosition_Rsp_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel_5_MsrPosition_Rsp_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct Rel_5_MsrPosition_Rsp_Extension *) ((arg1)->rel_5_MsrPosition_Rsp_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel_5_MsrPosition_Rsp_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    struct Rel_7_MsrPosition_Rsp_Extension *arg2 = (struct Rel_7_MsrPosition_Rsp_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set(self,rel_7_MsrPosition_Rsp_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel_7_MsrPosition_Rsp_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set" "', argument " "2"" of type '" "struct Rel_7_MsrPosition_Rsp_Extension *""'"); 
    }
    arg2 = (struct Rel_7_MsrPosition_Rsp_Extension *)(argp2);
    if (arg1) (arg1)->rel_7_MsrPosition_Rsp_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_get) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel_7_MsrPosition_Rsp_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_get" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    result = (struct Rel_7_MsrPosition_Rsp_Extension *) ((arg1)->rel_7_MsrPosition_Rsp_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel_7_MsrPosition_Rsp_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_MsrPosition_Rsp_t) {
  {
    int argvi = 0;
    struct MsrPosition_Rsp *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_MsrPosition_Rsp_t();");
    }
    result = (struct MsrPosition_Rsp *)calloc(1, sizeof(struct MsrPosition_Rsp));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrPosition_Rsp, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_MsrPosition_Rsp_t) {
  {
    struct MsrPosition_Rsp *arg1 = (struct MsrPosition_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_MsrPosition_Rsp_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrPosition_Rsp, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrPosition_Rsp_t" "', argument " "1"" of type '" "struct MsrPosition_Rsp *""'"); 
    }
    arg1 = (struct MsrPosition_Rsp *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_methodType_set) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    MethodType_t *arg2 = (MethodType_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PositionInstruct_t_methodType_set(self,methodType);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_methodType_set" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MethodType, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionInstruct_t_methodType_set" "', argument " "2"" of type '" "MethodType_t *""'"); 
    }
    arg2 = (MethodType_t *)(argp2);
    if (arg1) (arg1)->methodType = *arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_methodType_get) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MethodType_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PositionInstruct_t_methodType_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_methodType_get" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    result = (MethodType_t *)& ((arg1)->methodType);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MethodType, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_positionMethod_set) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    PositionMethod_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PositionInstruct_t_positionMethod_set(self,positionMethod);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_positionMethod_set" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_PositionMethod_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionInstruct_t_positionMethod_set" "', argument " "2"" of type '" "PositionMethod_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PositionInstruct_t_positionMethod_set" "', argument " "2"" of type '" "PositionMethod_t""'");
      } else {
        arg2 = *((PositionMethod_t *)(argp2));
      }
    }
    if (arg1) (arg1)->positionMethod = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_positionMethod_get) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PositionMethod_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PositionInstruct_t_positionMethod_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_positionMethod_get" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    result =  ((arg1)->positionMethod);
    ST(argvi) = SWIG_NewPointerObj((PositionMethod_t *)memcpy((PositionMethod_t *)malloc(sizeof(PositionMethod_t)),&result,sizeof(PositionMethod_t)), SWIGTYPE_p_PositionMethod_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_measureResponseTime_set) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    MeasureResponseTime_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PositionInstruct_t_measureResponseTime_set(self,measureResponseTime);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_measureResponseTime_set" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_MeasureResponseTime_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionInstruct_t_measureResponseTime_set" "', argument " "2"" of type '" "MeasureResponseTime_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PositionInstruct_t_measureResponseTime_set" "', argument " "2"" of type '" "MeasureResponseTime_t""'");
      } else {
        arg2 = *((MeasureResponseTime_t *)(argp2));
      }
    }
    if (arg1) (arg1)->measureResponseTime = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_measureResponseTime_get) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MeasureResponseTime_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PositionInstruct_t_measureResponseTime_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_measureResponseTime_get" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    result =  ((arg1)->measureResponseTime);
    ST(argvi) = SWIG_NewPointerObj((MeasureResponseTime_t *)memcpy((MeasureResponseTime_t *)malloc(sizeof(MeasureResponseTime_t)),&result,sizeof(MeasureResponseTime_t)), SWIGTYPE_p_MeasureResponseTime_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_useMultipleSets_set) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    UseMultipleSets_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PositionInstruct_t_useMultipleSets_set(self,useMultipleSets);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_useMultipleSets_set" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_UseMultipleSets_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionInstruct_t_useMultipleSets_set" "', argument " "2"" of type '" "UseMultipleSets_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PositionInstruct_t_useMultipleSets_set" "', argument " "2"" of type '" "UseMultipleSets_t""'");
      } else {
        arg2 = *((UseMultipleSets_t *)(argp2));
      }
    }
    if (arg1) (arg1)->useMultipleSets = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_useMultipleSets_get) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    UseMultipleSets_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PositionInstruct_t_useMultipleSets_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_useMultipleSets_get" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    result =  ((arg1)->useMultipleSets);
    ST(argvi) = SWIG_NewPointerObj((UseMultipleSets_t *)memcpy((UseMultipleSets_t *)malloc(sizeof(UseMultipleSets_t)),&result,sizeof(UseMultipleSets_t)), SWIGTYPE_p_UseMultipleSets_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_environmentCharacter_set) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    EnvironmentCharacter_t *arg2 = (EnvironmentCharacter_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PositionInstruct_t_environmentCharacter_set(self,environmentCharacter);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_environmentCharacter_set" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_EnvironmentCharacter_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PositionInstruct_t_environmentCharacter_set" "', argument " "2"" of type '" "EnvironmentCharacter_t *""'"); 
    }
    arg2 = (EnvironmentCharacter_t *)(argp2);
    if (arg1) (arg1)->environmentCharacter = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PositionInstruct_t_environmentCharacter_get) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    EnvironmentCharacter_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PositionInstruct_t_environmentCharacter_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PositionInstruct_t_environmentCharacter_get" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    result = (EnvironmentCharacter_t *) ((arg1)->environmentCharacter);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EnvironmentCharacter_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_PositionInstruct_t) {
  {
    int argvi = 0;
    struct PositionInstruct *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_PositionInstruct_t();");
    }
    result = (struct PositionInstruct *)calloc(1, sizeof(struct PositionInstruct));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PositionInstruct, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_PositionInstruct_t) {
  {
    struct PositionInstruct *arg1 = (struct PositionInstruct *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_PositionInstruct_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PositionInstruct, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PositionInstruct_t" "', argument " "1"" of type '" "struct PositionInstruct *""'"); 
    }
    arg1 = (struct PositionInstruct *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_present_set) {
  {
    struct MethodType *arg1 = (struct MethodType *) 0 ;
    MethodType_PR arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MethodType_t_present_set(self,present);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_present_set" "', argument " "1"" of type '" "struct MethodType *""'"); 
    }
    arg1 = (struct MethodType *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MethodType_t_present_set" "', argument " "2"" of type '" "MethodType_PR""'");
    } 
    arg2 = (MethodType_PR)(val2);
    if (arg1) (arg1)->present = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_present_get) {
  {
    struct MethodType *arg1 = (struct MethodType *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MethodType_PR result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_present_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_present_get" "', argument " "1"" of type '" "struct MethodType *""'"); 
    }
    arg1 = (struct MethodType *)(argp1);
    result = (MethodType_PR) ((arg1)->present);
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_get) {
  {
    struct MethodType *arg1 = (struct MethodType *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MethodType_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_choice_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_get" "', argument " "1"" of type '" "struct MethodType *""'"); 
    }
    arg1 = (struct MethodType *)(argp1);
    result = (MethodType_t_choice *)& ((arg1)->choice);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MethodType_t_choice, 0 | SWIG_SHADOW); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_MethodType_t) {
  {
    int argvi = 0;
    struct MethodType *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_MethodType_t();");
    }
    result = (struct MethodType *)calloc(1, sizeof(struct MethodType));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MethodType, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_MethodType_t) {
  {
    struct MethodType *arg1 = (struct MethodType *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_MethodType_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MethodType_t" "', argument " "1"" of type '" "struct MethodType *""'"); 
    }
    arg1 = (struct MethodType *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msAssisted_set) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    AccuracyOpt_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MethodType_t_choice_msAssisted_set(self,msAssisted);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msAssisted_set" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    {
      if( 0 != SvOK(ST(1)) ) {
        (&arg2)->accuracy = calloc(1, sizeof(*((&arg2)->accuracy)));
        if( (&arg2)->accuracy ) {
          *((&arg2)->accuracy) = SvIV(ST(1));
        }
        else {
          asn_DEF_AccuracyOpt.free_struct(&asn_DEF_AccuracyOpt, ST(1), 0);
          croak("Couldn't allocate memory to transform Accuracy_t embedded attribute of AccuracyOpt_t at 2");
        }
      }
      else {
        (&arg2)->accuracy = NULL;
      }
    }
    if (arg1) (arg1)->msAssisted = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msAssisted_get) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    AccuracyOpt_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_choice_msAssisted_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msAssisted_get" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    result =  ((arg1)->msAssisted);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      if(NULL != (&result)->accuracy) {
        sv_setiv(ST(argvi), *((&result)->accuracy));
      }
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msBased_set) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    Accuracy_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MethodType_t_choice_msBased_set(self,msBased);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msBased_set" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MethodType_t_choice_msBased_set" "', argument " "2"" of type '" "Accuracy_t""'");
    } 
    arg2 = (Accuracy_t)(val2);
    if (arg1) (arg1)->msBased = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msBased_get) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Accuracy_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_choice_msBased_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msBased_get" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    result = (Accuracy_t) ((arg1)->msBased);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msBasedPref_set) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    Accuracy_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MethodType_t_choice_msBasedPref_set(self,msBasedPref);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msBasedPref_set" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MethodType_t_choice_msBasedPref_set" "', argument " "2"" of type '" "Accuracy_t""'");
    } 
    arg2 = (Accuracy_t)(val2);
    if (arg1) (arg1)->msBasedPref = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msBasedPref_get) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Accuracy_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_choice_msBasedPref_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msBasedPref_get" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    result = (Accuracy_t) ((arg1)->msBasedPref);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msAssistedPref_set) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    Accuracy_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: MethodType_t_choice_msAssistedPref_set(self,msAssistedPref);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msAssistedPref_set" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MethodType_t_choice_msAssistedPref_set" "', argument " "2"" of type '" "Accuracy_t""'");
    } 
    arg2 = (Accuracy_t)(val2);
    if (arg1) (arg1)->msAssistedPref = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_MethodType_t_choice_msAssistedPref_get) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Accuracy_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: MethodType_t_choice_msAssistedPref_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MethodType_t_choice_msAssistedPref_get" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    result = (Accuracy_t) ((arg1)->msAssistedPref);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_MethodType_t_choice) {
  {
    int argvi = 0;
    MethodType_t_choice *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_MethodType_t_choice();");
    }
    result = (MethodType_t_choice *)calloc(1, sizeof(MethodType_t_choice));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MethodType_t_choice, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_MethodType_t_choice) {
  {
    MethodType_t_choice *arg1 = (MethodType_t_choice *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_MethodType_t_choice(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MethodType_t_choice, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MethodType_t_choice" "', argument " "1"" of type '" "MethodType_t_choice *""'"); 
    }
    arg1 = (MethodType_t_choice *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_errorCause_set) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    ErrorCodes_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ProtocolError_t_errorCause_set(self,errorCause);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_errorCause_set" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProtocolError_t_errorCause_set" "', argument " "2"" of type '" "ErrorCodes_t""'");
    } 
    arg2 = (ErrorCodes_t)(val2);
    if (arg1) (arg1)->errorCause = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_errorCause_get) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    ErrorCodes_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ProtocolError_t_errorCause_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_errorCause_get" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    result = (ErrorCodes_t) ((arg1)->errorCause);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_extensionContainer_set) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ProtocolError_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_extensionContainer_set" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProtocolError_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_extensionContainer_get) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ProtocolError_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_extensionContainer_get" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_rel_5_ProtocolError_Extension_set) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    struct Rel_5_ProtocolError_Extension *arg2 = (struct Rel_5_ProtocolError_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: ProtocolError_t_rel_5_ProtocolError_Extension_set(self,rel_5_ProtocolError_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_rel_5_ProtocolError_Extension_set" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel_5_ProtocolError_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProtocolError_t_rel_5_ProtocolError_Extension_set" "', argument " "2"" of type '" "struct Rel_5_ProtocolError_Extension *""'"); 
    }
    arg2 = (struct Rel_5_ProtocolError_Extension *)(argp2);
    if (arg1) (arg1)->rel_5_ProtocolError_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_ProtocolError_t_rel_5_ProtocolError_Extension_get) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel_5_ProtocolError_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ProtocolError_t_rel_5_ProtocolError_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProtocolError_t_rel_5_ProtocolError_Extension_get" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    result = (struct Rel_5_ProtocolError_Extension *) ((arg1)->rel_5_ProtocolError_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel_5_ProtocolError_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_ProtocolError_t) {
  {
    int argvi = 0;
    struct ProtocolError *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_ProtocolError_t();");
    }
    result = (struct ProtocolError *)calloc(1, sizeof(struct ProtocolError));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProtocolError, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_ProtocolError_t) {
  {
    struct ProtocolError *arg1 = (struct ProtocolError *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_ProtocolError_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProtocolError, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProtocolError_t" "', argument " "1"" of type '" "struct ProtocolError *""'"); 
    }
    arg1 = (struct ProtocolError *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_refFrame_set) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    long arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationInfo_t_refFrame_set(self,refFrame);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_refFrame_set" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_refFrame_set" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    if (arg1) (arg1)->refFrame = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_refFrame_get) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    long result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationInfo_t_refFrame_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_refFrame_get" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    result = (long) ((arg1)->refFrame);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_gpsTOW_set) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    long *arg2 = (long *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationInfo_t_gpsTOW_set(self,gpsTOW);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_gpsTOW_set" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_long, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocationInfo_t_gpsTOW_set" "', argument " "2"" of type '" "long *""'"); 
    }
    arg2 = (long *)(argp2);
    if (arg1) (arg1)->gpsTOW = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_gpsTOW_get) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    long *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationInfo_t_gpsTOW_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_gpsTOW_get" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    result = (long *) ((arg1)->gpsTOW);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_long, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_fixType_set) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    FixType_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationInfo_t_fixType_set(self,fixType);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_fixType_set" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_fixType_set" "', argument " "2"" of type '" "FixType_t""'");
    } 
    arg2 = (FixType_t)(val2);
    if (arg1) (arg1)->fixType = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_fixType_get) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    FixType_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationInfo_t_fixType_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_fixType_get" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    result = (FixType_t) ((arg1)->fixType);
    ST(argvi) = SWIG_From_long  SWIG_PERL_CALL_ARGS_1((long)(result)); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_posEstimate_set) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    Ext_GeographicalInformation_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    {
      memset(&arg2, 0, sizeof(arg2));
    }
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: LocationInfo_t_posEstimate_set(self,posEstimate);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_posEstimate_set" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    {
      if( 0 == (SvFLAGS(ST(1)) & (SVf_OK & ~SVf_ROK)) )
      croak("Argument 2 is not a string.");
      OCTET_STRING_fromBuf((OCTET_STRING_t *)(&arg2), SvPV_nolen(ST(1)), SvCUR(ST(1)));
    }
    if (arg1) (arg1)->posEstimate = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_posEstimate_get) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Ext_GeographicalInformation_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: LocationInfo_t_posEstimate_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_posEstimate_get" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    result =  ((arg1)->posEstimate);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_newmortal();
      sv_setpvn(ST(argvi), (char *)((&result)->buf), (&result)->size);
      
      ++argvi; /* intentional - not portable between languages */
    }
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_LocationInfo_t__SWIG_0) {
  {
    long arg1 ;
    unsigned int arg2 ;
    long val1 ;
    int ecode1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    int argvi = 0;
    struct LocationInfo *result = 0 ;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: new_LocationInfo_t(refFrame,fixType);");
    }
    ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
    if (!SWIG_IsOK(ecode1)) {
      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LocationInfo_t" "', argument " "1"" of type '" "long""'");
    } 
    arg1 = (long)(val1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LocationInfo_t" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    result = (struct LocationInfo *)new_LocationInfo__SWIG_0(arg1,arg2);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_LocationInfo_t__SWIG_1) {
  {
    long arg1 ;
    long arg2 ;
    unsigned int arg3 ;
    long val1 ;
    int ecode1 = 0 ;
    long val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    int argvi = 0;
    struct LocationInfo *result = 0 ;
    dXSARGS;
    
    if ((items < 3) || (items > 3)) {
      SWIG_croak("Usage: new_LocationInfo_t(refFrame,gpsTOW,fixType);");
    }
    ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1);
    if (!SWIG_IsOK(ecode1)) {
      SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_LocationInfo_t" "', argument " "1"" of type '" "long""'");
    } 
    arg1 = (long)(val1);
    ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LocationInfo_t" "', argument " "2"" of type '" "long""'");
    } 
    arg2 = (long)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LocationInfo_t" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    result = (struct LocationInfo *)new_LocationInfo__SWIG_1(arg1,arg2,arg3);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LocationInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_LocationInfo_t) {
  dXSARGS;
  
  {
    unsigned long _index = 0;
    SWIG_TypeRank _rank = 0; 
    if (items == 2) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        {
          int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_1;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_1;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 1;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_1:
    
    if (items == 3) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        {
          int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 2;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_2:
    
  dispatch:
    switch(_index) {
    case 1:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_LocationInfo_t__SWIG_0); return;
    case 2:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_LocationInfo_t__SWIG_1); return;
    }
  }
  
  croak("No matching function for overloaded 'new_LocationInfo_t'");
  XSRETURN(0);
}


XS(_wrap_delete_LocationInfo_t) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_LocationInfo_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LocationInfo_t" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    delete_LocationInfo(arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_0) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    unsigned int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 4) || (items > 4)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    LocationInfo_set_posEstimate__SWIG_0(arg1,arg2,arg3,arg4);
    ST(argvi) = sv_newmortal();
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_1) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    unsigned int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    unsigned int arg5 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    unsigned int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    unsigned int val5 ;
    int ecode5 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 5) || (items > 5)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude,uncertainty);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "unsigned int""'");
    } 
    arg2 = (unsigned int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "5"" of type '" "unsigned int""'");
    } 
    arg5 = (unsigned int)(val5);
    LocationInfo_set_posEstimate__SWIG_1(arg1,arg2,arg3,arg4,arg5);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_2) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    unsigned int arg5 ;
    unsigned int arg6 ;
    unsigned int arg7 ;
    unsigned int arg8 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    unsigned int val5 ;
    int ecode5 = 0 ;
    unsigned int val6 ;
    int ecode6 = 0 ;
    unsigned int val7 ;
    int ecode7 = 0 ;
    unsigned int val8 ;
    int ecode8 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 8) || (items > 8)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude,uncertainty_semi_major,uncertainty_semi_minor,orientation_of_major_axis,confidence);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "5"" of type '" "unsigned int""'");
    } 
    arg5 = (unsigned int)(val5);
    ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "6"" of type '" "unsigned int""'");
    } 
    arg6 = (unsigned int)(val6);
    ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "7"" of type '" "unsigned int""'");
    } 
    arg7 = (unsigned int)(val7);
    ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "8"" of type '" "unsigned int""'");
    } 
    arg8 = (unsigned int)(val8);
    LocationInfo_set_posEstimate__SWIG_2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_3) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    struct ellipsoid_point *arg2 = (struct ellipsoid_point *) 0 ;
    unsigned int arg3 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 3) || (items > 3)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,points,amount);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ellipsoid_point, 0 |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "struct ellipsoid_point *""'"); 
    }
    arg2 = (struct ellipsoid_point *)(argp2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    LocationInfo_set_posEstimate__SWIG_3(arg1,arg2,arg3);
    ST(argvi) = sv_newmortal();
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_4) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    int arg5 ;
    unsigned int arg6 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    int val5 ;
    int ecode5 = 0 ;
    unsigned int val6 ;
    int ecode6 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 6) || (items > 6)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude,depth_altitude,altitude);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "5"" of type '" "int""'");
    } 
    arg5 = (int)(val5);
    ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "6"" of type '" "unsigned int""'");
    } 
    arg6 = (unsigned int)(val6);
    LocationInfo_set_posEstimate__SWIG_4(arg1,arg2,arg3,arg4,arg5,arg6);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_5) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    int arg5 ;
    unsigned int arg6 ;
    unsigned int arg7 ;
    unsigned int arg8 ;
    unsigned int arg9 ;
    unsigned int arg10 ;
    unsigned int arg11 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    int val5 ;
    int ecode5 = 0 ;
    unsigned int val6 ;
    int ecode6 = 0 ;
    unsigned int val7 ;
    int ecode7 = 0 ;
    unsigned int val8 ;
    int ecode8 = 0 ;
    unsigned int val9 ;
    int ecode9 = 0 ;
    unsigned int val10 ;
    int ecode10 = 0 ;
    unsigned int val11 ;
    int ecode11 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 11) || (items > 11)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude,depth_altitude,altitude,uncertainty_semi_major,uncertainty_semi_minor,orientation_of_major_axis,uncertainty_altitude,confidence);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "5"" of type '" "int""'");
    } 
    arg5 = (int)(val5);
    ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "6"" of type '" "unsigned int""'");
    } 
    arg6 = (unsigned int)(val6);
    ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "7"" of type '" "unsigned int""'");
    } 
    arg7 = (unsigned int)(val7);
    ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "8"" of type '" "unsigned int""'");
    } 
    arg8 = (unsigned int)(val8);
    ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9);
    if (!SWIG_IsOK(ecode9)) {
      SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "9"" of type '" "unsigned int""'");
    } 
    arg9 = (unsigned int)(val9);
    ecode10 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(9), &val10);
    if (!SWIG_IsOK(ecode10)) {
      SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "10"" of type '" "unsigned int""'");
    } 
    arg10 = (unsigned int)(val10);
    ecode11 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(10), &val11);
    if (!SWIG_IsOK(ecode11)) {
      SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "11"" of type '" "unsigned int""'");
    } 
    arg11 = (unsigned int)(val11);
    LocationInfo_set_posEstimate__SWIG_5(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate__SWIG_6) {
  {
    struct LocationInfo *arg1 = (struct LocationInfo *) 0 ;
    int arg2 ;
    unsigned int arg3 ;
    unsigned int arg4 ;
    unsigned int arg5 ;
    unsigned int arg6 ;
    unsigned int arg7 ;
    unsigned int arg8 ;
    unsigned int arg9 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int val2 ;
    int ecode2 = 0 ;
    unsigned int val3 ;
    int ecode3 = 0 ;
    unsigned int val4 ;
    int ecode4 = 0 ;
    unsigned int val5 ;
    int ecode5 = 0 ;
    unsigned int val6 ;
    int ecode6 = 0 ;
    unsigned int val7 ;
    int ecode7 = 0 ;
    unsigned int val8 ;
    int ecode8 = 0 ;
    unsigned int val9 ;
    int ecode9 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 9) || (items > 9)) {
      SWIG_croak("Usage: LocationInfo_t_set_posEstimate(self,south,latitude,longitude,inner_radius,uncertainty_radius,offset_angle,included_angle,confidence);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_LocationInfo, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "1"" of type '" "struct LocationInfo *""'"); 
    }
    arg1 = (struct LocationInfo *)(argp1);
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "2"" of type '" "int""'");
    } 
    arg2 = (int)(val2);
    ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "3"" of type '" "unsigned int""'");
    } 
    arg3 = (unsigned int)(val3);
    ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4);
    if (!SWIG_IsOK(ecode4)) {
      SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "4"" of type '" "unsigned int""'");
    } 
    arg4 = (unsigned int)(val4);
    ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5);
    if (!SWIG_IsOK(ecode5)) {
      SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "5"" of type '" "unsigned int""'");
    } 
    arg5 = (unsigned int)(val5);
    ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6);
    if (!SWIG_IsOK(ecode6)) {
      SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "6"" of type '" "unsigned int""'");
    } 
    arg6 = (unsigned int)(val6);
    ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7);
    if (!SWIG_IsOK(ecode7)) {
      SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "7"" of type '" "unsigned int""'");
    } 
    arg7 = (unsigned int)(val7);
    ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8);
    if (!SWIG_IsOK(ecode8)) {
      SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "8"" of type '" "unsigned int""'");
    } 
    arg8 = (unsigned int)(val8);
    ecode9 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9);
    if (!SWIG_IsOK(ecode9)) {
      SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "LocationInfo_t_set_posEstimate" "', argument " "9"" of type '" "unsigned int""'");
    } 
    arg9 = (unsigned int)(val9);
    LocationInfo_set_posEstimate__SWIG_6(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
    ST(argvi) = sv_newmortal();
    
    
    
    
    
    
    
    
    
    XSRETURN(argvi);
  fail:
    
    
    
    
    
    
    
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_LocationInfo_t_set_posEstimate) {
  dXSARGS;
  
  {
    unsigned long _index = 0;
    SWIG_TypeRank _rank = 0; 
    if (items == 3) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_1;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ellipsoid_point, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_1;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_1;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 1;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_1:
    
    if (items == 4) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_2;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 2;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_2:
    
    if (items == 5) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_3;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_3;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_3;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_3;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_3;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 3;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_3:
    
    if (items == 6) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_4;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 4;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_4:
    
    if (items == 8) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_5;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 5;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_5:
    
    if (items == 9) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_6;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 6;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_6:
    
    if (items == 11) {
      SWIG_TypeRank _ranki = 0;
      SWIG_TypeRank _rankm = 0;
      SWIG_TypeRank _pi = 1;
      int _v = 0;
      {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_LocationInfo, 0);
        _v = SWIG_CheckState(res);
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(9), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      {
        {
          int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(10), NULL);
          _v = SWIG_CheckState(res);
        }
      }
      if (!_v) goto check_7;
      _ranki += _v*_pi;
      _rankm += _pi;
      _pi *= SWIG_MAXCASTRANK;
      if (!_index || (_ranki < _rank)) {
        _rank = _ranki; _index = 7;
        if (_rank == _rankm) goto dispatch;
      }
    }
  check_7:
    
  dispatch:
    switch(_index) {
    case 1:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_3); return;
    case 2:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_0); return;
    case 3:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_1); return;
    case 4:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_4); return;
    case 5:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_2); return;
    case 6:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_6); return;
    case 7:
      PUSHMARK(MARK); SWIG_CALLXS(_wrap_LocationInfo_t_set_posEstimate__SWIG_5); return;
    }
  }
  
  croak("No matching function for overloaded 'LocationInfo_t_set_posEstimate'");
  XSRETURN(0);
}


XS(_wrap_LocationInfo_t_get_fixpoint_arith_multiplier) {
  {
    int argvi = 0;
    double result;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: LocationInfo_t_get_fixpoint_arith_multiplier();");
    }
    result = (double)LocationInfo_get_fixpoint_arith_multiplier();
    ST(argvi) = SWIG_From_double  SWIG_PERL_CALL_ARGS_1((double)(result)); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_referenceAssistData_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct ReferenceAssistData *arg2 = (struct ReferenceAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_referenceAssistData_set(self,referenceAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_referenceAssistData_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ReferenceAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_referenceAssistData_set" "', argument " "2"" of type '" "struct ReferenceAssistData *""'"); 
    }
    arg2 = (struct ReferenceAssistData *)(argp2);
    if (arg1) (arg1)->referenceAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_referenceAssistData_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ReferenceAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_referenceAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_referenceAssistData_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct ReferenceAssistData *) ((arg1)->referenceAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ReferenceAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_msrAssistData_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct MsrAssistData *arg2 = (struct MsrAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_msrAssistData_set(self,msrAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_msrAssistData_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_msrAssistData_set" "', argument " "2"" of type '" "struct MsrAssistData *""'"); 
    }
    arg2 = (struct MsrAssistData *)(argp2);
    if (arg1) (arg1)->msrAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_msrAssistData_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct MsrAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_msrAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_msrAssistData_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct MsrAssistData *) ((arg1)->msrAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_systemInfoAssistData_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct SystemInfoAssistData *arg2 = (struct SystemInfoAssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_systemInfoAssistData_set(self,systemInfoAssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_systemInfoAssistData_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SystemInfoAssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_systemInfoAssistData_set" "', argument " "2"" of type '" "struct SystemInfoAssistData *""'"); 
    }
    arg2 = (struct SystemInfoAssistData *)(argp2);
    if (arg1) (arg1)->systemInfoAssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_systemInfoAssistData_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct SystemInfoAssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_systemInfoAssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_systemInfoAssistData_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct SystemInfoAssistData *) ((arg1)->systemInfoAssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SystemInfoAssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_gps_AssistData_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct GPS_AssistData *arg2 = (struct GPS_AssistData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_gps_AssistData_set(self,gps_AssistData);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_gps_AssistData_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_GPS_AssistData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_gps_AssistData_set" "', argument " "2"" of type '" "struct GPS_AssistData *""'"); 
    }
    arg2 = (struct GPS_AssistData *)(argp2);
    if (arg1) (arg1)->gps_AssistData = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_gps_AssistData_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct GPS_AssistData *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_gps_AssistData_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_gps_AssistData_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct GPS_AssistData *) ((arg1)->gps_AssistData);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPS_AssistData, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_moreAssDataToBeSent_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    MoreAssDataToBeSent_t *arg2 = (MoreAssDataToBeSent_t *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_moreAssDataToBeSent_set(self,moreAssDataToBeSent);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_moreAssDataToBeSent_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MoreAssDataToBeSent_t, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_moreAssDataToBeSent_set" "', argument " "2"" of type '" "MoreAssDataToBeSent_t *""'"); 
    }
    arg2 = (MoreAssDataToBeSent_t *)(argp2);
    if (arg1) (arg1)->moreAssDataToBeSent = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_moreAssDataToBeSent_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MoreAssDataToBeSent_t *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_moreAssDataToBeSent_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_moreAssDataToBeSent_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (MoreAssDataToBeSent_t *) ((arg1)->moreAssDataToBeSent);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MoreAssDataToBeSent_t, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_extensionContainer_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_extensionContainer_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_extensionContainer_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_extensionContainer_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel98_AssistanceData_Extension_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct Rel98_AssistanceData_Extension *arg2 = (struct Rel98_AssistanceData_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_rel98_AssistanceData_Extension_set(self,rel98_AssistanceData_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel98_AssistanceData_Extension_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel98_AssistanceData_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_rel98_AssistanceData_Extension_set" "', argument " "2"" of type '" "struct Rel98_AssistanceData_Extension *""'"); 
    }
    arg2 = (struct Rel98_AssistanceData_Extension *)(argp2);
    if (arg1) (arg1)->rel98_AssistanceData_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel98_AssistanceData_Extension_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel98_AssistanceData_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_rel98_AssistanceData_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel98_AssistanceData_Extension_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct Rel98_AssistanceData_Extension *) ((arg1)->rel98_AssistanceData_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel98_AssistanceData_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel5_AssistanceData_Extension_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct Rel5_AssistanceData_Extension *arg2 = (struct Rel5_AssistanceData_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_rel5_AssistanceData_Extension_set(self,rel5_AssistanceData_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel5_AssistanceData_Extension_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel5_AssistanceData_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_rel5_AssistanceData_Extension_set" "', argument " "2"" of type '" "struct Rel5_AssistanceData_Extension *""'"); 
    }
    arg2 = (struct Rel5_AssistanceData_Extension *)(argp2);
    if (arg1) (arg1)->rel5_AssistanceData_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel5_AssistanceData_Extension_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel5_AssistanceData_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_rel5_AssistanceData_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel5_AssistanceData_Extension_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct Rel5_AssistanceData_Extension *) ((arg1)->rel5_AssistanceData_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel5_AssistanceData_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel7_AssistanceData_Extension_set) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    struct Rel7_AssistanceData_Extension *arg2 = (struct Rel7_AssistanceData_Extension *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: AssistanceData_t_rel7_AssistanceData_Extension_set(self,rel7_AssistanceData_Extension);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel7_AssistanceData_Extension_set" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Rel7_AssistanceData_Extension, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AssistanceData_t_rel7_AssistanceData_Extension_set" "', argument " "2"" of type '" "struct Rel7_AssistanceData_Extension *""'"); 
    }
    arg2 = (struct Rel7_AssistanceData_Extension *)(argp2);
    if (arg1) (arg1)->rel7_AssistanceData_Extension = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_AssistanceData_t_rel7_AssistanceData_Extension_get) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct Rel7_AssistanceData_Extension *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: AssistanceData_t_rel7_AssistanceData_Extension_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AssistanceData_t_rel7_AssistanceData_Extension_get" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    result = (struct Rel7_AssistanceData_Extension *) ((arg1)->rel7_AssistanceData_Extension);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Rel7_AssistanceData_Extension, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_AssistanceData_t) {
  {
    int argvi = 0;
    struct AssistanceData *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_AssistanceData_t();");
    }
    result = (struct AssistanceData *)calloc(1, sizeof(struct AssistanceData));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssistanceData, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_AssistanceData_t) {
  {
    struct AssistanceData *arg1 = (struct AssistanceData *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_AssistanceData_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AssistanceData, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AssistanceData_t" "', argument " "1"" of type '" "struct AssistanceData *""'"); 
    }
    arg1 = (struct AssistanceData *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_extended_reference_set) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    Extended_reference_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Req_t_extended_reference_set(self,extended_reference);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_extended_reference_set" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_Extended_reference_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Req_t_extended_reference_set" "', argument " "2"" of type '" "Extended_reference_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PosCapability_Req_t_extended_reference_set" "', argument " "2"" of type '" "Extended_reference_t""'");
      } else {
        arg2 = *((Extended_reference_t *)(argp2));
      }
    }
    if (arg1) (arg1)->extended_reference = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_extended_reference_get) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Extended_reference_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Req_t_extended_reference_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_extended_reference_get" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    result =  ((arg1)->extended_reference);
    ST(argvi) = SWIG_NewPointerObj((Extended_reference_t *)memcpy((Extended_reference_t *)malloc(sizeof(Extended_reference_t)),&result,sizeof(Extended_reference_t)), SWIGTYPE_p_Extended_reference_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_gANSSPositionMethods_set) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    struct GANSSPositionMethods *arg2 = (struct GANSSPositionMethods *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Req_t_gANSSPositionMethods_set(self,gANSSPositionMethods);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_gANSSPositionMethods_set" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_GANSSPositionMethods, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Req_t_gANSSPositionMethods_set" "', argument " "2"" of type '" "struct GANSSPositionMethods *""'"); 
    }
    arg2 = (struct GANSSPositionMethods *)(argp2);
    if (arg1) (arg1)->gANSSPositionMethods = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_gANSSPositionMethods_get) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct GANSSPositionMethods *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Req_t_gANSSPositionMethods_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_gANSSPositionMethods_get" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    result = (struct GANSSPositionMethods *) ((arg1)->gANSSPositionMethods);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GANSSPositionMethods, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_extensionContainer_set) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Req_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_extensionContainer_set" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Req_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Req_t_extensionContainer_get) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Req_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Req_t_extensionContainer_get" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_PosCapability_Req_t) {
  {
    int argvi = 0;
    struct PosCapability_Req *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_PosCapability_Req_t();");
    }
    result = (struct PosCapability_Req *)calloc(1, sizeof(struct PosCapability_Req));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosCapability_Req, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_PosCapability_Req_t) {
  {
    struct PosCapability_Req *arg1 = (struct PosCapability_Req *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_PosCapability_Req_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Req, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PosCapability_Req_t" "', argument " "1"" of type '" "struct PosCapability_Req *""'"); 
    }
    arg1 = (struct PosCapability_Req *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_extended_reference_set) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    Extended_reference_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_extended_reference_set(self,extended_reference);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_extended_reference_set" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_Extended_reference_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Rsp_t_extended_reference_set" "', argument " "2"" of type '" "Extended_reference_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PosCapability_Rsp_t_extended_reference_set" "', argument " "2"" of type '" "Extended_reference_t""'");
      } else {
        arg2 = *((Extended_reference_t *)(argp2));
      }
    }
    if (arg1) (arg1)->extended_reference = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_extended_reference_get) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    Extended_reference_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_extended_reference_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_extended_reference_get" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    result =  ((arg1)->extended_reference);
    ST(argvi) = SWIG_NewPointerObj((Extended_reference_t *)memcpy((Extended_reference_t *)malloc(sizeof(Extended_reference_t)),&result,sizeof(Extended_reference_t)), SWIGTYPE_p_Extended_reference_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_posCapabilities_set) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    PosCapabilities_t arg2 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_posCapabilities_set(self,posCapabilities);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_posCapabilities_set" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    {
      res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_PosCapabilities_t,  0 );
      if (!SWIG_IsOK(res2)) {
        SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Rsp_t_posCapabilities_set" "', argument " "2"" of type '" "PosCapabilities_t""'"); 
      }  
      if (!argp2) {
        SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PosCapability_Rsp_t_posCapabilities_set" "', argument " "2"" of type '" "PosCapabilities_t""'");
      } else {
        arg2 = *((PosCapabilities_t *)(argp2));
      }
    }
    if (arg1) (arg1)->posCapabilities = arg2;
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_posCapabilities_get) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    PosCapabilities_t result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_posCapabilities_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_posCapabilities_get" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    result =  ((arg1)->posCapabilities);
    ST(argvi) = SWIG_NewPointerObj((PosCapabilities_t *)memcpy((PosCapabilities_t *)malloc(sizeof(PosCapabilities_t)),&result,sizeof(PosCapabilities_t)), SWIGTYPE_p_PosCapabilities_t, SWIG_POINTER_OWN | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_assistanceSupported_set) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    struct AssistanceSupported *arg2 = (struct AssistanceSupported *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_assistanceSupported_set(self,assistanceSupported);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_assistanceSupported_set" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_AssistanceSupported, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Rsp_t_assistanceSupported_set" "', argument " "2"" of type '" "struct AssistanceSupported *""'"); 
    }
    arg2 = (struct AssistanceSupported *)(argp2);
    if (arg1) (arg1)->assistanceSupported = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_assistanceSupported_get) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct AssistanceSupported *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_assistanceSupported_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_assistanceSupported_get" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    result = (struct AssistanceSupported *) ((arg1)->assistanceSupported);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssistanceSupported, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_assistanceNeeded_set) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    struct AssistanceNeeded *arg2 = (struct AssistanceNeeded *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_assistanceNeeded_set(self,assistanceNeeded);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_assistanceNeeded_set" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_AssistanceNeeded, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Rsp_t_assistanceNeeded_set" "', argument " "2"" of type '" "struct AssistanceNeeded *""'"); 
    }
    arg2 = (struct AssistanceNeeded *)(argp2);
    if (arg1) (arg1)->assistanceNeeded = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_assistanceNeeded_get) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct AssistanceNeeded *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_assistanceNeeded_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_assistanceNeeded_get" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    result = (struct AssistanceNeeded *) ((arg1)->assistanceNeeded);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AssistanceNeeded, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_extensionContainer_set) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    struct ExtensionContainer *arg2 = (struct ExtensionContainer *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    void *argp2 = 0 ;
    int res2 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 2) || (items > 2)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_extensionContainer_set(self,extensionContainer);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_extensionContainer_set" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ExtensionContainer, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PosCapability_Rsp_t_extensionContainer_set" "', argument " "2"" of type '" "struct ExtensionContainer *""'"); 
    }
    arg2 = (struct ExtensionContainer *)(argp2);
    if (arg1) (arg1)->extensionContainer = arg2;
    ST(argvi) = sv_newmortal();
    
    
    XSRETURN(argvi);
  fail:
    
    
    SWIG_croak_null();
  }
}


XS(_wrap_PosCapability_Rsp_t_extensionContainer_get) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    struct ExtensionContainer *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: PosCapability_Rsp_t_extensionContainer_get(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PosCapability_Rsp_t_extensionContainer_get" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    result = (struct ExtensionContainer *) ((arg1)->extensionContainer);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ExtensionContainer, 0 | 0); argvi++ ;
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_new_PosCapability_Rsp_t) {
  {
    int argvi = 0;
    struct PosCapability_Rsp *result = 0 ;
    dXSARGS;
    
    if ((items < 0) || (items > 0)) {
      SWIG_croak("Usage: new_PosCapability_Rsp_t();");
    }
    result = (struct PosCapability_Rsp *)calloc(1, sizeof(struct PosCapability_Rsp));
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PosCapability_Rsp, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_delete_PosCapability_Rsp_t) {
  {
    struct PosCapability_Rsp *arg1 = (struct PosCapability_Rsp *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: delete_PosCapability_Rsp_t(self);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PosCapability_Rsp, SWIG_POINTER_DISOWN |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PosCapability_Rsp_t" "', argument " "1"" of type '" "struct PosCapability_Rsp *""'"); 
    }
    arg1 = (struct PosCapability_Rsp *)(argp1);
    free((char *) arg1);
    ST(argvi) = sv_newmortal();
    
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_encode_ulp_pdu) {
  {
    struct ULP_PDU *arg1 = (struct ULP_PDU *) 0 ;
    void *argp1 = 0 ;
    int res1 = 0 ;
    int argvi = 0;
    MsgBuffer result;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: encode_ulp_pdu(pdu);");
    }
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ULP_PDU, 0 |  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "encode_ulp_pdu" "', argument " "1"" of type '" "struct ULP_PDU *""'"); 
    }
    arg1 = (struct ULP_PDU *)(argp1);
    result = encode_ulp_pdu(arg1);
    {
      if (argvi >= items) {
        EXTEND(sp,1); /* Extend the stack by 1 object */
      }
      ST(argvi) = sv_2mortal(newSVpv((&result)->buf, (&result)->size));
      ++argvi; /* intentional - not portable between languages */
    }
    
    do {
      if( (&result)->buf ) free((&result)->buf); 
    } while(0);
    XSRETURN(argvi);
  fail:
    
    SWIG_croak_null();
  }
}


XS(_wrap_decode_ulp_pdu) {
  {
    MsgBuffer arg1 ;
    int argvi = 0;
    struct ULP_PDU *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: decode_ulp_pdu(buf);");
    }
    {
      // arg1 = AV2MsgBuf(ST(0));
      // MsgBuffer retval = { NULL, -1 };
      if(ST(0) == NULL) {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "decode_ulp_pdu" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
      if( SvFLAGS(ST(0)) & (SVf_OK & ~SVf_ROK) ) {
        (&arg1)->buf = SvPV(ST(0), (&arg1)->size);
      }
      else {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "decode_ulp_pdu" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
    }
    result = (struct ULP_PDU *)decode_ulp_pdu(arg1);
    ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ULP_PDU, 0 | SWIG_SHADOW); argvi++ ;
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_ulp_pdu_to_xml) {
  {
    MsgBuffer arg1 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: ulp_pdu_to_xml(buf);");
    }
    {
      // arg1 = AV2MsgBuf(ST(0));
      // MsgBuffer retval = { NULL, -1 };
      if(ST(0) == NULL) {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ulp_pdu_to_xml" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
      if( SvFLAGS(ST(0)) & (SVf_OK & ~SVf_ROK) ) {
        (&arg1)->buf = SvPV(ST(0), (&arg1)->size);
      }
      else {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ulp_pdu_to_xml" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
    }
    result = (char *)ulp_pdu_to_xml(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    free((char*)result);
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}


XS(_wrap_dump_ulp_pdu) {
  {
    MsgBuffer arg1 ;
    int argvi = 0;
    char *result = 0 ;
    dXSARGS;
    
    if ((items < 1) || (items > 1)) {
      SWIG_croak("Usage: dump_ulp_pdu(buf);");
    }
    {
      // arg1 = AV2MsgBuf(ST(0));
      // MsgBuffer retval = { NULL, -1 };
      if(ST(0) == NULL) {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "dump_ulp_pdu" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
      if( SvFLAGS(ST(0)) & (SVf_OK & ~SVf_ROK) ) {
        (&arg1)->buf = SvPV(ST(0), (&arg1)->size);
      }
      else {
        SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "dump_ulp_pdu" "', argument " "buf" " of type '" "MsgBuffer""'");
      }
    }
    result = (char *)dump_ulp_pdu(arg1);
    ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ;
    free((char*)result);
    XSRETURN(argvi);
  fail:
    SWIG_croak_null();
  }
}



/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__p_AccuracyOpt_t = {"_p_AccuracyOpt_t", "AccuracyOpt_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssistanceData = {"_p_AssistanceData", "AssistanceData_t *|struct AssistanceData *|AssistanceData *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::AssistanceData_t", 0};
static swig_type_info _swigt__p_AssistanceNeeded = {"_p_AssistanceNeeded", "struct AssistanceNeeded *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_AssistanceSupported = {"_p_AssistanceSupported", "struct AssistanceSupported *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_BIT_STRING_t = {"_p_BIT_STRING_t", "BIT_STRING_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CellInfo_t = {"_p_CellInfo_t", "CellInfo_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_EnvironmentCharacter_t = {"_p_EnvironmentCharacter_t", "EnvironmentCharacter_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Ext_GeographicalInformation_t = {"_p_Ext_GeographicalInformation_t", "Ext_GeographicalInformation_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Extended_reference_t = {"_p_Extended_reference_t", "Extended_reference_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ExtensionContainer = {"_p_ExtensionContainer", "struct ExtensionContainer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_FQDN_t = {"_p_FQDN_t", "FQDN_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GANSSPositionMethods = {"_p_GANSSPositionMethods", "struct GANSSPositionMethods *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GPS_AssistData = {"_p_GPS_AssistData", "struct GPS_AssistData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_GPS_MeasureInfo = {"_p_GPS_MeasureInfo", "struct GPS_MeasureInfo *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IA5String_t = {"_p_IA5String_t", "IA5String_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IPAddress_t = {"_p_IPAddress_t", "IPAddress_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KeyIdentity2_t = {"_p_KeyIdentity2_t", "KeyIdentity2_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KeyIdentity3_t = {"_p_KeyIdentity3_t", "KeyIdentity3_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KeyIdentity4_t = {"_p_KeyIdentity4_t", "KeyIdentity4_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_KeyIdentity_t = {"_p_KeyIdentity_t", "KeyIdentity_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocationError = {"_p_LocationError", "struct LocationError *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_LocationId = {"_p_LocationId", "struct LocationId *|LocationId *|LocationId_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::LocationId_t", 0};
static swig_type_info _swigt__p_LocationInfo = {"_p_LocationInfo", "struct LocationInfo *|LocationInfo *|LocationInfo_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::LocationInfo_t", 0};
static swig_type_info _swigt__p_MAC_t = {"_p_MAC_t", "MAC_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MeasureResponseTime_t = {"_p_MeasureResponseTime_t", "MeasureResponseTime_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MethodType = {"_p_MethodType", "struct MethodType *|MethodType *|MethodType_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::MethodType_t", 0};
static swig_type_info _swigt__p_MethodType_PR = {"_p_MethodType_PR", "enum MethodType_PR *|MethodType_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MethodType_t_choice = {"_p_MethodType_t_choice", "MethodType_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::MethodType_t_choice", 0};
static swig_type_info _swigt__p_MoreAssDataToBeSent_t = {"_p_MoreAssDataToBeSent_t", "MoreAssDataToBeSent_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MsgBuffer = {"_p_MsgBuffer", "MsgBuffer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MsrAssistData = {"_p_MsrAssistData", "struct MsrAssistData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_MsrPosition_Req = {"_p_MsrPosition_Req", "MsrPosition_Req_t *|struct MsrPosition_Req *|MsrPosition_Req *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::MsrPosition_Req_t", 0};
static swig_type_info _swigt__p_MsrPosition_Rsp = {"_p_MsrPosition_Rsp", "struct MsrPosition_Rsp *|MsrPosition_Rsp *|MsrPosition_Rsp_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::MsrPosition_Rsp_t", 0};
static swig_type_info _swigt__p_MultipleSets = {"_p_MultipleSets", "struct MultipleSets *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_NULL_t = {"_p_NULL_t", "NULL_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Notification = {"_p_Notification", "struct Notification *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OCTET_STRING_t = {"_p_OCTET_STRING_t", "OCTET_STRING_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OTD_MeasureInfo = {"_p_OTD_MeasureInfo", "struct OTD_MeasureInfo *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PosCapabilities_t = {"_p_PosCapabilities_t", "PosCapabilities_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PosCapability_Req = {"_p_PosCapability_Req", "PosCapability_Req_t *|struct PosCapability_Req *|PosCapability_Req *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::PosCapability_Req_t", 0};
static swig_type_info _swigt__p_PosCapability_Rsp = {"_p_PosCapability_Rsp", "struct PosCapability_Rsp *|PosCapability_Rsp *|PosCapability_Rsp_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::PosCapability_Rsp_t", 0};
static swig_type_info _swigt__p_PosMethod_t = {"_p_PosMethod_t", "PosMethod_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PosPayLoad = {"_p_PosPayLoad", "PosPayLoad_t *|struct PosPayLoad *|PosPayLoad *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::PosPayLoad_t", 0};
static swig_type_info _swigt__p_PosPayLoad_PR = {"_p_PosPayLoad_PR", "enum PosPayLoad_PR *|PosPayLoad_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PosPayLoad_t_choice = {"_p_PosPayLoad_t_choice", "PosPayLoad_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::PosPayLoad_t_choice", 0};
static swig_type_info _swigt__p_Position = {"_p_Position", "struct Position *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PositionInstruct = {"_p_PositionInstruct", "PositionInstruct_t *|struct PositionInstruct *|PositionInstruct *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::PositionInstruct_t", 0};
static swig_type_info _swigt__p_PositionMethod_t = {"_p_PositionMethod_t", "PositionMethod_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ProtocolError = {"_p_ProtocolError", "struct ProtocolError *|ProtocolError *|ProtocolError_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::ProtocolError_t", 0};
static swig_type_info _swigt__p_QoP = {"_p_QoP", "struct QoP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RRLP_Component = {"_p_RRLP_Component", "RRLP_Component_t *|struct RRLP_Component *|RRLP_Component *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::RRLP_Component_t", 0};
static swig_type_info _swigt__p_RRLP_Component_PR = {"_p_RRLP_Component_PR", "enum RRLP_Component_PR *|RRLP_Component_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RRLP_Component_t_choice = {"_p_RRLP_Component_t_choice", "RRLP_Component_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::RRLP_Component_t_choice", 0};
static swig_type_info _swigt__p_RRLP_PDU = {"_p_RRLP_PDU", "RRLP_PDU_t *|struct RRLP_PDU *|RRLP_PDU *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::RRLP_PDU_t", 0};
static swig_type_info _swigt__p_ReferenceAssistData = {"_p_ReferenceAssistData", "struct ReferenceAssistData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ReferenceIdentity = {"_p_ReferenceIdentity", "struct ReferenceIdentity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel5_AssistanceData_Extension = {"_p_Rel5_AssistanceData_Extension", "struct Rel5_AssistanceData_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel5_MsrPosition_Req_Extension = {"_p_Rel5_MsrPosition_Req_Extension", "struct Rel5_MsrPosition_Req_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel7_AssistanceData_Extension = {"_p_Rel7_AssistanceData_Extension", "struct Rel7_AssistanceData_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel7_MsrPosition_Req_Extension = {"_p_Rel7_MsrPosition_Req_Extension", "struct Rel7_MsrPosition_Req_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel98_AssistanceData_Extension = {"_p_Rel98_AssistanceData_Extension", "struct Rel98_AssistanceData_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel98_MsrPosition_Req_Extension = {"_p_Rel98_MsrPosition_Req_Extension", "struct Rel98_MsrPosition_Req_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel_5_MsrPosition_Rsp_Extension = {"_p_Rel_5_MsrPosition_Rsp_Extension", "struct Rel_5_MsrPosition_Rsp_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel_5_ProtocolError_Extension = {"_p_Rel_5_ProtocolError_Extension", "struct Rel_5_ProtocolError_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel_7_MsrPosition_Rsp_Extension = {"_p_Rel_7_MsrPosition_Rsp_Extension", "struct Rel_7_MsrPosition_Rsp_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Rel_98_MsrPosition_Rsp_Extension = {"_p_Rel_98_MsrPosition_Rsp_Extension", "struct Rel_98_MsrPosition_Rsp_Extension *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RequestedAssistData = {"_p_RequestedAssistData", "struct RequestedAssistData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SETAuthKey = {"_p_SETAuthKey", "struct SETAuthKey *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SETCapabilities_t = {"_p_SETCapabilities_t", "SETCapabilities_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SETId = {"_p_SETId", "SETId_t *|struct SETId *|SETId *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SETId_t", 0};
static swig_type_info _swigt__p_SETId_PR = {"_p_SETId_PR", "enum SETId_PR *|SETId_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SETId_t_choice = {"_p_SETId_t_choice", "SETId_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SETId_t_choice", 0};
static swig_type_info _swigt__p_SETNonce_t = {"_p_SETNonce_t", "SETNonce_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SLPAddress = {"_p_SLPAddress", "SLPAddress_t *|struct SLPAddress *|SLPAddress *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SLPAddress_t", 0};
static swig_type_info _swigt__p_SLPAddress_PR = {"_p_SLPAddress_PR", "enum SLPAddress_PR *|SLPAddress_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SLPAddress_t_choice = {"_p_SLPAddress_t_choice", "SLPAddress_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SLPAddress_t_choice", 0};
static swig_type_info _swigt__p_SPCAuthKey = {"_p_SPCAuthKey", "struct SPCAuthKey *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SUPLAUTHREQ = {"_p_SUPLAUTHREQ", "struct SUPLAUTHREQ *|SUPLAUTHREQ *|SUPLAUTHREQ_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLAUTHREQ_t", 0};
static swig_type_info _swigt__p_SUPLAUTHRESP = {"_p_SUPLAUTHRESP", "SUPLAUTHRESP_t *|struct SUPLAUTHRESP *|SUPLAUTHRESP *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLAUTHRESP_t", 0};
static swig_type_info _swigt__p_SUPLEND = {"_p_SUPLEND", "SUPLEND_t *|struct SUPLEND *|SUPLEND *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLEND_t", 0};
static swig_type_info _swigt__p_SUPLINIT = {"_p_SUPLINIT", "SUPLINIT_t *|struct SUPLINIT *|SUPLINIT *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLINIT_t", 0};
static swig_type_info _swigt__p_SUPLPOS = {"_p_SUPLPOS", "struct SUPLPOS *|SUPLPOS *|SUPLPOS_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLPOS_t", 0};
static swig_type_info _swigt__p_SUPLPOSINIT = {"_p_SUPLPOSINIT", "struct SUPLPOSINIT *|SUPLPOSINIT *|SUPLPOSINIT_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLPOSINIT_t", 0};
static swig_type_info _swigt__p_SUPLRESPONSE = {"_p_SUPLRESPONSE", "struct SUPLRESPONSE *|SUPLRESPONSE *|SUPLRESPONSE_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLRESPONSE_t", 0};
static swig_type_info _swigt__p_SUPLSTART = {"_p_SUPLSTART", "struct SUPLSTART *|SUPLSTART *|SUPLSTART_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SUPLSTART_t", 0};
static swig_type_info _swigt__p_SatelliteInfo_t = {"_p_SatelliteInfo_t", "SatelliteInfo_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SessionID = {"_p_SessionID", "struct SessionID *|SessionID *|SessionID_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SessionID_t", 0};
static swig_type_info _swigt__p_SetSessionID = {"_p_SetSessionID", "struct SetSessionID *|SetSessionID *|SetSessionID_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SetSessionID_t", 0};
static swig_type_info _swigt__p_SlpSessionID = {"_p_SlpSessionID", "struct SlpSessionID *|SlpSessionID *|SlpSessionID_t *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::SlpSessionID_t", 0};
static swig_type_info _swigt__p_StatusCode_t = {"_p_StatusCode_t", "StatusCode_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SystemInfoAssistData = {"_p_SystemInfoAssistData", "struct SystemInfoAssistData *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ULP_PDU = {"_p_ULP_PDU", "ULP_PDU_t *|struct ULP_PDU *|ULP_PDU *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::ULP_PDU_t", 0};
static swig_type_info _swigt__p_UlpMessage = {"_p_UlpMessage", "struct UlpMessage *|UlpMessage_t *|UlpMessage *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::UlpMessage_t", 0};
static swig_type_info _swigt__p_UlpMessage_PR = {"_p_UlpMessage_PR", "enum UlpMessage_PR *|UlpMessage_PR *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_UlpMessage_t_choice = {"_p_UlpMessage_t_choice", "UlpMessage_t_choice *", 0, 0, (void*)"Net::Radio::Location::SUPL::XS::UlpMessage_t_choice", 0};
static swig_type_info _swigt__p_UseMultipleSets_t = {"_p_UseMultipleSets_t", "UseMultipleSets_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Velocity = {"_p_Velocity", "struct Velocity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Ver_t = {"_p_Ver_t", "Ver_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Version_t = {"_p_Version_t", "Version_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_asn_TYPE_descriptor_t = {"_p_asn_TYPE_descriptor_t", "asn_TYPE_descriptor_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ellipsoid_point = {"_p_ellipsoid_point", "struct ellipsoid_point *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "Accuracy_t *|ErrorCodes_t *|FixType_t *|long *|PrefMethod_t *|SLPMode_t *|Status_t *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_AccuracyOpt_t,
  &_swigt__p_AssistanceData,
  &_swigt__p_AssistanceNeeded,
  &_swigt__p_AssistanceSupported,
  &_swigt__p_BIT_STRING_t,
  &_swigt__p_CellInfo_t,
  &_swigt__p_EnvironmentCharacter_t,
  &_swigt__p_Ext_GeographicalInformation_t,
  &_swigt__p_Extended_reference_t,
  &_swigt__p_ExtensionContainer,
  &_swigt__p_FQDN_t,
  &_swigt__p_GANSSPositionMethods,
  &_swigt__p_GPS_AssistData,
  &_swigt__p_GPS_MeasureInfo,
  &_swigt__p_IA5String_t,
  &_swigt__p_IPAddress_t,
  &_swigt__p_KeyIdentity2_t,
  &_swigt__p_KeyIdentity3_t,
  &_swigt__p_KeyIdentity4_t,
  &_swigt__p_KeyIdentity_t,
  &_swigt__p_LocationError,
  &_swigt__p_LocationId,
  &_swigt__p_LocationInfo,
  &_swigt__p_MAC_t,
  &_swigt__p_MeasureResponseTime_t,
  &_swigt__p_MethodType,
  &_swigt__p_MethodType_PR,
  &_swigt__p_MethodType_t_choice,
  &_swigt__p_MoreAssDataToBeSent_t,
  &_swigt__p_MsgBuffer,
  &_swigt__p_MsrAssistData,
  &_swigt__p_MsrPosition_Req,
  &_swigt__p_MsrPosition_Rsp,
  &_swigt__p_MultipleSets,
  &_swigt__p_NULL_t,
  &_swigt__p_Notification,
  &_swigt__p_OCTET_STRING_t,
  &_swigt__p_OTD_MeasureInfo,
  &_swigt__p_PosCapabilities_t,
  &_swigt__p_PosCapability_Req,
  &_swigt__p_PosCapability_Rsp,
  &_swigt__p_PosMethod_t,
  &_swigt__p_PosPayLoad,
  &_swigt__p_PosPayLoad_PR,
  &_swigt__p_PosPayLoad_t_choice,
  &_swigt__p_Position,
  &_swigt__p_PositionInstruct,
  &_swigt__p_PositionMethod_t,
  &_swigt__p_ProtocolError,
  &_swigt__p_QoP,
  &_swigt__p_RRLP_Component,
  &_swigt__p_RRLP_Component_PR,
  &_swigt__p_RRLP_Component_t_choice,
  &_swigt__p_RRLP_PDU,
  &_swigt__p_ReferenceAssistData,
  &_swigt__p_ReferenceIdentity,
  &_swigt__p_Rel5_AssistanceData_Extension,
  &_swigt__p_Rel5_MsrPosition_Req_Extension,
  &_swigt__p_Rel7_AssistanceData_Extension,
  &_swigt__p_Rel7_MsrPosition_Req_Extension,
  &_swigt__p_Rel98_AssistanceData_Extension,
  &_swigt__p_Rel98_MsrPosition_Req_Extension,
  &_swigt__p_Rel_5_MsrPosition_Rsp_Extension,
  &_swigt__p_Rel_5_ProtocolError_Extension,
  &_swigt__p_Rel_7_MsrPosition_Rsp_Extension,
  &_swigt__p_Rel_98_MsrPosition_Rsp_Extension,
  &_swigt__p_RequestedAssistData,
  &_swigt__p_SETAuthKey,
  &_swigt__p_SETCapabilities_t,
  &_swigt__p_SETId,
  &_swigt__p_SETId_PR,
  &_swigt__p_SETId_t_choice,
  &_swigt__p_SETNonce_t,
  &_swigt__p_SLPAddress,
  &_swigt__p_SLPAddress_PR,
  &_swigt__p_SLPAddress_t_choice,
  &_swigt__p_SPCAuthKey,
  &_swigt__p_SUPLAUTHREQ,
  &_swigt__p_SUPLAUTHRESP,
  &_swigt__p_SUPLEND,
  &_swigt__p_SUPLINIT,
  &_swigt__p_SUPLPOS,
  &_swigt__p_SUPLPOSINIT,
  &_swigt__p_SUPLRESPONSE,
  &_swigt__p_SUPLSTART,
  &_swigt__p_SatelliteInfo_t,
  &_swigt__p_SessionID,
  &_swigt__p_SetSessionID,
  &_swigt__p_SlpSessionID,
  &_swigt__p_StatusCode_t,
  &_swigt__p_SystemInfoAssistData,
  &_swigt__p_ULP_PDU,
  &_swigt__p_UlpMessage,
  &_swigt__p_UlpMessage_PR,
  &_swigt__p_UlpMessage_t_choice,
  &_swigt__p_UseMultipleSets_t,
  &_swigt__p_Velocity,
  &_swigt__p_Ver_t,
  &_swigt__p_Version_t,
  &_swigt__p_asn_TYPE_descriptor_t,
  &_swigt__p_char,
  &_swigt__p_ellipsoid_point,
  &_swigt__p_long,
};

static swig_cast_info _swigc__p_AccuracyOpt_t[] = {  {&_swigt__p_AccuracyOpt_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssistanceData[] = {  {&_swigt__p_AssistanceData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssistanceNeeded[] = {  {&_swigt__p_AssistanceNeeded, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_AssistanceSupported[] = {  {&_swigt__p_AssistanceSupported, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_BIT_STRING_t[] = {  {&_swigt__p_BIT_STRING_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CellInfo_t[] = {  {&_swigt__p_CellInfo_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_EnvironmentCharacter_t[] = {  {&_swigt__p_EnvironmentCharacter_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Ext_GeographicalInformation_t[] = {  {&_swigt__p_Ext_GeographicalInformation_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Extended_reference_t[] = {  {&_swigt__p_Extended_reference_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ExtensionContainer[] = {  {&_swigt__p_ExtensionContainer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_FQDN_t[] = {  {&_swigt__p_FQDN_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GANSSPositionMethods[] = {  {&_swigt__p_GANSSPositionMethods, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GPS_AssistData[] = {  {&_swigt__p_GPS_AssistData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_GPS_MeasureInfo[] = {  {&_swigt__p_GPS_MeasureInfo, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IA5String_t[] = {  {&_swigt__p_IA5String_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IPAddress_t[] = {  {&_swigt__p_IPAddress_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KeyIdentity2_t[] = {  {&_swigt__p_KeyIdentity2_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KeyIdentity3_t[] = {  {&_swigt__p_KeyIdentity3_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KeyIdentity4_t[] = {  {&_swigt__p_KeyIdentity4_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_KeyIdentity_t[] = {  {&_swigt__p_KeyIdentity_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocationError[] = {  {&_swigt__p_LocationError, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocationId[] = {  {&_swigt__p_LocationId, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_LocationInfo[] = {  {&_swigt__p_LocationInfo, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MAC_t[] = {  {&_swigt__p_MAC_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MeasureResponseTime_t[] = {  {&_swigt__p_MeasureResponseTime_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MethodType[] = {  {&_swigt__p_MethodType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MethodType_PR[] = {  {&_swigt__p_MethodType_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MethodType_t_choice[] = {  {&_swigt__p_MethodType_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MoreAssDataToBeSent_t[] = {  {&_swigt__p_MoreAssDataToBeSent_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MsgBuffer[] = {  {&_swigt__p_MsgBuffer, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MsrAssistData[] = {  {&_swigt__p_MsrAssistData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MsrPosition_Req[] = {  {&_swigt__p_MsrPosition_Req, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MsrPosition_Rsp[] = {  {&_swigt__p_MsrPosition_Rsp, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_MultipleSets[] = {  {&_swigt__p_MultipleSets, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_NULL_t[] = {  {&_swigt__p_NULL_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Notification[] = {  {&_swigt__p_Notification, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OCTET_STRING_t[] = {  {&_swigt__p_OCTET_STRING_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OTD_MeasureInfo[] = {  {&_swigt__p_OTD_MeasureInfo, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosCapabilities_t[] = {  {&_swigt__p_PosCapabilities_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosCapability_Req[] = {  {&_swigt__p_PosCapability_Req, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosCapability_Rsp[] = {  {&_swigt__p_PosCapability_Rsp, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosMethod_t[] = {  {&_swigt__p_PosMethod_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosPayLoad[] = {  {&_swigt__p_PosPayLoad, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosPayLoad_PR[] = {  {&_swigt__p_PosPayLoad_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PosPayLoad_t_choice[] = {  {&_swigt__p_PosPayLoad_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Position[] = {  {&_swigt__p_Position, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PositionInstruct[] = {  {&_swigt__p_PositionInstruct, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PositionMethod_t[] = {  {&_swigt__p_PositionMethod_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ProtocolError[] = {  {&_swigt__p_ProtocolError, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_QoP[] = {  {&_swigt__p_QoP, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RRLP_Component[] = {  {&_swigt__p_RRLP_Component, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RRLP_Component_PR[] = {  {&_swigt__p_RRLP_Component_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RRLP_Component_t_choice[] = {  {&_swigt__p_RRLP_Component_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RRLP_PDU[] = {  {&_swigt__p_RRLP_PDU, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ReferenceAssistData[] = {  {&_swigt__p_ReferenceAssistData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ReferenceIdentity[] = {  {&_swigt__p_ReferenceIdentity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel5_AssistanceData_Extension[] = {  {&_swigt__p_Rel5_AssistanceData_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel5_MsrPosition_Req_Extension[] = {  {&_swigt__p_Rel5_MsrPosition_Req_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel7_AssistanceData_Extension[] = {  {&_swigt__p_Rel7_AssistanceData_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel7_MsrPosition_Req_Extension[] = {  {&_swigt__p_Rel7_MsrPosition_Req_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel98_AssistanceData_Extension[] = {  {&_swigt__p_Rel98_AssistanceData_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel98_MsrPosition_Req_Extension[] = {  {&_swigt__p_Rel98_MsrPosition_Req_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel_5_MsrPosition_Rsp_Extension[] = {  {&_swigt__p_Rel_5_MsrPosition_Rsp_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel_5_ProtocolError_Extension[] = {  {&_swigt__p_Rel_5_ProtocolError_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel_7_MsrPosition_Rsp_Extension[] = {  {&_swigt__p_Rel_7_MsrPosition_Rsp_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Rel_98_MsrPosition_Rsp_Extension[] = {  {&_swigt__p_Rel_98_MsrPosition_Rsp_Extension, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RequestedAssistData[] = {  {&_swigt__p_RequestedAssistData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETAuthKey[] = {  {&_swigt__p_SETAuthKey, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETCapabilities_t[] = {  {&_swigt__p_SETCapabilities_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETId[] = {  {&_swigt__p_SETId, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETId_PR[] = {  {&_swigt__p_SETId_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETId_t_choice[] = {  {&_swigt__p_SETId_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SETNonce_t[] = {  {&_swigt__p_SETNonce_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SLPAddress[] = {  {&_swigt__p_SLPAddress, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SLPAddress_PR[] = {  {&_swigt__p_SLPAddress_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SLPAddress_t_choice[] = {  {&_swigt__p_SLPAddress_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SPCAuthKey[] = {  {&_swigt__p_SPCAuthKey, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLAUTHREQ[] = {  {&_swigt__p_SUPLAUTHREQ, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLAUTHRESP[] = {  {&_swigt__p_SUPLAUTHRESP, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLEND[] = {  {&_swigt__p_SUPLEND, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLINIT[] = {  {&_swigt__p_SUPLINIT, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLPOS[] = {  {&_swigt__p_SUPLPOS, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLPOSINIT[] = {  {&_swigt__p_SUPLPOSINIT, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLRESPONSE[] = {  {&_swigt__p_SUPLRESPONSE, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SUPLSTART[] = {  {&_swigt__p_SUPLSTART, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SatelliteInfo_t[] = {  {&_swigt__p_SatelliteInfo_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SessionID[] = {  {&_swigt__p_SessionID, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SetSessionID[] = {  {&_swigt__p_SetSessionID, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SlpSessionID[] = {  {&_swigt__p_SlpSessionID, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_StatusCode_t[] = {  {&_swigt__p_StatusCode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SystemInfoAssistData[] = {  {&_swigt__p_SystemInfoAssistData, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ULP_PDU[] = {  {&_swigt__p_ULP_PDU, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UlpMessage[] = {  {&_swigt__p_UlpMessage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UlpMessage_PR[] = {  {&_swigt__p_UlpMessage_PR, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UlpMessage_t_choice[] = {  {&_swigt__p_UlpMessage_t_choice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_UseMultipleSets_t[] = {  {&_swigt__p_UseMultipleSets_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Velocity[] = {  {&_swigt__p_Velocity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Ver_t[] = {  {&_swigt__p_Ver_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Version_t[] = {  {&_swigt__p_Version_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_asn_TYPE_descriptor_t[] = {  {&_swigt__p_asn_TYPE_descriptor_t, 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_ellipsoid_point[] = {  {&_swigt__p_ellipsoid_point, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_AccuracyOpt_t,
  _swigc__p_AssistanceData,
  _swigc__p_AssistanceNeeded,
  _swigc__p_AssistanceSupported,
  _swigc__p_BIT_STRING_t,
  _swigc__p_CellInfo_t,
  _swigc__p_EnvironmentCharacter_t,
  _swigc__p_Ext_GeographicalInformation_t,
  _swigc__p_Extended_reference_t,
  _swigc__p_ExtensionContainer,
  _swigc__p_FQDN_t,
  _swigc__p_GANSSPositionMethods,
  _swigc__p_GPS_AssistData,
  _swigc__p_GPS_MeasureInfo,
  _swigc__p_IA5String_t,
  _swigc__p_IPAddress_t,
  _swigc__p_KeyIdentity2_t,
  _swigc__p_KeyIdentity3_t,
  _swigc__p_KeyIdentity4_t,
  _swigc__p_KeyIdentity_t,
  _swigc__p_LocationError,
  _swigc__p_LocationId,
  _swigc__p_LocationInfo,
  _swigc__p_MAC_t,
  _swigc__p_MeasureResponseTime_t,
  _swigc__p_MethodType,
  _swigc__p_MethodType_PR,
  _swigc__p_MethodType_t_choice,
  _swigc__p_MoreAssDataToBeSent_t,
  _swigc__p_MsgBuffer,
  _swigc__p_MsrAssistData,
  _swigc__p_MsrPosition_Req,
  _swigc__p_MsrPosition_Rsp,
  _swigc__p_MultipleSets,
  _swigc__p_NULL_t,
  _swigc__p_Notification,
  _swigc__p_OCTET_STRING_t,
  _swigc__p_OTD_MeasureInfo,
  _swigc__p_PosCapabilities_t,
  _swigc__p_PosCapability_Req,
  _swigc__p_PosCapability_Rsp,
  _swigc__p_PosMethod_t,
  _swigc__p_PosPayLoad,
  _swigc__p_PosPayLoad_PR,
  _swigc__p_PosPayLoad_t_choice,
  _swigc__p_Position,
  _swigc__p_PositionInstruct,
  _swigc__p_PositionMethod_t,
  _swigc__p_ProtocolError,
  _swigc__p_QoP,
  _swigc__p_RRLP_Component,
  _swigc__p_RRLP_Component_PR,
  _swigc__p_RRLP_Component_t_choice,
  _swigc__p_RRLP_PDU,
  _swigc__p_ReferenceAssistData,
  _swigc__p_ReferenceIdentity,
  _swigc__p_Rel5_AssistanceData_Extension,
  _swigc__p_Rel5_MsrPosition_Req_Extension,
  _swigc__p_Rel7_AssistanceData_Extension,
  _swigc__p_Rel7_MsrPosition_Req_Extension,
  _swigc__p_Rel98_AssistanceData_Extension,
  _swigc__p_Rel98_MsrPosition_Req_Extension,
  _swigc__p_Rel_5_MsrPosition_Rsp_Extension,
  _swigc__p_Rel_5_ProtocolError_Extension,
  _swigc__p_Rel_7_MsrPosition_Rsp_Extension,
  _swigc__p_Rel_98_MsrPosition_Rsp_Extension,
  _swigc__p_RequestedAssistData,
  _swigc__p_SETAuthKey,
  _swigc__p_SETCapabilities_t,
  _swigc__p_SETId,
  _swigc__p_SETId_PR,
  _swigc__p_SETId_t_choice,
  _swigc__p_SETNonce_t,
  _swigc__p_SLPAddress,
  _swigc__p_SLPAddress_PR,
  _swigc__p_SLPAddress_t_choice,
  _swigc__p_SPCAuthKey,
  _swigc__p_SUPLAUTHREQ,
  _swigc__p_SUPLAUTHRESP,
  _swigc__p_SUPLEND,
  _swigc__p_SUPLINIT,
  _swigc__p_SUPLPOS,
  _swigc__p_SUPLPOSINIT,
  _swigc__p_SUPLRESPONSE,
  _swigc__p_SUPLSTART,
  _swigc__p_SatelliteInfo_t,
  _swigc__p_SessionID,
  _swigc__p_SetSessionID,
  _swigc__p_SlpSessionID,
  _swigc__p_StatusCode_t,
  _swigc__p_SystemInfoAssistData,
  _swigc__p_ULP_PDU,
  _swigc__p_UlpMessage,
  _swigc__p_UlpMessage_PR,
  _swigc__p_UlpMessage_t_choice,
  _swigc__p_UseMultipleSets_t,
  _swigc__p_Velocity,
  _swigc__p_Ver_t,
  _swigc__p_Version_t,
  _swigc__p_asn_TYPE_descriptor_t,
  _swigc__p_char,
  _swigc__p_ellipsoid_point,
  _swigc__p_long,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

static swig_constant_info swig_constants[] = {
{0,0,0,0,0,0}
};
#ifdef __cplusplus
}
#endif
static swig_variable_info swig_variables[] = {
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_SessionID", MAGIC_CLASS _wrap_asn_DEF_SessionID_set, MAGIC_CLASS _wrap_asn_DEF_SessionID_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_SetSessionID", MAGIC_CLASS _wrap_asn_DEF_SetSessionID_set, MAGIC_CLASS _wrap_asn_DEF_SetSessionID_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_SETId", MAGIC_CLASS _wrap_asn_DEF_SETId_set, MAGIC_CLASS _wrap_asn_DEF_SETId_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_SlpSessionID", MAGIC_CLASS _wrap_asn_DEF_SlpSessionID_set, MAGIC_CLASS _wrap_asn_DEF_SlpSessionID_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_AssistanceData", MAGIC_CLASS _wrap_asn_DEF_AssistanceData_set, MAGIC_CLASS _wrap_asn_DEF_AssistanceData_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_PosCapability_Req", MAGIC_CLASS _wrap_asn_DEF_PosCapability_Req_set, MAGIC_CLASS _wrap_asn_DEF_PosCapability_Req_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
    { "Net::Radio::Location::SUPL::XSc::asn_DEF_PosCapability_Rsp", MAGIC_CLASS _wrap_asn_DEF_PosCapability_Rsp_set, MAGIC_CLASS _wrap_asn_DEF_PosCapability_Rsp_get,&SWIGTYPE_p_asn_TYPE_descriptor_t },
{0,0,0,0}
};
static swig_command_info swig_commands[] = {
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_sETNonce_set", _wrap_SUPLAUTHREQ_t_sETNonce_set},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_sETNonce_get", _wrap_SUPLAUTHREQ_t_sETNonce_get},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_keyIdentity2_set", _wrap_SUPLAUTHREQ_t_keyIdentity2_set},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_keyIdentity2_get", _wrap_SUPLAUTHREQ_t_keyIdentity2_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLAUTHREQ_t", _wrap_delete_SUPLAUTHREQ_t},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_dump", _wrap_SUPLAUTHREQ_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHREQ_t_xml_dump", _wrap_SUPLAUTHREQ_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLAUTHREQ_t", _wrap_new_SUPLAUTHREQ_t},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_sPCAuthKey_set", _wrap_SUPLAUTHRESP_t_sPCAuthKey_set},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_sPCAuthKey_get", _wrap_SUPLAUTHRESP_t_sPCAuthKey_get},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_keyIdentity3_set", _wrap_SUPLAUTHRESP_t_keyIdentity3_set},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_keyIdentity3_get", _wrap_SUPLAUTHRESP_t_keyIdentity3_get},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_statusCode_set", _wrap_SUPLAUTHRESP_t_statusCode_set},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_statusCode_get", _wrap_SUPLAUTHRESP_t_statusCode_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLAUTHRESP_t", _wrap_delete_SUPLAUTHRESP_t},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_dump", _wrap_SUPLAUTHRESP_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLAUTHRESP_t_xml_dump", _wrap_SUPLAUTHRESP_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLAUTHRESP_t", _wrap_new_SUPLAUTHRESP_t},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_position_set", _wrap_SUPLEND_t_position_set},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_position_get", _wrap_SUPLEND_t_position_get},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_statusCode_set", _wrap_SUPLEND_t_statusCode_set},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_statusCode_get", _wrap_SUPLEND_t_statusCode_get},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_ver_set", _wrap_SUPLEND_t_ver_set},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_ver_get", _wrap_SUPLEND_t_ver_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLEND_t", _wrap_delete_SUPLEND_t},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_dump", _wrap_SUPLEND_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLEND_t_xml_dump", _wrap_SUPLEND_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLEND_t", _wrap_new_SUPLEND_t},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_posMethod_set", _wrap_SUPLINIT_t_posMethod_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_posMethod_get", _wrap_SUPLINIT_t_posMethod_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_notification_set", _wrap_SUPLINIT_t_notification_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_notification_get", _wrap_SUPLINIT_t_notification_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_sLPAddress_set", _wrap_SUPLINIT_t_sLPAddress_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_sLPAddress_get", _wrap_SUPLINIT_t_sLPAddress_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_qoP_set", _wrap_SUPLINIT_t_qoP_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_qoP_get", _wrap_SUPLINIT_t_qoP_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_sLPMode_set", _wrap_SUPLINIT_t_sLPMode_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_sLPMode_get", _wrap_SUPLINIT_t_sLPMode_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_mAC_set", _wrap_SUPLINIT_t_mAC_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_mAC_get", _wrap_SUPLINIT_t_mAC_get},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_keyIdentity_set", _wrap_SUPLINIT_t_keyIdentity_set},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_keyIdentity_get", _wrap_SUPLINIT_t_keyIdentity_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLINIT_t", _wrap_delete_SUPLINIT_t},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_dump", _wrap_SUPLINIT_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLINIT_t_xml_dump", _wrap_SUPLINIT_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLINIT_t", _wrap_new_SUPLINIT_t},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_posPayLoad_set", _wrap_SUPLPOS_t_posPayLoad_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_posPayLoad_get", _wrap_SUPLPOS_t_posPayLoad_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_velocity_set", _wrap_SUPLPOS_t_velocity_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_velocity_get", _wrap_SUPLPOS_t_velocity_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLPOS_t", _wrap_delete_SUPLPOS_t},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_dump", _wrap_SUPLPOS_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLPOS_t_xml_dump", _wrap_SUPLPOS_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLPOS_t", _wrap_new_SUPLPOS_t},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_sETCapabilities_set", _wrap_SUPLPOSINIT_t_sETCapabilities_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_sETCapabilities_get", _wrap_SUPLPOSINIT_t_sETCapabilities_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_requestedAssistData_set", _wrap_SUPLPOSINIT_t_requestedAssistData_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_requestedAssistData_get", _wrap_SUPLPOSINIT_t_requestedAssistData_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_locationId_set", _wrap_SUPLPOSINIT_t_locationId_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_locationId_get", _wrap_SUPLPOSINIT_t_locationId_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_position_set", _wrap_SUPLPOSINIT_t_position_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_position_get", _wrap_SUPLPOSINIT_t_position_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_sUPLPOS_set", _wrap_SUPLPOSINIT_t_sUPLPOS_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_sUPLPOS_get", _wrap_SUPLPOSINIT_t_sUPLPOS_get},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_ver_set", _wrap_SUPLPOSINIT_t_ver_set},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_ver_get", _wrap_SUPLPOSINIT_t_ver_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLPOSINIT_t", _wrap_delete_SUPLPOSINIT_t},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_dump", _wrap_SUPLPOSINIT_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_xml_dump", _wrap_SUPLPOSINIT_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_capabilities", _wrap_SUPLPOSINIT_t_set_capabilities},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_requested_assist_data", _wrap_SUPLPOSINIT_t_set_requested_assist_data},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_update_requested_assist_data", _wrap_SUPLPOSINIT_t_update_requested_assist_data},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_requested_assist_navigation_modell", _wrap_SUPLPOSINIT_t_set_requested_assist_navigation_modell},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_gsm_location_info", _wrap_SUPLPOSINIT_t_set_gsm_location_info},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_wcdma_location_info", _wrap_SUPLPOSINIT_t_set_wcdma_location_info},
{"Net::Radio::Location::SUPL::XSc::SUPLPOSINIT_t_set_position_estimate", _wrap_SUPLPOSINIT_t_set_position_estimate},
{"Net::Radio::Location::SUPL::XSc::new_SUPLPOSINIT_t", _wrap_new_SUPLPOSINIT_t},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_posMethod_set", _wrap_SUPLRESPONSE_t_posMethod_set},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_posMethod_get", _wrap_SUPLRESPONSE_t_posMethod_get},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_sLPAddress_set", _wrap_SUPLRESPONSE_t_sLPAddress_set},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_sLPAddress_get", _wrap_SUPLRESPONSE_t_sLPAddress_get},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_sETAuthKey_set", _wrap_SUPLRESPONSE_t_sETAuthKey_set},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_sETAuthKey_get", _wrap_SUPLRESPONSE_t_sETAuthKey_get},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_keyIdentity4_set", _wrap_SUPLRESPONSE_t_keyIdentity4_set},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_keyIdentity4_get", _wrap_SUPLRESPONSE_t_keyIdentity4_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLRESPONSE_t", _wrap_delete_SUPLRESPONSE_t},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_dump", _wrap_SUPLRESPONSE_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLRESPONSE_t_xml_dump", _wrap_SUPLRESPONSE_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLRESPONSE_t", _wrap_new_SUPLRESPONSE_t},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_sETCapabilities_set", _wrap_SUPLSTART_t_sETCapabilities_set},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_sETCapabilities_get", _wrap_SUPLSTART_t_sETCapabilities_get},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_locationId_set", _wrap_SUPLSTART_t_locationId_set},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_locationId_get", _wrap_SUPLSTART_t_locationId_get},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_qoP_set", _wrap_SUPLSTART_t_qoP_set},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_qoP_get", _wrap_SUPLSTART_t_qoP_get},
{"Net::Radio::Location::SUPL::XSc::delete_SUPLSTART_t", _wrap_delete_SUPLSTART_t},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_dump", _wrap_SUPLSTART_t_dump},
{"Net::Radio::Location::SUPL::XSc::SUPLSTART_t_xml_dump", _wrap_SUPLSTART_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::new_SUPLSTART_t", _wrap_new_SUPLSTART_t},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_length_set", _wrap_ULP_PDU_t_length_set},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_length_get", _wrap_ULP_PDU_t_length_get},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_version_set", _wrap_ULP_PDU_t_version_set},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_version_get", _wrap_ULP_PDU_t_version_get},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_sessionID_set", _wrap_ULP_PDU_t_sessionID_set},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_sessionID_get", _wrap_ULP_PDU_t_sessionID_get},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_message_set", _wrap_ULP_PDU_t_message_set},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_message_get", _wrap_ULP_PDU_t_message_get},
{"Net::Radio::Location::SUPL::XSc::new_ULP_PDU_t", _wrap_new_ULP_PDU_t},
{"Net::Radio::Location::SUPL::XSc::delete_ULP_PDU_t", _wrap_delete_ULP_PDU_t},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_set_version", _wrap_ULP_PDU_t_set_version},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_copy_SlpSessionId", _wrap_ULP_PDU_t_copy_SlpSessionId},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_setSetSessionId_to_imsi", _wrap_ULP_PDU_t_setSetSessionId_to_imsi},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_setSetSessionId_to_msisdn", _wrap_ULP_PDU_t_setSetSessionId_to_msisdn},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_copy_SetSessionId", _wrap_ULP_PDU_t_copy_SetSessionId},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_copy_SessionId", _wrap_ULP_PDU_t_copy_SessionId},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_set_message_type", _wrap_ULP_PDU_t_set_message_type},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_encode", _wrap_ULP_PDU_t_encode},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_dump", _wrap_ULP_PDU_t_dump},
{"Net::Radio::Location::SUPL::XSc::ULP_PDU_t_xml_dump", _wrap_ULP_PDU_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_present_set", _wrap_UlpMessage_t_present_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_present_get", _wrap_UlpMessage_t_present_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_get", _wrap_UlpMessage_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::new_UlpMessage_t", _wrap_new_UlpMessage_t},
{"Net::Radio::Location::SUPL::XSc::delete_UlpMessage_t", _wrap_delete_UlpMessage_t},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLINIT_set", _wrap_UlpMessage_t_choice_msSUPLINIT_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLINIT_get", _wrap_UlpMessage_t_choice_msSUPLINIT_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLSTART_set", _wrap_UlpMessage_t_choice_msSUPLSTART_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLSTART_get", _wrap_UlpMessage_t_choice_msSUPLSTART_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLRESPONSE_set", _wrap_UlpMessage_t_choice_msSUPLRESPONSE_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLRESPONSE_get", _wrap_UlpMessage_t_choice_msSUPLRESPONSE_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLPOSINIT_set", _wrap_UlpMessage_t_choice_msSUPLPOSINIT_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLPOSINIT_get", _wrap_UlpMessage_t_choice_msSUPLPOSINIT_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLPOS_set", _wrap_UlpMessage_t_choice_msSUPLPOS_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLPOS_get", _wrap_UlpMessage_t_choice_msSUPLPOS_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLEND_set", _wrap_UlpMessage_t_choice_msSUPLEND_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLEND_get", _wrap_UlpMessage_t_choice_msSUPLEND_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLAUTHREQ_set", _wrap_UlpMessage_t_choice_msSUPLAUTHREQ_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLAUTHREQ_get", _wrap_UlpMessage_t_choice_msSUPLAUTHREQ_get},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLAUTHRESP_set", _wrap_UlpMessage_t_choice_msSUPLAUTHRESP_set},
{"Net::Radio::Location::SUPL::XSc::UlpMessage_t_choice_msSUPLAUTHRESP_get", _wrap_UlpMessage_t_choice_msSUPLAUTHRESP_get},
{"Net::Radio::Location::SUPL::XSc::new_UlpMessage_t_choice", _wrap_new_UlpMessage_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_UlpMessage_t_choice", _wrap_delete_UlpMessage_t_choice},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_present_set", _wrap_SLPAddress_t_present_set},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_present_get", _wrap_SLPAddress_t_present_get},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_choice_get", _wrap_SLPAddress_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::delete_SLPAddress_t", _wrap_delete_SLPAddress_t},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_set_ipaddress", _wrap_SLPAddress_t_set_ipaddress},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_set_fqdn", _wrap_SLPAddress_t_set_fqdn},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_is_ipv4", _wrap_SLPAddress_t_is_ipv4},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_is_ipv6", _wrap_SLPAddress_t_is_ipv6},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_is_ip", _wrap_SLPAddress_t_is_ip},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_is_fqdn", _wrap_SLPAddress_t_is_fqdn},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_is_valid", _wrap_SLPAddress_t_is_valid},
{"Net::Radio::Location::SUPL::XSc::new_SLPAddress_t", _wrap_new_SLPAddress_t},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_choice_iPAddress_set", _wrap_SLPAddress_t_choice_iPAddress_set},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_choice_iPAddress_get", _wrap_SLPAddress_t_choice_iPAddress_get},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_choice_fQDN_set", _wrap_SLPAddress_t_choice_fQDN_set},
{"Net::Radio::Location::SUPL::XSc::SLPAddress_t_choice_fQDN_get", _wrap_SLPAddress_t_choice_fQDN_get},
{"Net::Radio::Location::SUPL::XSc::new_SLPAddress_t_choice", _wrap_new_SLPAddress_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_SLPAddress_t_choice", _wrap_delete_SLPAddress_t_choice},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_present_set", _wrap_PosPayLoad_t_present_set},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_present_get", _wrap_PosPayLoad_t_present_get},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_get", _wrap_PosPayLoad_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::new_PosPayLoad_t", _wrap_new_PosPayLoad_t},
{"Net::Radio::Location::SUPL::XSc::delete_PosPayLoad_t", _wrap_delete_PosPayLoad_t},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_tia801payload_set", _wrap_PosPayLoad_t_choice_tia801payload_set},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_tia801payload_get", _wrap_PosPayLoad_t_choice_tia801payload_get},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_rrcPayload_set", _wrap_PosPayLoad_t_choice_rrcPayload_set},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_rrcPayload_get", _wrap_PosPayLoad_t_choice_rrcPayload_get},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_rrlpPayload_set", _wrap_PosPayLoad_t_choice_rrlpPayload_set},
{"Net::Radio::Location::SUPL::XSc::PosPayLoad_t_choice_rrlpPayload_get", _wrap_PosPayLoad_t_choice_rrlpPayload_get},
{"Net::Radio::Location::SUPL::XSc::new_PosPayLoad_t_choice", _wrap_new_PosPayLoad_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_PosPayLoad_t_choice", _wrap_delete_PosPayLoad_t_choice},
{"Net::Radio::Location::SUPL::XSc::LocationId_t_cellInfo_set", _wrap_LocationId_t_cellInfo_set},
{"Net::Radio::Location::SUPL::XSc::LocationId_t_cellInfo_get", _wrap_LocationId_t_cellInfo_get},
{"Net::Radio::Location::SUPL::XSc::LocationId_t_status_set", _wrap_LocationId_t_status_set},
{"Net::Radio::Location::SUPL::XSc::LocationId_t_status_get", _wrap_LocationId_t_status_get},
{"Net::Radio::Location::SUPL::XSc::new_LocationId_t", _wrap_new_LocationId_t},
{"Net::Radio::Location::SUPL::XSc::delete_LocationId_t", _wrap_delete_LocationId_t},
{"Net::Radio::Location::SUPL::XSc::SessionID_t_setSessionID_set", _wrap_SessionID_t_setSessionID_set},
{"Net::Radio::Location::SUPL::XSc::SessionID_t_setSessionID_get", _wrap_SessionID_t_setSessionID_get},
{"Net::Radio::Location::SUPL::XSc::SessionID_t_slpSessionID_set", _wrap_SessionID_t_slpSessionID_set},
{"Net::Radio::Location::SUPL::XSc::SessionID_t_slpSessionID_get", _wrap_SessionID_t_slpSessionID_get},
{"Net::Radio::Location::SUPL::XSc::new_SessionID_t", _wrap_new_SessionID_t},
{"Net::Radio::Location::SUPL::XSc::delete_SessionID_t", _wrap_delete_SessionID_t},
{"Net::Radio::Location::SUPL::XSc::SetSessionID_t_sessionId_set", _wrap_SetSessionID_t_sessionId_set},
{"Net::Radio::Location::SUPL::XSc::SetSessionID_t_sessionId_get", _wrap_SetSessionID_t_sessionId_get},
{"Net::Radio::Location::SUPL::XSc::SetSessionID_t_setId_set", _wrap_SetSessionID_t_setId_set},
{"Net::Radio::Location::SUPL::XSc::SetSessionID_t_setId_get", _wrap_SetSessionID_t_setId_get},
{"Net::Radio::Location::SUPL::XSc::new_SetSessionID_t", _wrap_new_SetSessionID_t},
{"Net::Radio::Location::SUPL::XSc::delete_SetSessionID_t", _wrap_delete_SetSessionID_t},
{"Net::Radio::Location::SUPL::XSc::SETId_t_present_set", _wrap_SETId_t_present_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_present_get", _wrap_SETId_t_present_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_get", _wrap_SETId_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::new_SETId_t", _wrap_new_SETId_t},
{"Net::Radio::Location::SUPL::XSc::delete_SETId_t", _wrap_delete_SETId_t},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_msisdn_set", _wrap_SETId_t_choice_msisdn_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_msisdn_get", _wrap_SETId_t_choice_msisdn_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_mdn_set", _wrap_SETId_t_choice_mdn_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_mdn_get", _wrap_SETId_t_choice_mdn_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_min_set", _wrap_SETId_t_choice_min_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_min_get", _wrap_SETId_t_choice_min_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_imsi_set", _wrap_SETId_t_choice_imsi_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_imsi_get", _wrap_SETId_t_choice_imsi_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_nai_set", _wrap_SETId_t_choice_nai_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_nai_get", _wrap_SETId_t_choice_nai_get},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_iPAddress_set", _wrap_SETId_t_choice_iPAddress_set},
{"Net::Radio::Location::SUPL::XSc::SETId_t_choice_iPAddress_get", _wrap_SETId_t_choice_iPAddress_get},
{"Net::Radio::Location::SUPL::XSc::new_SETId_t_choice", _wrap_new_SETId_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_SETId_t_choice", _wrap_delete_SETId_t_choice},
{"Net::Radio::Location::SUPL::XSc::SlpSessionID_t_sessionID_set", _wrap_SlpSessionID_t_sessionID_set},
{"Net::Radio::Location::SUPL::XSc::SlpSessionID_t_sessionID_get", _wrap_SlpSessionID_t_sessionID_get},
{"Net::Radio::Location::SUPL::XSc::SlpSessionID_t_slpId_set", _wrap_SlpSessionID_t_slpId_set},
{"Net::Radio::Location::SUPL::XSc::SlpSessionID_t_slpId_get", _wrap_SlpSessionID_t_slpId_get},
{"Net::Radio::Location::SUPL::XSc::new_SlpSessionID_t", _wrap_new_SlpSessionID_t},
{"Net::Radio::Location::SUPL::XSc::delete_SlpSessionID_t", _wrap_delete_SlpSessionID_t},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_referenceNumber_set", _wrap_RRLP_PDU_t_referenceNumber_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_referenceNumber_get", _wrap_RRLP_PDU_t_referenceNumber_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_component_set", _wrap_RRLP_PDU_t_component_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_component_get", _wrap_RRLP_PDU_t_component_get},
{"Net::Radio::Location::SUPL::XSc::new_RRLP_PDU_t", _wrap_new_RRLP_PDU_t},
{"Net::Radio::Location::SUPL::XSc::delete_RRLP_PDU_t", _wrap_delete_RRLP_PDU_t},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_encode", _wrap_RRLP_PDU_t_encode},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_dump", _wrap_RRLP_PDU_t_dump},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_xml_dump", _wrap_RRLP_PDU_t_xml_dump},
{"Net::Radio::Location::SUPL::XSc::RRLP_PDU_t_set_component_type", _wrap_RRLP_PDU_t_set_component_type},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_present_set", _wrap_RRLP_Component_t_present_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_present_get", _wrap_RRLP_Component_t_present_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_get", _wrap_RRLP_Component_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::new_RRLP_Component_t", _wrap_new_RRLP_Component_t},
{"Net::Radio::Location::SUPL::XSc::delete_RRLP_Component_t", _wrap_delete_RRLP_Component_t},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_msrPositionReq_set", _wrap_RRLP_Component_t_choice_msrPositionReq_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_msrPositionReq_get", _wrap_RRLP_Component_t_choice_msrPositionReq_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_msrPositionRsp_set", _wrap_RRLP_Component_t_choice_msrPositionRsp_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_msrPositionRsp_get", _wrap_RRLP_Component_t_choice_msrPositionRsp_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_assistanceData_set", _wrap_RRLP_Component_t_choice_assistanceData_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_assistanceData_get", _wrap_RRLP_Component_t_choice_assistanceData_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_assistanceDataAck_set", _wrap_RRLP_Component_t_choice_assistanceDataAck_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_assistanceDataAck_get", _wrap_RRLP_Component_t_choice_assistanceDataAck_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_protocolError_set", _wrap_RRLP_Component_t_choice_protocolError_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_protocolError_get", _wrap_RRLP_Component_t_choice_protocolError_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_posCapabilityReq_set", _wrap_RRLP_Component_t_choice_posCapabilityReq_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_posCapabilityReq_get", _wrap_RRLP_Component_t_choice_posCapabilityReq_get},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_posCapabilityRsp_set", _wrap_RRLP_Component_t_choice_posCapabilityRsp_set},
{"Net::Radio::Location::SUPL::XSc::RRLP_Component_t_choice_posCapabilityRsp_get", _wrap_RRLP_Component_t_choice_posCapabilityRsp_get},
{"Net::Radio::Location::SUPL::XSc::new_RRLP_Component_t_choice", _wrap_new_RRLP_Component_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_RRLP_Component_t_choice", _wrap_delete_RRLP_Component_t_choice},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_positionInstruct_set", _wrap_MsrPosition_Req_t_positionInstruct_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_positionInstruct_get", _wrap_MsrPosition_Req_t_positionInstruct_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_referenceAssistData_set", _wrap_MsrPosition_Req_t_referenceAssistData_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_referenceAssistData_get", _wrap_MsrPosition_Req_t_referenceAssistData_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_msrAssistData_set", _wrap_MsrPosition_Req_t_msrAssistData_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_msrAssistData_get", _wrap_MsrPosition_Req_t_msrAssistData_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_systemInfoAssistData_set", _wrap_MsrPosition_Req_t_systemInfoAssistData_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_systemInfoAssistData_get", _wrap_MsrPosition_Req_t_systemInfoAssistData_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_gps_AssistData_set", _wrap_MsrPosition_Req_t_gps_AssistData_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_gps_AssistData_get", _wrap_MsrPosition_Req_t_gps_AssistData_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_extensionContainer_set", _wrap_MsrPosition_Req_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_extensionContainer_get", _wrap_MsrPosition_Req_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set", _wrap_MsrPosition_Req_t_rel98_MsrPosition_Req_extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel98_MsrPosition_Req_extension_get", _wrap_MsrPosition_Req_t_rel98_MsrPosition_Req_extension_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set", _wrap_MsrPosition_Req_t_rel5_MsrPosition_Req_extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel5_MsrPosition_Req_extension_get", _wrap_MsrPosition_Req_t_rel5_MsrPosition_Req_extension_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set", _wrap_MsrPosition_Req_t_rel7_MsrPosition_Req_extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Req_t_rel7_MsrPosition_Req_extension_get", _wrap_MsrPosition_Req_t_rel7_MsrPosition_Req_extension_get},
{"Net::Radio::Location::SUPL::XSc::new_MsrPosition_Req_t", _wrap_new_MsrPosition_Req_t},
{"Net::Radio::Location::SUPL::XSc::delete_MsrPosition_Req_t", _wrap_delete_MsrPosition_Req_t},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_multipleSets_set", _wrap_MsrPosition_Rsp_t_multipleSets_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_multipleSets_get", _wrap_MsrPosition_Rsp_t_multipleSets_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_referenceIdentity_set", _wrap_MsrPosition_Rsp_t_referenceIdentity_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_referenceIdentity_get", _wrap_MsrPosition_Rsp_t_referenceIdentity_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_otd_MeasureInfo_set", _wrap_MsrPosition_Rsp_t_otd_MeasureInfo_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_otd_MeasureInfo_get", _wrap_MsrPosition_Rsp_t_otd_MeasureInfo_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_locationInfo_set", _wrap_MsrPosition_Rsp_t_locationInfo_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_locationInfo_get", _wrap_MsrPosition_Rsp_t_locationInfo_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_gps_MeasureInfo_set", _wrap_MsrPosition_Rsp_t_gps_MeasureInfo_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_gps_MeasureInfo_get", _wrap_MsrPosition_Rsp_t_gps_MeasureInfo_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_locationError_set", _wrap_MsrPosition_Rsp_t_locationError_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_locationError_get", _wrap_MsrPosition_Rsp_t_locationError_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_extensionContainer_set", _wrap_MsrPosition_Rsp_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_extensionContainer_get", _wrap_MsrPosition_Rsp_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set", _wrap_MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_get", _wrap_MsrPosition_Rsp_t_rel_98_MsrPosition_Rsp_Extension_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set", _wrap_MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_get", _wrap_MsrPosition_Rsp_t_rel_5_MsrPosition_Rsp_Extension_get},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set", _wrap_MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_set},
{"Net::Radio::Location::SUPL::XSc::MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_get", _wrap_MsrPosition_Rsp_t_rel_7_MsrPosition_Rsp_Extension_get},
{"Net::Radio::Location::SUPL::XSc::new_MsrPosition_Rsp_t", _wrap_new_MsrPosition_Rsp_t},
{"Net::Radio::Location::SUPL::XSc::delete_MsrPosition_Rsp_t", _wrap_delete_MsrPosition_Rsp_t},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_methodType_set", _wrap_PositionInstruct_t_methodType_set},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_methodType_get", _wrap_PositionInstruct_t_methodType_get},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_positionMethod_set", _wrap_PositionInstruct_t_positionMethod_set},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_positionMethod_get", _wrap_PositionInstruct_t_positionMethod_get},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_measureResponseTime_set", _wrap_PositionInstruct_t_measureResponseTime_set},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_measureResponseTime_get", _wrap_PositionInstruct_t_measureResponseTime_get},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_useMultipleSets_set", _wrap_PositionInstruct_t_useMultipleSets_set},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_useMultipleSets_get", _wrap_PositionInstruct_t_useMultipleSets_get},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_environmentCharacter_set", _wrap_PositionInstruct_t_environmentCharacter_set},
{"Net::Radio::Location::SUPL::XSc::PositionInstruct_t_environmentCharacter_get", _wrap_PositionInstruct_t_environmentCharacter_get},
{"Net::Radio::Location::SUPL::XSc::new_PositionInstruct_t", _wrap_new_PositionInstruct_t},
{"Net::Radio::Location::SUPL::XSc::delete_PositionInstruct_t", _wrap_delete_PositionInstruct_t},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_present_set", _wrap_MethodType_t_present_set},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_present_get", _wrap_MethodType_t_present_get},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_get", _wrap_MethodType_t_choice_get},
{"Net::Radio::Location::SUPL::XSc::new_MethodType_t", _wrap_new_MethodType_t},
{"Net::Radio::Location::SUPL::XSc::delete_MethodType_t", _wrap_delete_MethodType_t},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msAssisted_set", _wrap_MethodType_t_choice_msAssisted_set},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msAssisted_get", _wrap_MethodType_t_choice_msAssisted_get},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msBased_set", _wrap_MethodType_t_choice_msBased_set},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msBased_get", _wrap_MethodType_t_choice_msBased_get},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msBasedPref_set", _wrap_MethodType_t_choice_msBasedPref_set},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msBasedPref_get", _wrap_MethodType_t_choice_msBasedPref_get},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msAssistedPref_set", _wrap_MethodType_t_choice_msAssistedPref_set},
{"Net::Radio::Location::SUPL::XSc::MethodType_t_choice_msAssistedPref_get", _wrap_MethodType_t_choice_msAssistedPref_get},
{"Net::Radio::Location::SUPL::XSc::new_MethodType_t_choice", _wrap_new_MethodType_t_choice},
{"Net::Radio::Location::SUPL::XSc::delete_MethodType_t_choice", _wrap_delete_MethodType_t_choice},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_errorCause_set", _wrap_ProtocolError_t_errorCause_set},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_errorCause_get", _wrap_ProtocolError_t_errorCause_get},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_extensionContainer_set", _wrap_ProtocolError_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_extensionContainer_get", _wrap_ProtocolError_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_rel_5_ProtocolError_Extension_set", _wrap_ProtocolError_t_rel_5_ProtocolError_Extension_set},
{"Net::Radio::Location::SUPL::XSc::ProtocolError_t_rel_5_ProtocolError_Extension_get", _wrap_ProtocolError_t_rel_5_ProtocolError_Extension_get},
{"Net::Radio::Location::SUPL::XSc::new_ProtocolError_t", _wrap_new_ProtocolError_t},
{"Net::Radio::Location::SUPL::XSc::delete_ProtocolError_t", _wrap_delete_ProtocolError_t},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_refFrame_set", _wrap_LocationInfo_t_refFrame_set},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_refFrame_get", _wrap_LocationInfo_t_refFrame_get},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_gpsTOW_set", _wrap_LocationInfo_t_gpsTOW_set},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_gpsTOW_get", _wrap_LocationInfo_t_gpsTOW_get},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_fixType_set", _wrap_LocationInfo_t_fixType_set},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_fixType_get", _wrap_LocationInfo_t_fixType_get},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_posEstimate_set", _wrap_LocationInfo_t_posEstimate_set},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_posEstimate_get", _wrap_LocationInfo_t_posEstimate_get},
{"Net::Radio::Location::SUPL::XSc::new_LocationInfo_t", _wrap_new_LocationInfo_t},
{"Net::Radio::Location::SUPL::XSc::delete_LocationInfo_t", _wrap_delete_LocationInfo_t},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_set_posEstimate", _wrap_LocationInfo_t_set_posEstimate},
{"Net::Radio::Location::SUPL::XSc::LocationInfo_t_get_fixpoint_arith_multiplier", _wrap_LocationInfo_t_get_fixpoint_arith_multiplier},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_referenceAssistData_set", _wrap_AssistanceData_t_referenceAssistData_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_referenceAssistData_get", _wrap_AssistanceData_t_referenceAssistData_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_msrAssistData_set", _wrap_AssistanceData_t_msrAssistData_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_msrAssistData_get", _wrap_AssistanceData_t_msrAssistData_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_systemInfoAssistData_set", _wrap_AssistanceData_t_systemInfoAssistData_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_systemInfoAssistData_get", _wrap_AssistanceData_t_systemInfoAssistData_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_gps_AssistData_set", _wrap_AssistanceData_t_gps_AssistData_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_gps_AssistData_get", _wrap_AssistanceData_t_gps_AssistData_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_moreAssDataToBeSent_set", _wrap_AssistanceData_t_moreAssDataToBeSent_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_moreAssDataToBeSent_get", _wrap_AssistanceData_t_moreAssDataToBeSent_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_extensionContainer_set", _wrap_AssistanceData_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_extensionContainer_get", _wrap_AssistanceData_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel98_AssistanceData_Extension_set", _wrap_AssistanceData_t_rel98_AssistanceData_Extension_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel98_AssistanceData_Extension_get", _wrap_AssistanceData_t_rel98_AssistanceData_Extension_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel5_AssistanceData_Extension_set", _wrap_AssistanceData_t_rel5_AssistanceData_Extension_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel5_AssistanceData_Extension_get", _wrap_AssistanceData_t_rel5_AssistanceData_Extension_get},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel7_AssistanceData_Extension_set", _wrap_AssistanceData_t_rel7_AssistanceData_Extension_set},
{"Net::Radio::Location::SUPL::XSc::AssistanceData_t_rel7_AssistanceData_Extension_get", _wrap_AssistanceData_t_rel7_AssistanceData_Extension_get},
{"Net::Radio::Location::SUPL::XSc::new_AssistanceData_t", _wrap_new_AssistanceData_t},
{"Net::Radio::Location::SUPL::XSc::delete_AssistanceData_t", _wrap_delete_AssistanceData_t},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_extended_reference_set", _wrap_PosCapability_Req_t_extended_reference_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_extended_reference_get", _wrap_PosCapability_Req_t_extended_reference_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_gANSSPositionMethods_set", _wrap_PosCapability_Req_t_gANSSPositionMethods_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_gANSSPositionMethods_get", _wrap_PosCapability_Req_t_gANSSPositionMethods_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_extensionContainer_set", _wrap_PosCapability_Req_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Req_t_extensionContainer_get", _wrap_PosCapability_Req_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::new_PosCapability_Req_t", _wrap_new_PosCapability_Req_t},
{"Net::Radio::Location::SUPL::XSc::delete_PosCapability_Req_t", _wrap_delete_PosCapability_Req_t},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_extended_reference_set", _wrap_PosCapability_Rsp_t_extended_reference_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_extended_reference_get", _wrap_PosCapability_Rsp_t_extended_reference_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_posCapabilities_set", _wrap_PosCapability_Rsp_t_posCapabilities_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_posCapabilities_get", _wrap_PosCapability_Rsp_t_posCapabilities_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_assistanceSupported_set", _wrap_PosCapability_Rsp_t_assistanceSupported_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_assistanceSupported_get", _wrap_PosCapability_Rsp_t_assistanceSupported_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_assistanceNeeded_set", _wrap_PosCapability_Rsp_t_assistanceNeeded_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_assistanceNeeded_get", _wrap_PosCapability_Rsp_t_assistanceNeeded_get},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_extensionContainer_set", _wrap_PosCapability_Rsp_t_extensionContainer_set},
{"Net::Radio::Location::SUPL::XSc::PosCapability_Rsp_t_extensionContainer_get", _wrap_PosCapability_Rsp_t_extensionContainer_get},
{"Net::Radio::Location::SUPL::XSc::new_PosCapability_Rsp_t", _wrap_new_PosCapability_Rsp_t},
{"Net::Radio::Location::SUPL::XSc::delete_PosCapability_Rsp_t", _wrap_delete_PosCapability_Rsp_t},
{"Net::Radio::Location::SUPL::XSc::encode_ulp_pdu", _wrap_encode_ulp_pdu},
{"Net::Radio::Location::SUPL::XSc::decode_ulp_pdu", _wrap_decode_ulp_pdu},
{"Net::Radio::Location::SUPL::XSc::ulp_pdu_to_xml", _wrap_ulp_pdu_to_xml},
{"Net::Radio::Location::SUPL::XSc::dump_ulp_pdu", _wrap_dump_ulp_pdu},
{0,0}
};
/* -----------------------------------------------------------------------------
 * 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 staticly 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 found, init;
  
  clientdata = clientdata;
  
  /* 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);
    module_head = &swig_module;
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    found=0;
    iter=module_head;
    do {
      if (iter==&swig_module) {
        found=1;
        break;
      }
      iter=iter->next;
    } while (iter!= module_head);
    
    /* if the is found in the list, then all is done and we may leave */
    if (found) return;
    /* otherwise we must add out module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }
  
  /* When multiple interpeters 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



#ifdef __cplusplus
extern "C"
#endif

XS(SWIG_init) {
  dXSARGS;
  int i;
  
  SWIG_InitializeModule(0);
  
  /* Install commands */
  for (i = 0; swig_commands[i].name; i++) {
    // Casts only needed for Perl < 5.10.
#ifdef __cplusplus
    newXS(const_cast<char*>(swig_commands[i].name), swig_commands[i].wrapper, const_cast<char*>(__FILE__));
#else
    newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__);
#endif
  }
  
  /* Install variables */
  for (i = 0; swig_variables[i].name; i++) {
    SV *sv;
    sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI);
    if (swig_variables[i].type) {
      SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0);
    } else {
      sv_setiv(sv,(IV) 0);
    }
    swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); 
  }
  
  /* Install constant */
  for (i = 0; swig_constants[i].type; i++) {
    SV *sv;
    sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI);
    switch(swig_constants[i].type) {
    case SWIG_INT:
      sv_setiv(sv, (IV) swig_constants[i].lvalue);
      break;
    case SWIG_FLOAT:
      sv_setnv(sv, (double) swig_constants[i].dvalue);
      break;
    case SWIG_STRING:
      sv_setpv(sv, (const char *) swig_constants[i].pvalue);
      break;
    case SWIG_POINTER:
      SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0);
      break;
    case SWIG_BINARY:
      SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype));
      break;
    default:
      break;
    }
    SvREADONLY_on(sv);
  }
  
  SWIG_TypeClientData(SWIGTYPE_p_SUPLAUTHREQ, (void*) "Net::Radio::Location::SUPL::XS::SUPLAUTHREQ_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLAUTHRESP, (void*) "Net::Radio::Location::SUPL::XS::SUPLAUTHRESP_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLEND, (void*) "Net::Radio::Location::SUPL::XS::SUPLEND_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLINIT, (void*) "Net::Radio::Location::SUPL::XS::SUPLINIT_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLPOS, (void*) "Net::Radio::Location::SUPL::XS::SUPLPOS_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_agpsSETassisted", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 0))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_agpsSETBased", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 1))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_autonomousGPS", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 2))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_aFLT", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 3))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_eCID", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 4))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_eOTD", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 5))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_tech_oTDOA", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 6))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_proto_tia801", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 0))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_proto_rrlp", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 1))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "setcap_pos_proto_rrc", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 2))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_almanacRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 0))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_utcModelRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 1))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_ionosphericModelRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 2))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_dgpsCorrectionsRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 3))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_referenceLocationRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 4))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_referenceTimeRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 5))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_acquisitionAssistanceRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 6))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "reqassistdata_realTimeIntegrityRequested", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((1 << 7))));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_SUPLPOSINIT, (void*) "Net::Radio::Location::SUPL::XS::SUPLPOSINIT_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLRESPONSE, (void*) "Net::Radio::Location::SUPL::XS::SUPLRESPONSE_t");
  SWIG_TypeClientData(SWIGTYPE_p_SUPLSTART, (void*) "Net::Radio::Location::SUPL::XS::SUPLSTART_t");
  SWIG_TypeClientData(SWIGTYPE_p_ULP_PDU, (void*) "Net::Radio::Location::SUPL::XS::ULP_PDU_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLINIT", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLINIT)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLSTART", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLSTART)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLRESPONSE", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLRESPONSE)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLPOSINIT", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLPOSINIT)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLPOS", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLPOS)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLEND", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLEND)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLAUTHREQ", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLAUTHREQ)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "UlpMessage_PR_msSUPLAUTHRESP", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(UlpMessage_PR_msSUPLAUTHRESP)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_UlpMessage, (void*) "Net::Radio::Location::SUPL::XS::UlpMessage_t");
  SWIG_TypeClientData(SWIGTYPE_p_UlpMessage_t_choice, (void*) "Net::Radio::Location::SUPL::XS::UlpMessage_t_choice");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SLPAddress_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SLPAddress_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SLPAddress_PR_iPAddress", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SLPAddress_PR_iPAddress)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SLPAddress_PR_fQDN", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SLPAddress_PR_fQDN)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_SLPAddress, (void*) "Net::Radio::Location::SUPL::XS::SLPAddress_t");
  SWIG_TypeClientData(SWIGTYPE_p_SLPAddress_t_choice, (void*) "Net::Radio::Location::SUPL::XS::SLPAddress_t_choice");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PosPayLoad_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PosPayLoad_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PosPayLoad_PR_tia801payload", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PosPayLoad_PR_tia801payload)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PosPayLoad_PR_rrcPayload", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PosPayLoad_PR_rrcPayload)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PosPayLoad_PR_rrlpPayload", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PosPayLoad_PR_rrlpPayload)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_PosPayLoad, (void*) "Net::Radio::Location::SUPL::XS::PosPayLoad_t");
  SWIG_TypeClientData(SWIGTYPE_p_PosPayLoad_t_choice, (void*) "Net::Radio::Location::SUPL::XS::PosPayLoad_t_choice");
  SWIG_TypeClientData(SWIGTYPE_p_LocationId, (void*) "Net::Radio::Location::SUPL::XS::LocationId_t");
  SWIG_TypeClientData(SWIGTYPE_p_SessionID, (void*) "Net::Radio::Location::SUPL::XS::SessionID_t");
  SWIG_TypeClientData(SWIGTYPE_p_SetSessionID, (void*) "Net::Radio::Location::SUPL::XS::SetSessionID_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_msisdn", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_msisdn)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_mdn", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_mdn)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_min", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_min)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_imsi", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_imsi)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_nai", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_nai)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SETId_PR_iPAddress", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SETId_PR_iPAddress)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_SETId, (void*) "Net::Radio::Location::SUPL::XS::SETId_t");
  SWIG_TypeClientData(SWIGTYPE_p_SETId_t_choice, (void*) "Net::Radio::Location::SUPL::XS::SETId_t_choice");
  SWIG_TypeClientData(SWIGTYPE_p_SlpSessionID, (void*) "Net::Radio::Location::SUPL::XS::SlpSessionID_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PrefMethod_agpsSETassistedPreferred", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PrefMethod_agpsSETassistedPreferred)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PrefMethod_agpsSETBasedPreferred", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PrefMethod_agpsSETBasedPreferred)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "PrefMethod_noPreference", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(PrefMethod_noPreference)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SLPMode_proxy", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SLPMode_proxy)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "SLPMode_nonProxy", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(SLPMode_nonProxy)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "Status_stale", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(Status_stale)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "Status_current", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(Status_current)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "Status_unknown", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(Status_unknown)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_RRLP_PDU, (void*) "Net::Radio::Location::SUPL::XS::RRLP_PDU_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_msrPositionReq", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_msrPositionReq)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_msrPositionRsp", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_msrPositionRsp)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_assistanceData", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_assistanceData)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_assistanceDataAck", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_assistanceDataAck)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_protocolError", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_protocolError)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_posCapabilityReq", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_posCapabilityReq)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "RRLP_Component_PR_posCapabilityRsp", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(RRLP_Component_PR_posCapabilityRsp)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_RRLP_Component, (void*) "Net::Radio::Location::SUPL::XS::RRLP_Component_t");
  SWIG_TypeClientData(SWIGTYPE_p_RRLP_Component_t_choice, (void*) "Net::Radio::Location::SUPL::XS::RRLP_Component_t_choice");
  SWIG_TypeClientData(SWIGTYPE_p_MsrPosition_Req, (void*) "Net::Radio::Location::SUPL::XS::MsrPosition_Req_t");
  SWIG_TypeClientData(SWIGTYPE_p_MsrPosition_Rsp, (void*) "Net::Radio::Location::SUPL::XS::MsrPosition_Rsp_t");
  SWIG_TypeClientData(SWIGTYPE_p_PositionInstruct, (void*) "Net::Radio::Location::SUPL::XS::PositionInstruct_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "MethodType_PR_NOTHING", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MethodType_PR_NOTHING)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "MethodType_PR_msAssisted", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MethodType_PR_msAssisted)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "MethodType_PR_msBased", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MethodType_PR_msBased)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "MethodType_PR_msBasedPref", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MethodType_PR_msBasedPref)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "MethodType_PR_msAssistedPref", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(MethodType_PR_msAssistedPref)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  SWIG_TypeClientData(SWIGTYPE_p_MethodType, (void*) "Net::Radio::Location::SUPL::XS::MethodType_t");
  SWIG_TypeClientData(SWIGTYPE_p_MethodType_t_choice, (void*) "Net::Radio::Location::SUPL::XS::MethodType_t_choice");
  SWIG_TypeClientData(SWIGTYPE_p_ProtocolError, (void*) "Net::Radio::Location::SUPL::XS::ProtocolError_t");
  SWIG_TypeClientData(SWIGTYPE_p_LocationInfo, (void*) "Net::Radio::Location::SUPL::XS::LocationInfo_t");
  SWIG_TypeClientData(SWIGTYPE_p_AssistanceData, (void*) "Net::Radio::Location::SUPL::XS::AssistanceData_t");
  SWIG_TypeClientData(SWIGTYPE_p_PosCapability_Req, (void*) "Net::Radio::Location::SUPL::XS::PosCapability_Req_t");
  SWIG_TypeClientData(SWIGTYPE_p_PosCapability_Rsp, (void*) "Net::Radio::Location::SUPL::XS::PosCapability_Rsp_t");
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "FixType_twoDFix", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FixType_twoDFix)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  /*@SWIG:/usr/local/swig-2.0.6/share/swig/2.0.6/perl5/perltypemaps.swg,65,%set_constant@*/ do {
    SV *sv = get_sv((char*) SWIG_prefix "FixType_threeDFix", TRUE | 0x2 | GV_ADDMULTI);
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(FixType_threeDFix)));
    SvREADONLY_on(sv);
  } while(0) /*@SWIG@*/;
  ST(0) = &PL_sv_yes;
  XSRETURN(1);
}

