/*
 * FILE : LibicalWrap.c
 * 
 * This file was automatically generated by :
 * Simplified Wrapper and Interface Generator (SWIG)
 * Version 1.1 (Patch 5)
 * 
 * Portions Copyright (c) 1995-1998
 * The University of Utah and The Regents of the University of California.
 * Permission is granted to distribute this file in any manner provided
 * this notice remains intact.
 * 
 * Do not make changes to this file--changes will be lost!
 *
 */


#define SWIGCODE
/* Implementation : PYTHON */

#define SWIGPYTHON
#include <string.h>
#include <stdlib.h>
/***********************************************************************
 * $Header: /home/kde/kdepim/libical/src/python/LibicalWrap.c,v 1.1 2001/03/27 09:34:37 cschumac Exp $
 * swig_lib/python/python.cfg
 *
 * This file contains coded needed to add variable linking to the
 * Python interpreter.   C variables are added as a new kind of Python
 * datatype.
 *
 * Also contains supporting code for building python under Windows
 * and things like that.
 *
 * $Log: LibicalWrap.c,v $
 * Revision 1.1  2001/03/27 09:34:37  cschumac
 * Updating libical to version 0.23
 *
 ************************************************************************/

#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
#ifdef __cplusplus
}
#endif

/* Definitions for Windows/Unix exporting */
#if defined(__WIN32__)
#   if defined(_MSC_VER)
#	define SWIGEXPORT(a,b) __declspec(dllexport) a b
#   else
#	if defined(__BORLANDC__)
#	    define SWIGEXPORT(a,b) a _export b
#	else
#	    define SWIGEXPORT(a,b) a b
#	endif
#   endif
#else
#   define SWIGEXPORT(a,b) a b
#endif

#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif

#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif

typedef struct {
  char  *name;
  PyObject *(*get_attr)(void);
  int (*set_attr)(PyObject *);
} swig_globalvar;

typedef struct swig_varlinkobject {
  PyObject_HEAD
  swig_globalvar **vars;
  int      nvars;
  int      maxvars;
} swig_varlinkobject;

/* ----------------------------------------------------------------------
   swig_varlink_repr()

   Function for python repr method
   ---------------------------------------------------------------------- */

static PyObject *
swig_varlink_repr(swig_varlinkobject *v)
{
  v = v;
  return PyString_FromString("<Global variables>");
}

/* ---------------------------------------------------------------------
   swig_varlink_print()

   Print out all of the global variable names
   --------------------------------------------------------------------- */

static int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags)
{

  int i = 0;
  flags = flags;
  fprintf(fp,"Global variables { ");
  while (v->vars[i]) {
    fprintf(fp,"%s", v->vars[i]->name);
    i++;
    if (v->vars[i]) fprintf(fp,", ");
  }
  fprintf(fp," }\n");
  return 0;
}

/* --------------------------------------------------------------------
   swig_varlink_getattr
 
   This function gets the value of a variable and returns it as a
   PyObject.   In our case, we'll be looking at the datatype and
   converting into a number or string
   -------------------------------------------------------------------- */

static PyObject *
swig_varlink_getattr(swig_varlinkobject *v, char *n)
{
  int i = 0;
  char temp[128];

  while (v->vars[i]) {
    if (strcmp(v->vars[i]->name,n) == 0) {
      return (*v->vars[i]->get_attr)();
    }
    i++;
  }
  sprintf(temp,"C global variable %s not found.", n);
  PyErr_SetString(PyExc_NameError,temp);
  return NULL;
}

/* -------------------------------------------------------------------
   swig_varlink_setattr()

   This function sets the value of a variable.
   ------------------------------------------------------------------- */

static int
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p)
{
  char temp[128];
  int i = 0;
  while (v->vars[i]) {
    if (strcmp(v->vars[i]->name,n) == 0) {
      return (*v->vars[i]->set_attr)(p);
    }
    i++;
  }
  sprintf(temp,"C global variable %s not found.", n);
  PyErr_SetString(PyExc_NameError,temp);
  return 1;
}

statichere PyTypeObject varlinktype = {
/*  PyObject_HEAD_INIT(&PyType_Type)  Note : This doesn't work on some machines */
  PyObject_HEAD_INIT(0)              
  0,
  "varlink",                          /* Type name    */
  sizeof(swig_varlinkobject),         /* Basic size   */
  0,                                  /* Itemsize     */
  0,                                  /* Deallocator  */ 
  (printfunc) swig_varlink_print,     /* Print        */
  (getattrfunc) swig_varlink_getattr, /* get attr     */
  (setattrfunc) swig_varlink_setattr, /* Set attr     */
  0,                                  /* tp_compare   */
  (reprfunc) swig_varlink_repr,       /* tp_repr      */    
  0,                                  /* tp_as_number */
  0,                                  /* tp_as_mapping*/
  0,                                  /* tp_hash      */
};

/* Create a variable linking object for use later */

SWIGSTATIC PyObject *
SWIG_newvarlink(void)
{
  swig_varlinkobject *result = 0;
  result = PyMem_NEW(swig_varlinkobject,1);
  varlinktype.ob_type = &PyType_Type;    /* Patch varlinktype into a PyType */
  result->ob_type = &varlinktype;
  /*  _Py_NewReference(result);  Does not seem to be necessary */
  result->nvars = 0;
  result->maxvars = 64;
  result->vars = (swig_globalvar **) malloc(64*sizeof(swig_globalvar *));
  result->vars[0] = 0;
  result->ob_refcnt = 0;
  Py_XINCREF((PyObject *) result);
  return ((PyObject*) result);
}

SWIGSTATIC void
SWIG_addvarlink(PyObject *p, char *name,
	   PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p))
{
  swig_varlinkobject *v;
  v= (swig_varlinkobject *) p;
	
  if (v->nvars >= v->maxvars -1) {
    v->maxvars = 2*v->maxvars;
    v->vars = (swig_globalvar **) realloc(v->vars,v->maxvars*sizeof(swig_globalvar *));
    if (v->vars == NULL) {
      fprintf(stderr,"SWIG : Fatal error in initializing Python module.\n");
      exit(1);
    }
  }
  v->vars[v->nvars] = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  v->vars[v->nvars]->name = (char *) malloc(strlen(name)+1);
  strcpy(v->vars[v->nvars]->name,name);
  v->vars[v->nvars]->get_attr = get_attr;
  v->vars[v->nvars]->set_attr = set_attr;
  v->nvars++;
  v->vars[v->nvars] = 0;
}



/*****************************************************************************
 * $Header: /home/kde/kdepim/libical/src/python/LibicalWrap.c,v 1.1 2001/03/27 09:34:37 cschumac Exp $
 *
 * swigptr.swg
 *
 * This file contains supporting code for the SWIG run-time type checking
 * mechanism.  The following functions are available :
 *
 * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
 *
 *      Registers a new type-mapping with the type-checker.  origtype is the
 *      original datatype and newtype is an equivalent type.  cast is optional
 *      pointer to a function to cast pointer values between types (this
 *      is typically used to cast pointers from derived classes to base classes in C++)
 *      
 * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
 *     
 *      Makes a pointer string from a pointer and typestring.  The result is returned
 *      in buffer which is assumed to hold enough space for the result.
 *
 * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
 *
 *      Gets a pointer value from a string.  If there is a type-mismatch, returns
 *      a character string to the received type.  On success, returns NULL.
 *
 *
 * You can remap these functions by making a file called "swigptr.swg" in
 * your the same directory as the interface file you are wrapping.
 *
 * These functions are normally declared static, but this file can be
 * can be used in a multi-module environment by redefining the symbol
 * SWIGSTATIC.
 *****************************************************************************/

#include <stdlib.h>

#ifdef SWIG_GLOBAL
#ifdef __cplusplus
#define SWIGSTATIC extern "C"
#else
#define SWIGSTATIC
#endif
#endif

#ifndef SWIGSTATIC
#define SWIGSTATIC static
#endif


/* SWIG pointer structure */

typedef struct SwigPtrType {
  char               *name;               /* Datatype name                  */
  int                 len;                /* Length (used for optimization) */
  void               *(*cast)(void *);    /* Pointer casting function       */
  struct SwigPtrType *next;               /* Linked list pointer            */
} SwigPtrType;

/* Pointer cache structure */

typedef struct {
  int                 stat;               /* Status (valid) bit             */
  SwigPtrType        *tp;                 /* Pointer to type structure      */
  char                name[256];          /* Given datatype name            */
  char                mapped[256];        /* Equivalent name                */
} SwigCacheType;

/* Some variables  */

static int SwigPtrMax  = 64;           /* Max entries that can be currently held */
                                       /* This value may be adjusted dynamically */
static int SwigPtrN    = 0;            /* Current number of entries              */
static int SwigPtrSort = 0;            /* Status flag indicating sort            */
static int SwigStart[256];             /* Starting positions of types            */

/* Pointer table */
static SwigPtrType *SwigPtrTable = 0;  /* Table containing pointer equivalences  */

/* Cached values */

#define SWIG_CACHESIZE  8
#define SWIG_CACHEMASK  0x7
static SwigCacheType SwigCache[SWIG_CACHESIZE];  
static int SwigCacheIndex = 0;
static int SwigLastCache = 0;

/* Sort comparison function */
static int swigsort(const void *data1, const void *data2) {
	SwigPtrType *d1 = (SwigPtrType *) data1;
	SwigPtrType *d2 = (SwigPtrType *) data2;
	return strcmp(d1->name,d2->name);
}

/* Binary Search function */
static int swigcmp(const void *key, const void *data) {
  char *k = (char *) key;
  SwigPtrType *d = (SwigPtrType *) data;
  return strncmp(k,d->name,d->len);
}

/* Register a new datatype with the type-checker */

SWIGSTATIC 
void SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *)) {

  int i;
  SwigPtrType *t = 0,*t1;

  /* Allocate the pointer table if necessary */

  if (!SwigPtrTable) {     
    SwigPtrTable = (SwigPtrType *) malloc(SwigPtrMax*sizeof(SwigPtrType));
    SwigPtrN = 0;
  }
  /* Grow the table */
  if (SwigPtrN >= SwigPtrMax) {
    SwigPtrMax = 2*SwigPtrMax;
    SwigPtrTable = (SwigPtrType *) realloc((char *) SwigPtrTable,SwigPtrMax*sizeof(SwigPtrType));
  }
  for (i = 0; i < SwigPtrN; i++)
    if (strcmp(SwigPtrTable[i].name,origtype) == 0) {
      t = &SwigPtrTable[i];
      break;
    }
  if (!t) {
    t = &SwigPtrTable[SwigPtrN];
    t->name = origtype;
    t->len = strlen(t->name);
    t->cast = 0;
    t->next = 0;
    SwigPtrN++;
  }

  /* Check for existing entry */

  while (t->next) {
    if ((strcmp(t->name,newtype) == 0)) {
      if (cast) t->cast = cast;
      return;
    }
    t = t->next;
  }
  
  /* Now place entry (in sorted order) */

  t1 = (SwigPtrType *) malloc(sizeof(SwigPtrType));
  t1->name = newtype;
  t1->len = strlen(t1->name);
  t1->cast = cast;
  t1->next = 0;            
  t->next = t1;           
  SwigPtrSort = 0;
}

/* Make a pointer value string */

SWIGSTATIC 
void SWIG_MakePtr(char *_c, const void *_ptr, char *type) {
  static char _hex[16] =
  {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
   'a', 'b', 'c', 'd', 'e', 'f'};
  unsigned long _p, _s;
  char _result[20], *_r;    /* Note : a 64-bit hex number = 16 digits */
  _r = _result;
  _p = (unsigned long) _ptr;
  if (_p > 0) {
    while (_p > 0) {
      _s = _p & 0xf;
      *(_r++) = _hex[_s];
      _p = _p >> 4;
    }
    *_r = '_';
    while (_r >= _result)
      *(_c++) = *(_r--);
  } else {
    strcpy (_c, "NULL");
  }
  if (_ptr)
    strcpy (_c, type);
}

/* Define for backwards compatibility */

#define _swig_make_hex   SWIG_MakePtr 

/* Function for getting a pointer value */

SWIGSTATIC 
char *SWIG_GetPtr(char *_c, void **ptr, char *_t)
{
  unsigned long _p;
  char temp_type[256];
  char *name;
  int  i, len;
  SwigPtrType *sp,*tp;
  SwigCacheType *cache;
  int  start, end;
  _p = 0;

  /* Pointer values must start with leading underscore */
  if (*_c == '_') {
      _c++;
      /* Extract hex value from pointer */
      while (*_c) {
	  if ((*_c >= '0') && (*_c <= '9'))
	    _p = (_p << 4) + (*_c - '0');
	  else if ((*_c >= 'a') && (*_c <= 'f'))
	    _p = (_p << 4) + ((*_c - 'a') + 10);
	  else
	    break;
	  _c++;
      }

      if (_t) {
	if (strcmp(_t,_c)) { 
	  if (!SwigPtrSort) {
	    qsort((void *) SwigPtrTable, SwigPtrN, sizeof(SwigPtrType), swigsort); 
	    for (i = 0; i < 256; i++) {
	      SwigStart[i] = SwigPtrN;
	    }
	    for (i = SwigPtrN-1; i >= 0; i--) {
	      SwigStart[(int) (SwigPtrTable[i].name[1])] = i;
	    }
	    for (i = 255; i >= 1; i--) {
	      if (SwigStart[i-1] > SwigStart[i])
		SwigStart[i-1] = SwigStart[i];
	    }
	    SwigPtrSort = 1;
	    for (i = 0; i < SWIG_CACHESIZE; i++)  
	      SwigCache[i].stat = 0;
	  }
	  
	  /* First check cache for matches.  Uses last cache value as starting point */
	  cache = &SwigCache[SwigLastCache];
	  for (i = 0; i < SWIG_CACHESIZE; i++) {
	    if (cache->stat) {
	      if (strcmp(_t,cache->name) == 0) {
		if (strcmp(_c,cache->mapped) == 0) {
		  cache->stat++;
		  *ptr = (void *) _p;
		  if (cache->tp->cast) *ptr = (*(cache->tp->cast))(*ptr);
		  return (char *) 0;
		}
	      }
	    }
	    SwigLastCache = (SwigLastCache+1) & SWIG_CACHEMASK;
	    if (!SwigLastCache) cache = SwigCache;
	    else cache++;
	  }
	  /* We have a type mismatch.  Will have to look through our type
	     mapping table to figure out whether or not we can accept this datatype */

	  start = SwigStart[(int) _t[1]];
	  end = SwigStart[(int) _t[1]+1];
	  sp = &SwigPtrTable[start];
	  while (start < end) {
	    if (swigcmp(_t,sp) == 0) break;
	    sp++;
	    start++;
	  }
	  if (start >= end) sp = 0;
	  /* Try to find a match for this */
	  if (sp) {
	    while (swigcmp(_t,sp) == 0) {
	      name = sp->name;
	      len = sp->len;
	      tp = sp->next;
	      /* Try to find entry for our given datatype */
	      while(tp) {
		if (tp->len >= 255) {
		  return _c;
		}
		strcpy(temp_type,tp->name);
		strncat(temp_type,_t+len,255-tp->len);
		if (strcmp(_c,temp_type) == 0) {
		  
		  strcpy(SwigCache[SwigCacheIndex].mapped,_c);
		  strcpy(SwigCache[SwigCacheIndex].name,_t);
		  SwigCache[SwigCacheIndex].stat = 1;
		  SwigCache[SwigCacheIndex].tp = tp;
		  SwigCacheIndex = SwigCacheIndex & SWIG_CACHEMASK;
		  
		  /* Get pointer value */
		  *ptr = (void *) _p;
		  if (tp->cast) *ptr = (*(tp->cast))(*ptr);
		  return (char *) 0;
		}
		tp = tp->next;
	      }
	      sp++;
	      /* Hmmm. Didn't find it this time */
	    }
	  }
	  /* Didn't find any sort of match for this data.  
	     Get the pointer value and return the received type */
	  *ptr = (void *) _p;
	  return _c;
	} else {
	  /* Found a match on the first try.  Return pointer value */
	  *ptr = (void *) _p;
	  return (char *) 0;
	}
      } else {
	/* No type specified.  Good luck */
	*ptr = (void *) _p;
	return (char *) 0;
      }
  } else {
    if (strcmp (_c, "NULL") == 0) {
	*ptr = (void *) 0;
	return (char *) 0;
    }
    *ptr = (void *) 0;	
    return _c;
  }
}

/* Compatibility mode */

#define _swig_get_hex  SWIG_GetPtr

#define SWIG_init    initLibicalWrap

#define SWIG_name    "LibicalWrap"

#include "ical.h"

#include <sys/types.h> /* for size_t */
#include <time.h>

static PyObject *_wrap_icalparser_parse_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalparser_parse_string",&_arg0)) 
        return NULL;
    _result = (icalcomponent *)icalparser_parse_string(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_new(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    int  _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalcomponent_new",&_arg0)) 
        return NULL;
    _result = (icalcomponent *)icalcomponent_new(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_new_clone(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_new_clone",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_new_clone. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalcomponent_new_clone(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_new_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_new_from_string",&_arg0)) 
        return NULL;
    _result = (icalcomponent *)icalcomponent_new_from_string(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_as_ical_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_as_ical_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_as_ical_string. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (char *)icalcomponent_as_ical_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_free(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_free",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_free. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    icalcomponent_free(_arg0);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_count_errors(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_count_errors",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_count_errors. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (int )icalcomponent_count_errors(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_strip_errors(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_strip_errors",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_strip_errors. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    icalcomponent_strip_errors(_arg0);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_convert_errors(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_convert_errors",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_convert_errors. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    icalcomponent_convert_errors(_arg0);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_current_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_get_current_property",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_current_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalproperty *)icalcomponent_get_current_property(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_first_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    icalcomponent * _arg0;
    int  _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"si:icalcomponent_get_first_property",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_first_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalproperty *)icalcomponent_get_first_property(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_next_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    icalcomponent * _arg0;
    int  _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"si:icalcomponent_get_next_property",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_next_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalproperty *)icalcomponent_get_next_property(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_current_component(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_get_current_component",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_current_component. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalcomponent_get_current_component(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_first_component(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    int  _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"si:icalcomponent_get_first_component",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_first_component. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalcomponent_get_first_component(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_next_component(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    int  _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"si:icalcomponent_get_next_component",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_next_component. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalcomponent_get_next_component(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_add_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _arg0;
    icalproperty * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalcomponent_add_property",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_add_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icalcomponent_add_property. Expected _icalproperty_p.");
        return NULL;
        }
    }
    icalcomponent_add_property(_arg0,_arg1);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_remove_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _arg0;
    icalproperty * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalcomponent_remove_property",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_remove_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icalcomponent_remove_property. Expected _icalproperty_p.");
        return NULL;
        }
    }
    icalcomponent_remove_property(_arg0,_arg1);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_get_parent(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_get_parent",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_get_parent. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalcomponent_get_parent(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalcomponent_isa(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalcomponent_isa",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalcomponent_isa. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (int )icalcomponent_isa(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalrestriction_check(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    icalcomponent * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalrestriction_check",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalrestriction_check. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (int )icalrestriction_check(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_new(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    int  _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalproperty_new",&_arg0)) 
        return NULL;
    _result = (icalproperty *)icalproperty_new(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_new_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalproperty_new_from_string",&_arg0)) 
        return NULL;
    _result = (icalproperty *)icalproperty_new_from_string(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_as_ical_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    icalproperty * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalproperty_as_ical_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_as_ical_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    _result = (char *)icalproperty_as_ical_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_set_parameter_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _arg0;
    char * _arg1;
    char * _arg2;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"sss:icalproperty_set_parameter_from_string",&_argc0,&_arg1,&_arg2)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_set_parameter_from_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    icalproperty_set_parameter_from_string(_arg0,_arg1,_arg2);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalproperty_set_value_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _arg0;
    char * _arg1;
    char * _arg2;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"sss:icalproperty_set_value_from_string",&_argc0,&_arg1,&_arg2)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_set_value_from_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    icalproperty_set_value_from_string(_arg0,_arg1,_arg2);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalproperty_get_value_as_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    icalproperty * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalproperty_get_value_as_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_get_value_as_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    _result = (char *)icalproperty_get_value_as_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_get_parameter_as_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    icalproperty * _arg0;
    char * _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalproperty_get_parameter_as_string",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_get_parameter_as_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    _result = (char *)icalproperty_get_parameter_as_string(_arg0,_arg1);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_get_parent(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalproperty * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalproperty_get_parent",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalproperty_get_parent. Expected _icalproperty_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icalproperty_get_parent(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalerror_supress(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalerror_supress",&_arg0)) 
        return NULL;
    _result = (int )icalerror_supress(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalerror_restore(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _arg0;
    int  _arg1;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icalerror_restore",&_arg0,&_arg1)) 
        return NULL;
    icalerror_restore(_arg0,_arg1);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalerror_perror(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;

    self = self;
    if(!PyArg_ParseTuple(args,":icalerror_perror")) 
        return NULL;
    _result = (char *)icalerror_perror();
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalerror_clear_errno(PyObject *self, PyObject *args) {
    PyObject * _resultobj;

    self = self;
    if(!PyArg_ParseTuple(args,":icalerror_clear_errno")) 
        return NULL;
    icalerror_clear_errno();
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icalproperty_kind_to_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    int  _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalproperty_kind_to_string",&_arg0)) 
        return NULL;
    _result = (char *)icalproperty_kind_to_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_string_to_kind(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalproperty_string_to_kind",&_arg0)) 
        return NULL;
    _result = (int )icalproperty_string_to_kind(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalproperty_kind_to_value_kind(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    int  _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalproperty_kind_to_value_kind",&_arg0)) 
        return NULL;
    _result = (int )icalproperty_kind_to_value_kind(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalvalue_kind_to_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    int  _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalvalue_kind_to_string",&_arg0)) 
        return NULL;
    _result = (char *)icalvalue_kind_to_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalvalue_string_to_kind(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalvalue_string_to_kind",&_arg0)) 
        return NULL;
    _result = (int )icalvalue_string_to_kind(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalparameter_kind_to_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    int  _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalparameter_kind_to_string",&_arg0)) 
        return NULL;
    _result = (char *)icalparameter_kind_to_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalparameter_string_to_kind(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalparameter_string_to_kind",&_arg0)) 
        return NULL;
    _result = (int )icalparameter_string_to_kind(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalenum_component_kind_to_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    int  _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"i:icalenum_component_kind_to_string",&_arg0)) 
        return NULL;
    _result = (char *)icalenum_component_kind_to_string(_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalenum_string_to_component_kind(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalenum_string_to_component_kind",&_arg0)) 
        return NULL;
    _result = (int )icalenum_string_to_component_kind(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_new_array(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int * _result;
    int  _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"i:icallangbind_new_array",&_arg0)) 
        return NULL;
    _result = (int *)icallangbind_new_array(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_int_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_free_array(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icallangbind_free_array",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_int_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_free_array. Expected _int_p.");
        return NULL;
        }
    }
    icallangbind_free_array(_arg0);
    Py_INCREF(Py_None);
    _resultobj = Py_None;
    return _resultobj;
}

static PyObject *_wrap_icallangbind_access_array(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    int * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icallangbind_access_array",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_int_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_access_array. Expected _int_p.");
        return NULL;
        }
    }
    _result = (int )icallangbind_access_array(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalrecur_expand_recurrence(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    char * _arg0;
    int  _arg1;
    int  _arg2;
    int * _arg3;
    char * _argc3 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"siis:icalrecur_expand_recurrence",&_arg0,&_arg1,&_arg2,&_argc3)) 
        return NULL;
    if (_argc3) {
        if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_int_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of icalrecur_expand_recurrence. Expected _int_p.");
        return NULL;
        }
    }
    _result = (int )icalrecur_expand_recurrence(_arg0,_arg1,_arg2,_arg3);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_get_first_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    icalcomponent * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icallangbind_get_first_property",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_get_first_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalproperty *)icallangbind_get_first_property(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_get_next_property(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalproperty * _result;
    icalcomponent * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icallangbind_get_next_property",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_get_next_property. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalproperty *)icallangbind_get_next_property(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalproperty_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_get_first_component(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icallangbind_get_first_component",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_get_first_component. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icallangbind_get_first_component(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_get_next_component(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    icalcomponent * _result;
    icalcomponent * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icallangbind_get_next_component",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_get_next_component. Expected _icalcomponent_p.");
        return NULL;
        }
    }
    _result = (icalcomponent *)icallangbind_get_next_component(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_icalcomponent_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icallangbind_property_eval_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    icalproperty * _arg0;
    char * _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icallangbind_property_eval_string",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,(char *) 0 )) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icallangbind_property_eval_string. Expected _icalproperty_p.");
        return NULL;
        }
    }
    _result = (char *)icallangbind_property_eval_string(_arg0,_arg1);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_from_timet(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    int  _arg0;
    int  _arg1;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ii:icaltime_from_timet",&_arg0,&_arg1)) 
        return NULL;
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_from_timet(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_as_timet(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_as_timet",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_as_timet. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_as_timet(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_as_ical_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_as_ical_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_as_ical_string. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (char *)icaltime_as_ical_string(*_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_from_string",&_arg0)) 
        return NULL;
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_from_string(_arg0);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_utc_offset(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_utc_offset",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_utc_offset. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_utc_offset(*_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_as_utc(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icaltimetype * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_as_utc",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_as_utc. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_as_utc(*_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_as_zone(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icaltimetype * _arg0;
    char * _arg1;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_as_zone",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_as_zone. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_as_zone(*_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_null_time(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,":icaltime_null_time")) 
        return NULL;
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_null_time();
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_is_null_time(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_is_null_time",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_is_null_time. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_is_null_time(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_is_valid_time(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_is_valid_time",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_is_valid_time. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_is_valid_time(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_normalize(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_normalize",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_normalize. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_normalize(*_arg0);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_day_of_year(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    short  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_day_of_year",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_day_of_year. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (short )icaltime_day_of_year(*_arg0);
    _resultobj = Py_BuildValue("h",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_from_day_of_year(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    short  _arg0;
    short  _arg1;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"hh:icaltime_from_day_of_year",&_arg0,&_arg1)) 
        return NULL;
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_from_day_of_year(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_day_of_week(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    short  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_day_of_week",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_day_of_week. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (short )icaltime_day_of_week(*_arg0);
    _resultobj = Py_BuildValue("h",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_start_doy_of_week(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    short  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_start_doy_of_week",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_start_doy_of_week. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (short )icaltime_start_doy_of_week(*_arg0);
    _resultobj = Py_BuildValue("h",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_as_ctime(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_as_ctime",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_as_ctime. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (char *)icaltime_as_ctime(*_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_week_number(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    short  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltime_week_number",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_week_number. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (short )icaltime_week_number(*_arg0);
    _resultobj = Py_BuildValue("h",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_compare(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    struct icaltimetype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_compare",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_compare. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icaltime_compare. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_compare(*_arg0,*_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_compare_date_only(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    struct icaltimetype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_compare_date_only",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_compare_date_only. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icaltime_compare_date_only. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltime_compare_date_only(*_arg0,*_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_days_in_month(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    short  _result;
    short  _arg0;
    short  _arg1;

    self = self;
    if(!PyArg_ParseTuple(args,"hh:icaltime_days_in_month",&_arg0,&_arg1)) 
        return NULL;
    _result = (short )icaltime_days_in_month(_arg0,_arg1);
    _resultobj = Py_BuildValue("h",_result);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_from_int(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    int  _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"i:icaldurationtype_from_int",&_arg0)) 
        return NULL;
    _result = (struct icaldurationtype *) malloc(sizeof(struct icaldurationtype ));
    *(_result) = icaldurationtype_from_int(_arg0);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_from_string",&_arg0)) 
        return NULL;
    _result = (struct icaldurationtype *) malloc(sizeof(struct icaldurationtype ));
    *(_result) = icaldurationtype_from_string(_arg0);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_as_int(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_as_int",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_as_int. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (int )icaldurationtype_as_int(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_as_ical_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_as_ical_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_as_ical_string. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (char *)icaldurationtype_as_ical_string(*_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_null_duration(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,":icaldurationtype_null_duration")) 
        return NULL;
    _result = (struct icaldurationtype *) malloc(sizeof(struct icaldurationtype ));
    *(_result) = icaldurationtype_null_duration();
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaldurationtype_is_null_duration(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_is_null_duration",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_is_null_duration. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (int )icaldurationtype_is_null_duration(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icaltime_add(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icaltimetype * _arg0;
    struct icaldurationtype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_add",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_add. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icaltime_add. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *) malloc(sizeof(struct icaltimetype ));
    *(_result) = icaltime_add(*_arg0,*_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icaltime_subtract(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    struct icaltimetype * _arg0;
    struct icaltimetype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icaltime_subtract",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltime_subtract. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icaltime_subtract. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaldurationtype *) malloc(sizeof(struct icaldurationtype ));
    *(_result) = icaltime_subtract(*_arg0,*_arg1);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalperiodtype_from_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icalperiodtype * _result;
    char * _arg0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_from_string",&_arg0)) 
        return NULL;
    _result = (struct icalperiodtype *) malloc(sizeof(struct icalperiodtype ));
    *(_result) = icalperiodtype_from_string(_arg0);
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icalperiodtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalperiodtype_as_ical_string(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    char * _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_as_ical_string",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_as_ical_string. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (char *)icalperiodtype_as_ical_string(*_arg0);
    _resultobj = Py_BuildValue("s", _result);
    return _resultobj;
}

static PyObject *_wrap_icalperiodtype_null_period(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icalperiodtype * _result;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,":icalperiodtype_null_period")) 
        return NULL;
    _result = (struct icalperiodtype *) malloc(sizeof(struct icalperiodtype ));
    *(_result) = icalperiodtype_null_period();
    SWIG_MakePtr(_ptemp, (void *) _result,"_struct_icalperiodtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyObject *_wrap_icalperiodtype_is_null_period(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_is_null_period",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_is_null_period. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (int )icalperiodtype_is_null_period(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

static PyObject *_wrap_icalperiodtype_is_valid_period(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_is_valid_period",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_is_valid_period. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (int )icalperiodtype_is_valid_period(*_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_year_set(_swigobj,_swigval) (_swigobj->year = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_year_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_year_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_year_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_year_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_year_get(_swigobj) ((int ) _swigobj->year)
static PyObject *_wrap_icaltimetype_year_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_year_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_year_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_year_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_month_set(_swigobj,_swigval) (_swigobj->month = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_month_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_month_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_month_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_month_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_month_get(_swigobj) ((int ) _swigobj->month)
static PyObject *_wrap_icaltimetype_month_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_month_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_month_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_month_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_day_set(_swigobj,_swigval) (_swigobj->day = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_day_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_day_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_day_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_day_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_day_get(_swigobj) ((int ) _swigobj->day)
static PyObject *_wrap_icaltimetype_day_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_day_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_day_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_day_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_hour_set(_swigobj,_swigval) (_swigobj->hour = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_hour_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_hour_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_hour_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_hour_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_hour_get(_swigobj) ((int ) _swigobj->hour)
static PyObject *_wrap_icaltimetype_hour_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_hour_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_hour_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_hour_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_minute_set(_swigobj,_swigval) (_swigobj->minute = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_minute_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_minute_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_minute_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_minute_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_minute_get(_swigobj) ((int ) _swigobj->minute)
static PyObject *_wrap_icaltimetype_minute_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_minute_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_minute_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_minute_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_second_set(_swigobj,_swigval) (_swigobj->second = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_second_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_second_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_second_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_second_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_second_get(_swigobj) ((int ) _swigobj->second)
static PyObject *_wrap_icaltimetype_second_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_second_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_second_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_second_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_is_utc_set(_swigobj,_swigval) (_swigobj->is_utc = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_is_utc_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_is_utc_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_is_utc_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_is_utc_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_is_utc_get(_swigobj) ((int ) _swigobj->is_utc)
static PyObject *_wrap_icaltimetype_is_utc_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_is_utc_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_is_utc_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_is_utc_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_is_date_set(_swigobj,_swigval) (_swigobj->is_date = _swigval,_swigval)
static PyObject *_wrap_icaltimetype_is_date_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaltimetype_is_date_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_is_date_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_is_date_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaltimetype_is_date_get(_swigobj) ((int ) _swigobj->is_date)
static PyObject *_wrap_icaltimetype_is_date_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaltimetype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaltimetype_is_date_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaltimetype_is_date_get. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (int )icaltimetype_is_date_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_is_neg_set(_swigobj,_swigval) (_swigobj->is_neg = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_is_neg_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaldurationtype * _arg0;
    int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_is_neg_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_is_neg_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (int )icaldurationtype_is_neg_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_is_neg_get(_swigobj) ((int ) _swigobj->is_neg)
static PyObject *_wrap_icaldurationtype_is_neg_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_is_neg_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_is_neg_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (int )icaldurationtype_is_neg_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_days_set(_swigobj,_swigval) (_swigobj->days = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_days_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    unsigned int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_days_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_days_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_days_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_days_get(_swigobj) ((unsigned int ) _swigobj->days)
static PyObject *_wrap_icaldurationtype_days_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_days_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_days_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_days_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_weeks_set(_swigobj,_swigval) (_swigobj->weeks = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_weeks_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    unsigned int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_weeks_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_weeks_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_weeks_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_weeks_get(_swigobj) ((unsigned int ) _swigobj->weeks)
static PyObject *_wrap_icaldurationtype_weeks_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_weeks_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_weeks_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_weeks_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_hours_set(_swigobj,_swigval) (_swigobj->hours = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_hours_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    unsigned int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_hours_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_hours_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_hours_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_hours_get(_swigobj) ((unsigned int ) _swigobj->hours)
static PyObject *_wrap_icaldurationtype_hours_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_hours_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_hours_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_hours_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_minutes_set(_swigobj,_swigval) (_swigobj->minutes = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_minutes_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    unsigned int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_minutes_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_minutes_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_minutes_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_minutes_get(_swigobj) ((unsigned int ) _swigobj->minutes)
static PyObject *_wrap_icaldurationtype_minutes_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_minutes_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_minutes_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_minutes_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_seconds_set(_swigobj,_swigval) (_swigobj->seconds = _swigval,_swigval)
static PyObject *_wrap_icaldurationtype_seconds_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    unsigned int  _arg1;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"si:icaldurationtype_seconds_set",&_argc0,&_arg1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_seconds_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_seconds_set(_arg0,_arg1);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icaldurationtype_seconds_get(_swigobj) ((unsigned int ) _swigobj->seconds)
static PyObject *_wrap_icaldurationtype_seconds_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    unsigned int  _result;
    struct icaldurationtype * _arg0;
    char * _argc0 = 0;

    self = self;
    if(!PyArg_ParseTuple(args,"s:icaldurationtype_seconds_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icaldurationtype_seconds_get. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (unsigned int )icaldurationtype_seconds_get(_arg0);
    _resultobj = Py_BuildValue("i",_result);
    return _resultobj;
}

#define icalperiodtype_start_set(_swigobj,_swigval) (_swigobj->start = *(_swigval),_swigval)
static PyObject *_wrap_icalperiodtype_start_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icalperiodtype * _arg0;
    struct icaltimetype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalperiodtype_start_set",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_start_set. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icalperiodtype_start_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *)icalperiodtype_start_set(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

#define icalperiodtype_start_get(_swigobj) (&_swigobj->start)
static PyObject *_wrap_icalperiodtype_start_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_start_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_start_get. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *)icalperiodtype_start_get(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

#define icalperiodtype_end_set(_swigobj,_swigval) (_swigobj->end = *(_swigval),_swigval)
static PyObject *_wrap_icalperiodtype_end_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icalperiodtype * _arg0;
    struct icaltimetype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalperiodtype_end_set",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_end_set. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaltimetype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icalperiodtype_end_set. Expected _struct_icaltimetype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *)icalperiodtype_end_set(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

#define icalperiodtype_end_get(_swigobj) (&_swigobj->end)
static PyObject *_wrap_icalperiodtype_end_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaltimetype * _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_end_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_end_get. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (struct icaltimetype *)icalperiodtype_end_get(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaltimetype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

#define icalperiodtype_duration_set(_swigobj,_swigval) (_swigobj->duration = *(_swigval),_swigval)
static PyObject *_wrap_icalperiodtype_duration_set(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    struct icalperiodtype * _arg0;
    struct icaldurationtype * _arg1;
    char * _argc0 = 0;
    char * _argc1 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"ss:icalperiodtype_duration_set",&_argc0,&_argc1)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_duration_set. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    if (_argc1) {
        if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_struct_icaldurationtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of icalperiodtype_duration_set. Expected _struct_icaldurationtype_p.");
        return NULL;
        }
    }
    _result = (struct icaldurationtype *)icalperiodtype_duration_set(_arg0,_arg1);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

#define icalperiodtype_duration_get(_swigobj) (&_swigobj->duration)
static PyObject *_wrap_icalperiodtype_duration_get(PyObject *self, PyObject *args) {
    PyObject * _resultobj;
    struct icaldurationtype * _result;
    struct icalperiodtype * _arg0;
    char * _argc0 = 0;
    char _ptemp[128];

    self = self;
    if(!PyArg_ParseTuple(args,"s:icalperiodtype_duration_get",&_argc0)) 
        return NULL;
    if (_argc0) {
        if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_struct_icalperiodtype_p")) {
            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of icalperiodtype_duration_get. Expected _struct_icalperiodtype_p.");
        return NULL;
        }
    }
    _result = (struct icaldurationtype *)icalperiodtype_duration_get(_arg0);
    SWIG_MakePtr(_ptemp, (char *) _result,"_struct_icaldurationtype_p");
    _resultobj = Py_BuildValue("s",_ptemp);
    return _resultobj;
}

static PyMethodDef LibicalWrapMethods[] = {
	 { "icalperiodtype_duration_get", _wrap_icalperiodtype_duration_get, 1 },
	 { "icalperiodtype_duration_set", _wrap_icalperiodtype_duration_set, 1 },
	 { "icalperiodtype_end_get", _wrap_icalperiodtype_end_get, 1 },
	 { "icalperiodtype_end_set", _wrap_icalperiodtype_end_set, 1 },
	 { "icalperiodtype_start_get", _wrap_icalperiodtype_start_get, 1 },
	 { "icalperiodtype_start_set", _wrap_icalperiodtype_start_set, 1 },
	 { "icaldurationtype_seconds_get", _wrap_icaldurationtype_seconds_get, 1 },
	 { "icaldurationtype_seconds_set", _wrap_icaldurationtype_seconds_set, 1 },
	 { "icaldurationtype_minutes_get", _wrap_icaldurationtype_minutes_get, 1 },
	 { "icaldurationtype_minutes_set", _wrap_icaldurationtype_minutes_set, 1 },
	 { "icaldurationtype_hours_get", _wrap_icaldurationtype_hours_get, 1 },
	 { "icaldurationtype_hours_set", _wrap_icaldurationtype_hours_set, 1 },
	 { "icaldurationtype_weeks_get", _wrap_icaldurationtype_weeks_get, 1 },
	 { "icaldurationtype_weeks_set", _wrap_icaldurationtype_weeks_set, 1 },
	 { "icaldurationtype_days_get", _wrap_icaldurationtype_days_get, 1 },
	 { "icaldurationtype_days_set", _wrap_icaldurationtype_days_set, 1 },
	 { "icaldurationtype_is_neg_get", _wrap_icaldurationtype_is_neg_get, 1 },
	 { "icaldurationtype_is_neg_set", _wrap_icaldurationtype_is_neg_set, 1 },
	 { "icaltimetype_is_date_get", _wrap_icaltimetype_is_date_get, 1 },
	 { "icaltimetype_is_date_set", _wrap_icaltimetype_is_date_set, 1 },
	 { "icaltimetype_is_utc_get", _wrap_icaltimetype_is_utc_get, 1 },
	 { "icaltimetype_is_utc_set", _wrap_icaltimetype_is_utc_set, 1 },
	 { "icaltimetype_second_get", _wrap_icaltimetype_second_get, 1 },
	 { "icaltimetype_second_set", _wrap_icaltimetype_second_set, 1 },
	 { "icaltimetype_minute_get", _wrap_icaltimetype_minute_get, 1 },
	 { "icaltimetype_minute_set", _wrap_icaltimetype_minute_set, 1 },
	 { "icaltimetype_hour_get", _wrap_icaltimetype_hour_get, 1 },
	 { "icaltimetype_hour_set", _wrap_icaltimetype_hour_set, 1 },
	 { "icaltimetype_day_get", _wrap_icaltimetype_day_get, 1 },
	 { "icaltimetype_day_set", _wrap_icaltimetype_day_set, 1 },
	 { "icaltimetype_month_get", _wrap_icaltimetype_month_get, 1 },
	 { "icaltimetype_month_set", _wrap_icaltimetype_month_set, 1 },
	 { "icaltimetype_year_get", _wrap_icaltimetype_year_get, 1 },
	 { "icaltimetype_year_set", _wrap_icaltimetype_year_set, 1 },
	 { "icalperiodtype_is_valid_period", _wrap_icalperiodtype_is_valid_period, 1 },
	 { "icalperiodtype_is_null_period", _wrap_icalperiodtype_is_null_period, 1 },
	 { "icalperiodtype_null_period", _wrap_icalperiodtype_null_period, 1 },
	 { "icalperiodtype_as_ical_string", _wrap_icalperiodtype_as_ical_string, 1 },
	 { "icalperiodtype_from_string", _wrap_icalperiodtype_from_string, 1 },
	 { "icaltime_subtract", _wrap_icaltime_subtract, 1 },
	 { "icaltime_add", _wrap_icaltime_add, 1 },
	 { "icaldurationtype_is_null_duration", _wrap_icaldurationtype_is_null_duration, 1 },
	 { "icaldurationtype_null_duration", _wrap_icaldurationtype_null_duration, 1 },
	 { "icaldurationtype_as_ical_string", _wrap_icaldurationtype_as_ical_string, 1 },
	 { "icaldurationtype_as_int", _wrap_icaldurationtype_as_int, 1 },
	 { "icaldurationtype_from_string", _wrap_icaldurationtype_from_string, 1 },
	 { "icaldurationtype_from_int", _wrap_icaldurationtype_from_int, 1 },
	 { "icaltime_days_in_month", _wrap_icaltime_days_in_month, 1 },
	 { "icaltime_compare_date_only", _wrap_icaltime_compare_date_only, 1 },
	 { "icaltime_compare", _wrap_icaltime_compare, 1 },
	 { "icaltime_week_number", _wrap_icaltime_week_number, 1 },
	 { "icaltime_as_ctime", _wrap_icaltime_as_ctime, 1 },
	 { "icaltime_start_doy_of_week", _wrap_icaltime_start_doy_of_week, 1 },
	 { "icaltime_day_of_week", _wrap_icaltime_day_of_week, 1 },
	 { "icaltime_from_day_of_year", _wrap_icaltime_from_day_of_year, 1 },
	 { "icaltime_day_of_year", _wrap_icaltime_day_of_year, 1 },
	 { "icaltime_normalize", _wrap_icaltime_normalize, 1 },
	 { "icaltime_is_valid_time", _wrap_icaltime_is_valid_time, 1 },
	 { "icaltime_is_null_time", _wrap_icaltime_is_null_time, 1 },
	 { "icaltime_null_time", _wrap_icaltime_null_time, 1 },
	 { "icaltime_as_zone", _wrap_icaltime_as_zone, 1 },
	 { "icaltime_as_utc", _wrap_icaltime_as_utc, 1 },
	 { "icaltime_utc_offset", _wrap_icaltime_utc_offset, 1 },
	 { "icaltime_from_string", _wrap_icaltime_from_string, 1 },
	 { "icaltime_as_ical_string", _wrap_icaltime_as_ical_string, 1 },
	 { "icaltime_as_timet", _wrap_icaltime_as_timet, 1 },
	 { "icaltime_from_timet", _wrap_icaltime_from_timet, 1 },
	 { "icallangbind_property_eval_string", _wrap_icallangbind_property_eval_string, 1 },
	 { "icallangbind_get_next_component", _wrap_icallangbind_get_next_component, 1 },
	 { "icallangbind_get_first_component", _wrap_icallangbind_get_first_component, 1 },
	 { "icallangbind_get_next_property", _wrap_icallangbind_get_next_property, 1 },
	 { "icallangbind_get_first_property", _wrap_icallangbind_get_first_property, 1 },
	 { "icalrecur_expand_recurrence", _wrap_icalrecur_expand_recurrence, 1 },
	 { "icallangbind_access_array", _wrap_icallangbind_access_array, 1 },
	 { "icallangbind_free_array", _wrap_icallangbind_free_array, 1 },
	 { "icallangbind_new_array", _wrap_icallangbind_new_array, 1 },
	 { "icalenum_string_to_component_kind", _wrap_icalenum_string_to_component_kind, 1 },
	 { "icalenum_component_kind_to_string", _wrap_icalenum_component_kind_to_string, 1 },
	 { "icalparameter_string_to_kind", _wrap_icalparameter_string_to_kind, 1 },
	 { "icalparameter_kind_to_string", _wrap_icalparameter_kind_to_string, 1 },
	 { "icalvalue_string_to_kind", _wrap_icalvalue_string_to_kind, 1 },
	 { "icalvalue_kind_to_string", _wrap_icalvalue_kind_to_string, 1 },
	 { "icalproperty_kind_to_value_kind", _wrap_icalproperty_kind_to_value_kind, 1 },
	 { "icalproperty_string_to_kind", _wrap_icalproperty_string_to_kind, 1 },
	 { "icalproperty_kind_to_string", _wrap_icalproperty_kind_to_string, 1 },
	 { "icalerror_clear_errno", _wrap_icalerror_clear_errno, 1 },
	 { "icalerror_perror", _wrap_icalerror_perror, 1 },
	 { "icalerror_restore", _wrap_icalerror_restore, 1 },
	 { "icalerror_supress", _wrap_icalerror_supress, 1 },
	 { "icalproperty_get_parent", _wrap_icalproperty_get_parent, 1 },
	 { "icalproperty_get_parameter_as_string", _wrap_icalproperty_get_parameter_as_string, 1 },
	 { "icalproperty_get_value_as_string", _wrap_icalproperty_get_value_as_string, 1 },
	 { "icalproperty_set_value_from_string", _wrap_icalproperty_set_value_from_string, 1 },
	 { "icalproperty_set_parameter_from_string", _wrap_icalproperty_set_parameter_from_string, 1 },
	 { "icalproperty_as_ical_string", _wrap_icalproperty_as_ical_string, 1 },
	 { "icalproperty_new_from_string", _wrap_icalproperty_new_from_string, 1 },
	 { "icalproperty_new", _wrap_icalproperty_new, 1 },
	 { "icalrestriction_check", _wrap_icalrestriction_check, 1 },
	 { "icalcomponent_isa", _wrap_icalcomponent_isa, 1 },
	 { "icalcomponent_get_parent", _wrap_icalcomponent_get_parent, 1 },
	 { "icalcomponent_remove_property", _wrap_icalcomponent_remove_property, 1 },
	 { "icalcomponent_add_property", _wrap_icalcomponent_add_property, 1 },
	 { "icalcomponent_get_next_component", _wrap_icalcomponent_get_next_component, 1 },
	 { "icalcomponent_get_first_component", _wrap_icalcomponent_get_first_component, 1 },
	 { "icalcomponent_get_current_component", _wrap_icalcomponent_get_current_component, 1 },
	 { "icalcomponent_get_next_property", _wrap_icalcomponent_get_next_property, 1 },
	 { "icalcomponent_get_first_property", _wrap_icalcomponent_get_first_property, 1 },
	 { "icalcomponent_get_current_property", _wrap_icalcomponent_get_current_property, 1 },
	 { "icalcomponent_convert_errors", _wrap_icalcomponent_convert_errors, 1 },
	 { "icalcomponent_strip_errors", _wrap_icalcomponent_strip_errors, 1 },
	 { "icalcomponent_count_errors", _wrap_icalcomponent_count_errors, 1 },
	 { "icalcomponent_free", _wrap_icalcomponent_free, 1 },
	 { "icalcomponent_as_ical_string", _wrap_icalcomponent_as_ical_string, 1 },
	 { "icalcomponent_new_from_string", _wrap_icalcomponent_new_from_string, 1 },
	 { "icalcomponent_new_clone", _wrap_icalcomponent_new_clone, 1 },
	 { "icalcomponent_new", _wrap_icalcomponent_new, 1 },
	 { "icalparser_parse_string", _wrap_icalparser_parse_string, 1 },
	 { NULL, NULL }
};
static PyObject *SWIG_globals;
#ifdef __cplusplus
extern "C" 
#endif
SWIGEXPORT(void,initLibicalWrap)() {
	 PyObject *m, *d;
	 SWIG_globals = SWIG_newvarlink();
	 m = Py_InitModule("LibicalWrap", LibicalWrapMethods);
	 d = PyModule_GetDict(m);
	 PyDict_SetItemString(d,"icaltimetype_zone", PyString_FromString("icaltimetype::zone"));
/*
 * These are the pointer type-equivalency mappings. 
 * (Used by the SWIG pointer type-checker).
 */
	 SWIG_RegisterMapping("_struct_icaldurationtype","_icaldurationtype",0);
	 SWIG_RegisterMapping("_signed_long","_long",0);
	 SWIG_RegisterMapping("_icaldurationtype","_struct_icaldurationtype",0);
	 SWIG_RegisterMapping("_long","_unsigned_long",0);
	 SWIG_RegisterMapping("_long","_signed_long",0);
	 SWIG_RegisterMapping("_icalperiodtype","_struct_icalperiodtype",0);
	 SWIG_RegisterMapping("_unsigned_long","_long",0);
	 SWIG_RegisterMapping("_signed_int","_int",0);
	 SWIG_RegisterMapping("_unsigned_short","_short",0);
	 SWIG_RegisterMapping("_signed_short","_short",0);
	 SWIG_RegisterMapping("_unsigned_int","_int",0);
	 SWIG_RegisterMapping("_short","_unsigned_short",0);
	 SWIG_RegisterMapping("_short","_signed_short",0);
	 SWIG_RegisterMapping("_struct_icaltimetype","_icaltimetype",0);
	 SWIG_RegisterMapping("_int","_unsigned_int",0);
	 SWIG_RegisterMapping("_int","_signed_int",0);
	 SWIG_RegisterMapping("_icaltimetype","_struct_icaltimetype",0);
	 SWIG_RegisterMapping("_struct_icalperiodtype","_icalperiodtype",0);
}
