checking for KDE... libraries /usr/kde/3.5/lib, headers /usr/kde/3.5/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults checking for dcopidl... /usr/kde/3.5/bin/dcopidl checking for dcopidl2cpp... /usr/kde/3.5/bin/dcopidl2cpp checking for mcopidl... /usr/kde/3.5/bin/mcopidl checking for artsc-config... /usr/kde/3.5/bin/artsc-config checking for meinproc... /usr/kde/3.5/bin/meinproc checking for kconfig_compiler... /usr/kde/3.5/bin/kconfig_compiler checking for dcopidlng... /usr/kde/3.5/bin/dcopidlng checking for makekdewidgets... /usr/kde/3.5/bin/makekdewidgets checking for xmllint... /usr/bin/xmllint checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/sysctl.h usability... yes checking sys/sysctl.h presence... yes checking for sys/sysctl.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking sys/limits.h usability... no checking sys/limits.h presence... no checking for sys/limits.h... no checking err.h usability... yes checking err.h presence... yes checking for err.h... yes checking sys/cdefs.h usability... yes checking sys/cdefs.h presence... yes checking for sys/cdefs.h... yes checking for setenv... yes checking if setenv needs custom prototype... no checking for unsetenv... yes checking if unsetenv needs custom prototype... no checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for Qt docs... NO checking for dot... not found checking for doxygen... not found checking bluetooth/bluetooth.h usability... no checking bluetooth/bluetooth.h presence... no checking for bluetooth/bluetooth.h... no checking for hci_open_dev in -lbluetooth... no checking for XPM... yes checking gnokii.h usability... no checking gnokii.h presence... no checking for gnokii.h... no checking for gn_cfg_read in -lgnokii... no checking for gn_cfg_get in -lgnokii... no checking for sys/cdefs.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking for fcntl.h... (cached) yes checking for unistd.h... (cached) yes checking sysent.h usability... no checking sysent.h presence... no checking for sysent.h... no checking for strings.h... (cached) yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for usleep... yes checking if usleep needs custom prototype... no checking for socket... yes checking for fabsl... no checking for strdup... yes checking for vsnprintf... (cached) yes checking for tzset... yes checking for getdomainname... yes checking if getdomainname needs custom prototype... no checking for gethostname... yes checking if gethostname needs custom prototype... no checking whether byte ordering is bigendian... no checking if res_init needs -lresolv... yes checking for res_init... (cached) yes checking if res_init needs custom prototype... (cached) no checking for timezone variable... yes checking for tm_gmtoff in struct tm... yes checking for stl coping with namespace std... yes checking for bison... bison -y checking for perl5... /usr/bin/perl checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for sys/types.h... (cached) yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking for an ANSI C-conforming const... yes checking for size_t... (cached) yes checking whether struct tm is in sys/time.h or time.h... time.h checking for strdup... (cached) yes checking if doc should be compiled... yes checking if ktnef should be compiled... yes checking if libemailfunctions should be compiled... yes checking if kmail should be compiled... no checking if libkpimidentities should be compiled... no checking if libkcal should be compiled... yes checking if kfile-plugins should be compiled... no checking if kresources should be compiled... no checking if knotes should be compiled... no checking if karm should be compiled... no checking if libkdepim should be compiled... yes checking if kpilot should be compiled... no checking if libkpimexchange should be compiled... no checking if ksync should be compiled... no checking if korganizer should be compiled... no checking if konsolekalendar should be compiled... no checking if kitchensync should be compiled... no checking if kalarm should be compiled... no configure: creating ./config.status fast creating Makefile fast creating doc/Makefile fast creating doc/api/Makefile fast creating ktnef/Makefile fast creating ktnef/lib/Makefile fast creating libemailfunctions/Makefile fast creating libemailfunctions/tests/Makefile fast creating libkcal/Makefile fast creating libkcal/libical/Makefile fast creating libkcal/libical/design-data/Makefile fast creating libkcal/libical/doc/Makefile fast creating libkcal/libical/examples/Makefile fast creating libkcal/libical/scripts/Makefile fast creating libkcal/libical/src/Makefile fast creating libkcal/libical/src/libical/Makefile fast creating libkcal/libical/src/libicalss/Makefile fast creating libkcal/libical/src/test/Makefile fast creating libkcal/libical/test-data/Makefile fast creating libkcal/libical/zoneinfo/Makefile fast creating libkcal/libical/zoneinfo/Africa/Makefile fast creating libkcal/libical/zoneinfo/America/Makefile fast creating libkcal/libical/zoneinfo/America/Indiana/Makefile fast creating libkcal/libical/zoneinfo/America/Kentucky/Makefile fast creating libkcal/libical/zoneinfo/America/North_Dakota/Makefile fast creating libkcal/libical/zoneinfo/Antarctica/Makefile fast creating libkcal/libical/zoneinfo/Arctic/Makefile fast creating libkcal/libical/zoneinfo/Asia/Makefile fast creating libkcal/libical/zoneinfo/Atlantic/Makefile fast creating libkcal/libical/zoneinfo/Australia/Makefile fast creating libkcal/libical/zoneinfo/Europe/Makefile fast creating libkcal/libical/zoneinfo/Indian/Makefile fast creating libkcal/libical/zoneinfo/Pacific/Makefile fast creating libkcal/tests/Makefile fast creating libkcal/tests/data/Makefile fast creating libkcal/tests/data/Compat/Makefile fast creating libkcal/tests/data/RecurrenceRule/Makefile fast creating libkcal/tests/data/RecurrenceRule/ConnectDaily/Makefile fast creating libkcal/tests/data/RecurrenceRule/KAlarm_3.4/Makefile fast creating libkcal/tests/data/RecurrenceRule/KOrganizer_3.4/Makefile fast creating libkcal/tests/data/RecurrenceRule/LibICal/Makefile fast creating libkcal/tests/data/RecurrenceRule/RFC2445/Makefile fast creating libkcal/tests/data/RecurrenceRule/UntilInUTC/Makefile fast creating libkcal/tests/data/RecurrenceRule/unsorted/Makefile fast creating libkcal/tests/data/vCalendar/Makefile fast creating libkcal/versit/Makefile fast creating libkdepim/Makefile config.pl: fast created 46 file(s). config.status: creating config.h config.status: executing depfiles commands Good - your configure finished. Start make now make all-recursive make[1]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3' Making all in doc make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' Making all in api make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc/api' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc/api' make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' Making all in ktnef make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' Making all in lib make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef/lib' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef/lib' make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' Making all in libemailfunctions make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libemailfunctions' /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o email.lo `test -f 'email.cpp' || echo './'`email.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o idmapper.lo `test -f 'idmapper.cpp' || echo './'`idmapper.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kasciistricmp.lo `test -f 'kasciistricmp.cpp' || echo './'`kasciistricmp.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kasciistringtools.lo `test -f 'kasciistringtools.cpp' || echo './'`kasciistringtools.cpp /usr/qt/3/bin/moc ./networkstatus.h -o networkstatus.moc /usr/kde/3.5/bin/dcopidl ./networkstatus.h > networkstatus.kidl || ( rm -f networkstatus.kidl ; false ) /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o networkstatus.lo `test -f 'networkstatus.cpp' || echo './'`networkstatus.cpp /usr/kde/3.5/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub networkstatus.kidl /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o networkstatus_skel.lo `test -f 'networkstatus_skel.cpp' || echo './'`networkstatus_skel.cpp /bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -Wl,-O1 -o libemailfunctions.la -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined email.lo idmapper.lo kasciistricmp.lo kasciistringtools.lo networkstatus.lo networkstatus_skel.lo -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libemailfunctions' Making all in libkcal make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal' Making all in libical make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical' Making all in doc make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/doc' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/doc' Making all in scripts make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/scripts' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/scripts' Making all in src make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src' Making all in libical make[5]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src/libical' /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o caldate.lo `test -f 'caldate.c' || echo './'`caldate.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalarray.lo `test -f 'icalarray.c' || echo './'`icalarray.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalattach.lo `test -f 'icalattach.c' || echo './'`icalattach.c icalarray.c: In function 'icalarray_expand': icalarray.c:144: warning: comparison between signed and unsigned /usr/bin/perl -I ./../../scripts ./../../scripts/mkderivedparameters.pl -i ./icalderivedparameter.c.in -c ./../../design-data/parameters.csv > icalderivedparameter.c || rm -f icalderivedparameter.c /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedvalues.pl \ -i ./icalderivedvalue.h.in -h ./../../design-data/value-types.csv > icalderivedvalue.h || rm -f icalderivedvalue.h /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedproperties.pl \ -i ./icalderivedproperty.h.in -h ./../../design-data/properties.csv\ ./../../design-data/value-types.csv > icalderivedproperty.h || rm -f icalderivedproperty.h /usr/bin/perl -I ./../../scripts ./../../scripts/mkderivedparameters.pl -i ./icalderivedparameter.h.in -h ./../../design-data/parameters.csv > icalderivedparameter.h || rm -f icalderivedparameter.h /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalrecur.lo `test -f 'icalrecur.c' || echo './'`icalrecur.c /usr/bin/perl ./../../scripts/mkrestrictiontable.pl -i ./icalrestriction.c.in \ ./../../design-data/restrictions.csv > icalrestriction.c || rm -f icalrestriction.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalcomponent.lo `test -f 'icalcomponent.c' || echo './'`icalcomponent.c icalrecur.c:192: warning: no previous prototype for 'icalrecur_first_clause' icalrecur.c:212: warning: no previous prototype for 'icalrecur_next_clause' icalrecur.c:238: warning: no previous prototype for 'icalrecur_clause_name_and_value' icalrecur.c:258: warning: no previous prototype for 'icalrecur_add_byrules' icalrecur.c: In function 'icalrecur_add_byrules': icalrecur.c:256: warning: unused parameter 'parser' icalrecur.c: At top level: icalrecur.c:304: warning: no previous prototype for 'icalrecur_add_bydayrules' icalrecur.c:452: warning: initialization discards qualifiers from pointer target type icalrecur.c:453: warning: initialization discards qualifiers from pointer target type icalrecur.c:454: warning: initialization discards qualifiers from pointer target type icalrecur.c:455: warning: initialization discards qualifiers from pointer target type icalrecur.c:456: warning: initialization discards qualifiers from pointer target type icalrecur.c:457: warning: initialization discards qualifiers from pointer target type icalrecur.c:458: warning: initialization discards qualifiers from pointer target type icalrecur.c:459: warning: initialization discards qualifiers from pointer target type icalrecur.c:460: warning: initialization discards qualifiers from pointer target type icalrecur.c:601: warning: no previous prototype for 'icalrecur_iterator_sizeof_byarray' icalrecur.c: In function 'next_day': icalrecur.c:1307: warning: unused variable 'has_by_day' icalrecur.c: In function 'next_month': icalrecur.c:1439: warning: unused variable 'this_frequency' icalrecur.c: At top level: icalrecur.c:2099: warning: no previous prototype for 'icalrecur_check_rulepart' icalrecur.c:701: warning: 'count_byrules' defined but not used icalrecur.c:1333: warning: 'next_yearday' defined but not used icalcomponent.c:1994: warning: no previous prototype for 'icalcomponent_new_vcalendar' icalcomponent.c:1998: warning: no previous prototype for 'icalcomponent_new_vevent' icalcomponent.c:2002: warning: no previous prototype for 'icalcomponent_new_vtodo' icalcomponent.c:2006: warning: no previous prototype for 'icalcomponent_new_vjournal' icalcomponent.c:2010: warning: no previous prototype for 'icalcomponent_new_valarm' icalcomponent.c:2014: warning: no previous prototype for 'icalcomponent_new_vfreebusy' icalcomponent.c:2018: warning: no previous prototype for 'icalcomponent_new_vtimezone' icalcomponent.c:2022: warning: no previous prototype for 'icalcomponent_new_xstandard' icalcomponent.c:2026: warning: no previous prototype for 'icalcomponent_new_xdaylight' icalcomponent.c:2030: warning: no previous prototype for 'icalcomponent_new_vagenda' icalcomponent.c:2034: warning: no previous prototype for 'icalcomponent_new_vquery' icalcomponent.c: In function 'icalcomponent_merge_component': icalcomponent.c:2081: warning: comparison between signed and unsigned icalcomponent.c: In function 'icalcomponent_handle_conflicting_vtimezones': icalcomponent.c:2166: warning: unused parameter 'tzid_prop' icalcomponent.c: In function 'icalcomponent_rename_tzids_callback': icalcomponent.c:2284: warning: comparison between signed and unsigned /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalenums.lo `test -f 'icalenums.c' || echo './'`icalenums.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalerror.lo `test -f 'icalerror.c' || echo './'`icalerror.c icalerror.c:160: warning: no previous prototype for 'icalerror_error_from_string' icalerror.c:191: warning: no previous prototype for 'icalerror_perror' icalerror.c: In function 'icalerror_error_from_string': icalerror.c:162: warning: 'e' may be used uninitialized in this function /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalmemory.lo `test -f 'icalmemory.c' || echo './'`icalmemory.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalmime.lo `test -f 'icalmime.c' || echo './'`icalmime.c icalmime.c:57: warning: no previous prototype for 'icalmime_text_new_part' icalmime.c:77: warning: no previous prototype for 'icalmime_text_add_line' icalmime.c: In function 'icalmime_text_add_line': icalmime.c:75: warning: unused parameter 'header' icalmime.c:76: warning: unused parameter 'size' icalmime.c: At top level: icalmime.c:86: warning: no previous prototype for 'icalmime_textcalendar_end_part' icalmime.c:99: warning: no previous prototype for 'icalmime_text_end_part' icalmime.c:109: warning: no previous prototype for 'icalmime_text_free_part' icalmime.c:117: warning: no previous prototype for 'icalmime_attachment_new_part' icalmime.c:122: warning: no previous prototype for 'icalmime_attachment_add_line' icalmime.c:130: warning: no previous prototype for 'icalmime_attachment_end_part' icalmime.c: In function 'icalmime_attachment_end_part': icalmime.c:129: warning: unused parameter 'part' icalmime.c: At top level: icalmime.c:135: warning: no previous prototype for 'icalmime_attachment_free_part' icalmime.c: In function 'icalmime_attachment_free_part': icalmime.c:134: warning: unused parameter 'part' icalmime.c: At top level: icalmime.c:158: warning: no previous prototype for 'icalmime_make_part' icalmime.c:354: warning: no previous prototype for 'icalmime_test' icalmime.c: In function 'icalmime_test': icalmime.c:382: warning: passing argument 4 of 'sspm_write_mime' discards qualifiers from pointer target type /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalparameter.lo `test -f 'icalparameter.c' || echo './'`icalparameter.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalparser.lo `test -f 'icalparser.c' || echo './'`icalparser.c icalparameter.c:50: warning: no previous prototype for 'icalparameter_new_impl' icalparameter.c:370: warning: no previous prototype for 'icalparameter_set_parent' icalparameter.c:377: warning: no previous prototype for 'icalparameter_get_parent' icalparser.c: In function 'make_segment': icalparser.c:195: warning: implicit declaration of function 'isspace' icalparser.c: At top level: icalparser.c:259: warning: no previous prototype for 'icalparser_get_next_paramvalue' icalparser.c: In function 'icalparser_add_line': icalparser.c:654: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:685: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:693: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:782: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:819: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:841: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:850: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:874: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:930: warning: declaration of 'prop_kind' shadows a previous local icalparser.c:621: warning: shadowed declaration is here icalparser.c:958: warning: declaration of 'prop_kind' shadows a previous local icalparser.c:621: warning: shadowed declaration is here icalparser.c: In function 'icalparser_clean': icalparser.c:1017: warning: passing argument 2 of 'insert_error' discards qualifiers from pointer target type icalparser.c:1017: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedproperties.pl \ -i ./icalderivedproperty.c.in -c ./../../design-data/properties.csv \ ./../../design-data/value-types.csv > icalderivedproperty.c || rm -f icalderivedproperty.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalproperty.lo `test -f 'icalproperty.c' || echo './'`icalproperty.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icaltime.lo `test -f 'icaltime.c' || echo './'`icaltime.c icalproperty.c:96: warning: no previous prototype for 'icalproperty_new_impl' icalproperty.c:941: warning: no previous prototype for 'icalproperty_get_name' icalproperty.c:986: warning: no previous prototype for 'icalproperty_set_parent' icalproperty.c:993: warning: no previous prototype for 'icalproperty_get_parent' icalproperty.c: In function 'icalproperty_as_ical_string': icalproperty.c:514: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /var/tmp/portage/libkcal-3.5.3/temp/ccY1F22v.out file, please attach this to your bugreport. make[5]: *** [icalproperty.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... icaltime.c: In function 'icaltime_as_timet_with_zone': icaltime.c:289: warning: passing argument 2 of 'icaltime_convert_to_zone' discards qualifiers from pointer target type icaltime.c: In function 'icaltime_as_ical_string': icaltime.c:322: warning: assignment discards qualifiers from pointer target type icaltime.c:324: warning: assignment discards qualifiers from pointer target type icaltime.c: At top level: icaltime.c:414: warning: no previous prototype for 'icaltime_is_leap_year' icaltime.c: In function 'icaltime_convert_to_zone': icaltime.c:856: warning: passing argument 2 of 'icaltimezone_convert_time' discards qualifiers from pointer target type icaltime.c: In function 'icaltime_get_tzid': icaltime.c:879: warning: passing argument 1 of 'icaltimezone_get_tzid' discards qualifiers from pointer target type make[5]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src/libical' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3' make: *** [all] Error 2 !!! ERROR: kde-base/libkcal-3.5.3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 1248: Called kde-meta_src_compile kde-meta.eclass, line 408: Called kde_src_compile kde.eclass, line 144: Called kde_src_compile 'all' kde.eclass, line 279: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 275: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. ============================================================================== // /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -quiet -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DHAVE_CONFIG_H -DPACKAGE_DATA_DIR="/usr/kde/3.5/share/apps/libical" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -DPIC icalproperty.c -quiet -dumpbase icalproperty.c -march=k8 -auxbase-strip .libs/icalproperty.o -O2 -O2 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wformat-security -Wmissing-format-attribute -std=iso9899:1990 -fPIC -o - -frandom-seed=0 # 1 "icalproperty.c" # 1 "" # 1 "" # 1 "icalproperty.c" # 28 "icalproperty.c" # 1 "../../../../config.h" 1 # 368 "../../../../config.h" unsigned long strlcat(char*, const char*, unsigned long); # 380 "../../../../config.h" unsigned long strlcpy(char*, const char*, unsigned long); # 29 "icalproperty.c" 2 # 1 "icalproperty.h" 1 # 33 "icalproperty.h" # 1 "/usr/include/time.h" 1 3 4 # 29 "/usr/include/time.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 323 "/usr/include/features.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 313 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 314 "/usr/include/sys/cdefs.h" 2 3 4 # 324 "/usr/include/features.h" 2 3 4 # 346 "/usr/include/features.h" 3 4 # 1 "/usr/include/gnu/stubs.h" 1 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 5 "/usr/include/gnu/stubs.h" 2 3 4 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4 # 8 "/usr/include/gnu/stubs.h" 2 3 4 # 347 "/usr/include/features.h" 2 3 4 # 30 "/usr/include/time.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef unsigned int size_t; # 40 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 44 "/usr/include/time.h" 2 3 4 # 57 "/usr/include/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 28 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 29 "/usr/include/bits/types.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 32 "/usr/include/bits/types.h" 2 3 4 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; __extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; # 134 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/typesizes.h" 1 3 4 # 135 "/usr/include/bits/types.h" 2 3 4 __extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t; __extension__ typedef int __daddr_t; __extension__ typedef long int __swblk_t; __extension__ typedef int __key_t; __extension__ typedef int __clockid_t; __extension__ typedef void * __timer_t; __extension__ typedef long int __blksize_t; __extension__ typedef long int __blkcnt_t; __extension__ typedef __quad_t __blkcnt64_t; __extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t; __extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t; __extension__ typedef int __ssize_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; __extension__ typedef int __intptr_t; __extension__ typedef unsigned int __socklen_t; # 58 "/usr/include/time.h" 2 3 4 typedef __clock_t clock_t; # 75 "/usr/include/time.h" 3 4 typedef __time_t time_t; # 93 "/usr/include/time.h" 3 4 typedef __clockid_t clockid_t; # 105 "/usr/include/time.h" 3 4 typedef __timer_t timer_t; # 121 "/usr/include/time.h" 3 4 struct timespec { __time_t tv_sec; long int tv_nsec; }; struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long int tm_gmtoff; __const char *tm_zone; }; struct itimerspec { struct timespec it_interval; struct timespec it_value; }; struct sigevent; # 181 "/usr/include/time.h" 3 4 extern clock_t clock (void) __attribute__ ((__nothrow__)); extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); extern double difftime (time_t __time1, time_t __time0) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); extern size_t strftime (char *__restrict __s, size_t __maxsize, __const char *__restrict __format, __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *strptime (__const char *__restrict __s, __const char *__restrict __fmt, struct tm *__tp) __attribute__ ((__nothrow__)); # 229 "/usr/include/time.h" 3 4 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *gmtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern struct tm *localtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern char *asctime_r (__const struct tm *__restrict __tp, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *ctime_r (__const time_t *__restrict __timer, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *__tzname[2]; extern int __daylight; extern long int __timezone; extern char *tzname[2]; extern void tzset (void) __attribute__ ((__nothrow__)); extern int daylight; extern long int timezone; # 312 "/usr/include/time.h" 3 4 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 327 "/usr/include/time.h" 3 4 extern int nanosleep (__const struct timespec *__requested_time, struct timespec *__remaining); extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) __attribute__ ((__nothrow__)); # 356 "/usr/include/time.h" 3 4 extern int timer_create (clockid_t __clock_id, struct sigevent *__restrict __evp, timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); extern int timer_settime (timer_t __timerid, int __flags, __const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) __attribute__ ((__nothrow__)); extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); # 389 "/usr/include/time.h" 3 4 extern int getdate_err; # 398 "/usr/include/time.h" 3 4 extern struct tm *getdate (__const char *__string); # 416 "/usr/include/time.h" 3 4 # 34 "icalproperty.h" 2 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4 # 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 105 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4 typedef __gnuc_va_list va_list; # 35 "icalproperty.h" 2 # 1 "icalderivedparameter.h" 1 # 33 "icalderivedparameter.h" typedef struct icalparameter_impl icalparameter; const char* icalparameter_enum_to_string(int e); int icalparameter_string_to_enum(const char* str); typedef enum icalparameter_kind { ICAL_ANY_PARAMETER = 0, ICAL_ALTREP_PARAMETER, ICAL_CN_PARAMETER, ICAL_CUTYPE_PARAMETER, ICAL_DELEGATEDFROM_PARAMETER, ICAL_DELEGATEDTO_PARAMETER, ICAL_DIR_PARAMETER, ICAL_ENCODING_PARAMETER, ICAL_FBTYPE_PARAMETER, ICAL_FMTTYPE_PARAMETER, ICAL_LANGUAGE_PARAMETER, ICAL_MEMBER_PARAMETER, ICAL_PARTSTAT_PARAMETER, ICAL_RANGE_PARAMETER, ICAL_RELATED_PARAMETER, ICAL_RELTYPE_PARAMETER, ICAL_ROLE_PARAMETER, ICAL_RSVP_PARAMETER, ICAL_SENTBY_PARAMETER, ICAL_TZID_PARAMETER, ICAL_VALUE_PARAMETER, ICAL_X_PARAMETER, ICAL_XLICCOMPARETYPE_PARAMETER, ICAL_XLICERRORTYPE_PARAMETER, ICAL_NO_PARAMETER } icalparameter_kind; typedef enum icalparameter_cutype { ICAL_CUTYPE_X = 20000, ICAL_CUTYPE_INDIVIDUAL = 20001, ICAL_CUTYPE_GROUP = 20002, ICAL_CUTYPE_RESOURCE = 20003, ICAL_CUTYPE_ROOM = 20004, ICAL_CUTYPE_UNKNOWN = 20005, ICAL_CUTYPE_NONE = 20006 } icalparameter_cutype; typedef enum icalparameter_encoding { ICAL_ENCODING_X = 20007, ICAL_ENCODING_8BIT = 20008, ICAL_ENCODING_BASE64 = 20009, ICAL_ENCODING_NONE = 20010 } icalparameter_encoding; typedef enum icalparameter_fbtype { ICAL_FBTYPE_X = 20011, ICAL_FBTYPE_FREE = 20012, ICAL_FBTYPE_BUSY = 20013, ICAL_FBTYPE_BUSYUNAVAILABLE = 20014, ICAL_FBTYPE_BUSYTENTATIVE = 20015, ICAL_FBTYPE_NONE = 20016 } icalparameter_fbtype; typedef enum icalparameter_partstat { ICAL_PARTSTAT_X = 20017, ICAL_PARTSTAT_NEEDSACTION = 20018, ICAL_PARTSTAT_ACCEPTED = 20019, ICAL_PARTSTAT_DECLINED = 20020, ICAL_PARTSTAT_TENTATIVE = 20021, ICAL_PARTSTAT_DELEGATED = 20022, ICAL_PARTSTAT_COMPLETED = 20023, ICAL_PARTSTAT_INPROCESS = 20024, ICAL_PARTSTAT_NONE = 20025 } icalparameter_partstat; typedef enum icalparameter_range { ICAL_RANGE_X = 20026, ICAL_RANGE_THISANDPRIOR = 20027, ICAL_RANGE_THISANDFUTURE = 20028, ICAL_RANGE_NONE = 20029 } icalparameter_range; typedef enum icalparameter_related { ICAL_RELATED_X = 20030, ICAL_RELATED_START = 20031, ICAL_RELATED_END = 20032, ICAL_RELATED_NONE = 20033 } icalparameter_related; typedef enum icalparameter_reltype { ICAL_RELTYPE_X = 20034, ICAL_RELTYPE_PARENT = 20035, ICAL_RELTYPE_CHILD = 20036, ICAL_RELTYPE_SIBLING = 20037, ICAL_RELTYPE_NONE = 20038 } icalparameter_reltype; typedef enum icalparameter_role { ICAL_ROLE_X = 20039, ICAL_ROLE_CHAIR = 20040, ICAL_ROLE_REQPARTICIPANT = 20041, ICAL_ROLE_OPTPARTICIPANT = 20042, ICAL_ROLE_NONPARTICIPANT = 20043, ICAL_ROLE_NONE = 20044 } icalparameter_role; typedef enum icalparameter_rsvp { ICAL_RSVP_X = 20045, ICAL_RSVP_TRUE = 20046, ICAL_RSVP_FALSE = 20047, ICAL_RSVP_NONE = 20048 } icalparameter_rsvp; typedef enum icalparameter_value { ICAL_VALUE_X = 20049, ICAL_VALUE_BINARY = 20050, ICAL_VALUE_BOOLEAN = 20051, ICAL_VALUE_DATE = 20052, ICAL_VALUE_DURATION = 20053, ICAL_VALUE_FLOAT = 20054, ICAL_VALUE_INTEGER = 20055, ICAL_VALUE_PERIOD = 20056, ICAL_VALUE_RECUR = 20057, ICAL_VALUE_TEXT = 20058, ICAL_VALUE_URI = 20059, ICAL_VALUE_ERROR = 20060, ICAL_VALUE_DATETIME = 20061, ICAL_VALUE_UTCOFFSET = 20062, ICAL_VALUE_CALADDRESS = 20063, ICAL_VALUE_NONE = 20064 } icalparameter_value; typedef enum icalparameter_xliccomparetype { ICAL_XLICCOMPARETYPE_X = 20065, ICAL_XLICCOMPARETYPE_EQUAL = 20066, ICAL_XLICCOMPARETYPE_NOTEQUAL = 20067, ICAL_XLICCOMPARETYPE_LESS = 20068, ICAL_XLICCOMPARETYPE_GREATER = 20069, ICAL_XLICCOMPARETYPE_LESSEQUAL = 20070, ICAL_XLICCOMPARETYPE_GREATEREQUAL = 20071, ICAL_XLICCOMPARETYPE_REGEX = 20072, ICAL_XLICCOMPARETYPE_ISNULL = 20073, ICAL_XLICCOMPARETYPE_ISNOTNULL = 20074, ICAL_XLICCOMPARETYPE_NONE = 20075 } icalparameter_xliccomparetype; typedef enum icalparameter_xlicerrortype { ICAL_XLICERRORTYPE_X = 20076, ICAL_XLICERRORTYPE_COMPONENTPARSEERROR = 20077, ICAL_XLICERRORTYPE_PROPERTYPARSEERROR = 20078, ICAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR = 20079, ICAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR = 20080, ICAL_XLICERRORTYPE_VALUEPARSEERROR = 20081, ICAL_XLICERRORTYPE_INVALIDITIP = 20082, ICAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR = 20083, ICAL_XLICERRORTYPE_MIMEPARSEERROR = 20084, ICAL_XLICERRORTYPE_VCALPROPPARSEERROR = 20085, ICAL_XLICERRORTYPE_NONE = 20086 } icalparameter_xlicerrortype; icalparameter* icalparameter_new_language(const char* v); const char* icalparameter_get_language(const icalparameter* value); void icalparameter_set_language(icalparameter* value, const char* v); icalparameter* icalparameter_new_dir(const char* v); const char* icalparameter_get_dir(const icalparameter* value); void icalparameter_set_dir(icalparameter* value, const char* v); icalparameter* icalparameter_new_reltype(icalparameter_reltype v); icalparameter_reltype icalparameter_get_reltype(const icalparameter* value); void icalparameter_set_reltype(icalparameter* value, icalparameter_reltype v); icalparameter* icalparameter_new_fmttype(const char* v); const char* icalparameter_get_fmttype(const icalparameter* value); void icalparameter_set_fmttype(icalparameter* value, const char* v); icalparameter* icalparameter_new_tzid(const char* v); const char* icalparameter_get_tzid(const icalparameter* value); void icalparameter_set_tzid(icalparameter* value, const char* v); icalparameter* icalparameter_new_range(icalparameter_range v); icalparameter_range icalparameter_get_range(const icalparameter* value); void icalparameter_set_range(icalparameter* value, icalparameter_range v); icalparameter* icalparameter_new_delegatedto(const char* v); const char* icalparameter_get_delegatedto(const icalparameter* value); void icalparameter_set_delegatedto(icalparameter* value, const char* v); icalparameter* icalparameter_new_cn(const char* v); const char* icalparameter_get_cn(const icalparameter* value); void icalparameter_set_cn(icalparameter* value, const char* v); icalparameter* icalparameter_new_value(icalparameter_value v); icalparameter_value icalparameter_get_value(const icalparameter* value); void icalparameter_set_value(icalparameter* value, icalparameter_value v); icalparameter* icalparameter_new_xliccomparetype(icalparameter_xliccomparetype v); icalparameter_xliccomparetype icalparameter_get_xliccomparetype(const icalparameter* value); void icalparameter_set_xliccomparetype(icalparameter* value, icalparameter_xliccomparetype v); icalparameter* icalparameter_new_x(const char* v); const char* icalparameter_get_x(const icalparameter* value); void icalparameter_set_x(icalparameter* value, const char* v); icalparameter* icalparameter_new_sentby(const char* v); const char* icalparameter_get_sentby(const icalparameter* value); void icalparameter_set_sentby(icalparameter* value, const char* v); icalparameter* icalparameter_new_member(const char* v); const char* icalparameter_get_member(const icalparameter* value); void icalparameter_set_member(icalparameter* value, const char* v); icalparameter* icalparameter_new_rsvp(icalparameter_rsvp v); icalparameter_rsvp icalparameter_get_rsvp(const icalparameter* value); void icalparameter_set_rsvp(icalparameter* value, icalparameter_rsvp v); icalparameter* icalparameter_new_cutype(icalparameter_cutype v); icalparameter_cutype icalparameter_get_cutype(const icalparameter* value); void icalparameter_set_cutype(icalparameter* value, icalparameter_cutype v); icalparameter* icalparameter_new_xlicerrortype(icalparameter_xlicerrortype v); icalparameter_xlicerrortype icalparameter_get_xlicerrortype(const icalparameter* value); void icalparameter_set_xlicerrortype(icalparameter* value, icalparameter_xlicerrortype v); icalparameter* icalparameter_new_related(icalparameter_related v); icalparameter_related icalparameter_get_related(const icalparameter* value); void icalparameter_set_related(icalparameter* value, icalparameter_related v); icalparameter* icalparameter_new_encoding(icalparameter_encoding v); icalparameter_encoding icalparameter_get_encoding(const icalparameter* value); void icalparameter_set_encoding(icalparameter* value, icalparameter_encoding v); icalparameter* icalparameter_new_altrep(const char* v); const char* icalparameter_get_altrep(const icalparameter* value); void icalparameter_set_altrep(icalparameter* value, const char* v); icalparameter* icalparameter_new_delegatedfrom(const char* v); const char* icalparameter_get_delegatedfrom(const icalparameter* value); void icalparameter_set_delegatedfrom(icalparameter* value, const char* v); icalparameter* icalparameter_new_fbtype(icalparameter_fbtype v); icalparameter_fbtype icalparameter_get_fbtype(const icalparameter* value); void icalparameter_set_fbtype(icalparameter* value, icalparameter_fbtype v); icalparameter* icalparameter_new_role(icalparameter_role v); icalparameter_role icalparameter_get_role(const icalparameter* value); void icalparameter_set_role(icalparameter* value, icalparameter_role v); icalparameter* icalparameter_new_partstat(icalparameter_partstat v); icalparameter_partstat icalparameter_get_partstat(const icalparameter* value); void icalparameter_set_partstat(icalparameter* value, icalparameter_partstat v); # 37 "icalproperty.h" 2 # 1 "icalvalue.h" 1 # 31 "icalvalue.h" # 1 "icalenums.h" 1 # 37 "icalenums.h" typedef enum icalcomponent_kind { ICAL_NO_COMPONENT, ICAL_ANY_COMPONENT, ICAL_XROOT_COMPONENT, ICAL_XATTACH_COMPONENT, ICAL_VEVENT_COMPONENT, ICAL_VTODO_COMPONENT, ICAL_VJOURNAL_COMPONENT, ICAL_VCALENDAR_COMPONENT, ICAL_VAGENDA_COMPONENT, ICAL_VFREEBUSY_COMPONENT, ICAL_VALARM_COMPONENT, ICAL_XAUDIOALARM_COMPONENT, ICAL_XDISPLAYALARM_COMPONENT, ICAL_XEMAILALARM_COMPONENT, ICAL_XPROCEDUREALARM_COMPONENT, ICAL_VTIMEZONE_COMPONENT, ICAL_XSTANDARD_COMPONENT, ICAL_XDAYLIGHT_COMPONENT, ICAL_X_COMPONENT, ICAL_VSCHEDULE_COMPONENT, ICAL_VQUERY_COMPONENT, ICAL_VCAR_COMPONENT, ICAL_VCOMMAND_COMPONENT, ICAL_XLICINVALID_COMPONENT, ICAL_XLICMIMEPART_COMPONENT } icalcomponent_kind; typedef enum icalrequeststatus { ICAL_UNKNOWN_STATUS, ICAL_2_0_SUCCESS_STATUS, ICAL_2_1_FALLBACK_STATUS, ICAL_2_2_IGPROP_STATUS, ICAL_2_3_IGPARAM_STATUS, ICAL_2_4_IGXPROP_STATUS, ICAL_2_5_IGXPARAM_STATUS, ICAL_2_6_IGCOMP_STATUS, ICAL_2_7_FORWARD_STATUS, ICAL_2_8_ONEEVENT_STATUS, ICAL_2_9_TRUNC_STATUS, ICAL_2_10_ONETODO_STATUS, ICAL_2_11_TRUNCRRULE_STATUS, ICAL_3_0_INVPROPNAME_STATUS, ICAL_3_1_INVPROPVAL_STATUS, ICAL_3_2_INVPARAM_STATUS, ICAL_3_3_INVPARAMVAL_STATUS, ICAL_3_4_INVCOMP_STATUS, ICAL_3_5_INVTIME_STATUS, ICAL_3_6_INVRULE_STATUS, ICAL_3_7_INVCU_STATUS, ICAL_3_8_NOAUTH_STATUS, ICAL_3_9_BADVERSION_STATUS, ICAL_3_10_TOOBIG_STATUS, ICAL_3_11_MISSREQCOMP_STATUS, ICAL_3_12_UNKCOMP_STATUS, ICAL_3_13_BADCOMP_STATUS, ICAL_3_14_NOCAP_STATUS, ICAL_3_15_INVCOMMAND, ICAL_4_0_BUSY_STATUS, ICAL_4_1_STORE_ACCESS_DENIED, ICAL_4_2_STORE_FAILED, ICAL_4_3_STORE_NOT_FOUND, ICAL_5_0_MAYBE_STATUS, ICAL_5_1_UNAVAIL_STATUS, ICAL_5_2_NOSERVICE_STATUS, ICAL_5_3_NOSCHED_STATUS, ICAL_6_1_CONTAINER_NOT_FOUND, ICAL_9_0_UNRECOGNIZED_COMMAND } icalrequeststatus; const char* icalenum_reqstat_desc(icalrequeststatus stat); short icalenum_reqstat_major(icalrequeststatus stat); short icalenum_reqstat_minor(icalrequeststatus stat); icalrequeststatus icalenum_num_to_reqstat(short major, short minor); char* icalenum_reqstat_code(icalrequeststatus stat); # 32 "icalvalue.h" 2 # 1 "icaltypes.h" 1 # 29 "icaltypes.h" # 1 "icaltime.h" 1 # 102 "icaltime.h" typedef struct _icaltimezone icaltimezone; struct icaltime_span { time_t start; time_t end; int is_busy; }; typedef struct icaltime_span icaltime_span; struct icaltimetype { int year; int month; int day; int hour; int minute; int second; int is_utc; int is_date; int is_daylight; const icaltimezone *zone; }; typedef struct icaltimetype icaltimetype; struct icaltimetype icaltime_null_time(void); struct icaltimetype icaltime_null_date(void); struct icaltimetype icaltime_current_time_with_zone(const icaltimezone *zone); struct icaltimetype icaltime_today(void); struct icaltimetype icaltime_from_timet(const time_t v, const int is_date); struct icaltimetype icaltime_from_timet_with_zone(const time_t tm, const int is_date, const icaltimezone *zone); struct icaltimetype icaltime_from_string(const char* str); struct icaltimetype icaltime_from_string_with_zone(const char* str, const icaltimezone *zone); struct icaltimetype icaltime_from_day_of_year(const int doy, const int year); struct icaltimetype icaltime_from_week_number(const int week_number, const int year); time_t icaltime_as_timet(const struct icaltimetype); time_t icaltime_as_timet_with_zone(const struct icaltimetype tt, const icaltimezone *zone); const char* icaltime_as_ical_string(const struct icaltimetype tt); const icaltimezone *icaltime_get_timezone(const struct icaltimetype t); char *icaltime_get_tzid(const struct icaltimetype t); struct icaltimetype icaltime_set_timezone(struct icaltimetype *t, const icaltimezone *zone); int icaltime_day_of_year(const struct icaltimetype t); int icaltime_day_of_week(const struct icaltimetype t); int icaltime_start_doy_of_week(const struct icaltimetype t); int icaltime_week_number(const struct icaltimetype t); int icaltime_is_null_time(const struct icaltimetype t); int icaltime_is_valid_time(const struct icaltimetype t); int icaltime_is_date(const struct icaltimetype t); int icaltime_is_utc(const struct icaltimetype t); int icaltime_is_floating(const struct icaltimetype t); int icaltime_compare_with_zone(const struct icaltimetype a, const struct icaltimetype b); int icaltime_compare(const struct icaltimetype a, const struct icaltimetype b); int icaltime_compare_date_only(const struct icaltimetype a, const struct icaltimetype b); void icaltime_adjust(struct icaltimetype *tt, const int days, const int hours, const int minutes, const int seconds); struct icaltimetype icaltime_normalize(const struct icaltimetype t); struct icaltimetype icaltime_convert_to_zone(const struct icaltimetype tt, icaltimezone *zone); int icaltime_days_in_month(const int month, const int year); struct icaltime_span icaltime_span_new(struct icaltimetype dtstart, struct icaltimetype dtend, int is_busy); int icaltime_span_overlaps(icaltime_span *s1, icaltime_span *s2); int icaltime_span_contains(icaltime_span *s, icaltime_span *container); # 30 "icaltypes.h" 2 # 1 "icalduration.h" 1 # 34 "icalduration.h" struct icaldurationtype { int is_neg; unsigned int days; unsigned int weeks; unsigned int hours; unsigned int minutes; unsigned int seconds; }; struct icaldurationtype icaldurationtype_from_int(int t); struct icaldurationtype icaldurationtype_from_string(const char*); int icaldurationtype_as_int(struct icaldurationtype duration); char* icaldurationtype_as_ical_string(struct icaldurationtype d); struct icaldurationtype icaldurationtype_null_duration(void); struct icaldurationtype icaldurationtype_bad_duration(void); int icaldurationtype_is_null_duration(struct icaldurationtype d); int icaldurationtype_is_bad_duration(struct icaldurationtype d); struct icaltimetype icaltime_add(struct icaltimetype t, struct icaldurationtype d); struct icaldurationtype icaltime_subtract(struct icaltimetype t1, struct icaltimetype t2); # 31 "icaltypes.h" 2 # 1 "icalperiod.h" 1 # 35 "icalperiod.h" struct icalperiodtype { struct icaltimetype start; struct icaltimetype end; struct icaldurationtype duration; }; struct icalperiodtype icalperiodtype_from_string (const char* str); const char* icalperiodtype_as_ical_string(struct icalperiodtype p); struct icalperiodtype icalperiodtype_null_period(void); int icalperiodtype_is_null_period(struct icalperiodtype p); int icalperiodtype_is_valid_period(struct icalperiodtype p); # 32 "icaltypes.h" 2 struct icalgeotype { float lat; float lon; }; struct icaldatetimeperiodtype { struct icaltimetype time; struct icalperiodtype period; }; struct icaltriggertype { struct icaltimetype time; struct icaldurationtype duration; }; struct icaltriggertype icaltriggertype_from_int(const int reltime); struct icaltriggertype icaltriggertype_from_string(const char* str); int icaltriggertype_is_null_trigger(struct icaltriggertype tr); int icaltriggertype_is_bad_trigger(struct icaltriggertype tr); # 71 "icaltypes.h" struct icalreqstattype { icalrequeststatus code; const char* desc; const char* debug; }; struct icalreqstattype icalreqstattype_from_string(const char* str); const char* icalreqstattype_as_string(struct icalreqstattype); struct icaltimezonephase { const char* tzname; int is_stdandard; struct icaltimetype dtstart; int offsetto; int tzoffsetfrom; const char* comment; struct icaldatetimeperiodtype rdate; const char* rrule; }; struct icaltimezonetype { const char* tzid; struct icaltimetype last_mod; const char* tzurl; struct icaltimezonephase *phases; }; void icaltimezonetype_free(struct icaltimezonetype tzt); # 33 "icalvalue.h" 2 # 1 "icalrecur.h" 1 # 78 "icalrecur.h" typedef enum icalrecurrencetype_frequency { ICAL_SECONDLY_RECURRENCE=0, ICAL_MINUTELY_RECURRENCE=1, ICAL_HOURLY_RECURRENCE=2, ICAL_DAILY_RECURRENCE=3, ICAL_WEEKLY_RECURRENCE=4, ICAL_MONTHLY_RECURRENCE=5, ICAL_YEARLY_RECURRENCE=6, ICAL_NO_RECURRENCE=7 } icalrecurrencetype_frequency; typedef enum icalrecurrencetype_weekday { ICAL_NO_WEEKDAY, ICAL_SUNDAY_WEEKDAY, ICAL_MONDAY_WEEKDAY, ICAL_TUESDAY_WEEKDAY, ICAL_WEDNESDAY_WEEKDAY, ICAL_THURSDAY_WEEKDAY, ICAL_FRIDAY_WEEKDAY, ICAL_SATURDAY_WEEKDAY } icalrecurrencetype_weekday; enum { ICAL_RECURRENCE_ARRAY_MAX = 0x7f7f, ICAL_RECURRENCE_ARRAY_MAX_BYTE = 0x7f }; # 131 "icalrecur.h" struct icalrecurrencetype { icalrecurrencetype_frequency freq; struct icaltimetype until; int count; short interval; icalrecurrencetype_weekday week_start; # 153 "icalrecur.h" short by_second[61]; short by_minute[61]; short by_hour[25]; short by_day[364]; short by_month_day[32]; short by_year_day[ 367]; short by_week_no[54]; short by_month[13]; short by_set_pos[367]; }; void icalrecurrencetype_clear(struct icalrecurrencetype *r); # 177 "icalrecur.h" enum icalrecurrencetype_weekday icalrecurrencetype_day_day_of_week(short day); int icalrecurrencetype_day_position(short day); struct icalrecurrencetype icalrecurrencetype_from_string(const char* str); char* icalrecurrencetype_as_string(struct icalrecurrencetype *recur); typedef struct icalrecur_iterator_impl icalrecur_iterator; icalrecur_iterator* icalrecur_iterator_new(struct icalrecurrencetype rule, struct icaltimetype dtstart); struct icaltimetype icalrecur_iterator_next(icalrecur_iterator*); void icalrecur_iterator_decrement_count(icalrecur_iterator*); void icalrecur_iterator_free(icalrecur_iterator*); int icalrecur_expand_recurrence(char* rule, time_t start, int count, time_t* array); # 34 "icalvalue.h" 2 # 1 "icalderivedproperty.h" 1 # 16 "icalderivedproperty.h" # 1 "icalparameter.h" 1 # 37 "icalparameter.h" icalparameter* icalparameter_new(icalparameter_kind kind); icalparameter* icalparameter_new_clone(icalparameter* p); icalparameter* icalparameter_new_from_string(const char* value); icalparameter* icalparameter_new_from_value_string(icalparameter_kind kind, const char* value); void icalparameter_free(icalparameter* parameter); char* icalparameter_as_ical_string(icalparameter* parameter); int icalparameter_is_valid(icalparameter* parameter); icalparameter_kind icalparameter_isa(icalparameter* parameter); int icalparameter_isa_parameter(void* param); void icalparameter_set_xname (icalparameter* param, const char* v); const char* icalparameter_get_xname(icalparameter* param); void icalparameter_set_xvalue (icalparameter* param, const char* v); const char* icalparameter_get_xvalue(icalparameter* param); const char* icalparameter_kind_to_string(icalparameter_kind kind); icalparameter_kind icalparameter_string_to_kind(const char* string); # 17 "icalderivedproperty.h" 2 # 1 "icalderivedvalue.h" 1 # 37 "icalderivedvalue.h" # 1 "icalattach.h" 1 # 28 "icalattach.h" typedef struct icalattach_impl icalattach; typedef void (* icalattach_free_fn_t) (unsigned char *data, void *user_data); icalattach *icalattach_new_from_url (const char *url); icalattach *icalattach_new_from_data (unsigned char *data, icalattach_free_fn_t free_fn, void *free_fn_data); void icalattach_ref (icalattach *attach); void icalattach_unref (icalattach *attach); int icalattach_get_is_url (icalattach *attach); const char *icalattach_get_url (icalattach *attach); unsigned char *icalattach_get_data (icalattach *attach); struct icalattachtype* icalattachtype_new(void); void icalattachtype_add_reference(struct icalattachtype* v); void icalattachtype_free(struct icalattachtype* v); void icalattachtype_set_url(struct icalattachtype* v, char* url); char* icalattachtype_get_url(struct icalattachtype* v); void icalattachtype_set_base64(struct icalattachtype* v, char* base64, int owns); char* icalattachtype_get_base64(struct icalattachtype* v); void icalattachtype_set_binary(struct icalattachtype* v, char* binary, int owns); void* icalattachtype_get_binary(struct icalattachtype* v); # 38 "icalderivedvalue.h" 2 typedef struct icalvalue_impl icalvalue; void icalvalue_set_x(icalvalue* value, const char* v); icalvalue* icalvalue_new_x(const char* v); const char* icalvalue_get_x(const icalvalue* value); icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); struct icalrecurrencetype icalvalue_get_recur(const icalvalue* value); icalvalue* icalvalue_new_trigger (struct icaltriggertype v); void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); struct icaltriggertype icalvalue_get_trigger(const icalvalue* value); icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); void icalvalue_set_datetimeperiod(icalvalue* value, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(const icalvalue* value); icalvalue *icalvalue_new_attach (icalattach *attach); void icalvalue_set_attach (icalvalue *value, icalattach *attach); icalattach *icalvalue_get_attach (const icalvalue *value); void icalvalue_reset_kind(icalvalue* value); typedef enum icalvalue_kind { ICAL_ANY_VALUE=5000, ICAL_QUERY_VALUE=5001, ICAL_DATE_VALUE=5002, ICAL_ATTACH_VALUE=5003, ICAL_GEO_VALUE=5004, ICAL_STATUS_VALUE=5005, ICAL_TRANSP_VALUE=5006, ICAL_STRING_VALUE=5007, ICAL_TEXT_VALUE=5008, ICAL_REQUESTSTATUS_VALUE=5009, ICAL_BINARY_VALUE=5010, ICAL_PERIOD_VALUE=5011, ICAL_FLOAT_VALUE=5012, ICAL_DATETIMEPERIOD_VALUE=5013, ICAL_INTEGER_VALUE=5014, ICAL_CLASS_VALUE=5015, ICAL_URI_VALUE=5016, ICAL_DURATION_VALUE=5017, ICAL_BOOLEAN_VALUE=5018, ICAL_X_VALUE=5019, ICAL_CALADDRESS_VALUE=5020, ICAL_TRIGGER_VALUE=5021, ICAL_XLICCLASS_VALUE=5022, ICAL_RECUR_VALUE=5023, ICAL_ACTION_VALUE=5024, ICAL_DATETIME_VALUE=5025, ICAL_UTCOFFSET_VALUE=5026, ICAL_METHOD_VALUE=5027, ICAL_NO_VALUE=5028 } icalvalue_kind ; typedef enum icalproperty_action { ICAL_ACTION_X = 10000, ICAL_ACTION_AUDIO = 10001, ICAL_ACTION_DISPLAY = 10002, ICAL_ACTION_EMAIL = 10003, ICAL_ACTION_PROCEDURE = 10004, ICAL_ACTION_NONE = 10005 } icalproperty_action; typedef enum icalproperty_class { ICAL_CLASS_X = 10006, ICAL_CLASS_PUBLIC = 10007, ICAL_CLASS_PRIVATE = 10008, ICAL_CLASS_CONFIDENTIAL = 10009, ICAL_CLASS_NONE = 10010 } icalproperty_class; typedef enum icalproperty_method { ICAL_METHOD_X = 10011, ICAL_METHOD_PUBLISH = 10012, ICAL_METHOD_REQUEST = 10013, ICAL_METHOD_REPLY = 10014, ICAL_METHOD_ADD = 10015, ICAL_METHOD_CANCEL = 10016, ICAL_METHOD_REFRESH = 10017, ICAL_METHOD_COUNTER = 10018, ICAL_METHOD_DECLINECOUNTER = 10019, ICAL_METHOD_CREATE = 10020, ICAL_METHOD_READ = 10021, ICAL_METHOD_RESPONSE = 10022, ICAL_METHOD_MOVE = 10023, ICAL_METHOD_MODIFY = 10024, ICAL_METHOD_GENERATEUID = 10025, ICAL_METHOD_DELETE = 10026, ICAL_METHOD_NONE = 10027 } icalproperty_method; typedef enum icalproperty_status { ICAL_STATUS_X = 10028, ICAL_STATUS_TENTATIVE = 10029, ICAL_STATUS_CONFIRMED = 10030, ICAL_STATUS_COMPLETED = 10031, ICAL_STATUS_NEEDSACTION = 10032, ICAL_STATUS_CANCELLED = 10033, ICAL_STATUS_INPROCESS = 10034, ICAL_STATUS_DRAFT = 10035, ICAL_STATUS_FINAL = 10036, ICAL_STATUS_NONE = 10037 } icalproperty_status; typedef enum icalproperty_transp { ICAL_TRANSP_X = 10038, ICAL_TRANSP_OPAQUE = 10039, ICAL_TRANSP_OPAQUENOCONFLICT = 10040, ICAL_TRANSP_TRANSPARENT = 10041, ICAL_TRANSP_TRANSPARENTNOCONFLICT = 10042, ICAL_TRANSP_NONE = 10043 } icalproperty_transp; typedef enum icalproperty_xlicclass { ICAL_XLICCLASS_X = 10044, ICAL_XLICCLASS_PUBLISHNEW = 10045, ICAL_XLICCLASS_PUBLISHUPDATE = 10046, ICAL_XLICCLASS_PUBLISHFREEBUSY = 10047, ICAL_XLICCLASS_REQUESTNEW = 10048, ICAL_XLICCLASS_REQUESTUPDATE = 10049, ICAL_XLICCLASS_REQUESTRESCHEDULE = 10050, ICAL_XLICCLASS_REQUESTDELEGATE = 10051, ICAL_XLICCLASS_REQUESTNEWORGANIZER = 10052, ICAL_XLICCLASS_REQUESTFORWARD = 10053, ICAL_XLICCLASS_REQUESTSTATUS = 10054, ICAL_XLICCLASS_REQUESTFREEBUSY = 10055, ICAL_XLICCLASS_REPLYACCEPT = 10056, ICAL_XLICCLASS_REPLYDECLINE = 10057, ICAL_XLICCLASS_REPLYDELEGATE = 10058, ICAL_XLICCLASS_REPLYCRASHERACCEPT = 10059, ICAL_XLICCLASS_REPLYCRASHERDECLINE = 10060, ICAL_XLICCLASS_ADDINSTANCE = 10061, ICAL_XLICCLASS_CANCELEVENT = 10062, ICAL_XLICCLASS_CANCELINSTANCE = 10063, ICAL_XLICCLASS_CANCELALL = 10064, ICAL_XLICCLASS_REFRESH = 10065, ICAL_XLICCLASS_COUNTER = 10066, ICAL_XLICCLASS_DECLINECOUNTER = 10067, ICAL_XLICCLASS_MALFORMED = 10068, ICAL_XLICCLASS_OBSOLETE = 10069, ICAL_XLICCLASS_MISSEQUENCED = 10070, ICAL_XLICCLASS_UNKNOWN = 10071, ICAL_XLICCLASS_NONE = 10072 } icalproperty_xlicclass; icalvalue* icalvalue_new_query(const char* v); const char* icalvalue_get_query(const icalvalue* value); void icalvalue_set_query(icalvalue* value, const char* v); icalvalue* icalvalue_new_date(struct icaltimetype v); struct icaltimetype icalvalue_get_date(const icalvalue* value); void icalvalue_set_date(icalvalue* value, struct icaltimetype v); icalvalue* icalvalue_new_geo(struct icalgeotype v); struct icalgeotype icalvalue_get_geo(const icalvalue* value); void icalvalue_set_geo(icalvalue* value, struct icalgeotype v); icalvalue* icalvalue_new_status(enum icalproperty_status v); enum icalproperty_status icalvalue_get_status(const icalvalue* value); void icalvalue_set_status(icalvalue* value, enum icalproperty_status v); icalvalue* icalvalue_new_transp(enum icalproperty_transp v); enum icalproperty_transp icalvalue_get_transp(const icalvalue* value); void icalvalue_set_transp(icalvalue* value, enum icalproperty_transp v); icalvalue* icalvalue_new_string(const char* v); const char* icalvalue_get_string(const icalvalue* value); void icalvalue_set_string(icalvalue* value, const char* v); icalvalue* icalvalue_new_text(const char* v); const char* icalvalue_get_text(const icalvalue* value); void icalvalue_set_text(icalvalue* value, const char* v); icalvalue* icalvalue_new_requeststatus(struct icalreqstattype v); struct icalreqstattype icalvalue_get_requeststatus(const icalvalue* value); void icalvalue_set_requeststatus(icalvalue* value, struct icalreqstattype v); icalvalue* icalvalue_new_binary(const char* v); const char* icalvalue_get_binary(const icalvalue* value); void icalvalue_set_binary(icalvalue* value, const char* v); icalvalue* icalvalue_new_period(struct icalperiodtype v); struct icalperiodtype icalvalue_get_period(const icalvalue* value); void icalvalue_set_period(icalvalue* value, struct icalperiodtype v); icalvalue* icalvalue_new_float(float v); float icalvalue_get_float(const icalvalue* value); void icalvalue_set_float(icalvalue* value, float v); icalvalue* icalvalue_new_integer(int v); int icalvalue_get_integer(const icalvalue* value); void icalvalue_set_integer(icalvalue* value, int v); icalvalue* icalvalue_new_class(enum icalproperty_class v); enum icalproperty_class icalvalue_get_class(const icalvalue* value); void icalvalue_set_class(icalvalue* value, enum icalproperty_class v); icalvalue* icalvalue_new_uri(const char* v); const char* icalvalue_get_uri(const icalvalue* value); void icalvalue_set_uri(icalvalue* value, const char* v); icalvalue* icalvalue_new_duration(struct icaldurationtype v); struct icaldurationtype icalvalue_get_duration(const icalvalue* value); void icalvalue_set_duration(icalvalue* value, struct icaldurationtype v); icalvalue* icalvalue_new_boolean(int v); int icalvalue_get_boolean(const icalvalue* value); void icalvalue_set_boolean(icalvalue* value, int v); icalvalue* icalvalue_new_caladdress(const char* v); const char* icalvalue_get_caladdress(const icalvalue* value); void icalvalue_set_caladdress(icalvalue* value, const char* v); icalvalue* icalvalue_new_xlicclass(enum icalproperty_xlicclass v); enum icalproperty_xlicclass icalvalue_get_xlicclass(const icalvalue* value); void icalvalue_set_xlicclass(icalvalue* value, enum icalproperty_xlicclass v); icalvalue* icalvalue_new_action(enum icalproperty_action v); enum icalproperty_action icalvalue_get_action(const icalvalue* value); void icalvalue_set_action(icalvalue* value, enum icalproperty_action v); icalvalue* icalvalue_new_datetime(struct icaltimetype v); struct icaltimetype icalvalue_get_datetime(const icalvalue* value); void icalvalue_set_datetime(icalvalue* value, struct icaltimetype v); icalvalue* icalvalue_new_utcoffset(int v); int icalvalue_get_utcoffset(const icalvalue* value); void icalvalue_set_utcoffset(icalvalue* value, int v); icalvalue* icalvalue_new_method(enum icalproperty_method v); enum icalproperty_method icalvalue_get_method(const icalvalue* value); void icalvalue_set_method(icalvalue* value, enum icalproperty_method v); # 18 "icalderivedproperty.h" 2 typedef struct icalproperty_impl icalproperty; typedef enum icalproperty_kind { ICAL_ANY_PROPERTY = 0, ICAL_ACTION_PROPERTY, ICAL_ALLOWCONFLICT_PROPERTY, ICAL_ATTACH_PROPERTY, ICAL_ATTENDEE_PROPERTY, ICAL_CALID_PROPERTY, ICAL_CALMASTER_PROPERTY, ICAL_CALSCALE_PROPERTY, ICAL_CARID_PROPERTY, ICAL_CATEGORIES_PROPERTY, ICAL_CLASS_PROPERTY, ICAL_COMMENT_PROPERTY, ICAL_COMPLETED_PROPERTY, ICAL_CONTACT_PROPERTY, ICAL_CREATED_PROPERTY, ICAL_DECREED_PROPERTY, ICAL_DEFAULTCHARSET_PROPERTY, ICAL_DEFAULTLOCALE_PROPERTY, ICAL_DEFAULTTZID_PROPERTY, ICAL_DESCRIPTION_PROPERTY, ICAL_DTEND_PROPERTY, ICAL_DTSTAMP_PROPERTY, ICAL_DTSTART_PROPERTY, ICAL_DUE_PROPERTY, ICAL_DURATION_PROPERTY, ICAL_EXDATE_PROPERTY, ICAL_EXPAND_PROPERTY, ICAL_EXRULE_PROPERTY, ICAL_FREEBUSY_PROPERTY, ICAL_GEO_PROPERTY, ICAL_LASTMODIFIED_PROPERTY, ICAL_LOCATION_PROPERTY, ICAL_MAXRESULTS_PROPERTY, ICAL_MAXRESULTSSIZE_PROPERTY, ICAL_METHOD_PROPERTY, ICAL_ORGANIZER_PROPERTY, ICAL_OWNER_PROPERTY, ICAL_PERCENTCOMPLETE_PROPERTY, ICAL_PRIORITY_PROPERTY, ICAL_PRODID_PROPERTY, ICAL_QUERY_PROPERTY, ICAL_QUERYNAME_PROPERTY, ICAL_RDATE_PROPERTY, ICAL_RECURRENCEID_PROPERTY, ICAL_RELATEDTO_PROPERTY, ICAL_RELCALID_PROPERTY, ICAL_REPEAT_PROPERTY, ICAL_REQUESTSTATUS_PROPERTY, ICAL_RESOURCES_PROPERTY, ICAL_RRULE_PROPERTY, ICAL_SCOPE_PROPERTY, ICAL_SEQUENCE_PROPERTY, ICAL_STATUS_PROPERTY, ICAL_SUMMARY_PROPERTY, ICAL_TARGET_PROPERTY, ICAL_TRANSP_PROPERTY, ICAL_TRIGGER_PROPERTY, ICAL_TZID_PROPERTY, ICAL_TZNAME_PROPERTY, ICAL_TZOFFSETFROM_PROPERTY, ICAL_TZOFFSETTO_PROPERTY, ICAL_TZURL_PROPERTY, ICAL_UID_PROPERTY, ICAL_URL_PROPERTY, ICAL_VERSION_PROPERTY, ICAL_X_PROPERTY, ICAL_XLICCLASS_PROPERTY, ICAL_XLICCLUSTERCOUNT_PROPERTY, ICAL_XLICERROR_PROPERTY, ICAL_XLICMIMECHARSET_PROPERTY, ICAL_XLICMIMECID_PROPERTY, ICAL_XLICMIMECONTENTTYPE_PROPERTY, ICAL_XLICMIMEENCODING_PROPERTY, ICAL_XLICMIMEFILENAME_PROPERTY, ICAL_XLICMIMEOPTINFO_PROPERTY, ICAL_NO_PROPERTY } icalproperty_kind; icalproperty* icalproperty_new_action(enum icalproperty_action v); void icalproperty_set_action(icalproperty* prop, enum icalproperty_action v); enum icalproperty_action icalproperty_get_action(const icalproperty* prop);icalproperty* icalproperty_vanew_action(enum icalproperty_action v, ...); icalproperty* icalproperty_new_allowconflict(const char* v); void icalproperty_set_allowconflict(icalproperty* prop, const char* v); const char* icalproperty_get_allowconflict(const icalproperty* prop);icalproperty* icalproperty_vanew_allowconflict(const char* v, ...); icalproperty* icalproperty_new_attach(icalattach * v); void icalproperty_set_attach(icalproperty* prop, icalattach * v); icalattach * icalproperty_get_attach(const icalproperty* prop);icalproperty* icalproperty_vanew_attach(icalattach * v, ...); icalproperty* icalproperty_new_attendee(const char* v); void icalproperty_set_attendee(icalproperty* prop, const char* v); const char* icalproperty_get_attendee(const icalproperty* prop);icalproperty* icalproperty_vanew_attendee(const char* v, ...); icalproperty* icalproperty_new_calid(const char* v); void icalproperty_set_calid(icalproperty* prop, const char* v); const char* icalproperty_get_calid(const icalproperty* prop);icalproperty* icalproperty_vanew_calid(const char* v, ...); icalproperty* icalproperty_new_calmaster(const char* v); void icalproperty_set_calmaster(icalproperty* prop, const char* v); const char* icalproperty_get_calmaster(const icalproperty* prop);icalproperty* icalproperty_vanew_calmaster(const char* v, ...); icalproperty* icalproperty_new_calscale(const char* v); void icalproperty_set_calscale(icalproperty* prop, const char* v); const char* icalproperty_get_calscale(const icalproperty* prop);icalproperty* icalproperty_vanew_calscale(const char* v, ...); icalproperty* icalproperty_new_carid(const char* v); void icalproperty_set_carid(icalproperty* prop, const char* v); const char* icalproperty_get_carid(const icalproperty* prop);icalproperty* icalproperty_vanew_carid(const char* v, ...); icalproperty* icalproperty_new_categories(const char* v); void icalproperty_set_categories(icalproperty* prop, const char* v); const char* icalproperty_get_categories(const icalproperty* prop);icalproperty* icalproperty_vanew_categories(const char* v, ...); icalproperty* icalproperty_new_class(enum icalproperty_class v); void icalproperty_set_class(icalproperty* prop, enum icalproperty_class v); enum icalproperty_class icalproperty_get_class(const icalproperty* prop);icalproperty* icalproperty_vanew_class(enum icalproperty_class v, ...); icalproperty* icalproperty_new_comment(const char* v); void icalproperty_set_comment(icalproperty* prop, const char* v); const char* icalproperty_get_comment(const icalproperty* prop);icalproperty* icalproperty_vanew_comment(const char* v, ...); icalproperty* icalproperty_new_completed(struct icaltimetype v); void icalproperty_set_completed(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_completed(const icalproperty* prop);icalproperty* icalproperty_vanew_completed(struct icaltimetype v, ...); icalproperty* icalproperty_new_contact(const char* v); void icalproperty_set_contact(icalproperty* prop, const char* v); const char* icalproperty_get_contact(const icalproperty* prop);icalproperty* icalproperty_vanew_contact(const char* v, ...); icalproperty* icalproperty_new_created(struct icaltimetype v); void icalproperty_set_created(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_created(const icalproperty* prop);icalproperty* icalproperty_vanew_created(struct icaltimetype v, ...); icalproperty* icalproperty_new_decreed(const char* v); void icalproperty_set_decreed(icalproperty* prop, const char* v); const char* icalproperty_get_decreed(const icalproperty* prop);icalproperty* icalproperty_vanew_decreed(const char* v, ...); icalproperty* icalproperty_new_defaultcharset(const char* v); void icalproperty_set_defaultcharset(icalproperty* prop, const char* v); const char* icalproperty_get_defaultcharset(const icalproperty* prop);icalproperty* icalproperty_vanew_defaultcharset(const char* v, ...); icalproperty* icalproperty_new_defaultlocale(const char* v); void icalproperty_set_defaultlocale(icalproperty* prop, const char* v); const char* icalproperty_get_defaultlocale(const icalproperty* prop);icalproperty* icalproperty_vanew_defaultlocale(const char* v, ...); icalproperty* icalproperty_new_defaulttzid(const char* v); void icalproperty_set_defaulttzid(icalproperty* prop, const char* v); const char* icalproperty_get_defaulttzid(const icalproperty* prop);icalproperty* icalproperty_vanew_defaulttzid(const char* v, ...); icalproperty* icalproperty_new_description(const char* v); void icalproperty_set_description(icalproperty* prop, const char* v); const char* icalproperty_get_description(const icalproperty* prop);icalproperty* icalproperty_vanew_description(const char* v, ...); icalproperty* icalproperty_new_dtend(struct icaltimetype v); void icalproperty_set_dtend(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtend(const icalproperty* prop);icalproperty* icalproperty_vanew_dtend(struct icaltimetype v, ...); icalproperty* icalproperty_new_dtstamp(struct icaltimetype v); void icalproperty_set_dtstamp(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtstamp(const icalproperty* prop);icalproperty* icalproperty_vanew_dtstamp(struct icaltimetype v, ...); icalproperty* icalproperty_new_dtstart(struct icaltimetype v); void icalproperty_set_dtstart(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtstart(const icalproperty* prop);icalproperty* icalproperty_vanew_dtstart(struct icaltimetype v, ...); icalproperty* icalproperty_new_due(struct icaltimetype v); void icalproperty_set_due(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_due(const icalproperty* prop);icalproperty* icalproperty_vanew_due(struct icaltimetype v, ...); icalproperty* icalproperty_new_duration(struct icaldurationtype v); void icalproperty_set_duration(icalproperty* prop, struct icaldurationtype v); struct icaldurationtype icalproperty_get_duration(const icalproperty* prop);icalproperty* icalproperty_vanew_duration(struct icaldurationtype v, ...); icalproperty* icalproperty_new_exdate(struct icaltimetype v); void icalproperty_set_exdate(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_exdate(const icalproperty* prop);icalproperty* icalproperty_vanew_exdate(struct icaltimetype v, ...); icalproperty* icalproperty_new_expand(int v); void icalproperty_set_expand(icalproperty* prop, int v); int icalproperty_get_expand(const icalproperty* prop);icalproperty* icalproperty_vanew_expand(int v, ...); icalproperty* icalproperty_new_exrule(struct icalrecurrencetype v); void icalproperty_set_exrule(icalproperty* prop, struct icalrecurrencetype v); struct icalrecurrencetype icalproperty_get_exrule(const icalproperty* prop);icalproperty* icalproperty_vanew_exrule(struct icalrecurrencetype v, ...); icalproperty* icalproperty_new_freebusy(struct icalperiodtype v); void icalproperty_set_freebusy(icalproperty* prop, struct icalperiodtype v); struct icalperiodtype icalproperty_get_freebusy(const icalproperty* prop);icalproperty* icalproperty_vanew_freebusy(struct icalperiodtype v, ...); icalproperty* icalproperty_new_geo(struct icalgeotype v); void icalproperty_set_geo(icalproperty* prop, struct icalgeotype v); struct icalgeotype icalproperty_get_geo(const icalproperty* prop);icalproperty* icalproperty_vanew_geo(struct icalgeotype v, ...); icalproperty* icalproperty_new_lastmodified(struct icaltimetype v); void icalproperty_set_lastmodified(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_lastmodified(const icalproperty* prop);icalproperty* icalproperty_vanew_lastmodified(struct icaltimetype v, ...); icalproperty* icalproperty_new_location(const char* v); void icalproperty_set_location(icalproperty* prop, const char* v); const char* icalproperty_get_location(const icalproperty* prop);icalproperty* icalproperty_vanew_location(const char* v, ...); icalproperty* icalproperty_new_maxresults(int v); void icalproperty_set_maxresults(icalproperty* prop, int v); int icalproperty_get_maxresults(const icalproperty* prop);icalproperty* icalproperty_vanew_maxresults(int v, ...); icalproperty* icalproperty_new_maxresultssize(int v); void icalproperty_set_maxresultssize(icalproperty* prop, int v); int icalproperty_get_maxresultssize(const icalproperty* prop);icalproperty* icalproperty_vanew_maxresultssize(int v, ...); icalproperty* icalproperty_new_method(enum icalproperty_method v); void icalproperty_set_method(icalproperty* prop, enum icalproperty_method v); enum icalproperty_method icalproperty_get_method(const icalproperty* prop);icalproperty* icalproperty_vanew_method(enum icalproperty_method v, ...); icalproperty* icalproperty_new_organizer(const char* v); void icalproperty_set_organizer(icalproperty* prop, const char* v); const char* icalproperty_get_organizer(const icalproperty* prop);icalproperty* icalproperty_vanew_organizer(const char* v, ...); icalproperty* icalproperty_new_owner(const char* v); void icalproperty_set_owner(icalproperty* prop, const char* v); const char* icalproperty_get_owner(const icalproperty* prop);icalproperty* icalproperty_vanew_owner(const char* v, ...); icalproperty* icalproperty_new_percentcomplete(int v); void icalproperty_set_percentcomplete(icalproperty* prop, int v); int icalproperty_get_percentcomplete(const icalproperty* prop);icalproperty* icalproperty_vanew_percentcomplete(int v, ...); icalproperty* icalproperty_new_priority(int v); void icalproperty_set_priority(icalproperty* prop, int v); int icalproperty_get_priority(const icalproperty* prop);icalproperty* icalproperty_vanew_priority(int v, ...); icalproperty* icalproperty_new_prodid(const char* v); void icalproperty_set_prodid(icalproperty* prop, const char* v); const char* icalproperty_get_prodid(const icalproperty* prop);icalproperty* icalproperty_vanew_prodid(const char* v, ...); icalproperty* icalproperty_new_query(const char* v); void icalproperty_set_query(icalproperty* prop, const char* v); const char* icalproperty_get_query(const icalproperty* prop);icalproperty* icalproperty_vanew_query(const char* v, ...); icalproperty* icalproperty_new_queryname(const char* v); void icalproperty_set_queryname(icalproperty* prop, const char* v); const char* icalproperty_get_queryname(const icalproperty* prop);icalproperty* icalproperty_vanew_queryname(const char* v, ...); icalproperty* icalproperty_new_rdate(struct icaldatetimeperiodtype v); void icalproperty_set_rdate(icalproperty* prop, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalproperty_get_rdate(const icalproperty* prop);icalproperty* icalproperty_vanew_rdate(struct icaldatetimeperiodtype v, ...); icalproperty* icalproperty_new_recurrenceid(struct icaltimetype v); void icalproperty_set_recurrenceid(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_recurrenceid(const icalproperty* prop);icalproperty* icalproperty_vanew_recurrenceid(struct icaltimetype v, ...); icalproperty* icalproperty_new_relatedto(const char* v); void icalproperty_set_relatedto(icalproperty* prop, const char* v); const char* icalproperty_get_relatedto(const icalproperty* prop);icalproperty* icalproperty_vanew_relatedto(const char* v, ...); icalproperty* icalproperty_new_relcalid(const char* v); void icalproperty_set_relcalid(icalproperty* prop, const char* v); const char* icalproperty_get_relcalid(const icalproperty* prop);icalproperty* icalproperty_vanew_relcalid(const char* v, ...); icalproperty* icalproperty_new_repeat(int v); void icalproperty_set_repeat(icalproperty* prop, int v); int icalproperty_get_repeat(const icalproperty* prop);icalproperty* icalproperty_vanew_repeat(int v, ...); icalproperty* icalproperty_new_requeststatus(struct icalreqstattype v); void icalproperty_set_requeststatus(icalproperty* prop, struct icalreqstattype v); struct icalreqstattype icalproperty_get_requeststatus(const icalproperty* prop);icalproperty* icalproperty_vanew_requeststatus(struct icalreqstattype v, ...); icalproperty* icalproperty_new_resources(const char* v); void icalproperty_set_resources(icalproperty* prop, const char* v); const char* icalproperty_get_resources(const icalproperty* prop);icalproperty* icalproperty_vanew_resources(const char* v, ...); icalproperty* icalproperty_new_rrule(struct icalrecurrencetype v); void icalproperty_set_rrule(icalproperty* prop, struct icalrecurrencetype v); struct icalrecurrencetype icalproperty_get_rrule(const icalproperty* prop);icalproperty* icalproperty_vanew_rrule(struct icalrecurrencetype v, ...); icalproperty* icalproperty_new_scope(const char* v); void icalproperty_set_scope(icalproperty* prop, const char* v); const char* icalproperty_get_scope(const icalproperty* prop);icalproperty* icalproperty_vanew_scope(const char* v, ...); icalproperty* icalproperty_new_sequence(int v); void icalproperty_set_sequence(icalproperty* prop, int v); int icalproperty_get_sequence(const icalproperty* prop);icalproperty* icalproperty_vanew_sequence(int v, ...); icalproperty* icalproperty_new_status(enum icalproperty_status v); void icalproperty_set_status(icalproperty* prop, enum icalproperty_status v); enum icalproperty_status icalproperty_get_status(const icalproperty* prop);icalproperty* icalproperty_vanew_status(enum icalproperty_status v, ...); icalproperty* icalproperty_new_summary(const char* v); void icalproperty_set_summary(icalproperty* prop, const char* v); const char* icalproperty_get_summary(const icalproperty* prop);icalproperty* icalproperty_vanew_summary(const char* v, ...); icalproperty* icalproperty_new_target(const char* v); void icalproperty_set_target(icalproperty* prop, const char* v); const char* icalproperty_get_target(const icalproperty* prop);icalproperty* icalproperty_vanew_target(const char* v, ...); icalproperty* icalproperty_new_transp(enum icalproperty_transp v); void icalproperty_set_transp(icalproperty* prop, enum icalproperty_transp v); enum icalproperty_transp icalproperty_get_transp(const icalproperty* prop);icalproperty* icalproperty_vanew_transp(enum icalproperty_transp v, ...); icalproperty* icalproperty_new_trigger(struct icaltriggertype v); void icalproperty_set_trigger(icalproperty* prop, struct icaltriggertype v); struct icaltriggertype icalproperty_get_trigger(const icalproperty* prop);icalproperty* icalproperty_vanew_trigger(struct icaltriggertype v, ...); icalproperty* icalproperty_new_tzid(const char* v); void icalproperty_set_tzid(icalproperty* prop, const char* v); const char* icalproperty_get_tzid(const icalproperty* prop);icalproperty* icalproperty_vanew_tzid(const char* v, ...); icalproperty* icalproperty_new_tzname(const char* v); void icalproperty_set_tzname(icalproperty* prop, const char* v); const char* icalproperty_get_tzname(const icalproperty* prop);icalproperty* icalproperty_vanew_tzname(const char* v, ...); icalproperty* icalproperty_new_tzoffsetfrom(int v); void icalproperty_set_tzoffsetfrom(icalproperty* prop, int v); int icalproperty_get_tzoffsetfrom(const icalproperty* prop);icalproperty* icalproperty_vanew_tzoffsetfrom(int v, ...); icalproperty* icalproperty_new_tzoffsetto(int v); void icalproperty_set_tzoffsetto(icalproperty* prop, int v); int icalproperty_get_tzoffsetto(const icalproperty* prop);icalproperty* icalproperty_vanew_tzoffsetto(int v, ...); icalproperty* icalproperty_new_tzurl(const char* v); void icalproperty_set_tzurl(icalproperty* prop, const char* v); const char* icalproperty_get_tzurl(const icalproperty* prop);icalproperty* icalproperty_vanew_tzurl(const char* v, ...); icalproperty* icalproperty_new_uid(const char* v); void icalproperty_set_uid(icalproperty* prop, const char* v); const char* icalproperty_get_uid(const icalproperty* prop);icalproperty* icalproperty_vanew_uid(const char* v, ...); icalproperty* icalproperty_new_url(const char* v); void icalproperty_set_url(icalproperty* prop, const char* v); const char* icalproperty_get_url(const icalproperty* prop);icalproperty* icalproperty_vanew_url(const char* v, ...); icalproperty* icalproperty_new_version(const char* v); void icalproperty_set_version(icalproperty* prop, const char* v); const char* icalproperty_get_version(const icalproperty* prop);icalproperty* icalproperty_vanew_version(const char* v, ...); icalproperty* icalproperty_new_x(const char* v); void icalproperty_set_x(icalproperty* prop, const char* v); const char* icalproperty_get_x(const icalproperty* prop);icalproperty* icalproperty_vanew_x(const char* v, ...); icalproperty* icalproperty_new_xlicclass(enum icalproperty_xlicclass v); void icalproperty_set_xlicclass(icalproperty* prop, enum icalproperty_xlicclass v); enum icalproperty_xlicclass icalproperty_get_xlicclass(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicclass(enum icalproperty_xlicclass v, ...); icalproperty* icalproperty_new_xlicclustercount(const char* v); void icalproperty_set_xlicclustercount(icalproperty* prop, const char* v); const char* icalproperty_get_xlicclustercount(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicclustercount(const char* v, ...); icalproperty* icalproperty_new_xlicerror(const char* v); void icalproperty_set_xlicerror(icalproperty* prop, const char* v); const char* icalproperty_get_xlicerror(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicerror(const char* v, ...); icalproperty* icalproperty_new_xlicmimecharset(const char* v); void icalproperty_set_xlicmimecharset(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecharset(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecharset(const char* v, ...); icalproperty* icalproperty_new_xlicmimecid(const char* v); void icalproperty_set_xlicmimecid(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecid(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecid(const char* v, ...); icalproperty* icalproperty_new_xlicmimecontenttype(const char* v); void icalproperty_set_xlicmimecontenttype(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecontenttype(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecontenttype(const char* v, ...); icalproperty* icalproperty_new_xlicmimeencoding(const char* v); void icalproperty_set_xlicmimeencoding(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimeencoding(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimeencoding(const char* v, ...); icalproperty* icalproperty_new_xlicmimefilename(const char* v); void icalproperty_set_xlicmimefilename(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimefilename(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimefilename(const char* v, ...); icalproperty* icalproperty_new_xlicmimeoptinfo(const char* v); void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimeoptinfo(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimeoptinfo(const char* v, ...); # 37 "icalvalue.h" 2 icalvalue* icalvalue_new(icalvalue_kind kind); icalvalue* icalvalue_new_clone(const icalvalue* value); icalvalue* icalvalue_new_from_string(icalvalue_kind kind, const char* str); void icalvalue_free(icalvalue* value); int icalvalue_is_valid(const icalvalue* value); const char* icalvalue_as_ical_string(const icalvalue* value); icalvalue_kind icalvalue_isa(const icalvalue* value); int icalvalue_isa_value(void*); icalparameter_xliccomparetype icalvalue_compare(const icalvalue* a, const icalvalue *b); icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); struct icalrecurrencetype icalvalue_get_recur(const icalvalue* value); icalvalue* icalvalue_new_trigger (struct icaltriggertype v); void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); struct icaltriggertype icalvalue_get_trigger(const icalvalue* value); icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); void icalvalue_set_datetimeperiod(icalvalue* value, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(const icalvalue* value); icalvalue_kind icalvalue_string_to_kind(const char* str); const char* icalvalue_kind_to_string(const icalvalue_kind kind); int icalvalue_kind_is_valid(const icalvalue_kind kind); int icalvalue_encode_ical_string(const char *szText, char *szEncText, int MaxBufferLen); # 39 "icalproperty.h" 2 icalproperty* icalproperty_new(icalproperty_kind kind); icalproperty* icalproperty_new_clone(icalproperty * prop); icalproperty* icalproperty_new_from_string(const char* str); const char* icalproperty_as_ical_string(icalproperty* prop); void icalproperty_free(icalproperty* prop); icalproperty_kind icalproperty_isa(icalproperty* property); int icalproperty_isa_property(void* property); void icalproperty_add_parameters(struct icalproperty_impl *prop,va_list args); void icalproperty_add_parameter(icalproperty* prop,icalparameter* parameter); void icalproperty_set_parameter(icalproperty* prop,icalparameter* parameter); void icalproperty_set_parameter_from_string(icalproperty* prop, const char* name, const char* value); const char* icalproperty_get_parameter_as_string(icalproperty* prop, const char* name); void icalproperty_remove_parameter(icalproperty* prop, icalparameter_kind kind); void icalproperty_remove_parameter_by_kind(icalproperty* prop, icalparameter_kind kind); void icalproperty_remove_parameter_by_name(icalproperty* prop, const char *name); void icalproperty_remove_parameter_by_ref(icalproperty* prop, icalparameter *param); int icalproperty_count_parameters(const icalproperty* prop); icalparameter* icalproperty_get_first_parameter(icalproperty* prop, icalparameter_kind kind); icalparameter* icalproperty_get_next_parameter(icalproperty* prop, icalparameter_kind kind); void icalproperty_set_value(icalproperty* prop, icalvalue* value); void icalproperty_set_value_from_string(icalproperty* prop,const char* value, const char* kind); icalvalue* icalproperty_get_value(const icalproperty* prop); const char* icalproperty_get_value_as_string(const icalproperty* prop); void icalproperty_set_x_name(icalproperty* prop, const char* name); const char* icalproperty_get_x_name(icalproperty* prop); const char* icalproperty_get_property_name (const icalproperty* prop); icalvalue_kind icalparameter_value_to_value_kind(icalparameter_value value); icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind); icalproperty_kind icalproperty_value_kind_to_kind(icalvalue_kind kind); const char* icalproperty_kind_to_string(icalproperty_kind kind); icalproperty_kind icalproperty_string_to_kind(const char* string); int icalproperty_kind_is_valid(const icalproperty_kind kind); icalproperty_method icalproperty_string_to_method(const char* str); const char* icalproperty_method_to_string(icalproperty_method method); const char* icalproperty_enum_to_string(int e); int icalproperty_string_to_enum(const char* str); int icalproperty_kind_and_string_to_enum(const int kind, const char* str); const char* icalproperty_status_to_string(icalproperty_status); icalproperty_status icalproperty_string_to_status(const char* string); int icalproperty_enum_belongs_to_property(icalproperty_kind kind, int e); # 32 "icalproperty.c" 2 # 1 "icalcomponent.h" 1 # 30 "icalcomponent.h" # 1 "pvl.h" 1 # 13 "pvl.h" typedef struct pvl_list_t* pvl_list; typedef struct pvl_elem_t* pvl_elem; typedef struct pvl_elem_t { int MAGIC; void *d; struct pvl_elem_t *next; struct pvl_elem_t *prior; } pvl_elem_t; # 37 "pvl.h" extern int pvl_elem_count; extern int pvl_list_count; pvl_elem pvl_new_element(void* d, pvl_elem next,pvl_elem prior); pvl_list pvl_newlist(void); void pvl_free(pvl_list); void pvl_unshift(pvl_list l,void *d); void* pvl_shift(pvl_list l); pvl_elem pvl_head(pvl_list); void pvl_push(pvl_list l,void *d); void* pvl_pop(pvl_list l); pvl_elem pvl_tail(pvl_list); typedef int (*pvl_comparef)(void* a, void* b); void pvl_insert_ordered(pvl_list l,pvl_comparef f,void *d); void pvl_insert_after(pvl_list l,pvl_elem e,void *d); void pvl_insert_before(pvl_list l,pvl_elem e,void *d); void* pvl_remove(pvl_list,pvl_elem); void pvl_clear(pvl_list); int pvl_count(pvl_list); pvl_elem pvl_next(pvl_elem e); pvl_elem pvl_prior(pvl_elem e); void* pvl_data(pvl_elem); typedef int (*pvl_findf)(void* a, void* b); pvl_elem pvl_find(pvl_list l,pvl_findf f,void* v); pvl_elem pvl_find_next(pvl_list l,pvl_findf f,void* v); typedef void (*pvl_applyf)(void* a, void* b); void pvl_apply(pvl_list l,pvl_applyf f, void *v); # 31 "icalcomponent.h" 2 typedef struct icalcomponent_impl icalcomponent; # 45 "icalcomponent.h" typedef struct icalcompiter { icalcomponent_kind kind; pvl_elem iter; } icalcompiter; icalcomponent* icalcomponent_new(icalcomponent_kind kind); icalcomponent* icalcomponent_new_clone(icalcomponent* component); icalcomponent* icalcomponent_new_from_string(char* str); icalcomponent* icalcomponent_vanew(icalcomponent_kind kind, ...); void icalcomponent_free(icalcomponent* component); char* icalcomponent_as_ical_string(icalcomponent* component); int icalcomponent_is_valid(icalcomponent* component); icalcomponent_kind icalcomponent_isa(const icalcomponent* component); int icalcomponent_isa_component (void* component); void icalcomponent_add_property(icalcomponent* component, icalproperty* property); void icalcomponent_remove_property(icalcomponent* component, icalproperty* property); int icalcomponent_count_properties(icalcomponent* component, icalproperty_kind kind); icalproperty* icalcomponent_get_current_property(icalcomponent* component); icalproperty* icalcomponent_get_first_property(icalcomponent* component, icalproperty_kind kind); icalproperty* icalcomponent_get_next_property(icalcomponent* component, icalproperty_kind kind); # 96 "icalcomponent.h" icalcomponent* icalcomponent_get_inner(icalcomponent* comp); void icalcomponent_add_component(icalcomponent* parent, icalcomponent* child); void icalcomponent_remove_component(icalcomponent* parent, icalcomponent* child); int icalcomponent_count_components(icalcomponent* component, icalcomponent_kind kind); void icalcomponent_merge_component(icalcomponent* comp, icalcomponent* comp_to_merge); # 123 "icalcomponent.h" icalcomponent* icalcomponent_get_current_component (icalcomponent* component); icalcomponent* icalcomponent_get_first_component(icalcomponent* component, icalcomponent_kind kind); icalcomponent* icalcomponent_get_next_component(icalcomponent* component, icalcomponent_kind kind); icalcompiter icalcomponent_begin_component(icalcomponent* component, icalcomponent_kind kind); icalcompiter icalcomponent_end_component(icalcomponent* component, icalcomponent_kind kind); icalcomponent* icalcompiter_next(icalcompiter* i); icalcomponent* icalcompiter_prior(icalcompiter* i); icalcomponent* icalcompiter_deref(icalcompiter* i); int icalcomponent_check_restrictions(icalcomponent* comp); int icalcomponent_count_errors(icalcomponent* component); void icalcomponent_strip_errors(icalcomponent* component); void icalcomponent_convert_errors(icalcomponent* component); icalcomponent* icalcomponent_get_parent(icalcomponent* component); void icalcomponent_set_parent(icalcomponent* component, icalcomponent* parent); int icalcomponent_kind_is_valid(const icalcomponent_kind kind); icalcomponent_kind icalcomponent_string_to_kind(const char* string); const char* icalcomponent_kind_to_string(icalcomponent_kind kind); # 178 "icalcomponent.h" icalcomponent* icalcomponent_get_first_real_component(icalcomponent *c); struct icaltime_span icalcomponent_get_span(icalcomponent* comp); void icalcomponent_set_dtstart(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_dtstart(icalcomponent* comp); # 199 "icalcomponent.h" struct icaltimetype icalcomponent_get_dtend(icalcomponent* comp); void icalcomponent_set_dtend(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_due(icalcomponent* comp); void icalcomponent_set_due(icalcomponent* comp, struct icaltimetype v); void icalcomponent_set_duration(icalcomponent* comp, struct icaldurationtype v); struct icaldurationtype icalcomponent_get_duration(icalcomponent* comp); void icalcomponent_set_method(icalcomponent* comp, icalproperty_method method); icalproperty_method icalcomponent_get_method(icalcomponent* comp); struct icaltimetype icalcomponent_get_dtstamp(icalcomponent* comp); void icalcomponent_set_dtstamp(icalcomponent* comp, struct icaltimetype v); void icalcomponent_set_summary(icalcomponent* comp, const char* v); const char* icalcomponent_get_summary(icalcomponent* comp); void icalcomponent_set_comment(icalcomponent* comp, const char* v); const char* icalcomponent_get_comment(icalcomponent* comp); void icalcomponent_set_uid(icalcomponent* comp, const char* v); const char* icalcomponent_get_uid(icalcomponent* comp); void icalcomponent_set_relcalid(icalcomponent* comp, const char* v); const char* icalcomponent_get_relcalid(icalcomponent* comp); void icalcomponent_set_recurrenceid(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_recurrenceid(icalcomponent* comp); void icalcomponent_set_description(icalcomponent* comp, const char* v); const char* icalcomponent_get_description(icalcomponent* comp); void icalcomponent_set_location(icalcomponent* comp, const char* v); const char* icalcomponent_get_location(icalcomponent* comp); void icalcomponent_set_sequence(icalcomponent* comp, int v); int icalcomponent_get_sequence(icalcomponent* comp); void icalcomponent_set_status(icalcomponent* comp, enum icalproperty_status v); enum icalproperty_status icalcomponent_get_status(icalcomponent* comp); void icalcomponent_foreach_tzid(icalcomponent* comp, void (*callback)(icalparameter *param, void *data), void *callback_data); icaltimezone* icalcomponent_get_timezone(icalcomponent* comp, const char *tzid); int icalproperty_recurrence_is_excluded(icalcomponent *comp, struct icaltimetype *dtstart, struct icaltimetype *recurtime); void icalcomponent_foreach_recurrence(icalcomponent* comp, struct icaltimetype start, struct icaltimetype end, void (*callback)(icalcomponent *comp, struct icaltime_span *span, void *data), void *callback_data); icalcomponent* icalcomponent_new_vcalendar(); icalcomponent* icalcomponent_new_vevent(); icalcomponent* icalcomponent_new_vtodo(); icalcomponent* icalcomponent_new_vjournal(); icalcomponent* icalcomponent_new_valarm(); icalcomponent* icalcomponent_new_vfreebusy(); icalcomponent* icalcomponent_new_vtimezone(); icalcomponent* icalcomponent_new_xstandard(); icalcomponent* icalcomponent_new_xdaylight(); icalcomponent* icalcomponent_new_vagenda(); icalcomponent* icalcomponent_new_vquery(); # 34 "icalproperty.c" 2 # 1 "icalerror.h" 1 # 30 "icalerror.h" # 1 "/usr/include/assert.h" 1 3 4 # 31 "icalerror.h" 2 # 1 "/usr/include/stdio.h" 1 3 4 # 30 "/usr/include/stdio.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 35 "/usr/include/stdio.h" 2 3 4 # 44 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE FILE; # 62 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE __FILE; # 72 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/libio.h" 1 3 4 # 32 "/usr/include/libio.h" 3 4 # 1 "/usr/include/_G_config.h" 1 3 4 # 14 "/usr/include/_G_config.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef long int wchar_t; # 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef unsigned int wint_t; # 15 "/usr/include/_G_config.h" 2 3 4 # 24 "/usr/include/_G_config.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 48 "/usr/include/wchar.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 49 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 51 "/usr/include/wchar.h" 2 3 4 # 76 "/usr/include/wchar.h" 3 4 typedef struct { int __count; union { wint_t __wch; char __wchb[4]; } __value; } __mbstate_t; # 25 "/usr/include/_G_config.h" 2 3 4 typedef struct { __off_t __pos; __mbstate_t __state; } _G_fpos_t; typedef struct { __off64_t __pos; __mbstate_t __state; } _G_fpos64_t; # 44 "/usr/include/_G_config.h" 3 4 # 1 "/usr/include/gconv.h" 1 3 4 # 28 "/usr/include/gconv.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 48 "/usr/include/wchar.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 49 "/usr/include/wchar.h" 2 3 4 # 29 "/usr/include/gconv.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 32 "/usr/include/gconv.h" 2 3 4 enum { __GCONV_OK = 0, __GCONV_NOCONV, __GCONV_NODB, __GCONV_NOMEM, __GCONV_EMPTY_INPUT, __GCONV_FULL_OUTPUT, __GCONV_ILLEGAL_INPUT, __GCONV_INCOMPLETE_INPUT, __GCONV_ILLEGAL_DESCRIPTOR, __GCONV_INTERNAL_ERROR }; enum { __GCONV_IS_LAST = 0x0001, __GCONV_IGNORE_ERRORS = 0x0002 }; struct __gconv_step; struct __gconv_step_data; struct __gconv_loaded_object; struct __gconv_trans_data; typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, __const unsigned char **, __const unsigned char *, unsigned char **, size_t *, int, int); typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); typedef int (*__gconv_init_fct) (struct __gconv_step *); typedef void (*__gconv_end_fct) (struct __gconv_step *); typedef int (*__gconv_trans_fct) (struct __gconv_step *, struct __gconv_step_data *, void *, __const unsigned char *, __const unsigned char **, __const unsigned char *, unsigned char **, size_t *); typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, __const unsigned char *, unsigned char *, unsigned char *); typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, size_t *); typedef int (*__gconv_trans_init_fct) (void **, const char *); typedef void (*__gconv_trans_end_fct) (void *); struct __gconv_trans_data { __gconv_trans_fct __trans_fct; __gconv_trans_context_fct __trans_context_fct; __gconv_trans_end_fct __trans_end_fct; void *__data; struct __gconv_trans_data *__next; }; struct __gconv_step { struct __gconv_loaded_object *__shlib_handle; __const char *__modname; int __counter; char *__from_name; char *__to_name; __gconv_fct __fct; __gconv_btowc_fct __btowc_fct; __gconv_init_fct __init_fct; __gconv_end_fct __end_fct; int __min_needed_from; int __max_needed_from; int __min_needed_to; int __max_needed_to; int __stateful; void *__data; }; struct __gconv_step_data { unsigned char *__outbuf; unsigned char *__outbufend; int __flags; int __invocation_counter; int __internal_use; __mbstate_t *__statep; __mbstate_t __state; struct __gconv_trans_data *__trans; }; typedef struct __gconv_info { size_t __nsteps; struct __gconv_step *__steps; __extension__ struct __gconv_step_data __data []; } *__gconv_t; # 45 "/usr/include/_G_config.h" 2 3 4 typedef union { struct __gconv_info __cd; struct { struct __gconv_info __cd; struct __gconv_step_data __data; } __combined; } _G_iconv_t; typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); # 33 "/usr/include/libio.h" 2 3 4 # 166 "/usr/include/libio.h" 3 4 struct _IO_jump_t; struct _IO_FILE; # 176 "/usr/include/libio.h" 3 4 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 199 "/usr/include/libio.h" 3 4 }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; # 267 "/usr/include/libio.h" 3 4 struct _IO_FILE { int _flags; char* _IO_read_ptr; char* _IO_read_end; char* _IO_read_base; char* _IO_write_base; char* _IO_write_ptr; char* _IO_write_end; char* _IO_buf_base; char* _IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _flags2; __off_t _old_offset; unsigned short _cur_column; signed char _vtable_offset; char _shortbuf[1]; _IO_lock_t *_lock; # 315 "/usr/include/libio.h" 3 4 __off64_t _offset; # 324 "/usr/include/libio.h" 3 4 void *__pad1; void *__pad2; void *__pad3; void *__pad4; size_t __pad5; int _mode; char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; }; typedef struct _IO_FILE _IO_FILE; struct _IO_FILE_plus; extern struct _IO_FILE_plus _IO_2_1_stdin_; extern struct _IO_FILE_plus _IO_2_1_stdout_; extern struct _IO_FILE_plus _IO_2_1_stderr_; # 360 "/usr/include/libio.h" 3 4 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, size_t __n); typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); typedef int __io_close_fn (void *__cookie); # 412 "/usr/include/libio.h" 3 4 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__)); extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__)); # 450 "/usr/include/libio.h" 3 4 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); # 480 "/usr/include/libio.h" 3 4 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, __gnuc_va_list, int *__restrict); extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, __gnuc_va_list); extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__)); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__)); extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__)); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__)); extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); # 73 "/usr/include/stdio.h" 2 3 4 # 86 "/usr/include/stdio.h" 3 4 typedef _G_fpos64_t fpos_t; # 138 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 # 139 "/usr/include/stdio.h" 2 3 4 extern struct _IO_FILE *stdin; extern struct _IO_FILE *stdout; extern struct _IO_FILE *stderr; extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); # 172 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64"); # 183 "/usr/include/stdio.h" 3 4 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)); extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)); # 201 "/usr/include/stdio.h" 3 4 extern char *tempnam (__const char *__dir, __const char *__pfx) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); extern int fclose (FILE *__stream); extern int fflush (FILE *__stream); # 226 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 240 "/usr/include/stdio.h" 3 4 # 257 "/usr/include/stdio.h" 3 4 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64"); extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64"); # 278 "/usr/include/stdio.h" 3 4 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)); # 304 "/usr/include/stdio.h" 3 4 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) __attribute__ ((__nothrow__)); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) __attribute__ ((__nothrow__)); extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...); extern int printf (__const char *__restrict __format, ...); extern int sprintf (char *__restrict __s, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg); extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); extern int vsprintf (char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)); extern int snprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); # 398 "/usr/include/stdio.h" 3 4 extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) ; extern int scanf (__const char *__restrict __format, ...) ; extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); # 440 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); # 464 "/usr/include/stdio.h" 3 4 extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 475 "/usr/include/stdio.h" 3 4 extern int fgetc_unlocked (FILE *__stream); extern int fputc (int __c, FILE *__stream); extern int putc (int __c, FILE *__stream); extern int putchar (int __c); # 508 "/usr/include/stdio.h" 3 4 extern int fputc_unlocked (int __c, FILE *__stream); extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream); extern int putw (int __w, FILE *__stream); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ; extern char *gets (char *__s) ; # 589 "/usr/include/stdio.h" 3 4 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); extern int puts (__const char *__s); extern int ungetc (int __c, FILE *__stream); extern size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s) ; # 642 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern int fseek (FILE *__stream, long int __off, int __whence); extern long int ftell (FILE *__stream) ; extern void rewind (FILE *__stream); # 686 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); # 711 "/usr/include/stdio.h" 3 4 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); # 729 "/usr/include/stdio.h" 3 4 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void perror (__const char *__s); # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 # 27 "/usr/include/bits/sys_errlist.h" 3 4 extern int sys_nerr; extern __const char *__const sys_errlist[]; # 759 "/usr/include/stdio.h" 2 3 4 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; # 778 "/usr/include/stdio.h" 3 4 extern FILE *popen (__const char *__command, __const char *__modes) ; extern int pclose (FILE *__stream); extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); extern char *cuserid (char *__s); # 818 "/usr/include/stdio.h" 3 4 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); # 1 "/usr/include/getopt.h" 1 3 4 # 59 "/usr/include/getopt.h" 3 4 extern char *optarg; # 73 "/usr/include/getopt.h" 3 4 extern int optind; extern int opterr; extern int optopt; # 152 "/usr/include/getopt.h" 3 4 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __attribute__ ((__nothrow__)); # 834 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/bits/stdio.h" 1 3 4 # 33 "/usr/include/bits/stdio.h" 3 4 extern __inline int vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } extern __inline int getchar (void) { return _IO_getc (stdin); } extern __inline int getc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline int getchar_unlocked (void) { return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); } extern __inline int putchar (int __c) { return _IO_putc (__c, stdout); } extern __inline int fputc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline int putc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline int putchar_unlocked (int __c) { return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); } # 111 "/usr/include/bits/stdio.h" 3 4 extern __inline int __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x10) != 0); } extern __inline int __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x20) != 0); } # 840 "/usr/include/stdio.h" 2 3 4 # 848 "/usr/include/stdio.h" 3 4 # 32 "icalerror.h" 2 # 1 "../../../../config.h" 1 # 368 "../../../../config.h" unsigned long strlcat(char*, const char*, unsigned long); # 380 "../../../../config.h" unsigned long strlcpy(char*, const char*, unsigned long); # 36 "icalerror.h" 2 # 44 "icalerror.h" void icalerror_stop_here(void); void icalerror_crash_here(void); typedef enum icalerrorenum { ICAL_NO_ERROR, ICAL_BADARG_ERROR, ICAL_NEWFAILED_ERROR, ICAL_ALLOCATION_ERROR, ICAL_MALFORMEDDATA_ERROR, ICAL_PARSE_ERROR, ICAL_INTERNAL_ERROR, ICAL_FILE_ERROR, ICAL_USAGE_ERROR, ICAL_UNIMPLEMENTED_ERROR, ICAL_UNKNOWN_ERROR } icalerrorenum; icalerrorenum * icalerrno_return(void); extern int icalerror_errors_are_fatal; # 82 "icalerror.h" void icalerror_clear_errno(void); void _icalerror_set_errno(icalerrorenum); typedef enum icalerrorstate { ICAL_ERROR_FATAL, ICAL_ERROR_NONFATAL, ICAL_ERROR_DEFAULT, ICAL_ERROR_UNKNOWN } icalerrorstate ; char* icalerror_strerror(icalerrorenum e); char* icalerror_perror(); void icalerror_set_error_state( icalerrorenum error, icalerrorstate); icalerrorstate icalerror_get_error_state( icalerrorenum error); # 108 "icalerror.h" void icalerror_set_errno(icalerrorenum x); # 153 "icalerror.h" icalerrorstate icalerror_supress(const char* error); void icalerror_restore(const char* error, icalerrorstate es); # 37 "icalproperty.c" 2 # 1 "icalmemory.h" 1 # 30 "icalmemory.h" # 1 "/usr/include/sys/types.h" 1 3 4 # 29 "/usr/include/sys/types.h" 3 4 typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino64_t ino_t; # 62 "/usr/include/sys/types.h" 3 4 typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off64_t off_t; # 100 "/usr/include/sys/types.h" 3 4 typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 137 "/usr/include/sys/types.h" 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 148 "/usr/include/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 195 "/usr/include/sys/types.h" 3 4 typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); # 217 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 37 "/usr/include/endian.h" 3 4 # 1 "/usr/include/bits/endian.h" 1 3 4 # 38 "/usr/include/endian.h" 2 3 4 # 218 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/select.h" 1 3 4 # 31 "/usr/include/sys/select.h" 3 4 # 1 "/usr/include/bits/select.h" 1 3 4 # 32 "/usr/include/sys/select.h" 2 3 4 # 1 "/usr/include/bits/sigset.h" 1 3 4 # 23 "/usr/include/bits/sigset.h" 3 4 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 35 "/usr/include/sys/select.h" 2 3 4 typedef __sigset_t sigset_t; # 1 "/usr/include/bits/time.h" 1 3 4 # 69 "/usr/include/bits/time.h" 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 47 "/usr/include/sys/select.h" 2 3 4 # 55 "/usr/include/sys/select.h" 3 4 typedef long int __fd_mask; # 67 "/usr/include/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 99 "/usr/include/sys/select.h" 3 4 # 109 "/usr/include/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 128 "/usr/include/sys/select.h" 3 4 # 221 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/sysmacros.h" 1 3 4 # 29 "/usr/include/sys/sysmacros.h" 3 4 __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } # 224 "/usr/include/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; # 248 "/usr/include/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt_t; typedef __fsblkcnt64_t fsblkcnt_t; typedef __fsfilcnt64_t fsfilcnt_t; # 270 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 # 36 "/usr/include/bits/pthreadtypes.h" 3 4 typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; long int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned int __flags; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; # 271 "/usr/include/sys/types.h" 2 3 4 # 31 "icalmemory.h" 2 void* icalmemory_tmp_buffer(size_t size); char* icalmemory_tmp_copy(const char* str); void icalmemory_add_tmp_buffer(void*); void icalmemory_free_ring(void); void* icalmemory_new_buffer(size_t size); void* icalmemory_resize_buffer(void* buf, size_t size); void icalmemory_free_buffer(void* buf); # 70 "icalmemory.h" void icalmemory_append_string(char** buf, char** pos, size_t* buf_size, const char* string); void icalmemory_append_char(char** buf, char** pos, size_t* buf_size, char ch); char* icalmemory_strdup(const char *s); # 38 "icalproperty.c" 2 # 1 "icalparser.h" 1 # 36 "icalparser.h" typedef struct icalparser_impl icalparser; # 48 "icalparser.h" typedef enum icalparser_state { ICALPARSER_ERROR, ICALPARSER_SUCCESS, ICALPARSER_BEGIN_COMP, ICALPARSER_END_COMP, ICALPARSER_IN_PROGRESS } icalparser_state; icalparser* icalparser_new(void); icalcomponent* icalparser_add_line(icalparser* parser, char* str ); icalcomponent* icalparser_clean(icalparser* parser); icalparser_state icalparser_get_state(icalparser* parser); void icalparser_free(icalparser* parser); # 70 "icalparser.h" icalcomponent* icalparser_parse(icalparser *parser, char* (*line_gen_func)(char *s, size_t size, void *d)); void icalparser_set_gen_data(icalparser* parser, void* data); icalcomponent* icalparser_parse_string(const char* str); icalvalue* icalparser_parse_value(icalvalue_kind kind, const char* str, icalcomponent** errors); char* icalparser_get_line(icalparser* parser, char* (*line_gen_func)(char *s, size_t size, void *d)); char* icalparser_string_line_generator(char *out, size_t buf_size, void *d); # 39 "icalproperty.c" 2 # 1 "/usr/include/string.h" 1 3 4 # 28 "/usr/include/string.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/string.h" 2 3 4 extern void *memcpy (void *__restrict __dest, __const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, __const void *__src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memchr (__const void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 82 "/usr/include/string.h" 3 4 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 130 "/usr/include/string.h" 3 4 extern char *strdup (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 165 "/usr/include/string.h" 3 4 extern char *strchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strrchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 181 "/usr/include/string.h" 3 4 extern size_t strcspn (__const char *__s, __const char *__reject) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strpbrk (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strstr (__const char *__haystack, __const char *__needle) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strtok (char *__restrict __s, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); # 240 "/usr/include/string.h" 3 4 extern size_t strlen (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 254 "/usr/include/string.h" 3 4 extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); # 281 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void bcopy (__const void *__src, void *__dest, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *index (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *rindex (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 325 "/usr/include/string.h" 3 4 extern int strcasecmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 348 "/usr/include/string.h" 3 4 extern char *strsep (char **__restrict __stringp, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 414 "/usr/include/string.h" 3 4 # 1 "/usr/include/bits/string.h" 1 3 4 # 415 "/usr/include/string.h" 2 3 4 # 1 "/usr/include/bits/string2.h" 1 3 4 # 394 "/usr/include/bits/string2.h" 3 4 extern void *__rawmemchr (const void *__s, int __c); # 969 "/usr/include/bits/string2.h" 3 4 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); extern __inline size_t __strcspn_c1 (__const char *__s, int __reject) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject) ++__result; return __result; } extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2); extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2) ++__result; return __result; } extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3); extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2 && __s[__result] != __reject3) ++__result; return __result; } # 1045 "/usr/include/bits/string2.h" 3 4 extern __inline size_t __strspn_c1 (__const char *__s, int __accept); extern __inline size_t __strspn_c1 (__const char *__s, int __accept) { register size_t __result = 0; while (__s[__result] == __accept) ++__result; return __result; } extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2); extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2) ++__result; return __result; } extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2 || __s[__result] == __accept3) ++__result; return __result; } # 1121 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, int __accept2); extern __inline char * __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) { while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) ++__s; return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; } extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __inline char * __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) { while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 && *__s != __accept3) ++__s; return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; } # 1173 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); extern __inline char * __strtok_r_1c (char *__s, char __sep, char **__nextp) { char *__result; if (__s == ((void *)0)) __s = *__nextp; while (*__s == __sep) ++__s; __result = ((void *)0); if (*__s != '\0') { __result = __s++; while (*__s != '\0') if (*__s++ == __sep) { __s[-1] = '\0'; break; } *__nextp = __s; } return __result; } # 1205 "/usr/include/bits/string2.h" 3 4 extern char *__strsep_g (char **__stringp, __const char *__delim); # 1223 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strsep_1c (char **__s, char __reject); extern __inline char * __strsep_1c (char **__s, char __reject) { register char *__retval = *__s; if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) *(*__s)++ = '\0'; return __retval; } extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); extern __inline char * __strsep_2c (char **__s, char __reject1, char __reject2) { register char *__retval = *__s; if (__retval != ((void *)0)) { register char *__cp = __retval; while (1) { if (*__cp == '\0') { __cp = ((void *)0); break; } if (*__cp == __reject1 || *__cp == __reject2) { *__cp++ = '\0'; break; } ++__cp; } *__s = __cp; } return __retval; } extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3); extern __inline char * __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) { register char *__retval = *__s; if (__retval != ((void *)0)) { register char *__cp = __retval; while (1) { if (*__cp == '\0') { __cp = ((void *)0); break; } if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) { *__cp++ = '\0'; break; } ++__cp; } *__s = __cp; } return __retval; } # 1299 "/usr/include/bits/string2.h" 3 4 # 1 "/usr/include/stdlib.h" 1 3 4 # 33 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/stdlib.h" 2 3 4 # 587 "/usr/include/stdlib.h" 3 4 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *calloc (size_t __nmemb, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; # 978 "/usr/include/stdlib.h" 3 4 # 1300 "/usr/include/bits/string2.h" 2 3 4 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 1323 "/usr/include/bits/string2.h" 3 4 extern char *__strndup (__const char *__string, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 418 "/usr/include/string.h" 2 3 4 # 426 "/usr/include/string.h" 3 4 # 41 "icalproperty.c" 2 # 1 "/usr/include/assert.h" 1 3 4 # 42 "icalproperty.c" 2 # 1 "/usr/include/stdlib.h" 1 3 4 # 33 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/waitflags.h" 1 3 4 # 43 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/waitstatus.h" 1 3 4 # 67 "/usr/include/bits/waitstatus.h" 3 4 union wait { int w_status; struct { unsigned int __w_termsig:7; unsigned int __w_coredump:1; unsigned int __w_retcode:8; unsigned int:16; } __wait_terminated; struct { unsigned int __w_stopval:8; unsigned int __w_stopsig:8; unsigned int:16; } __wait_stopped; }; # 44 "/usr/include/stdlib.h" 2 3 4 # 68 "/usr/include/stdlib.h" 3 4 typedef union { union wait *__uptr; int *__iptr; } __WAIT_STATUS __attribute__ ((__transparent_union__)); # 96 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; # 140 "/usr/include/stdlib.h" 3 4 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; extern double atof (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 182 "/usr/include/stdlib.h" 3 4 extern long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtoull (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 279 "/usr/include/stdlib.h" 3 4 extern double __strtod_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern float __strtof_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long double __strtold_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long int __strtol_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int __strtoll_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int __strtoull_internal (__const char * __restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern __inline double __attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr) { return __strtod_internal (__nptr, __endptr, 0); } extern __inline long int __attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtol_internal (__nptr, __endptr, __base, 0); } extern __inline unsigned long int __attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoul_internal (__nptr, __endptr, __base, 0); } # 364 "/usr/include/stdlib.h" 3 4 __extension__ extern __inline long long int __attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoull_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline long long int __attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) { return __strtoull_internal (__nptr, __endptr, __base, 0); } extern __inline double __attribute__ ((__nothrow__)) atof (__const char *__nptr) { return strtod (__nptr, (char **) ((void *)0)); } extern __inline int __attribute__ ((__nothrow__)) atoi (__const char *__nptr) { return (int) strtol (__nptr, (char **) ((void *)0), 10); } extern __inline long int __attribute__ ((__nothrow__)) atol (__const char *__nptr) { return strtol (__nptr, (char **) ((void *)0), 10); } __extension__ extern __inline long long int __attribute__ ((__nothrow__)) atoll (__const char *__nptr) { return strtoll (__nptr, (char **) ((void *)0), 10); } # 429 "/usr/include/stdlib.h" 3 4 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; extern long int a64l (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; # 445 "/usr/include/stdlib.h" 3 4 extern long int random (void) __attribute__ ((__nothrow__)); extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) __attribute__ ((__nothrow__)); extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); extern double drand48 (void) __attribute__ ((__nothrow__)); extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) __attribute__ ((__nothrow__)); extern long int nrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) __attribute__ ((__nothrow__)); extern long int jrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 597 "/usr/include/stdlib.h" 3 4 extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) __attribute__ ((__nothrow__)); extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); # 1 "/usr/include/alloca.h" 1 3 4 # 25 "/usr/include/alloca.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 26 "/usr/include/alloca.h" 2 3 4 extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); # 613 "/usr/include/stdlib.h" 2 3 4 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; # 626 "/usr/include/stdlib.h" 3 4 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); # 658 "/usr/include/stdlib.h" 3 4 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int setenv (__const char *__name, __const char *__value, int __replace) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); extern int clearenv (void) __attribute__ ((__nothrow__)); # 698 "/usr/include/stdlib.h" 3 4 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 712 "/usr/include/stdlib.h" 3 4 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") __attribute__ ((__nonnull__ (1))) ; # 729 "/usr/include/stdlib.h" 3 4 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int system (__const char *__command) ; # 757 "/usr/include/stdlib.h" 3 4 extern char *realpath (__const char *__restrict __name, char *__restrict __resolved) __attribute__ ((__nothrow__)) ; typedef int (*__compar_fn_t) (__const void *, __const void *); extern void *bsearch (__const void *__key, __const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) ; extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern div_t div (int __numer, int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern ldiv_t ldiv (long int __numer, long int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; # 822 "/usr/include/stdlib.h" 3 4 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *gcvt (double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qgcvt (long double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; extern int mbtowc (wchar_t *__restrict __pwc, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; extern size_t mbstowcs (wchar_t *__restrict __pwcs, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); extern size_t wcstombs (char *__restrict __s, __const wchar_t *__restrict __pwcs, size_t __n) __attribute__ ((__nothrow__)); # 910 "/usr/include/stdlib.h" 3 4 extern int getsubopt (char **__restrict __optionp, char *__const *__restrict __tokens, char **__restrict __valuep) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 935 "/usr/include/stdlib.h" 3 4 extern int grantpt (int __fd) __attribute__ ((__nothrow__)); extern int unlockpt (int __fd) __attribute__ ((__nothrow__)); extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ; # 962 "/usr/include/stdlib.h" 3 4 extern int getloadavg (double __loadavg[], int __nelem) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 978 "/usr/include/stdlib.h" 3 4 # 43 "icalproperty.c" 2 # 1 "/usr/include/errno.h" 1 3 4 # 32 "/usr/include/errno.h" 3 4 # 1 "/usr/include/bits/errno.h" 1 3 4 # 25 "/usr/include/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4 # 1 "/usr/include/asm/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 # 5 "/usr/include/asm-generic/errno.h" 2 3 4 # 5 "/usr/include/asm/errno.h" 2 3 4 # 5 "/usr/include/linux/errno.h" 2 3 4 # 26 "/usr/include/bits/errno.h" 2 3 4 # 43 "/usr/include/bits/errno.h" 3 4 extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 37 "/usr/include/errno.h" 2 3 4 # 59 "/usr/include/errno.h" 3 4 # 44 "icalproperty.c" 2 # 53 "icalproperty.c" void icalvalue_set_parent(icalvalue* value, icalproperty* property); icalproperty* icalvalue_get_parent(icalvalue* value); void icalparameter_set_parent(icalparameter* param, icalproperty* property); icalproperty* icalparameter_get_parent(icalparameter* value); void icalproperty_set_x_name(icalproperty* prop, const char* name); struct icalproperty_impl { char id[5]; icalproperty_kind kind; char* x_name; pvl_list parameters; pvl_elem parameter_iterator; icalvalue* value; icalcomponent *parent; }; void icalproperty_add_parameters(icalproperty* prop, va_list args) { void* vp; while((vp = __builtin_va_arg(args,void*)) != 0) { if (icalvalue_isa_value(vp) != 0 ){ } else if (icalparameter_isa_parameter(vp) != 0 ){ icalproperty_add_parameter((icalproperty*)prop, (icalparameter*)vp); } else { icalerror_set_errno(ICAL_BADARG_ERROR); } } } icalproperty* icalproperty_new_impl(icalproperty_kind kind) { icalproperty* prop; if (!icalproperty_kind_is_valid(kind)) return ((void *)0); if ( ( prop = (icalproperty*) malloc(sizeof(icalproperty))) == 0) { icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } strcpy(prop->id,"prop"); prop->kind = kind; prop->parameters = pvl_newlist(); prop->parameter_iterator = 0; prop->value = 0; prop->x_name = 0; prop->parent = 0; return prop; } icalproperty* icalproperty_new (icalproperty_kind kind) { if (kind == ICAL_NO_PROPERTY){ return 0; } return (icalproperty*)icalproperty_new_impl(kind); } icalproperty* icalproperty_new_clone(icalproperty* old) { icalproperty *new = icalproperty_new_impl(old->kind); pvl_elem p; if(!((old!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if(!((new!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (old->value !=0) { new->value = icalvalue_new_clone(old->value); } if (old->x_name != 0) { new->x_name = icalmemory_strdup(old->x_name); if (new->x_name == 0) { icalproperty_free(new); icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } } for(p=pvl_head(old->parameters);p != 0; p = pvl_next(p)){ icalparameter *param = icalparameter_new_clone(pvl_data(p)); if (param == 0){ icalproperty_free(new); icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } pvl_push(new->parameters,param); } return new; } icalproperty* icalproperty_new_from_string(const char* str) { size_t buf_size = 1024; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; icalproperty *prop; icalcomponent *comp; int errors = 0; if(!((str!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; icalmemory_append_string(&buf, &buf_ptr, &buf_size, "BEGIN:VCALENDAR\n"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, str); icalmemory_append_string(&buf, &buf_ptr, &buf_size, "\n"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, "END:VCALENDAR\n"); comp = icalparser_parse_string(buf); if(comp == 0){ icalerror_set_errno(ICAL_PARSE_ERROR); return 0; } errors = icalcomponent_count_errors(comp); prop = icalcomponent_get_first_property(comp,ICAL_ANY_PROPERTY); icalcomponent_remove_property(comp,prop); icalcomponent_free(comp); free(buf); if(errors > 0){ icalproperty_free(prop); return 0; } else { return prop; } } void icalproperty_free (icalproperty* p) { icalparameter* param; if(!((p!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(p->parent !=0){ return; } if (p->value != 0){ icalvalue_set_parent(p->value,0); icalvalue_free(p->value); } while( (param = pvl_pop(p->parameters)) != 0){ icalparameter_free(param); } pvl_free(p->parameters); if (p->x_name != 0) { free(p->x_name); } p->kind = ICAL_NO_PROPERTY; p->parameters = 0; p->parameter_iterator = 0; p->value = 0; p->x_name = 0; p->id[0] = 'X'; free(p); } static char* get_next_line_start (char *line_start, int chars_left) { char *pos; if (chars_left < 75) { return line_start + chars_left; } pos = line_start + 75 - 2; while (pos > line_start) { if (*pos == ';' || *pos == ':' || *pos == ' ') { return pos + 1; } pos--; } pos = line_start + 75 - 1; while (pos > line_start) { if ((*pos & 128) == 0) return pos; if ((*pos & 192) == 192) return pos; pos--; } return line_start + 75 - 1; } # 315 "icalproperty.c" static char* fold_property_line (char *text) { size_t buf_size; char *buf, *buf_ptr, *line_start, *next_line_start, *out_buf; int len, chars_left, first_line; char ch; len = strlen (text); buf_size = len * 2; buf = icalmemory_new_buffer (buf_size); buf_ptr = buf; line_start = text; chars_left = len; first_line = 1; for (;;) { if (chars_left <= 0) break; next_line_start = get_next_line_start (line_start, chars_left); if (!first_line) { icalmemory_append_string (&buf, &buf_ptr, &buf_size, "\n "); } first_line = 0; ch = *next_line_start; *next_line_start = '\0'; icalmemory_append_string (&buf, &buf_ptr, &buf_size, line_start); *next_line_start = ch; chars_left -= (next_line_start - line_start); line_start = next_line_start; } out_buf = icalmemory_tmp_buffer (strlen (buf) + 1); strcpy (out_buf, buf); icalmemory_free_buffer (buf); return out_buf; } static const char * icalproperty_get_value_kind(icalproperty *prop) { const char* kind_string = 0; icalparameter *orig_val_param = icalproperty_get_first_parameter(prop,ICAL_VALUE_PARAMETER); icalvalue *value = icalproperty_get_value(prop); icalvalue_kind orig_kind = ICAL_NO_VALUE; icalvalue_kind this_kind = ICAL_NO_VALUE; icalvalue_kind default_kind = icalproperty_kind_to_value_kind(prop->kind); if(orig_val_param){ orig_kind = (icalvalue_kind)icalparameter_get_value(orig_val_param); } if(value != 0){ this_kind = icalvalue_isa(value); } if(this_kind == default_kind && orig_kind != ICAL_NO_VALUE){ kind_string = icalvalue_kind_to_string(default_kind); } else if (this_kind != default_kind && this_kind != ICAL_NO_VALUE){ kind_string = icalvalue_kind_to_string(this_kind); } else { } return kind_string; } const char* icalproperty_as_ical_string (icalproperty* prop) { icalparameter *param; const char* property_name = 0; size_t buf_size = 1024; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; icalvalue* value; char *out_buf; const char* kind_string = 0; char newline[] = "\n"; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (prop->kind == ICAL_X_PROPERTY && prop->x_name != 0){ property_name = prop->x_name; } else { property_name = icalproperty_kind_to_string(prop->kind); } if (property_name == 0 ) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",451,"Got a property of an unknown kind.");}; icalmemory_free_buffer(buf); return 0; } icalmemory_append_string(&buf, &buf_ptr, &buf_size, property_name); kind_string = icalproperty_get_value_kind(prop); if(kind_string!=0){ icalmemory_append_string(&buf, &buf_ptr, &buf_size, ";VALUE="); icalmemory_append_string(&buf, &buf_ptr, &buf_size, kind_string); } for(param = icalproperty_get_first_parameter(prop,ICAL_ANY_PARAMETER); param != 0; param = icalproperty_get_next_parameter(prop,ICAL_ANY_PARAMETER)) { icalparameter_kind kind = icalparameter_isa(param); kind_string = icalparameter_as_ical_string(param); if(kind==ICAL_VALUE_PARAMETER){ continue; } if (kind_string == 0 ) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",478,"Got a parameter of unknown kind for the following property");}; {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",480,(property_name) ? property_name : "(NULL)");}; continue; } icalmemory_append_string(&buf, &buf_ptr, &buf_size, ";"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, kind_string); } icalmemory_append_string(&buf, &buf_ptr, &buf_size, ":"); value = icalproperty_get_value(prop); if (value != 0){ const char *str = icalvalue_as_ical_string(value); ; icalmemory_append_string(&buf, &buf_ptr, &buf_size, str); } else { icalmemory_append_string(&buf, &buf_ptr, &buf_size,"ERROR: No Value"); } icalmemory_append_string(&buf, &buf_ptr, &buf_size, newline); out_buf = fold_property_line (buf); icalmemory_free_buffer(buf); return out_buf; } icalproperty_kind icalproperty_isa (icalproperty* p) { if(p != 0){ return p->kind; } return ICAL_NO_PROPERTY; } int icalproperty_isa_property (void* property) { icalproperty *impl = (icalproperty *) property; if(!((property!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (impl->id) && __builtin_constant_p ("prop") && (__s1_len = strlen (impl->id), __s2_len = strlen ("prop"), (!((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) || __s2_len >= 4)) ? __builtin_strcmp (impl->id, "prop") : (__builtin_constant_p (impl->id) && ((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) && (__s1_len = strlen (impl->id), __s1_len < 4) ? (__builtin_constant_p ("prop") && ((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) ? __builtin_strcmp (impl->id, "prop") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("prop"); register int __result = (((__const unsigned char *) (__const char *) (impl->id))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (impl->id))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (impl->id))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (impl->id))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("prop") && ((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) && (__s2_len = strlen ("prop"), __s2_len < 4) ? (__builtin_constant_p (impl->id) && ((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) ? __builtin_strcmp (impl->id, "prop") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (impl->id); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("prop"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("prop"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("prop"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("prop"))[3]); } } __result; }))) : __builtin_strcmp (impl->id, "prop")))); }) == 0) { return 1; } else { return 0; } } void icalproperty_add_parameter (icalproperty* p,icalparameter* parameter) { if(!((p!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; pvl_push(p->parameters, parameter); } void icalproperty_set_parameter (icalproperty* prop,icalparameter* parameter) { icalparameter_kind kind; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_isa(parameter); if (kind != ICAL_X_PARAMETER) icalproperty_remove_parameter_by_kind(prop,kind); else icalproperty_remove_parameter_by_name(prop, icalparameter_get_xname(parameter)); icalproperty_add_parameter(prop,parameter); } void icalproperty_set_parameter_from_string(icalproperty* prop, const char* name, const char* value) { icalparameter_kind kind; icalparameter *param; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((name!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((value!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_string_to_kind(name); if(kind == ICAL_NO_PARAMETER){ icalerror_set_errno(ICAL_BADARG_ERROR); return; } param = icalparameter_new_from_value_string(kind,value); if (param == 0){ icalerror_set_errno(ICAL_BADARG_ERROR); return; } if(kind == ICAL_X_PARAMETER){ icalparameter_set_xname(param, name); } icalproperty_set_parameter(prop,param); } const char* icalproperty_get_parameter_as_string(icalproperty* prop, const char* name) { icalparameter_kind kind; icalparameter *param; char* str; char* pv; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if(!((name!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; kind = icalparameter_string_to_kind(name); if(kind == ICAL_NO_PARAMETER){ return 0; } for(param = icalproperty_get_first_parameter(prop,kind); param != 0; param = icalproperty_get_next_parameter(prop,kind)) { if (kind != ICAL_X_PARAMETER) { break; } if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (icalparameter_get_xname(param)) && __builtin_constant_p (name) && (__s1_len = strlen (icalparameter_get_xname(param)), __s2_len = strlen (name), (!((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__builtin_constant_p (icalparameter_get_xname(param)) && ((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) && (__s1_len = strlen (icalparameter_get_xname(param)), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (icalparameter_get_xname(param)) && ((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (icalparameter_get_xname(param)); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (icalparameter_get_xname(param), name)))); })==0) { break; } } if (param == 0){ return 0; } str = icalparameter_as_ical_string(param); pv = (__extension__ (__builtin_constant_p ('=') && !__builtin_constant_p (str) && ('=') == '\0' ? (char *) __rawmemchr (str, '=') : __builtin_strchr (str, '='))); if(pv == 0){ icalerror_set_errno(ICAL_INTERNAL_ERROR); return 0; } return pv+1; } void icalproperty_remove_parameter(icalproperty* prop, icalparameter_kind kind) { icalproperty_remove_parameter_by_kind(prop, kind); } # 674 "icalproperty.c" void icalproperty_remove_parameter_by_kind(icalproperty* prop, icalparameter_kind kind) { pvl_elem p; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* param = (icalparameter *)pvl_data (p); if (icalparameter_isa(param) == kind) { pvl_remove (prop->parameters, p); icalparameter_free(param); break; } } } # 707 "icalproperty.c" void icalproperty_remove_parameter_by_name(icalproperty* prop, const char *name) { pvl_elem p; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* param = (icalparameter *)pvl_data (p); const char * kind_string; if (icalparameter_isa(param) == ICAL_X_PARAMETER) kind_string = icalparameter_get_xname(param); else kind_string = icalparameter_kind_to_string(icalparameter_isa(param)); if (!kind_string) continue; if (0 == __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (kind_string) && __builtin_constant_p (name) && (__s1_len = strlen (kind_string), __s2_len = strlen (name), (!((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (kind_string, name) : (__builtin_constant_p (kind_string) && ((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) && (__s1_len = strlen (kind_string), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (kind_string, name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (kind_string))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (kind_string))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (kind_string))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (kind_string))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (kind_string) && ((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) ? __builtin_strcmp (kind_string, name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (kind_string); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (kind_string, name)))); })) { pvl_remove (prop->parameters, p); break; } } } # 743 "icalproperty.c" void icalproperty_remove_parameter_by_ref(icalproperty* prop, icalparameter* parameter) { pvl_elem p; icalparameter_kind kind; const char *name; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_isa(parameter); name = icalparameter_get_xname(parameter); for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* p_param = (icalparameter *)pvl_data (p); if (icalparameter_isa(p_param) == kind && (kind != ICAL_X_PARAMETER || !__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (icalparameter_get_xname(p_param)) && __builtin_constant_p (name) && (__s1_len = strlen (icalparameter_get_xname(p_param)), __s2_len = strlen (name), (!((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__builtin_constant_p (icalparameter_get_xname(p_param)) && ((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) && (__s1_len = strlen (icalparameter_get_xname(p_param)), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (icalparameter_get_xname(p_param)) && ((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (icalparameter_get_xname(p_param), name)))); }))) { pvl_remove (prop->parameters, p); icalparameter_free(p_param); break; } } } int icalproperty_count_parameters (const icalproperty* prop) { if(prop != 0){ return pvl_count(prop->parameters); } icalerror_set_errno(ICAL_USAGE_ERROR); return -1; } icalparameter* icalproperty_get_first_parameter(icalproperty* p, icalparameter_kind kind) { if(!((p!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; p->parameter_iterator = pvl_head(p->parameters); if (p->parameter_iterator == 0) { return 0; } for( p->parameter_iterator = pvl_head(p->parameters); p->parameter_iterator !=0; p->parameter_iterator = pvl_next(p->parameter_iterator)){ icalparameter *param = (icalparameter*)pvl_data(p->parameter_iterator); if(icalparameter_isa(param) == kind || kind == ICAL_ANY_PARAMETER){ return param; } } return 0; } icalparameter* icalproperty_get_next_parameter (icalproperty* p, icalparameter_kind kind) { if(!((p!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (p->parameter_iterator == 0) { return 0; } for( p->parameter_iterator = pvl_next(p->parameter_iterator); p->parameter_iterator !=0; p->parameter_iterator = pvl_next(p->parameter_iterator)){ icalparameter *param = (icalparameter*)pvl_data(p->parameter_iterator); if(icalparameter_isa(param) == kind || kind == ICAL_ANY_PARAMETER){ return param; } } return 0; } void icalproperty_set_value (icalproperty* p, icalvalue* value) { if(!((p !=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((value !=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if (p->value != 0){ icalvalue_set_parent(p->value,0); icalvalue_free(p->value); p->value = 0; } p->value = value; icalvalue_set_parent(value,p); } void icalproperty_set_value_from_string(icalproperty* prop,const char* str, const char* type) { icalvalue *oval,*nval; icalvalue_kind kind = ICAL_NO_VALUE; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((str!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((type!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (type) && __builtin_constant_p ("NO") && (__s1_len = strlen (type), __s2_len = strlen ("NO"), (!((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) || __s2_len >= 4)) ? __builtin_strcmp (type, "NO") : (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) && (__s1_len = strlen (type), __s1_len < 4) ? (__builtin_constant_p ("NO") && ((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) ? __builtin_strcmp (type, "NO") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("NO"); register int __result = (((__const unsigned char *) (__const char *) (type))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (type))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("NO") && ((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) && (__s2_len = strlen ("NO"), __s2_len < 4) ? (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) ? __builtin_strcmp (type, "NO") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (type); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("NO"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("NO"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("NO"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("NO"))[3]); } } __result; }))) : __builtin_strcmp (type, "NO")))); })==0){ oval = icalproperty_get_value(prop); if(oval != 0){ kind = icalvalue_isa(oval); } else { kind = icalproperty_kind_to_value_kind(icalproperty_isa(prop)); } } else { kind = icalvalue_string_to_kind(type); } if(kind == ICAL_NO_VALUE){ icalerror_set_errno(ICAL_MALFORMEDDATA_ERROR); return; } nval = icalvalue_new_from_string(kind, str); if(nval == 0){ ((void) (0)); return; } icalproperty_set_value(prop,nval); } icalvalue* icalproperty_get_value(const icalproperty* prop) { if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return prop->value; } const char* icalproperty_get_value_as_string(const icalproperty* prop) { icalvalue *value; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; value = prop->value; return icalvalue_as_ical_string(value); } void icalproperty_set_x_name(icalproperty* prop, const char* name) { if(!((name!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if (prop->x_name != 0) { free(prop->x_name); } prop->x_name = icalmemory_strdup(name); if(prop->x_name == 0){ icalerror_set_errno(ICAL_NEWFAILED_ERROR); } } const char* icalproperty_get_x_name(icalproperty* prop){ if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return prop->x_name; } const char* icalproperty_get_name(const icalproperty* prop) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",943,"icalproperty_get_name() is DEPRECATED, please use icalproperty_get_property_name() instead.");}; return icalproperty_get_property_name(prop); } const char* icalproperty_get_property_name(const icalproperty* prop) { const char* property_name = 0; size_t buf_size = 256; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (prop->kind == ICAL_X_PROPERTY && prop->x_name != 0){ property_name = prop->x_name; } else { property_name = icalproperty_kind_to_string(prop->kind); } if (property_name == 0 ) { icalerror_set_errno(ICAL_MALFORMEDDATA_ERROR); return 0; } else { icalmemory_append_string(&buf, &buf_ptr, &buf_size, property_name); } icalmemory_add_tmp_buffer(buf); return buf; } void icalproperty_set_parent(icalproperty* property, icalcomponent* component) { if(!((property!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; property->parent = component; } icalcomponent* icalproperty_get_parent(const icalproperty* property) { if(!((property!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return property->parent; } checking for KDE... libraries /usr/kde/3.5/lib, headers /usr/kde/3.5/include checking if UIC has KDE plugins available... yes checking for KDE paths... defaults checking for dcopidl... /usr/kde/3.5/bin/dcopidl checking for dcopidl2cpp... /usr/kde/3.5/bin/dcopidl2cpp checking for mcopidl... /usr/kde/3.5/bin/mcopidl checking for artsc-config... /usr/kde/3.5/bin/artsc-config checking for meinproc... /usr/kde/3.5/bin/meinproc checking for kconfig_compiler... /usr/kde/3.5/bin/kconfig_compiler checking for dcopidlng... /usr/kde/3.5/bin/dcopidlng checking for makekdewidgets... /usr/kde/3.5/bin/makekdewidgets checking for xmllint... /usr/bin/xmllint checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/sysctl.h usability... yes checking sys/sysctl.h presence... yes checking for sys/sysctl.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking sys/limits.h usability... no checking sys/limits.h presence... no checking for sys/limits.h... no checking err.h usability... yes checking err.h presence... yes checking for err.h... yes checking sys/cdefs.h usability... yes checking sys/cdefs.h presence... yes checking for sys/cdefs.h... yes checking for setenv... yes checking if setenv needs custom prototype... no checking for unsetenv... yes checking if unsetenv needs custom prototype... no checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for Qt docs... NO checking for dot... not found checking for doxygen... not found checking bluetooth/bluetooth.h usability... no checking bluetooth/bluetooth.h presence... no checking for bluetooth/bluetooth.h... no checking for hci_open_dev in -lbluetooth... no checking for XPM... yes checking gnokii.h usability... no checking gnokii.h presence... no checking for gnokii.h... no checking for gn_cfg_read in -lgnokii... no checking for gn_cfg_get in -lgnokii... no checking for sys/cdefs.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking for fcntl.h... (cached) yes checking for unistd.h... (cached) yes checking sysent.h usability... no checking sysent.h presence... no checking for sysent.h... no checking for strings.h... (cached) yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for usleep... yes checking if usleep needs custom prototype... no checking for socket... yes checking for fabsl... no checking for strdup... yes checking for vsnprintf... (cached) yes checking for tzset... yes checking for getdomainname... yes checking if getdomainname needs custom prototype... no checking for gethostname... yes checking if gethostname needs custom prototype... no checking whether byte ordering is bigendian... no checking if res_init needs -lresolv... yes checking for res_init... (cached) yes checking if res_init needs custom prototype... (cached) no checking for timezone variable... yes checking for tm_gmtoff in struct tm... yes checking for stl coping with namespace std... yes checking for bison... bison -y checking for perl5... /usr/bin/perl checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for sys/types.h... (cached) yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking for an ANSI C-conforming const... yes checking for size_t... (cached) yes checking whether struct tm is in sys/time.h or time.h... time.h checking for strdup... (cached) yes checking if doc should be compiled... yes checking if ktnef should be compiled... yes checking if libemailfunctions should be compiled... yes checking if kmail should be compiled... no checking if libkpimidentities should be compiled... no checking if libkcal should be compiled... yes checking if kfile-plugins should be compiled... no checking if kresources should be compiled... no checking if knotes should be compiled... no checking if karm should be compiled... no checking if libkdepim should be compiled... yes checking if kpilot should be compiled... no checking if libkpimexchange should be compiled... no checking if ksync should be compiled... no checking if korganizer should be compiled... no checking if konsolekalendar should be compiled... no checking if kitchensync should be compiled... no checking if kalarm should be compiled... no configure: creating ./config.status fast creating Makefile fast creating doc/Makefile fast creating doc/api/Makefile fast creating ktnef/Makefile fast creating ktnef/lib/Makefile fast creating libemailfunctions/Makefile fast creating libemailfunctions/tests/Makefile fast creating libkcal/Makefile fast creating libkcal/libical/Makefile fast creating libkcal/libical/design-data/Makefile fast creating libkcal/libical/doc/Makefile fast creating libkcal/libical/examples/Makefile fast creating libkcal/libical/scripts/Makefile fast creating libkcal/libical/src/Makefile fast creating libkcal/libical/src/libical/Makefile fast creating libkcal/libical/src/libicalss/Makefile fast creating libkcal/libical/src/test/Makefile fast creating libkcal/libical/test-data/Makefile fast creating libkcal/libical/zoneinfo/Makefile fast creating libkcal/libical/zoneinfo/Africa/Makefile fast creating libkcal/libical/zoneinfo/America/Makefile fast creating libkcal/libical/zoneinfo/America/Indiana/Makefile fast creating libkcal/libical/zoneinfo/America/Kentucky/Makefile fast creating libkcal/libical/zoneinfo/America/North_Dakota/Makefile fast creating libkcal/libical/zoneinfo/Antarctica/Makefile fast creating libkcal/libical/zoneinfo/Arctic/Makefile fast creating libkcal/libical/zoneinfo/Asia/Makefile fast creating libkcal/libical/zoneinfo/Atlantic/Makefile fast creating libkcal/libical/zoneinfo/Australia/Makefile fast creating libkcal/libical/zoneinfo/Europe/Makefile fast creating libkcal/libical/zoneinfo/Indian/Makefile fast creating libkcal/libical/zoneinfo/Pacific/Makefile fast creating libkcal/tests/Makefile fast creating libkcal/tests/data/Makefile fast creating libkcal/tests/data/Compat/Makefile fast creating libkcal/tests/data/RecurrenceRule/Makefile fast creating libkcal/tests/data/RecurrenceRule/ConnectDaily/Makefile fast creating libkcal/tests/data/RecurrenceRule/KAlarm_3.4/Makefile fast creating libkcal/tests/data/RecurrenceRule/KOrganizer_3.4/Makefile fast creating libkcal/tests/data/RecurrenceRule/LibICal/Makefile fast creating libkcal/tests/data/RecurrenceRule/RFC2445/Makefile fast creating libkcal/tests/data/RecurrenceRule/UntilInUTC/Makefile fast creating libkcal/tests/data/RecurrenceRule/unsorted/Makefile fast creating libkcal/tests/data/vCalendar/Makefile fast creating libkcal/versit/Makefile fast creating libkdepim/Makefile config.pl: fast created 46 file(s). config.status: creating config.h config.status: executing depfiles commands Good - your configure finished. Start make now make all-recursive make[1]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3' Making all in doc make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' Making all in api make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc/api' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc/api' make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/doc' Making all in ktnef make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' Making all in lib make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef/lib' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef/lib' make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/ktnef' Making all in libemailfunctions make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libemailfunctions' /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o email.lo `test -f 'email.cpp' || echo './'`email.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o idmapper.lo `test -f 'idmapper.cpp' || echo './'`idmapper.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kasciistricmp.lo `test -f 'kasciistricmp.cpp' || echo './'`kasciistricmp.cpp /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kasciistringtools.lo `test -f 'kasciistringtools.cpp' || echo './'`kasciistringtools.cpp /usr/qt/3/bin/moc ./networkstatus.h -o networkstatus.moc /usr/kde/3.5/bin/dcopidl ./networkstatus.h > networkstatus.kidl || ( rm -f networkstatus.kidl ; false ) /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o networkstatus.lo `test -f 'networkstatus.cpp' || echo './'`networkstatus.cpp /usr/kde/3.5/bin/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub networkstatus.kidl /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libkdepim -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o networkstatus_skel.lo `test -f 'networkstatus_skel.cpp' || echo './'`networkstatus_skel.cpp /bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -Wl,-O1 -o libemailfunctions.la -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined email.lo idmapper.lo kasciistricmp.lo kasciistringtools.lo networkstatus.lo networkstatus_skel.lo -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lkdecore make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libemailfunctions' Making all in libkcal make[2]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal' Making all in libical make[3]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical' Making all in doc make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/doc' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/doc' Making all in scripts make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/scripts' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/scripts' Making all in src make[4]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src' Making all in libical make[5]: Entering directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src/libical' /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o caldate.lo `test -f 'caldate.c' || echo './'`caldate.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalarray.lo `test -f 'icalarray.c' || echo './'`icalarray.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalattach.lo `test -f 'icalattach.c' || echo './'`icalattach.c icalarray.c: In function 'icalarray_expand': icalarray.c:144: warning: comparison between signed and unsigned /usr/bin/perl -I ./../../scripts ./../../scripts/mkderivedparameters.pl -i ./icalderivedparameter.c.in -c ./../../design-data/parameters.csv > icalderivedparameter.c || rm -f icalderivedparameter.c /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedvalues.pl \ -i ./icalderivedvalue.h.in -h ./../../design-data/value-types.csv > icalderivedvalue.h || rm -f icalderivedvalue.h /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedproperties.pl \ -i ./icalderivedproperty.h.in -h ./../../design-data/properties.csv\ ./../../design-data/value-types.csv > icalderivedproperty.h || rm -f icalderivedproperty.h /usr/bin/perl -I ./../../scripts ./../../scripts/mkderivedparameters.pl -i ./icalderivedparameter.h.in -h ./../../design-data/parameters.csv > icalderivedparameter.h || rm -f icalderivedparameter.h /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalrecur.lo `test -f 'icalrecur.c' || echo './'`icalrecur.c /usr/bin/perl ./../../scripts/mkrestrictiontable.pl -i ./icalrestriction.c.in \ ./../../design-data/restrictions.csv > icalrestriction.c || rm -f icalrestriction.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalcomponent.lo `test -f 'icalcomponent.c' || echo './'`icalcomponent.c icalrecur.c:192: warning: no previous prototype for 'icalrecur_first_clause' icalrecur.c:212: warning: no previous prototype for 'icalrecur_next_clause' icalrecur.c:238: warning: no previous prototype for 'icalrecur_clause_name_and_value' icalrecur.c:258: warning: no previous prototype for 'icalrecur_add_byrules' icalrecur.c: In function 'icalrecur_add_byrules': icalrecur.c:256: warning: unused parameter 'parser' icalrecur.c: At top level: icalrecur.c:304: warning: no previous prototype for 'icalrecur_add_bydayrules' icalrecur.c:452: warning: initialization discards qualifiers from pointer target type icalrecur.c:453: warning: initialization discards qualifiers from pointer target type icalrecur.c:454: warning: initialization discards qualifiers from pointer target type icalrecur.c:455: warning: initialization discards qualifiers from pointer target type icalrecur.c:456: warning: initialization discards qualifiers from pointer target type icalrecur.c:457: warning: initialization discards qualifiers from pointer target type icalrecur.c:458: warning: initialization discards qualifiers from pointer target type icalrecur.c:459: warning: initialization discards qualifiers from pointer target type icalrecur.c:460: warning: initialization discards qualifiers from pointer target type icalrecur.c:601: warning: no previous prototype for 'icalrecur_iterator_sizeof_byarray' icalrecur.c: In function 'next_day': icalrecur.c:1307: warning: unused variable 'has_by_day' icalrecur.c: In function 'next_month': icalrecur.c:1439: warning: unused variable 'this_frequency' icalrecur.c: At top level: icalrecur.c:2099: warning: no previous prototype for 'icalrecur_check_rulepart' icalrecur.c:701: warning: 'count_byrules' defined but not used icalrecur.c:1333: warning: 'next_yearday' defined but not used icalcomponent.c:1994: warning: no previous prototype for 'icalcomponent_new_vcalendar' icalcomponent.c:1998: warning: no previous prototype for 'icalcomponent_new_vevent' icalcomponent.c:2002: warning: no previous prototype for 'icalcomponent_new_vtodo' icalcomponent.c:2006: warning: no previous prototype for 'icalcomponent_new_vjournal' icalcomponent.c:2010: warning: no previous prototype for 'icalcomponent_new_valarm' icalcomponent.c:2014: warning: no previous prototype for 'icalcomponent_new_vfreebusy' icalcomponent.c:2018: warning: no previous prototype for 'icalcomponent_new_vtimezone' icalcomponent.c:2022: warning: no previous prototype for 'icalcomponent_new_xstandard' icalcomponent.c:2026: warning: no previous prototype for 'icalcomponent_new_xdaylight' icalcomponent.c:2030: warning: no previous prototype for 'icalcomponent_new_vagenda' icalcomponent.c:2034: warning: no previous prototype for 'icalcomponent_new_vquery' icalcomponent.c: In function 'icalcomponent_merge_component': icalcomponent.c:2081: warning: comparison between signed and unsigned icalcomponent.c: In function 'icalcomponent_handle_conflicting_vtimezones': icalcomponent.c:2166: warning: unused parameter 'tzid_prop' icalcomponent.c: In function 'icalcomponent_rename_tzids_callback': icalcomponent.c:2284: warning: comparison between signed and unsigned /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalenums.lo `test -f 'icalenums.c' || echo './'`icalenums.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalerror.lo `test -f 'icalerror.c' || echo './'`icalerror.c icalerror.c:160: warning: no previous prototype for 'icalerror_error_from_string' icalerror.c:191: warning: no previous prototype for 'icalerror_perror' icalerror.c: In function 'icalerror_error_from_string': icalerror.c:162: warning: 'e' may be used uninitialized in this function /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalmemory.lo `test -f 'icalmemory.c' || echo './'`icalmemory.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalmime.lo `test -f 'icalmime.c' || echo './'`icalmime.c icalmime.c:57: warning: no previous prototype for 'icalmime_text_new_part' icalmime.c:77: warning: no previous prototype for 'icalmime_text_add_line' icalmime.c: In function 'icalmime_text_add_line': icalmime.c:75: warning: unused parameter 'header' icalmime.c:76: warning: unused parameter 'size' icalmime.c: At top level: icalmime.c:86: warning: no previous prototype for 'icalmime_textcalendar_end_part' icalmime.c:99: warning: no previous prototype for 'icalmime_text_end_part' icalmime.c:109: warning: no previous prototype for 'icalmime_text_free_part' icalmime.c:117: warning: no previous prototype for 'icalmime_attachment_new_part' icalmime.c:122: warning: no previous prototype for 'icalmime_attachment_add_line' icalmime.c:130: warning: no previous prototype for 'icalmime_attachment_end_part' icalmime.c: In function 'icalmime_attachment_end_part': icalmime.c:129: warning: unused parameter 'part' icalmime.c: At top level: icalmime.c:135: warning: no previous prototype for 'icalmime_attachment_free_part' icalmime.c: In function 'icalmime_attachment_free_part': icalmime.c:134: warning: unused parameter 'part' icalmime.c: At top level: icalmime.c:158: warning: no previous prototype for 'icalmime_make_part' icalmime.c:354: warning: no previous prototype for 'icalmime_test' icalmime.c: In function 'icalmime_test': icalmime.c:382: warning: passing argument 4 of 'sspm_write_mime' discards qualifiers from pointer target type /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalparameter.lo `test -f 'icalparameter.c' || echo './'`icalparameter.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalparser.lo `test -f 'icalparser.c' || echo './'`icalparser.c icalparameter.c:50: warning: no previous prototype for 'icalparameter_new_impl' icalparameter.c:370: warning: no previous prototype for 'icalparameter_set_parent' icalparameter.c:377: warning: no previous prototype for 'icalparameter_get_parent' icalparser.c: In function 'make_segment': icalparser.c:195: warning: implicit declaration of function 'isspace' icalparser.c: At top level: icalparser.c:259: warning: no previous prototype for 'icalparser_get_next_paramvalue' icalparser.c: In function 'icalparser_add_line': icalparser.c:654: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:685: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:693: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:782: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:819: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:841: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:850: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:874: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type icalparser.c:930: warning: declaration of 'prop_kind' shadows a previous local icalparser.c:621: warning: shadowed declaration is here icalparser.c:958: warning: declaration of 'prop_kind' shadows a previous local icalparser.c:621: warning: shadowed declaration is here icalparser.c: In function 'icalparser_clean': icalparser.c:1017: warning: passing argument 2 of 'insert_error' discards qualifiers from pointer target type icalparser.c:1017: warning: passing argument 3 of 'insert_error' discards qualifiers from pointer target type /usr/bin/perl -I./../../scripts ./../../scripts/mkderivedproperties.pl \ -i ./icalderivedproperty.c.in -c ./../../design-data/properties.csv \ ./../../design-data/value-types.csv > icalderivedproperty.c || rm -f icalderivedproperty.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icalproperty.lo `test -f 'icalproperty.c' || echo './'`icalproperty.c /bin/sh ../../../../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DPACKAGE_DATA_DIR=\""/usr/kde/3.5/share/apps/libical"\" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=k8 -pipe -Wformat-security -Wmissing-format-attribute -c -o icaltime.lo `test -f 'icaltime.c' || echo './'`icaltime.c icalproperty.c:96: warning: no previous prototype for 'icalproperty_new_impl' icalproperty.c:941: warning: no previous prototype for 'icalproperty_get_name' icalproperty.c:986: warning: no previous prototype for 'icalproperty_set_parent' icalproperty.c:993: warning: no previous prototype for 'icalproperty_get_parent' icalproperty.c: In function 'icalproperty_as_ical_string': icalproperty.c:514: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /var/tmp/portage/libkcal-3.5.3/temp/ccY1F22v.out file, please attach this to your bugreport. make[5]: *** [icalproperty.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... icaltime.c: In function 'icaltime_as_timet_with_zone': icaltime.c:289: warning: passing argument 2 of 'icaltime_convert_to_zone' discards qualifiers from pointer target type icaltime.c: In function 'icaltime_as_ical_string': icaltime.c:322: warning: assignment discards qualifiers from pointer target type icaltime.c:324: warning: assignment discards qualifiers from pointer target type icaltime.c: At top level: icaltime.c:414: warning: no previous prototype for 'icaltime_is_leap_year' icaltime.c: In function 'icaltime_convert_to_zone': icaltime.c:856: warning: passing argument 2 of 'icaltimezone_convert_time' discards qualifiers from pointer target type icaltime.c: In function 'icaltime_get_tzid': icaltime.c:879: warning: passing argument 1 of 'icaltimezone_get_tzid' discards qualifiers from pointer target type make[5]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src/libical' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal/libical' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3/libkcal' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libkcal-3.5.3/work/libkcal-3.5.3' make: *** [all] Error 2 !!! ERROR: kde-base/libkcal-3.5.3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile ebuild.sh, line 1248: Called kde-meta_src_compile kde-meta.eclass, line 408: Called kde_src_compile kde.eclass, line 144: Called kde_src_compile 'all' kde.eclass, line 279: Called kde_src_compile 'myconf' 'configure' 'make' kde.eclass, line 275: Called die !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, and the call stack if relevant. ============================================================================== // /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -quiet -I. -I. -I../../../.. -I../../../../libkcal/libical -I../../../../libkcal/libical/src -I../../../../libkcal/libical/src -I. -DHAVE_CONFIG_H -DPACKAGE_DATA_DIR="/usr/kde/3.5/share/apps/libical" -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -DPIC icalproperty.c -quiet -dumpbase icalproperty.c -march=k8 -auxbase-strip .libs/icalproperty.o -O2 -O2 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wformat-security -Wmissing-format-attribute -std=iso9899:1990 -fPIC -o - -frandom-seed=0 # 1 "icalproperty.c" # 1 "" # 1 "" # 1 "icalproperty.c" # 28 "icalproperty.c" # 1 "../../../../config.h" 1 # 368 "../../../../config.h" unsigned long strlcat(char*, const char*, unsigned long); # 380 "../../../../config.h" unsigned long strlcpy(char*, const char*, unsigned long); # 29 "icalproperty.c" 2 # 1 "icalproperty.h" 1 # 33 "icalproperty.h" # 1 "/usr/include/time.h" 1 3 4 # 29 "/usr/include/time.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 323 "/usr/include/features.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 313 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 314 "/usr/include/sys/cdefs.h" 2 3 4 # 324 "/usr/include/features.h" 2 3 4 # 346 "/usr/include/features.h" 3 4 # 1 "/usr/include/gnu/stubs.h" 1 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 5 "/usr/include/gnu/stubs.h" 2 3 4 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4 # 8 "/usr/include/gnu/stubs.h" 2 3 4 # 347 "/usr/include/features.h" 2 3 4 # 30 "/usr/include/time.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef unsigned int size_t; # 40 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/bits/time.h" 1 3 4 # 44 "/usr/include/time.h" 2 3 4 # 57 "/usr/include/time.h" 3 4 # 1 "/usr/include/bits/types.h" 1 3 4 # 28 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 29 "/usr/include/bits/types.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 32 "/usr/include/bits/types.h" 2 3 4 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; __extension__ typedef signed long long int __int64_t; __extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t; __extension__ typedef unsigned long long int __u_quad_t; # 134 "/usr/include/bits/types.h" 3 4 # 1 "/usr/include/bits/typesizes.h" 1 3 4 # 135 "/usr/include/bits/types.h" 2 3 4 __extension__ typedef __u_quad_t __dev_t; __extension__ typedef unsigned int __uid_t; __extension__ typedef unsigned int __gid_t; __extension__ typedef unsigned long int __ino_t; __extension__ typedef __u_quad_t __ino64_t; __extension__ typedef unsigned int __mode_t; __extension__ typedef unsigned int __nlink_t; __extension__ typedef long int __off_t; __extension__ typedef __quad_t __off64_t; __extension__ typedef int __pid_t; __extension__ typedef struct { int __val[2]; } __fsid_t; __extension__ typedef long int __clock_t; __extension__ typedef unsigned long int __rlim_t; __extension__ typedef __u_quad_t __rlim64_t; __extension__ typedef unsigned int __id_t; __extension__ typedef long int __time_t; __extension__ typedef unsigned int __useconds_t; __extension__ typedef long int __suseconds_t; __extension__ typedef int __daddr_t; __extension__ typedef long int __swblk_t; __extension__ typedef int __key_t; __extension__ typedef int __clockid_t; __extension__ typedef void * __timer_t; __extension__ typedef long int __blksize_t; __extension__ typedef long int __blkcnt_t; __extension__ typedef __quad_t __blkcnt64_t; __extension__ typedef unsigned long int __fsblkcnt_t; __extension__ typedef __u_quad_t __fsblkcnt64_t; __extension__ typedef unsigned long int __fsfilcnt_t; __extension__ typedef __u_quad_t __fsfilcnt64_t; __extension__ typedef int __ssize_t; typedef __off64_t __loff_t; typedef __quad_t *__qaddr_t; typedef char *__caddr_t; __extension__ typedef int __intptr_t; __extension__ typedef unsigned int __socklen_t; # 58 "/usr/include/time.h" 2 3 4 typedef __clock_t clock_t; # 75 "/usr/include/time.h" 3 4 typedef __time_t time_t; # 93 "/usr/include/time.h" 3 4 typedef __clockid_t clockid_t; # 105 "/usr/include/time.h" 3 4 typedef __timer_t timer_t; # 121 "/usr/include/time.h" 3 4 struct timespec { __time_t tv_sec; long int tv_nsec; }; struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long int tm_gmtoff; __const char *tm_zone; }; struct itimerspec { struct timespec it_interval; struct timespec it_value; }; struct sigevent; # 181 "/usr/include/time.h" 3 4 extern clock_t clock (void) __attribute__ ((__nothrow__)); extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); extern double difftime (time_t __time1, time_t __time0) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); extern size_t strftime (char *__restrict __s, size_t __maxsize, __const char *__restrict __format, __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *strptime (__const char *__restrict __s, __const char *__restrict __fmt, struct tm *__tp) __attribute__ ((__nothrow__)); # 229 "/usr/include/time.h" 3 4 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern struct tm *gmtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern struct tm *localtime_r (__const time_t *__restrict __timer, struct tm *__restrict __tp) __attribute__ ((__nothrow__)); extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); extern char *asctime_r (__const struct tm *__restrict __tp, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *ctime_r (__const time_t *__restrict __timer, char *__restrict __buf) __attribute__ ((__nothrow__)); extern char *__tzname[2]; extern int __daylight; extern long int __timezone; extern char *tzname[2]; extern void tzset (void) __attribute__ ((__nothrow__)); extern int daylight; extern long int timezone; # 312 "/usr/include/time.h" 3 4 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 327 "/usr/include/time.h" 3 4 extern int nanosleep (__const struct timespec *__requested_time, struct timespec *__remaining); extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) __attribute__ ((__nothrow__)); # 356 "/usr/include/time.h" 3 4 extern int timer_create (clockid_t __clock_id, struct sigevent *__restrict __evp, timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); extern int timer_settime (timer_t __timerid, int __flags, __const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) __attribute__ ((__nothrow__)); extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); # 389 "/usr/include/time.h" 3 4 extern int getdate_err; # 398 "/usr/include/time.h" 3 4 extern struct tm *getdate (__const char *__string); # 416 "/usr/include/time.h" 3 4 # 34 "icalproperty.h" 2 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4 # 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 105 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4 typedef __gnuc_va_list va_list; # 35 "icalproperty.h" 2 # 1 "icalderivedparameter.h" 1 # 33 "icalderivedparameter.h" typedef struct icalparameter_impl icalparameter; const char* icalparameter_enum_to_string(int e); int icalparameter_string_to_enum(const char* str); typedef enum icalparameter_kind { ICAL_ANY_PARAMETER = 0, ICAL_ALTREP_PARAMETER, ICAL_CN_PARAMETER, ICAL_CUTYPE_PARAMETER, ICAL_DELEGATEDFROM_PARAMETER, ICAL_DELEGATEDTO_PARAMETER, ICAL_DIR_PARAMETER, ICAL_ENCODING_PARAMETER, ICAL_FBTYPE_PARAMETER, ICAL_FMTTYPE_PARAMETER, ICAL_LANGUAGE_PARAMETER, ICAL_MEMBER_PARAMETER, ICAL_PARTSTAT_PARAMETER, ICAL_RANGE_PARAMETER, ICAL_RELATED_PARAMETER, ICAL_RELTYPE_PARAMETER, ICAL_ROLE_PARAMETER, ICAL_RSVP_PARAMETER, ICAL_SENTBY_PARAMETER, ICAL_TZID_PARAMETER, ICAL_VALUE_PARAMETER, ICAL_X_PARAMETER, ICAL_XLICCOMPARETYPE_PARAMETER, ICAL_XLICERRORTYPE_PARAMETER, ICAL_NO_PARAMETER } icalparameter_kind; typedef enum icalparameter_cutype { ICAL_CUTYPE_X = 20000, ICAL_CUTYPE_INDIVIDUAL = 20001, ICAL_CUTYPE_GROUP = 20002, ICAL_CUTYPE_RESOURCE = 20003, ICAL_CUTYPE_ROOM = 20004, ICAL_CUTYPE_UNKNOWN = 20005, ICAL_CUTYPE_NONE = 20006 } icalparameter_cutype; typedef enum icalparameter_encoding { ICAL_ENCODING_X = 20007, ICAL_ENCODING_8BIT = 20008, ICAL_ENCODING_BASE64 = 20009, ICAL_ENCODING_NONE = 20010 } icalparameter_encoding; typedef enum icalparameter_fbtype { ICAL_FBTYPE_X = 20011, ICAL_FBTYPE_FREE = 20012, ICAL_FBTYPE_BUSY = 20013, ICAL_FBTYPE_BUSYUNAVAILABLE = 20014, ICAL_FBTYPE_BUSYTENTATIVE = 20015, ICAL_FBTYPE_NONE = 20016 } icalparameter_fbtype; typedef enum icalparameter_partstat { ICAL_PARTSTAT_X = 20017, ICAL_PARTSTAT_NEEDSACTION = 20018, ICAL_PARTSTAT_ACCEPTED = 20019, ICAL_PARTSTAT_DECLINED = 20020, ICAL_PARTSTAT_TENTATIVE = 20021, ICAL_PARTSTAT_DELEGATED = 20022, ICAL_PARTSTAT_COMPLETED = 20023, ICAL_PARTSTAT_INPROCESS = 20024, ICAL_PARTSTAT_NONE = 20025 } icalparameter_partstat; typedef enum icalparameter_range { ICAL_RANGE_X = 20026, ICAL_RANGE_THISANDPRIOR = 20027, ICAL_RANGE_THISANDFUTURE = 20028, ICAL_RANGE_NONE = 20029 } icalparameter_range; typedef enum icalparameter_related { ICAL_RELATED_X = 20030, ICAL_RELATED_START = 20031, ICAL_RELATED_END = 20032, ICAL_RELATED_NONE = 20033 } icalparameter_related; typedef enum icalparameter_reltype { ICAL_RELTYPE_X = 20034, ICAL_RELTYPE_PARENT = 20035, ICAL_RELTYPE_CHILD = 20036, ICAL_RELTYPE_SIBLING = 20037, ICAL_RELTYPE_NONE = 20038 } icalparameter_reltype; typedef enum icalparameter_role { ICAL_ROLE_X = 20039, ICAL_ROLE_CHAIR = 20040, ICAL_ROLE_REQPARTICIPANT = 20041, ICAL_ROLE_OPTPARTICIPANT = 20042, ICAL_ROLE_NONPARTICIPANT = 20043, ICAL_ROLE_NONE = 20044 } icalparameter_role; typedef enum icalparameter_rsvp { ICAL_RSVP_X = 20045, ICAL_RSVP_TRUE = 20046, ICAL_RSVP_FALSE = 20047, ICAL_RSVP_NONE = 20048 } icalparameter_rsvp; typedef enum icalparameter_value { ICAL_VALUE_X = 20049, ICAL_VALUE_BINARY = 20050, ICAL_VALUE_BOOLEAN = 20051, ICAL_VALUE_DATE = 20052, ICAL_VALUE_DURATION = 20053, ICAL_VALUE_FLOAT = 20054, ICAL_VALUE_INTEGER = 20055, ICAL_VALUE_PERIOD = 20056, ICAL_VALUE_RECUR = 20057, ICAL_VALUE_TEXT = 20058, ICAL_VALUE_URI = 20059, ICAL_VALUE_ERROR = 20060, ICAL_VALUE_DATETIME = 20061, ICAL_VALUE_UTCOFFSET = 20062, ICAL_VALUE_CALADDRESS = 20063, ICAL_VALUE_NONE = 20064 } icalparameter_value; typedef enum icalparameter_xliccomparetype { ICAL_XLICCOMPARETYPE_X = 20065, ICAL_XLICCOMPARETYPE_EQUAL = 20066, ICAL_XLICCOMPARETYPE_NOTEQUAL = 20067, ICAL_XLICCOMPARETYPE_LESS = 20068, ICAL_XLICCOMPARETYPE_GREATER = 20069, ICAL_XLICCOMPARETYPE_LESSEQUAL = 20070, ICAL_XLICCOMPARETYPE_GREATEREQUAL = 20071, ICAL_XLICCOMPARETYPE_REGEX = 20072, ICAL_XLICCOMPARETYPE_ISNULL = 20073, ICAL_XLICCOMPARETYPE_ISNOTNULL = 20074, ICAL_XLICCOMPARETYPE_NONE = 20075 } icalparameter_xliccomparetype; typedef enum icalparameter_xlicerrortype { ICAL_XLICERRORTYPE_X = 20076, ICAL_XLICERRORTYPE_COMPONENTPARSEERROR = 20077, ICAL_XLICERRORTYPE_PROPERTYPARSEERROR = 20078, ICAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR = 20079, ICAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR = 20080, ICAL_XLICERRORTYPE_VALUEPARSEERROR = 20081, ICAL_XLICERRORTYPE_INVALIDITIP = 20082, ICAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR = 20083, ICAL_XLICERRORTYPE_MIMEPARSEERROR = 20084, ICAL_XLICERRORTYPE_VCALPROPPARSEERROR = 20085, ICAL_XLICERRORTYPE_NONE = 20086 } icalparameter_xlicerrortype; icalparameter* icalparameter_new_language(const char* v); const char* icalparameter_get_language(const icalparameter* value); void icalparameter_set_language(icalparameter* value, const char* v); icalparameter* icalparameter_new_dir(const char* v); const char* icalparameter_get_dir(const icalparameter* value); void icalparameter_set_dir(icalparameter* value, const char* v); icalparameter* icalparameter_new_reltype(icalparameter_reltype v); icalparameter_reltype icalparameter_get_reltype(const icalparameter* value); void icalparameter_set_reltype(icalparameter* value, icalparameter_reltype v); icalparameter* icalparameter_new_fmttype(const char* v); const char* icalparameter_get_fmttype(const icalparameter* value); void icalparameter_set_fmttype(icalparameter* value, const char* v); icalparameter* icalparameter_new_tzid(const char* v); const char* icalparameter_get_tzid(const icalparameter* value); void icalparameter_set_tzid(icalparameter* value, const char* v); icalparameter* icalparameter_new_range(icalparameter_range v); icalparameter_range icalparameter_get_range(const icalparameter* value); void icalparameter_set_range(icalparameter* value, icalparameter_range v); icalparameter* icalparameter_new_delegatedto(const char* v); const char* icalparameter_get_delegatedto(const icalparameter* value); void icalparameter_set_delegatedto(icalparameter* value, const char* v); icalparameter* icalparameter_new_cn(const char* v); const char* icalparameter_get_cn(const icalparameter* value); void icalparameter_set_cn(icalparameter* value, const char* v); icalparameter* icalparameter_new_value(icalparameter_value v); icalparameter_value icalparameter_get_value(const icalparameter* value); void icalparameter_set_value(icalparameter* value, icalparameter_value v); icalparameter* icalparameter_new_xliccomparetype(icalparameter_xliccomparetype v); icalparameter_xliccomparetype icalparameter_get_xliccomparetype(const icalparameter* value); void icalparameter_set_xliccomparetype(icalparameter* value, icalparameter_xliccomparetype v); icalparameter* icalparameter_new_x(const char* v); const char* icalparameter_get_x(const icalparameter* value); void icalparameter_set_x(icalparameter* value, const char* v); icalparameter* icalparameter_new_sentby(const char* v); const char* icalparameter_get_sentby(const icalparameter* value); void icalparameter_set_sentby(icalparameter* value, const char* v); icalparameter* icalparameter_new_member(const char* v); const char* icalparameter_get_member(const icalparameter* value); void icalparameter_set_member(icalparameter* value, const char* v); icalparameter* icalparameter_new_rsvp(icalparameter_rsvp v); icalparameter_rsvp icalparameter_get_rsvp(const icalparameter* value); void icalparameter_set_rsvp(icalparameter* value, icalparameter_rsvp v); icalparameter* icalparameter_new_cutype(icalparameter_cutype v); icalparameter_cutype icalparameter_get_cutype(const icalparameter* value); void icalparameter_set_cutype(icalparameter* value, icalparameter_cutype v); icalparameter* icalparameter_new_xlicerrortype(icalparameter_xlicerrortype v); icalparameter_xlicerrortype icalparameter_get_xlicerrortype(const icalparameter* value); void icalparameter_set_xlicerrortype(icalparameter* value, icalparameter_xlicerrortype v); icalparameter* icalparameter_new_related(icalparameter_related v); icalparameter_related icalparameter_get_related(const icalparameter* value); void icalparameter_set_related(icalparameter* value, icalparameter_related v); icalparameter* icalparameter_new_encoding(icalparameter_encoding v); icalparameter_encoding icalparameter_get_encoding(const icalparameter* value); void icalparameter_set_encoding(icalparameter* value, icalparameter_encoding v); icalparameter* icalparameter_new_altrep(const char* v); const char* icalparameter_get_altrep(const icalparameter* value); void icalparameter_set_altrep(icalparameter* value, const char* v); icalparameter* icalparameter_new_delegatedfrom(const char* v); const char* icalparameter_get_delegatedfrom(const icalparameter* value); void icalparameter_set_delegatedfrom(icalparameter* value, const char* v); icalparameter* icalparameter_new_fbtype(icalparameter_fbtype v); icalparameter_fbtype icalparameter_get_fbtype(const icalparameter* value); void icalparameter_set_fbtype(icalparameter* value, icalparameter_fbtype v); icalparameter* icalparameter_new_role(icalparameter_role v); icalparameter_role icalparameter_get_role(const icalparameter* value); void icalparameter_set_role(icalparameter* value, icalparameter_role v); icalparameter* icalparameter_new_partstat(icalparameter_partstat v); icalparameter_partstat icalparameter_get_partstat(const icalparameter* value); void icalparameter_set_partstat(icalparameter* value, icalparameter_partstat v); # 37 "icalproperty.h" 2 # 1 "icalvalue.h" 1 # 31 "icalvalue.h" # 1 "icalenums.h" 1 # 37 "icalenums.h" typedef enum icalcomponent_kind { ICAL_NO_COMPONENT, ICAL_ANY_COMPONENT, ICAL_XROOT_COMPONENT, ICAL_XATTACH_COMPONENT, ICAL_VEVENT_COMPONENT, ICAL_VTODO_COMPONENT, ICAL_VJOURNAL_COMPONENT, ICAL_VCALENDAR_COMPONENT, ICAL_VAGENDA_COMPONENT, ICAL_VFREEBUSY_COMPONENT, ICAL_VALARM_COMPONENT, ICAL_XAUDIOALARM_COMPONENT, ICAL_XDISPLAYALARM_COMPONENT, ICAL_XEMAILALARM_COMPONENT, ICAL_XPROCEDUREALARM_COMPONENT, ICAL_VTIMEZONE_COMPONENT, ICAL_XSTANDARD_COMPONENT, ICAL_XDAYLIGHT_COMPONENT, ICAL_X_COMPONENT, ICAL_VSCHEDULE_COMPONENT, ICAL_VQUERY_COMPONENT, ICAL_VCAR_COMPONENT, ICAL_VCOMMAND_COMPONENT, ICAL_XLICINVALID_COMPONENT, ICAL_XLICMIMEPART_COMPONENT } icalcomponent_kind; typedef enum icalrequeststatus { ICAL_UNKNOWN_STATUS, ICAL_2_0_SUCCESS_STATUS, ICAL_2_1_FALLBACK_STATUS, ICAL_2_2_IGPROP_STATUS, ICAL_2_3_IGPARAM_STATUS, ICAL_2_4_IGXPROP_STATUS, ICAL_2_5_IGXPARAM_STATUS, ICAL_2_6_IGCOMP_STATUS, ICAL_2_7_FORWARD_STATUS, ICAL_2_8_ONEEVENT_STATUS, ICAL_2_9_TRUNC_STATUS, ICAL_2_10_ONETODO_STATUS, ICAL_2_11_TRUNCRRULE_STATUS, ICAL_3_0_INVPROPNAME_STATUS, ICAL_3_1_INVPROPVAL_STATUS, ICAL_3_2_INVPARAM_STATUS, ICAL_3_3_INVPARAMVAL_STATUS, ICAL_3_4_INVCOMP_STATUS, ICAL_3_5_INVTIME_STATUS, ICAL_3_6_INVRULE_STATUS, ICAL_3_7_INVCU_STATUS, ICAL_3_8_NOAUTH_STATUS, ICAL_3_9_BADVERSION_STATUS, ICAL_3_10_TOOBIG_STATUS, ICAL_3_11_MISSREQCOMP_STATUS, ICAL_3_12_UNKCOMP_STATUS, ICAL_3_13_BADCOMP_STATUS, ICAL_3_14_NOCAP_STATUS, ICAL_3_15_INVCOMMAND, ICAL_4_0_BUSY_STATUS, ICAL_4_1_STORE_ACCESS_DENIED, ICAL_4_2_STORE_FAILED, ICAL_4_3_STORE_NOT_FOUND, ICAL_5_0_MAYBE_STATUS, ICAL_5_1_UNAVAIL_STATUS, ICAL_5_2_NOSERVICE_STATUS, ICAL_5_3_NOSCHED_STATUS, ICAL_6_1_CONTAINER_NOT_FOUND, ICAL_9_0_UNRECOGNIZED_COMMAND } icalrequeststatus; const char* icalenum_reqstat_desc(icalrequeststatus stat); short icalenum_reqstat_major(icalrequeststatus stat); short icalenum_reqstat_minor(icalrequeststatus stat); icalrequeststatus icalenum_num_to_reqstat(short major, short minor); char* icalenum_reqstat_code(icalrequeststatus stat); # 32 "icalvalue.h" 2 # 1 "icaltypes.h" 1 # 29 "icaltypes.h" # 1 "icaltime.h" 1 # 102 "icaltime.h" typedef struct _icaltimezone icaltimezone; struct icaltime_span { time_t start; time_t end; int is_busy; }; typedef struct icaltime_span icaltime_span; struct icaltimetype { int year; int month; int day; int hour; int minute; int second; int is_utc; int is_date; int is_daylight; const icaltimezone *zone; }; typedef struct icaltimetype icaltimetype; struct icaltimetype icaltime_null_time(void); struct icaltimetype icaltime_null_date(void); struct icaltimetype icaltime_current_time_with_zone(const icaltimezone *zone); struct icaltimetype icaltime_today(void); struct icaltimetype icaltime_from_timet(const time_t v, const int is_date); struct icaltimetype icaltime_from_timet_with_zone(const time_t tm, const int is_date, const icaltimezone *zone); struct icaltimetype icaltime_from_string(const char* str); struct icaltimetype icaltime_from_string_with_zone(const char* str, const icaltimezone *zone); struct icaltimetype icaltime_from_day_of_year(const int doy, const int year); struct icaltimetype icaltime_from_week_number(const int week_number, const int year); time_t icaltime_as_timet(const struct icaltimetype); time_t icaltime_as_timet_with_zone(const struct icaltimetype tt, const icaltimezone *zone); const char* icaltime_as_ical_string(const struct icaltimetype tt); const icaltimezone *icaltime_get_timezone(const struct icaltimetype t); char *icaltime_get_tzid(const struct icaltimetype t); struct icaltimetype icaltime_set_timezone(struct icaltimetype *t, const icaltimezone *zone); int icaltime_day_of_year(const struct icaltimetype t); int icaltime_day_of_week(const struct icaltimetype t); int icaltime_start_doy_of_week(const struct icaltimetype t); int icaltime_week_number(const struct icaltimetype t); int icaltime_is_null_time(const struct icaltimetype t); int icaltime_is_valid_time(const struct icaltimetype t); int icaltime_is_date(const struct icaltimetype t); int icaltime_is_utc(const struct icaltimetype t); int icaltime_is_floating(const struct icaltimetype t); int icaltime_compare_with_zone(const struct icaltimetype a, const struct icaltimetype b); int icaltime_compare(const struct icaltimetype a, const struct icaltimetype b); int icaltime_compare_date_only(const struct icaltimetype a, const struct icaltimetype b); void icaltime_adjust(struct icaltimetype *tt, const int days, const int hours, const int minutes, const int seconds); struct icaltimetype icaltime_normalize(const struct icaltimetype t); struct icaltimetype icaltime_convert_to_zone(const struct icaltimetype tt, icaltimezone *zone); int icaltime_days_in_month(const int month, const int year); struct icaltime_span icaltime_span_new(struct icaltimetype dtstart, struct icaltimetype dtend, int is_busy); int icaltime_span_overlaps(icaltime_span *s1, icaltime_span *s2); int icaltime_span_contains(icaltime_span *s, icaltime_span *container); # 30 "icaltypes.h" 2 # 1 "icalduration.h" 1 # 34 "icalduration.h" struct icaldurationtype { int is_neg; unsigned int days; unsigned int weeks; unsigned int hours; unsigned int minutes; unsigned int seconds; }; struct icaldurationtype icaldurationtype_from_int(int t); struct icaldurationtype icaldurationtype_from_string(const char*); int icaldurationtype_as_int(struct icaldurationtype duration); char* icaldurationtype_as_ical_string(struct icaldurationtype d); struct icaldurationtype icaldurationtype_null_duration(void); struct icaldurationtype icaldurationtype_bad_duration(void); int icaldurationtype_is_null_duration(struct icaldurationtype d); int icaldurationtype_is_bad_duration(struct icaldurationtype d); struct icaltimetype icaltime_add(struct icaltimetype t, struct icaldurationtype d); struct icaldurationtype icaltime_subtract(struct icaltimetype t1, struct icaltimetype t2); # 31 "icaltypes.h" 2 # 1 "icalperiod.h" 1 # 35 "icalperiod.h" struct icalperiodtype { struct icaltimetype start; struct icaltimetype end; struct icaldurationtype duration; }; struct icalperiodtype icalperiodtype_from_string (const char* str); const char* icalperiodtype_as_ical_string(struct icalperiodtype p); struct icalperiodtype icalperiodtype_null_period(void); int icalperiodtype_is_null_period(struct icalperiodtype p); int icalperiodtype_is_valid_period(struct icalperiodtype p); # 32 "icaltypes.h" 2 struct icalgeotype { float lat; float lon; }; struct icaldatetimeperiodtype { struct icaltimetype time; struct icalperiodtype period; }; struct icaltriggertype { struct icaltimetype time; struct icaldurationtype duration; }; struct icaltriggertype icaltriggertype_from_int(const int reltime); struct icaltriggertype icaltriggertype_from_string(const char* str); int icaltriggertype_is_null_trigger(struct icaltriggertype tr); int icaltriggertype_is_bad_trigger(struct icaltriggertype tr); # 71 "icaltypes.h" struct icalreqstattype { icalrequeststatus code; const char* desc; const char* debug; }; struct icalreqstattype icalreqstattype_from_string(const char* str); const char* icalreqstattype_as_string(struct icalreqstattype); struct icaltimezonephase { const char* tzname; int is_stdandard; struct icaltimetype dtstart; int offsetto; int tzoffsetfrom; const char* comment; struct icaldatetimeperiodtype rdate; const char* rrule; }; struct icaltimezonetype { const char* tzid; struct icaltimetype last_mod; const char* tzurl; struct icaltimezonephase *phases; }; void icaltimezonetype_free(struct icaltimezonetype tzt); # 33 "icalvalue.h" 2 # 1 "icalrecur.h" 1 # 78 "icalrecur.h" typedef enum icalrecurrencetype_frequency { ICAL_SECONDLY_RECURRENCE=0, ICAL_MINUTELY_RECURRENCE=1, ICAL_HOURLY_RECURRENCE=2, ICAL_DAILY_RECURRENCE=3, ICAL_WEEKLY_RECURRENCE=4, ICAL_MONTHLY_RECURRENCE=5, ICAL_YEARLY_RECURRENCE=6, ICAL_NO_RECURRENCE=7 } icalrecurrencetype_frequency; typedef enum icalrecurrencetype_weekday { ICAL_NO_WEEKDAY, ICAL_SUNDAY_WEEKDAY, ICAL_MONDAY_WEEKDAY, ICAL_TUESDAY_WEEKDAY, ICAL_WEDNESDAY_WEEKDAY, ICAL_THURSDAY_WEEKDAY, ICAL_FRIDAY_WEEKDAY, ICAL_SATURDAY_WEEKDAY } icalrecurrencetype_weekday; enum { ICAL_RECURRENCE_ARRAY_MAX = 0x7f7f, ICAL_RECURRENCE_ARRAY_MAX_BYTE = 0x7f }; # 131 "icalrecur.h" struct icalrecurrencetype { icalrecurrencetype_frequency freq; struct icaltimetype until; int count; short interval; icalrecurrencetype_weekday week_start; # 153 "icalrecur.h" short by_second[61]; short by_minute[61]; short by_hour[25]; short by_day[364]; short by_month_day[32]; short by_year_day[ 367]; short by_week_no[54]; short by_month[13]; short by_set_pos[367]; }; void icalrecurrencetype_clear(struct icalrecurrencetype *r); # 177 "icalrecur.h" enum icalrecurrencetype_weekday icalrecurrencetype_day_day_of_week(short day); int icalrecurrencetype_day_position(short day); struct icalrecurrencetype icalrecurrencetype_from_string(const char* str); char* icalrecurrencetype_as_string(struct icalrecurrencetype *recur); typedef struct icalrecur_iterator_impl icalrecur_iterator; icalrecur_iterator* icalrecur_iterator_new(struct icalrecurrencetype rule, struct icaltimetype dtstart); struct icaltimetype icalrecur_iterator_next(icalrecur_iterator*); void icalrecur_iterator_decrement_count(icalrecur_iterator*); void icalrecur_iterator_free(icalrecur_iterator*); int icalrecur_expand_recurrence(char* rule, time_t start, int count, time_t* array); # 34 "icalvalue.h" 2 # 1 "icalderivedproperty.h" 1 # 16 "icalderivedproperty.h" # 1 "icalparameter.h" 1 # 37 "icalparameter.h" icalparameter* icalparameter_new(icalparameter_kind kind); icalparameter* icalparameter_new_clone(icalparameter* p); icalparameter* icalparameter_new_from_string(const char* value); icalparameter* icalparameter_new_from_value_string(icalparameter_kind kind, const char* value); void icalparameter_free(icalparameter* parameter); char* icalparameter_as_ical_string(icalparameter* parameter); int icalparameter_is_valid(icalparameter* parameter); icalparameter_kind icalparameter_isa(icalparameter* parameter); int icalparameter_isa_parameter(void* param); void icalparameter_set_xname (icalparameter* param, const char* v); const char* icalparameter_get_xname(icalparameter* param); void icalparameter_set_xvalue (icalparameter* param, const char* v); const char* icalparameter_get_xvalue(icalparameter* param); const char* icalparameter_kind_to_string(icalparameter_kind kind); icalparameter_kind icalparameter_string_to_kind(const char* string); # 17 "icalderivedproperty.h" 2 # 1 "icalderivedvalue.h" 1 # 37 "icalderivedvalue.h" # 1 "icalattach.h" 1 # 28 "icalattach.h" typedef struct icalattach_impl icalattach; typedef void (* icalattach_free_fn_t) (unsigned char *data, void *user_data); icalattach *icalattach_new_from_url (const char *url); icalattach *icalattach_new_from_data (unsigned char *data, icalattach_free_fn_t free_fn, void *free_fn_data); void icalattach_ref (icalattach *attach); void icalattach_unref (icalattach *attach); int icalattach_get_is_url (icalattach *attach); const char *icalattach_get_url (icalattach *attach); unsigned char *icalattach_get_data (icalattach *attach); struct icalattachtype* icalattachtype_new(void); void icalattachtype_add_reference(struct icalattachtype* v); void icalattachtype_free(struct icalattachtype* v); void icalattachtype_set_url(struct icalattachtype* v, char* url); char* icalattachtype_get_url(struct icalattachtype* v); void icalattachtype_set_base64(struct icalattachtype* v, char* base64, int owns); char* icalattachtype_get_base64(struct icalattachtype* v); void icalattachtype_set_binary(struct icalattachtype* v, char* binary, int owns); void* icalattachtype_get_binary(struct icalattachtype* v); # 38 "icalderivedvalue.h" 2 typedef struct icalvalue_impl icalvalue; void icalvalue_set_x(icalvalue* value, const char* v); icalvalue* icalvalue_new_x(const char* v); const char* icalvalue_get_x(const icalvalue* value); icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); struct icalrecurrencetype icalvalue_get_recur(const icalvalue* value); icalvalue* icalvalue_new_trigger (struct icaltriggertype v); void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); struct icaltriggertype icalvalue_get_trigger(const icalvalue* value); icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); void icalvalue_set_datetimeperiod(icalvalue* value, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(const icalvalue* value); icalvalue *icalvalue_new_attach (icalattach *attach); void icalvalue_set_attach (icalvalue *value, icalattach *attach); icalattach *icalvalue_get_attach (const icalvalue *value); void icalvalue_reset_kind(icalvalue* value); typedef enum icalvalue_kind { ICAL_ANY_VALUE=5000, ICAL_QUERY_VALUE=5001, ICAL_DATE_VALUE=5002, ICAL_ATTACH_VALUE=5003, ICAL_GEO_VALUE=5004, ICAL_STATUS_VALUE=5005, ICAL_TRANSP_VALUE=5006, ICAL_STRING_VALUE=5007, ICAL_TEXT_VALUE=5008, ICAL_REQUESTSTATUS_VALUE=5009, ICAL_BINARY_VALUE=5010, ICAL_PERIOD_VALUE=5011, ICAL_FLOAT_VALUE=5012, ICAL_DATETIMEPERIOD_VALUE=5013, ICAL_INTEGER_VALUE=5014, ICAL_CLASS_VALUE=5015, ICAL_URI_VALUE=5016, ICAL_DURATION_VALUE=5017, ICAL_BOOLEAN_VALUE=5018, ICAL_X_VALUE=5019, ICAL_CALADDRESS_VALUE=5020, ICAL_TRIGGER_VALUE=5021, ICAL_XLICCLASS_VALUE=5022, ICAL_RECUR_VALUE=5023, ICAL_ACTION_VALUE=5024, ICAL_DATETIME_VALUE=5025, ICAL_UTCOFFSET_VALUE=5026, ICAL_METHOD_VALUE=5027, ICAL_NO_VALUE=5028 } icalvalue_kind ; typedef enum icalproperty_action { ICAL_ACTION_X = 10000, ICAL_ACTION_AUDIO = 10001, ICAL_ACTION_DISPLAY = 10002, ICAL_ACTION_EMAIL = 10003, ICAL_ACTION_PROCEDURE = 10004, ICAL_ACTION_NONE = 10005 } icalproperty_action; typedef enum icalproperty_class { ICAL_CLASS_X = 10006, ICAL_CLASS_PUBLIC = 10007, ICAL_CLASS_PRIVATE = 10008, ICAL_CLASS_CONFIDENTIAL = 10009, ICAL_CLASS_NONE = 10010 } icalproperty_class; typedef enum icalproperty_method { ICAL_METHOD_X = 10011, ICAL_METHOD_PUBLISH = 10012, ICAL_METHOD_REQUEST = 10013, ICAL_METHOD_REPLY = 10014, ICAL_METHOD_ADD = 10015, ICAL_METHOD_CANCEL = 10016, ICAL_METHOD_REFRESH = 10017, ICAL_METHOD_COUNTER = 10018, ICAL_METHOD_DECLINECOUNTER = 10019, ICAL_METHOD_CREATE = 10020, ICAL_METHOD_READ = 10021, ICAL_METHOD_RESPONSE = 10022, ICAL_METHOD_MOVE = 10023, ICAL_METHOD_MODIFY = 10024, ICAL_METHOD_GENERATEUID = 10025, ICAL_METHOD_DELETE = 10026, ICAL_METHOD_NONE = 10027 } icalproperty_method; typedef enum icalproperty_status { ICAL_STATUS_X = 10028, ICAL_STATUS_TENTATIVE = 10029, ICAL_STATUS_CONFIRMED = 10030, ICAL_STATUS_COMPLETED = 10031, ICAL_STATUS_NEEDSACTION = 10032, ICAL_STATUS_CANCELLED = 10033, ICAL_STATUS_INPROCESS = 10034, ICAL_STATUS_DRAFT = 10035, ICAL_STATUS_FINAL = 10036, ICAL_STATUS_NONE = 10037 } icalproperty_status; typedef enum icalproperty_transp { ICAL_TRANSP_X = 10038, ICAL_TRANSP_OPAQUE = 10039, ICAL_TRANSP_OPAQUENOCONFLICT = 10040, ICAL_TRANSP_TRANSPARENT = 10041, ICAL_TRANSP_TRANSPARENTNOCONFLICT = 10042, ICAL_TRANSP_NONE = 10043 } icalproperty_transp; typedef enum icalproperty_xlicclass { ICAL_XLICCLASS_X = 10044, ICAL_XLICCLASS_PUBLISHNEW = 10045, ICAL_XLICCLASS_PUBLISHUPDATE = 10046, ICAL_XLICCLASS_PUBLISHFREEBUSY = 10047, ICAL_XLICCLASS_REQUESTNEW = 10048, ICAL_XLICCLASS_REQUESTUPDATE = 10049, ICAL_XLICCLASS_REQUESTRESCHEDULE = 10050, ICAL_XLICCLASS_REQUESTDELEGATE = 10051, ICAL_XLICCLASS_REQUESTNEWORGANIZER = 10052, ICAL_XLICCLASS_REQUESTFORWARD = 10053, ICAL_XLICCLASS_REQUESTSTATUS = 10054, ICAL_XLICCLASS_REQUESTFREEBUSY = 10055, ICAL_XLICCLASS_REPLYACCEPT = 10056, ICAL_XLICCLASS_REPLYDECLINE = 10057, ICAL_XLICCLASS_REPLYDELEGATE = 10058, ICAL_XLICCLASS_REPLYCRASHERACCEPT = 10059, ICAL_XLICCLASS_REPLYCRASHERDECLINE = 10060, ICAL_XLICCLASS_ADDINSTANCE = 10061, ICAL_XLICCLASS_CANCELEVENT = 10062, ICAL_XLICCLASS_CANCELINSTANCE = 10063, ICAL_XLICCLASS_CANCELALL = 10064, ICAL_XLICCLASS_REFRESH = 10065, ICAL_XLICCLASS_COUNTER = 10066, ICAL_XLICCLASS_DECLINECOUNTER = 10067, ICAL_XLICCLASS_MALFORMED = 10068, ICAL_XLICCLASS_OBSOLETE = 10069, ICAL_XLICCLASS_MISSEQUENCED = 10070, ICAL_XLICCLASS_UNKNOWN = 10071, ICAL_XLICCLASS_NONE = 10072 } icalproperty_xlicclass; icalvalue* icalvalue_new_query(const char* v); const char* icalvalue_get_query(const icalvalue* value); void icalvalue_set_query(icalvalue* value, const char* v); icalvalue* icalvalue_new_date(struct icaltimetype v); struct icaltimetype icalvalue_get_date(const icalvalue* value); void icalvalue_set_date(icalvalue* value, struct icaltimetype v); icalvalue* icalvalue_new_geo(struct icalgeotype v); struct icalgeotype icalvalue_get_geo(const icalvalue* value); void icalvalue_set_geo(icalvalue* value, struct icalgeotype v); icalvalue* icalvalue_new_status(enum icalproperty_status v); enum icalproperty_status icalvalue_get_status(const icalvalue* value); void icalvalue_set_status(icalvalue* value, enum icalproperty_status v); icalvalue* icalvalue_new_transp(enum icalproperty_transp v); enum icalproperty_transp icalvalue_get_transp(const icalvalue* value); void icalvalue_set_transp(icalvalue* value, enum icalproperty_transp v); icalvalue* icalvalue_new_string(const char* v); const char* icalvalue_get_string(const icalvalue* value); void icalvalue_set_string(icalvalue* value, const char* v); icalvalue* icalvalue_new_text(const char* v); const char* icalvalue_get_text(const icalvalue* value); void icalvalue_set_text(icalvalue* value, const char* v); icalvalue* icalvalue_new_requeststatus(struct icalreqstattype v); struct icalreqstattype icalvalue_get_requeststatus(const icalvalue* value); void icalvalue_set_requeststatus(icalvalue* value, struct icalreqstattype v); icalvalue* icalvalue_new_binary(const char* v); const char* icalvalue_get_binary(const icalvalue* value); void icalvalue_set_binary(icalvalue* value, const char* v); icalvalue* icalvalue_new_period(struct icalperiodtype v); struct icalperiodtype icalvalue_get_period(const icalvalue* value); void icalvalue_set_period(icalvalue* value, struct icalperiodtype v); icalvalue* icalvalue_new_float(float v); float icalvalue_get_float(const icalvalue* value); void icalvalue_set_float(icalvalue* value, float v); icalvalue* icalvalue_new_integer(int v); int icalvalue_get_integer(const icalvalue* value); void icalvalue_set_integer(icalvalue* value, int v); icalvalue* icalvalue_new_class(enum icalproperty_class v); enum icalproperty_class icalvalue_get_class(const icalvalue* value); void icalvalue_set_class(icalvalue* value, enum icalproperty_class v); icalvalue* icalvalue_new_uri(const char* v); const char* icalvalue_get_uri(const icalvalue* value); void icalvalue_set_uri(icalvalue* value, const char* v); icalvalue* icalvalue_new_duration(struct icaldurationtype v); struct icaldurationtype icalvalue_get_duration(const icalvalue* value); void icalvalue_set_duration(icalvalue* value, struct icaldurationtype v); icalvalue* icalvalue_new_boolean(int v); int icalvalue_get_boolean(const icalvalue* value); void icalvalue_set_boolean(icalvalue* value, int v); icalvalue* icalvalue_new_caladdress(const char* v); const char* icalvalue_get_caladdress(const icalvalue* value); void icalvalue_set_caladdress(icalvalue* value, const char* v); icalvalue* icalvalue_new_xlicclass(enum icalproperty_xlicclass v); enum icalproperty_xlicclass icalvalue_get_xlicclass(const icalvalue* value); void icalvalue_set_xlicclass(icalvalue* value, enum icalproperty_xlicclass v); icalvalue* icalvalue_new_action(enum icalproperty_action v); enum icalproperty_action icalvalue_get_action(const icalvalue* value); void icalvalue_set_action(icalvalue* value, enum icalproperty_action v); icalvalue* icalvalue_new_datetime(struct icaltimetype v); struct icaltimetype icalvalue_get_datetime(const icalvalue* value); void icalvalue_set_datetime(icalvalue* value, struct icaltimetype v); icalvalue* icalvalue_new_utcoffset(int v); int icalvalue_get_utcoffset(const icalvalue* value); void icalvalue_set_utcoffset(icalvalue* value, int v); icalvalue* icalvalue_new_method(enum icalproperty_method v); enum icalproperty_method icalvalue_get_method(const icalvalue* value); void icalvalue_set_method(icalvalue* value, enum icalproperty_method v); # 18 "icalderivedproperty.h" 2 typedef struct icalproperty_impl icalproperty; typedef enum icalproperty_kind { ICAL_ANY_PROPERTY = 0, ICAL_ACTION_PROPERTY, ICAL_ALLOWCONFLICT_PROPERTY, ICAL_ATTACH_PROPERTY, ICAL_ATTENDEE_PROPERTY, ICAL_CALID_PROPERTY, ICAL_CALMASTER_PROPERTY, ICAL_CALSCALE_PROPERTY, ICAL_CARID_PROPERTY, ICAL_CATEGORIES_PROPERTY, ICAL_CLASS_PROPERTY, ICAL_COMMENT_PROPERTY, ICAL_COMPLETED_PROPERTY, ICAL_CONTACT_PROPERTY, ICAL_CREATED_PROPERTY, ICAL_DECREED_PROPERTY, ICAL_DEFAULTCHARSET_PROPERTY, ICAL_DEFAULTLOCALE_PROPERTY, ICAL_DEFAULTTZID_PROPERTY, ICAL_DESCRIPTION_PROPERTY, ICAL_DTEND_PROPERTY, ICAL_DTSTAMP_PROPERTY, ICAL_DTSTART_PROPERTY, ICAL_DUE_PROPERTY, ICAL_DURATION_PROPERTY, ICAL_EXDATE_PROPERTY, ICAL_EXPAND_PROPERTY, ICAL_EXRULE_PROPERTY, ICAL_FREEBUSY_PROPERTY, ICAL_GEO_PROPERTY, ICAL_LASTMODIFIED_PROPERTY, ICAL_LOCATION_PROPERTY, ICAL_MAXRESULTS_PROPERTY, ICAL_MAXRESULTSSIZE_PROPERTY, ICAL_METHOD_PROPERTY, ICAL_ORGANIZER_PROPERTY, ICAL_OWNER_PROPERTY, ICAL_PERCENTCOMPLETE_PROPERTY, ICAL_PRIORITY_PROPERTY, ICAL_PRODID_PROPERTY, ICAL_QUERY_PROPERTY, ICAL_QUERYNAME_PROPERTY, ICAL_RDATE_PROPERTY, ICAL_RECURRENCEID_PROPERTY, ICAL_RELATEDTO_PROPERTY, ICAL_RELCALID_PROPERTY, ICAL_REPEAT_PROPERTY, ICAL_REQUESTSTATUS_PROPERTY, ICAL_RESOURCES_PROPERTY, ICAL_RRULE_PROPERTY, ICAL_SCOPE_PROPERTY, ICAL_SEQUENCE_PROPERTY, ICAL_STATUS_PROPERTY, ICAL_SUMMARY_PROPERTY, ICAL_TARGET_PROPERTY, ICAL_TRANSP_PROPERTY, ICAL_TRIGGER_PROPERTY, ICAL_TZID_PROPERTY, ICAL_TZNAME_PROPERTY, ICAL_TZOFFSETFROM_PROPERTY, ICAL_TZOFFSETTO_PROPERTY, ICAL_TZURL_PROPERTY, ICAL_UID_PROPERTY, ICAL_URL_PROPERTY, ICAL_VERSION_PROPERTY, ICAL_X_PROPERTY, ICAL_XLICCLASS_PROPERTY, ICAL_XLICCLUSTERCOUNT_PROPERTY, ICAL_XLICERROR_PROPERTY, ICAL_XLICMIMECHARSET_PROPERTY, ICAL_XLICMIMECID_PROPERTY, ICAL_XLICMIMECONTENTTYPE_PROPERTY, ICAL_XLICMIMEENCODING_PROPERTY, ICAL_XLICMIMEFILENAME_PROPERTY, ICAL_XLICMIMEOPTINFO_PROPERTY, ICAL_NO_PROPERTY } icalproperty_kind; icalproperty* icalproperty_new_action(enum icalproperty_action v); void icalproperty_set_action(icalproperty* prop, enum icalproperty_action v); enum icalproperty_action icalproperty_get_action(const icalproperty* prop);icalproperty* icalproperty_vanew_action(enum icalproperty_action v, ...); icalproperty* icalproperty_new_allowconflict(const char* v); void icalproperty_set_allowconflict(icalproperty* prop, const char* v); const char* icalproperty_get_allowconflict(const icalproperty* prop);icalproperty* icalproperty_vanew_allowconflict(const char* v, ...); icalproperty* icalproperty_new_attach(icalattach * v); void icalproperty_set_attach(icalproperty* prop, icalattach * v); icalattach * icalproperty_get_attach(const icalproperty* prop);icalproperty* icalproperty_vanew_attach(icalattach * v, ...); icalproperty* icalproperty_new_attendee(const char* v); void icalproperty_set_attendee(icalproperty* prop, const char* v); const char* icalproperty_get_attendee(const icalproperty* prop);icalproperty* icalproperty_vanew_attendee(const char* v, ...); icalproperty* icalproperty_new_calid(const char* v); void icalproperty_set_calid(icalproperty* prop, const char* v); const char* icalproperty_get_calid(const icalproperty* prop);icalproperty* icalproperty_vanew_calid(const char* v, ...); icalproperty* icalproperty_new_calmaster(const char* v); void icalproperty_set_calmaster(icalproperty* prop, const char* v); const char* icalproperty_get_calmaster(const icalproperty* prop);icalproperty* icalproperty_vanew_calmaster(const char* v, ...); icalproperty* icalproperty_new_calscale(const char* v); void icalproperty_set_calscale(icalproperty* prop, const char* v); const char* icalproperty_get_calscale(const icalproperty* prop);icalproperty* icalproperty_vanew_calscale(const char* v, ...); icalproperty* icalproperty_new_carid(const char* v); void icalproperty_set_carid(icalproperty* prop, const char* v); const char* icalproperty_get_carid(const icalproperty* prop);icalproperty* icalproperty_vanew_carid(const char* v, ...); icalproperty* icalproperty_new_categories(const char* v); void icalproperty_set_categories(icalproperty* prop, const char* v); const char* icalproperty_get_categories(const icalproperty* prop);icalproperty* icalproperty_vanew_categories(const char* v, ...); icalproperty* icalproperty_new_class(enum icalproperty_class v); void icalproperty_set_class(icalproperty* prop, enum icalproperty_class v); enum icalproperty_class icalproperty_get_class(const icalproperty* prop);icalproperty* icalproperty_vanew_class(enum icalproperty_class v, ...); icalproperty* icalproperty_new_comment(const char* v); void icalproperty_set_comment(icalproperty* prop, const char* v); const char* icalproperty_get_comment(const icalproperty* prop);icalproperty* icalproperty_vanew_comment(const char* v, ...); icalproperty* icalproperty_new_completed(struct icaltimetype v); void icalproperty_set_completed(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_completed(const icalproperty* prop);icalproperty* icalproperty_vanew_completed(struct icaltimetype v, ...); icalproperty* icalproperty_new_contact(const char* v); void icalproperty_set_contact(icalproperty* prop, const char* v); const char* icalproperty_get_contact(const icalproperty* prop);icalproperty* icalproperty_vanew_contact(const char* v, ...); icalproperty* icalproperty_new_created(struct icaltimetype v); void icalproperty_set_created(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_created(const icalproperty* prop);icalproperty* icalproperty_vanew_created(struct icaltimetype v, ...); icalproperty* icalproperty_new_decreed(const char* v); void icalproperty_set_decreed(icalproperty* prop, const char* v); const char* icalproperty_get_decreed(const icalproperty* prop);icalproperty* icalproperty_vanew_decreed(const char* v, ...); icalproperty* icalproperty_new_defaultcharset(const char* v); void icalproperty_set_defaultcharset(icalproperty* prop, const char* v); const char* icalproperty_get_defaultcharset(const icalproperty* prop);icalproperty* icalproperty_vanew_defaultcharset(const char* v, ...); icalproperty* icalproperty_new_defaultlocale(const char* v); void icalproperty_set_defaultlocale(icalproperty* prop, const char* v); const char* icalproperty_get_defaultlocale(const icalproperty* prop);icalproperty* icalproperty_vanew_defaultlocale(const char* v, ...); icalproperty* icalproperty_new_defaulttzid(const char* v); void icalproperty_set_defaulttzid(icalproperty* prop, const char* v); const char* icalproperty_get_defaulttzid(const icalproperty* prop);icalproperty* icalproperty_vanew_defaulttzid(const char* v, ...); icalproperty* icalproperty_new_description(const char* v); void icalproperty_set_description(icalproperty* prop, const char* v); const char* icalproperty_get_description(const icalproperty* prop);icalproperty* icalproperty_vanew_description(const char* v, ...); icalproperty* icalproperty_new_dtend(struct icaltimetype v); void icalproperty_set_dtend(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtend(const icalproperty* prop);icalproperty* icalproperty_vanew_dtend(struct icaltimetype v, ...); icalproperty* icalproperty_new_dtstamp(struct icaltimetype v); void icalproperty_set_dtstamp(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtstamp(const icalproperty* prop);icalproperty* icalproperty_vanew_dtstamp(struct icaltimetype v, ...); icalproperty* icalproperty_new_dtstart(struct icaltimetype v); void icalproperty_set_dtstart(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_dtstart(const icalproperty* prop);icalproperty* icalproperty_vanew_dtstart(struct icaltimetype v, ...); icalproperty* icalproperty_new_due(struct icaltimetype v); void icalproperty_set_due(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_due(const icalproperty* prop);icalproperty* icalproperty_vanew_due(struct icaltimetype v, ...); icalproperty* icalproperty_new_duration(struct icaldurationtype v); void icalproperty_set_duration(icalproperty* prop, struct icaldurationtype v); struct icaldurationtype icalproperty_get_duration(const icalproperty* prop);icalproperty* icalproperty_vanew_duration(struct icaldurationtype v, ...); icalproperty* icalproperty_new_exdate(struct icaltimetype v); void icalproperty_set_exdate(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_exdate(const icalproperty* prop);icalproperty* icalproperty_vanew_exdate(struct icaltimetype v, ...); icalproperty* icalproperty_new_expand(int v); void icalproperty_set_expand(icalproperty* prop, int v); int icalproperty_get_expand(const icalproperty* prop);icalproperty* icalproperty_vanew_expand(int v, ...); icalproperty* icalproperty_new_exrule(struct icalrecurrencetype v); void icalproperty_set_exrule(icalproperty* prop, struct icalrecurrencetype v); struct icalrecurrencetype icalproperty_get_exrule(const icalproperty* prop);icalproperty* icalproperty_vanew_exrule(struct icalrecurrencetype v, ...); icalproperty* icalproperty_new_freebusy(struct icalperiodtype v); void icalproperty_set_freebusy(icalproperty* prop, struct icalperiodtype v); struct icalperiodtype icalproperty_get_freebusy(const icalproperty* prop);icalproperty* icalproperty_vanew_freebusy(struct icalperiodtype v, ...); icalproperty* icalproperty_new_geo(struct icalgeotype v); void icalproperty_set_geo(icalproperty* prop, struct icalgeotype v); struct icalgeotype icalproperty_get_geo(const icalproperty* prop);icalproperty* icalproperty_vanew_geo(struct icalgeotype v, ...); icalproperty* icalproperty_new_lastmodified(struct icaltimetype v); void icalproperty_set_lastmodified(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_lastmodified(const icalproperty* prop);icalproperty* icalproperty_vanew_lastmodified(struct icaltimetype v, ...); icalproperty* icalproperty_new_location(const char* v); void icalproperty_set_location(icalproperty* prop, const char* v); const char* icalproperty_get_location(const icalproperty* prop);icalproperty* icalproperty_vanew_location(const char* v, ...); icalproperty* icalproperty_new_maxresults(int v); void icalproperty_set_maxresults(icalproperty* prop, int v); int icalproperty_get_maxresults(const icalproperty* prop);icalproperty* icalproperty_vanew_maxresults(int v, ...); icalproperty* icalproperty_new_maxresultssize(int v); void icalproperty_set_maxresultssize(icalproperty* prop, int v); int icalproperty_get_maxresultssize(const icalproperty* prop);icalproperty* icalproperty_vanew_maxresultssize(int v, ...); icalproperty* icalproperty_new_method(enum icalproperty_method v); void icalproperty_set_method(icalproperty* prop, enum icalproperty_method v); enum icalproperty_method icalproperty_get_method(const icalproperty* prop);icalproperty* icalproperty_vanew_method(enum icalproperty_method v, ...); icalproperty* icalproperty_new_organizer(const char* v); void icalproperty_set_organizer(icalproperty* prop, const char* v); const char* icalproperty_get_organizer(const icalproperty* prop);icalproperty* icalproperty_vanew_organizer(const char* v, ...); icalproperty* icalproperty_new_owner(const char* v); void icalproperty_set_owner(icalproperty* prop, const char* v); const char* icalproperty_get_owner(const icalproperty* prop);icalproperty* icalproperty_vanew_owner(const char* v, ...); icalproperty* icalproperty_new_percentcomplete(int v); void icalproperty_set_percentcomplete(icalproperty* prop, int v); int icalproperty_get_percentcomplete(const icalproperty* prop);icalproperty* icalproperty_vanew_percentcomplete(int v, ...); icalproperty* icalproperty_new_priority(int v); void icalproperty_set_priority(icalproperty* prop, int v); int icalproperty_get_priority(const icalproperty* prop);icalproperty* icalproperty_vanew_priority(int v, ...); icalproperty* icalproperty_new_prodid(const char* v); void icalproperty_set_prodid(icalproperty* prop, const char* v); const char* icalproperty_get_prodid(const icalproperty* prop);icalproperty* icalproperty_vanew_prodid(const char* v, ...); icalproperty* icalproperty_new_query(const char* v); void icalproperty_set_query(icalproperty* prop, const char* v); const char* icalproperty_get_query(const icalproperty* prop);icalproperty* icalproperty_vanew_query(const char* v, ...); icalproperty* icalproperty_new_queryname(const char* v); void icalproperty_set_queryname(icalproperty* prop, const char* v); const char* icalproperty_get_queryname(const icalproperty* prop);icalproperty* icalproperty_vanew_queryname(const char* v, ...); icalproperty* icalproperty_new_rdate(struct icaldatetimeperiodtype v); void icalproperty_set_rdate(icalproperty* prop, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalproperty_get_rdate(const icalproperty* prop);icalproperty* icalproperty_vanew_rdate(struct icaldatetimeperiodtype v, ...); icalproperty* icalproperty_new_recurrenceid(struct icaltimetype v); void icalproperty_set_recurrenceid(icalproperty* prop, struct icaltimetype v); struct icaltimetype icalproperty_get_recurrenceid(const icalproperty* prop);icalproperty* icalproperty_vanew_recurrenceid(struct icaltimetype v, ...); icalproperty* icalproperty_new_relatedto(const char* v); void icalproperty_set_relatedto(icalproperty* prop, const char* v); const char* icalproperty_get_relatedto(const icalproperty* prop);icalproperty* icalproperty_vanew_relatedto(const char* v, ...); icalproperty* icalproperty_new_relcalid(const char* v); void icalproperty_set_relcalid(icalproperty* prop, const char* v); const char* icalproperty_get_relcalid(const icalproperty* prop);icalproperty* icalproperty_vanew_relcalid(const char* v, ...); icalproperty* icalproperty_new_repeat(int v); void icalproperty_set_repeat(icalproperty* prop, int v); int icalproperty_get_repeat(const icalproperty* prop);icalproperty* icalproperty_vanew_repeat(int v, ...); icalproperty* icalproperty_new_requeststatus(struct icalreqstattype v); void icalproperty_set_requeststatus(icalproperty* prop, struct icalreqstattype v); struct icalreqstattype icalproperty_get_requeststatus(const icalproperty* prop);icalproperty* icalproperty_vanew_requeststatus(struct icalreqstattype v, ...); icalproperty* icalproperty_new_resources(const char* v); void icalproperty_set_resources(icalproperty* prop, const char* v); const char* icalproperty_get_resources(const icalproperty* prop);icalproperty* icalproperty_vanew_resources(const char* v, ...); icalproperty* icalproperty_new_rrule(struct icalrecurrencetype v); void icalproperty_set_rrule(icalproperty* prop, struct icalrecurrencetype v); struct icalrecurrencetype icalproperty_get_rrule(const icalproperty* prop);icalproperty* icalproperty_vanew_rrule(struct icalrecurrencetype v, ...); icalproperty* icalproperty_new_scope(const char* v); void icalproperty_set_scope(icalproperty* prop, const char* v); const char* icalproperty_get_scope(const icalproperty* prop);icalproperty* icalproperty_vanew_scope(const char* v, ...); icalproperty* icalproperty_new_sequence(int v); void icalproperty_set_sequence(icalproperty* prop, int v); int icalproperty_get_sequence(const icalproperty* prop);icalproperty* icalproperty_vanew_sequence(int v, ...); icalproperty* icalproperty_new_status(enum icalproperty_status v); void icalproperty_set_status(icalproperty* prop, enum icalproperty_status v); enum icalproperty_status icalproperty_get_status(const icalproperty* prop);icalproperty* icalproperty_vanew_status(enum icalproperty_status v, ...); icalproperty* icalproperty_new_summary(const char* v); void icalproperty_set_summary(icalproperty* prop, const char* v); const char* icalproperty_get_summary(const icalproperty* prop);icalproperty* icalproperty_vanew_summary(const char* v, ...); icalproperty* icalproperty_new_target(const char* v); void icalproperty_set_target(icalproperty* prop, const char* v); const char* icalproperty_get_target(const icalproperty* prop);icalproperty* icalproperty_vanew_target(const char* v, ...); icalproperty* icalproperty_new_transp(enum icalproperty_transp v); void icalproperty_set_transp(icalproperty* prop, enum icalproperty_transp v); enum icalproperty_transp icalproperty_get_transp(const icalproperty* prop);icalproperty* icalproperty_vanew_transp(enum icalproperty_transp v, ...); icalproperty* icalproperty_new_trigger(struct icaltriggertype v); void icalproperty_set_trigger(icalproperty* prop, struct icaltriggertype v); struct icaltriggertype icalproperty_get_trigger(const icalproperty* prop);icalproperty* icalproperty_vanew_trigger(struct icaltriggertype v, ...); icalproperty* icalproperty_new_tzid(const char* v); void icalproperty_set_tzid(icalproperty* prop, const char* v); const char* icalproperty_get_tzid(const icalproperty* prop);icalproperty* icalproperty_vanew_tzid(const char* v, ...); icalproperty* icalproperty_new_tzname(const char* v); void icalproperty_set_tzname(icalproperty* prop, const char* v); const char* icalproperty_get_tzname(const icalproperty* prop);icalproperty* icalproperty_vanew_tzname(const char* v, ...); icalproperty* icalproperty_new_tzoffsetfrom(int v); void icalproperty_set_tzoffsetfrom(icalproperty* prop, int v); int icalproperty_get_tzoffsetfrom(const icalproperty* prop);icalproperty* icalproperty_vanew_tzoffsetfrom(int v, ...); icalproperty* icalproperty_new_tzoffsetto(int v); void icalproperty_set_tzoffsetto(icalproperty* prop, int v); int icalproperty_get_tzoffsetto(const icalproperty* prop);icalproperty* icalproperty_vanew_tzoffsetto(int v, ...); icalproperty* icalproperty_new_tzurl(const char* v); void icalproperty_set_tzurl(icalproperty* prop, const char* v); const char* icalproperty_get_tzurl(const icalproperty* prop);icalproperty* icalproperty_vanew_tzurl(const char* v, ...); icalproperty* icalproperty_new_uid(const char* v); void icalproperty_set_uid(icalproperty* prop, const char* v); const char* icalproperty_get_uid(const icalproperty* prop);icalproperty* icalproperty_vanew_uid(const char* v, ...); icalproperty* icalproperty_new_url(const char* v); void icalproperty_set_url(icalproperty* prop, const char* v); const char* icalproperty_get_url(const icalproperty* prop);icalproperty* icalproperty_vanew_url(const char* v, ...); icalproperty* icalproperty_new_version(const char* v); void icalproperty_set_version(icalproperty* prop, const char* v); const char* icalproperty_get_version(const icalproperty* prop);icalproperty* icalproperty_vanew_version(const char* v, ...); icalproperty* icalproperty_new_x(const char* v); void icalproperty_set_x(icalproperty* prop, const char* v); const char* icalproperty_get_x(const icalproperty* prop);icalproperty* icalproperty_vanew_x(const char* v, ...); icalproperty* icalproperty_new_xlicclass(enum icalproperty_xlicclass v); void icalproperty_set_xlicclass(icalproperty* prop, enum icalproperty_xlicclass v); enum icalproperty_xlicclass icalproperty_get_xlicclass(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicclass(enum icalproperty_xlicclass v, ...); icalproperty* icalproperty_new_xlicclustercount(const char* v); void icalproperty_set_xlicclustercount(icalproperty* prop, const char* v); const char* icalproperty_get_xlicclustercount(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicclustercount(const char* v, ...); icalproperty* icalproperty_new_xlicerror(const char* v); void icalproperty_set_xlicerror(icalproperty* prop, const char* v); const char* icalproperty_get_xlicerror(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicerror(const char* v, ...); icalproperty* icalproperty_new_xlicmimecharset(const char* v); void icalproperty_set_xlicmimecharset(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecharset(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecharset(const char* v, ...); icalproperty* icalproperty_new_xlicmimecid(const char* v); void icalproperty_set_xlicmimecid(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecid(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecid(const char* v, ...); icalproperty* icalproperty_new_xlicmimecontenttype(const char* v); void icalproperty_set_xlicmimecontenttype(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimecontenttype(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimecontenttype(const char* v, ...); icalproperty* icalproperty_new_xlicmimeencoding(const char* v); void icalproperty_set_xlicmimeencoding(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimeencoding(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimeencoding(const char* v, ...); icalproperty* icalproperty_new_xlicmimefilename(const char* v); void icalproperty_set_xlicmimefilename(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimefilename(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimefilename(const char* v, ...); icalproperty* icalproperty_new_xlicmimeoptinfo(const char* v); void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, const char* v); const char* icalproperty_get_xlicmimeoptinfo(const icalproperty* prop);icalproperty* icalproperty_vanew_xlicmimeoptinfo(const char* v, ...); # 37 "icalvalue.h" 2 icalvalue* icalvalue_new(icalvalue_kind kind); icalvalue* icalvalue_new_clone(const icalvalue* value); icalvalue* icalvalue_new_from_string(icalvalue_kind kind, const char* str); void icalvalue_free(icalvalue* value); int icalvalue_is_valid(const icalvalue* value); const char* icalvalue_as_ical_string(const icalvalue* value); icalvalue_kind icalvalue_isa(const icalvalue* value); int icalvalue_isa_value(void*); icalparameter_xliccomparetype icalvalue_compare(const icalvalue* a, const icalvalue *b); icalvalue* icalvalue_new_recur (struct icalrecurrencetype v); void icalvalue_set_recur(icalvalue* value, struct icalrecurrencetype v); struct icalrecurrencetype icalvalue_get_recur(const icalvalue* value); icalvalue* icalvalue_new_trigger (struct icaltriggertype v); void icalvalue_set_trigger(icalvalue* value, struct icaltriggertype v); struct icaltriggertype icalvalue_get_trigger(const icalvalue* value); icalvalue* icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v); void icalvalue_set_datetimeperiod(icalvalue* value, struct icaldatetimeperiodtype v); struct icaldatetimeperiodtype icalvalue_get_datetimeperiod(const icalvalue* value); icalvalue_kind icalvalue_string_to_kind(const char* str); const char* icalvalue_kind_to_string(const icalvalue_kind kind); int icalvalue_kind_is_valid(const icalvalue_kind kind); int icalvalue_encode_ical_string(const char *szText, char *szEncText, int MaxBufferLen); # 39 "icalproperty.h" 2 icalproperty* icalproperty_new(icalproperty_kind kind); icalproperty* icalproperty_new_clone(icalproperty * prop); icalproperty* icalproperty_new_from_string(const char* str); const char* icalproperty_as_ical_string(icalproperty* prop); void icalproperty_free(icalproperty* prop); icalproperty_kind icalproperty_isa(icalproperty* property); int icalproperty_isa_property(void* property); void icalproperty_add_parameters(struct icalproperty_impl *prop,va_list args); void icalproperty_add_parameter(icalproperty* prop,icalparameter* parameter); void icalproperty_set_parameter(icalproperty* prop,icalparameter* parameter); void icalproperty_set_parameter_from_string(icalproperty* prop, const char* name, const char* value); const char* icalproperty_get_parameter_as_string(icalproperty* prop, const char* name); void icalproperty_remove_parameter(icalproperty* prop, icalparameter_kind kind); void icalproperty_remove_parameter_by_kind(icalproperty* prop, icalparameter_kind kind); void icalproperty_remove_parameter_by_name(icalproperty* prop, const char *name); void icalproperty_remove_parameter_by_ref(icalproperty* prop, icalparameter *param); int icalproperty_count_parameters(const icalproperty* prop); icalparameter* icalproperty_get_first_parameter(icalproperty* prop, icalparameter_kind kind); icalparameter* icalproperty_get_next_parameter(icalproperty* prop, icalparameter_kind kind); void icalproperty_set_value(icalproperty* prop, icalvalue* value); void icalproperty_set_value_from_string(icalproperty* prop,const char* value, const char* kind); icalvalue* icalproperty_get_value(const icalproperty* prop); const char* icalproperty_get_value_as_string(const icalproperty* prop); void icalproperty_set_x_name(icalproperty* prop, const char* name); const char* icalproperty_get_x_name(icalproperty* prop); const char* icalproperty_get_property_name (const icalproperty* prop); icalvalue_kind icalparameter_value_to_value_kind(icalparameter_value value); icalvalue_kind icalproperty_kind_to_value_kind(icalproperty_kind kind); icalproperty_kind icalproperty_value_kind_to_kind(icalvalue_kind kind); const char* icalproperty_kind_to_string(icalproperty_kind kind); icalproperty_kind icalproperty_string_to_kind(const char* string); int icalproperty_kind_is_valid(const icalproperty_kind kind); icalproperty_method icalproperty_string_to_method(const char* str); const char* icalproperty_method_to_string(icalproperty_method method); const char* icalproperty_enum_to_string(int e); int icalproperty_string_to_enum(const char* str); int icalproperty_kind_and_string_to_enum(const int kind, const char* str); const char* icalproperty_status_to_string(icalproperty_status); icalproperty_status icalproperty_string_to_status(const char* string); int icalproperty_enum_belongs_to_property(icalproperty_kind kind, int e); # 32 "icalproperty.c" 2 # 1 "icalcomponent.h" 1 # 30 "icalcomponent.h" # 1 "pvl.h" 1 # 13 "pvl.h" typedef struct pvl_list_t* pvl_list; typedef struct pvl_elem_t* pvl_elem; typedef struct pvl_elem_t { int MAGIC; void *d; struct pvl_elem_t *next; struct pvl_elem_t *prior; } pvl_elem_t; # 37 "pvl.h" extern int pvl_elem_count; extern int pvl_list_count; pvl_elem pvl_new_element(void* d, pvl_elem next,pvl_elem prior); pvl_list pvl_newlist(void); void pvl_free(pvl_list); void pvl_unshift(pvl_list l,void *d); void* pvl_shift(pvl_list l); pvl_elem pvl_head(pvl_list); void pvl_push(pvl_list l,void *d); void* pvl_pop(pvl_list l); pvl_elem pvl_tail(pvl_list); typedef int (*pvl_comparef)(void* a, void* b); void pvl_insert_ordered(pvl_list l,pvl_comparef f,void *d); void pvl_insert_after(pvl_list l,pvl_elem e,void *d); void pvl_insert_before(pvl_list l,pvl_elem e,void *d); void* pvl_remove(pvl_list,pvl_elem); void pvl_clear(pvl_list); int pvl_count(pvl_list); pvl_elem pvl_next(pvl_elem e); pvl_elem pvl_prior(pvl_elem e); void* pvl_data(pvl_elem); typedef int (*pvl_findf)(void* a, void* b); pvl_elem pvl_find(pvl_list l,pvl_findf f,void* v); pvl_elem pvl_find_next(pvl_list l,pvl_findf f,void* v); typedef void (*pvl_applyf)(void* a, void* b); void pvl_apply(pvl_list l,pvl_applyf f, void *v); # 31 "icalcomponent.h" 2 typedef struct icalcomponent_impl icalcomponent; # 45 "icalcomponent.h" typedef struct icalcompiter { icalcomponent_kind kind; pvl_elem iter; } icalcompiter; icalcomponent* icalcomponent_new(icalcomponent_kind kind); icalcomponent* icalcomponent_new_clone(icalcomponent* component); icalcomponent* icalcomponent_new_from_string(char* str); icalcomponent* icalcomponent_vanew(icalcomponent_kind kind, ...); void icalcomponent_free(icalcomponent* component); char* icalcomponent_as_ical_string(icalcomponent* component); int icalcomponent_is_valid(icalcomponent* component); icalcomponent_kind icalcomponent_isa(const icalcomponent* component); int icalcomponent_isa_component (void* component); void icalcomponent_add_property(icalcomponent* component, icalproperty* property); void icalcomponent_remove_property(icalcomponent* component, icalproperty* property); int icalcomponent_count_properties(icalcomponent* component, icalproperty_kind kind); icalproperty* icalcomponent_get_current_property(icalcomponent* component); icalproperty* icalcomponent_get_first_property(icalcomponent* component, icalproperty_kind kind); icalproperty* icalcomponent_get_next_property(icalcomponent* component, icalproperty_kind kind); # 96 "icalcomponent.h" icalcomponent* icalcomponent_get_inner(icalcomponent* comp); void icalcomponent_add_component(icalcomponent* parent, icalcomponent* child); void icalcomponent_remove_component(icalcomponent* parent, icalcomponent* child); int icalcomponent_count_components(icalcomponent* component, icalcomponent_kind kind); void icalcomponent_merge_component(icalcomponent* comp, icalcomponent* comp_to_merge); # 123 "icalcomponent.h" icalcomponent* icalcomponent_get_current_component (icalcomponent* component); icalcomponent* icalcomponent_get_first_component(icalcomponent* component, icalcomponent_kind kind); icalcomponent* icalcomponent_get_next_component(icalcomponent* component, icalcomponent_kind kind); icalcompiter icalcomponent_begin_component(icalcomponent* component, icalcomponent_kind kind); icalcompiter icalcomponent_end_component(icalcomponent* component, icalcomponent_kind kind); icalcomponent* icalcompiter_next(icalcompiter* i); icalcomponent* icalcompiter_prior(icalcompiter* i); icalcomponent* icalcompiter_deref(icalcompiter* i); int icalcomponent_check_restrictions(icalcomponent* comp); int icalcomponent_count_errors(icalcomponent* component); void icalcomponent_strip_errors(icalcomponent* component); void icalcomponent_convert_errors(icalcomponent* component); icalcomponent* icalcomponent_get_parent(icalcomponent* component); void icalcomponent_set_parent(icalcomponent* component, icalcomponent* parent); int icalcomponent_kind_is_valid(const icalcomponent_kind kind); icalcomponent_kind icalcomponent_string_to_kind(const char* string); const char* icalcomponent_kind_to_string(icalcomponent_kind kind); # 178 "icalcomponent.h" icalcomponent* icalcomponent_get_first_real_component(icalcomponent *c); struct icaltime_span icalcomponent_get_span(icalcomponent* comp); void icalcomponent_set_dtstart(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_dtstart(icalcomponent* comp); # 199 "icalcomponent.h" struct icaltimetype icalcomponent_get_dtend(icalcomponent* comp); void icalcomponent_set_dtend(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_due(icalcomponent* comp); void icalcomponent_set_due(icalcomponent* comp, struct icaltimetype v); void icalcomponent_set_duration(icalcomponent* comp, struct icaldurationtype v); struct icaldurationtype icalcomponent_get_duration(icalcomponent* comp); void icalcomponent_set_method(icalcomponent* comp, icalproperty_method method); icalproperty_method icalcomponent_get_method(icalcomponent* comp); struct icaltimetype icalcomponent_get_dtstamp(icalcomponent* comp); void icalcomponent_set_dtstamp(icalcomponent* comp, struct icaltimetype v); void icalcomponent_set_summary(icalcomponent* comp, const char* v); const char* icalcomponent_get_summary(icalcomponent* comp); void icalcomponent_set_comment(icalcomponent* comp, const char* v); const char* icalcomponent_get_comment(icalcomponent* comp); void icalcomponent_set_uid(icalcomponent* comp, const char* v); const char* icalcomponent_get_uid(icalcomponent* comp); void icalcomponent_set_relcalid(icalcomponent* comp, const char* v); const char* icalcomponent_get_relcalid(icalcomponent* comp); void icalcomponent_set_recurrenceid(icalcomponent* comp, struct icaltimetype v); struct icaltimetype icalcomponent_get_recurrenceid(icalcomponent* comp); void icalcomponent_set_description(icalcomponent* comp, const char* v); const char* icalcomponent_get_description(icalcomponent* comp); void icalcomponent_set_location(icalcomponent* comp, const char* v); const char* icalcomponent_get_location(icalcomponent* comp); void icalcomponent_set_sequence(icalcomponent* comp, int v); int icalcomponent_get_sequence(icalcomponent* comp); void icalcomponent_set_status(icalcomponent* comp, enum icalproperty_status v); enum icalproperty_status icalcomponent_get_status(icalcomponent* comp); void icalcomponent_foreach_tzid(icalcomponent* comp, void (*callback)(icalparameter *param, void *data), void *callback_data); icaltimezone* icalcomponent_get_timezone(icalcomponent* comp, const char *tzid); int icalproperty_recurrence_is_excluded(icalcomponent *comp, struct icaltimetype *dtstart, struct icaltimetype *recurtime); void icalcomponent_foreach_recurrence(icalcomponent* comp, struct icaltimetype start, struct icaltimetype end, void (*callback)(icalcomponent *comp, struct icaltime_span *span, void *data), void *callback_data); icalcomponent* icalcomponent_new_vcalendar(); icalcomponent* icalcomponent_new_vevent(); icalcomponent* icalcomponent_new_vtodo(); icalcomponent* icalcomponent_new_vjournal(); icalcomponent* icalcomponent_new_valarm(); icalcomponent* icalcomponent_new_vfreebusy(); icalcomponent* icalcomponent_new_vtimezone(); icalcomponent* icalcomponent_new_xstandard(); icalcomponent* icalcomponent_new_xdaylight(); icalcomponent* icalcomponent_new_vagenda(); icalcomponent* icalcomponent_new_vquery(); # 34 "icalproperty.c" 2 # 1 "icalerror.h" 1 # 30 "icalerror.h" # 1 "/usr/include/assert.h" 1 3 4 # 31 "icalerror.h" 2 # 1 "/usr/include/stdio.h" 1 3 4 # 30 "/usr/include/stdio.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 35 "/usr/include/stdio.h" 2 3 4 # 44 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE FILE; # 62 "/usr/include/stdio.h" 3 4 typedef struct _IO_FILE __FILE; # 72 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/libio.h" 1 3 4 # 32 "/usr/include/libio.h" 3 4 # 1 "/usr/include/_G_config.h" 1 3 4 # 14 "/usr/include/_G_config.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef long int wchar_t; # 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4 typedef unsigned int wint_t; # 15 "/usr/include/_G_config.h" 2 3 4 # 24 "/usr/include/_G_config.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 48 "/usr/include/wchar.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 49 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/bits/wchar.h" 1 3 4 # 51 "/usr/include/wchar.h" 2 3 4 # 76 "/usr/include/wchar.h" 3 4 typedef struct { int __count; union { wint_t __wch; char __wchb[4]; } __value; } __mbstate_t; # 25 "/usr/include/_G_config.h" 2 3 4 typedef struct { __off_t __pos; __mbstate_t __state; } _G_fpos_t; typedef struct { __off64_t __pos; __mbstate_t __state; } _G_fpos64_t; # 44 "/usr/include/_G_config.h" 3 4 # 1 "/usr/include/gconv.h" 1 3 4 # 28 "/usr/include/gconv.h" 3 4 # 1 "/usr/include/wchar.h" 1 3 4 # 48 "/usr/include/wchar.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 49 "/usr/include/wchar.h" 2 3 4 # 29 "/usr/include/gconv.h" 2 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 32 "/usr/include/gconv.h" 2 3 4 enum { __GCONV_OK = 0, __GCONV_NOCONV, __GCONV_NODB, __GCONV_NOMEM, __GCONV_EMPTY_INPUT, __GCONV_FULL_OUTPUT, __GCONV_ILLEGAL_INPUT, __GCONV_INCOMPLETE_INPUT, __GCONV_ILLEGAL_DESCRIPTOR, __GCONV_INTERNAL_ERROR }; enum { __GCONV_IS_LAST = 0x0001, __GCONV_IGNORE_ERRORS = 0x0002 }; struct __gconv_step; struct __gconv_step_data; struct __gconv_loaded_object; struct __gconv_trans_data; typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, __const unsigned char **, __const unsigned char *, unsigned char **, size_t *, int, int); typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); typedef int (*__gconv_init_fct) (struct __gconv_step *); typedef void (*__gconv_end_fct) (struct __gconv_step *); typedef int (*__gconv_trans_fct) (struct __gconv_step *, struct __gconv_step_data *, void *, __const unsigned char *, __const unsigned char **, __const unsigned char *, unsigned char **, size_t *); typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *, __const unsigned char *, unsigned char *, unsigned char *); typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***, size_t *); typedef int (*__gconv_trans_init_fct) (void **, const char *); typedef void (*__gconv_trans_end_fct) (void *); struct __gconv_trans_data { __gconv_trans_fct __trans_fct; __gconv_trans_context_fct __trans_context_fct; __gconv_trans_end_fct __trans_end_fct; void *__data; struct __gconv_trans_data *__next; }; struct __gconv_step { struct __gconv_loaded_object *__shlib_handle; __const char *__modname; int __counter; char *__from_name; char *__to_name; __gconv_fct __fct; __gconv_btowc_fct __btowc_fct; __gconv_init_fct __init_fct; __gconv_end_fct __end_fct; int __min_needed_from; int __max_needed_from; int __min_needed_to; int __max_needed_to; int __stateful; void *__data; }; struct __gconv_step_data { unsigned char *__outbuf; unsigned char *__outbufend; int __flags; int __invocation_counter; int __internal_use; __mbstate_t *__statep; __mbstate_t __state; struct __gconv_trans_data *__trans; }; typedef struct __gconv_info { size_t __nsteps; struct __gconv_step *__steps; __extension__ struct __gconv_step_data __data []; } *__gconv_t; # 45 "/usr/include/_G_config.h" 2 3 4 typedef union { struct __gconv_info __cd; struct { struct __gconv_info __cd; struct __gconv_step_data __data; } __combined; } _G_iconv_t; typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); # 33 "/usr/include/libio.h" 2 3 4 # 166 "/usr/include/libio.h" 3 4 struct _IO_jump_t; struct _IO_FILE; # 176 "/usr/include/libio.h" 3 4 typedef void _IO_lock_t; struct _IO_marker { struct _IO_marker *_next; struct _IO_FILE *_sbuf; int _pos; # 199 "/usr/include/libio.h" 3 4 }; enum __codecvt_result { __codecvt_ok, __codecvt_partial, __codecvt_error, __codecvt_noconv }; # 267 "/usr/include/libio.h" 3 4 struct _IO_FILE { int _flags; char* _IO_read_ptr; char* _IO_read_end; char* _IO_read_base; char* _IO_write_base; char* _IO_write_ptr; char* _IO_write_end; char* _IO_buf_base; char* _IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _flags2; __off_t _old_offset; unsigned short _cur_column; signed char _vtable_offset; char _shortbuf[1]; _IO_lock_t *_lock; # 315 "/usr/include/libio.h" 3 4 __off64_t _offset; # 324 "/usr/include/libio.h" 3 4 void *__pad1; void *__pad2; void *__pad3; void *__pad4; size_t __pad5; int _mode; char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; }; typedef struct _IO_FILE _IO_FILE; struct _IO_FILE_plus; extern struct _IO_FILE_plus _IO_2_1_stdin_; extern struct _IO_FILE_plus _IO_2_1_stdout_; extern struct _IO_FILE_plus _IO_2_1_stderr_; # 360 "/usr/include/libio.h" 3 4 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, size_t __n); typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); typedef int __io_close_fn (void *__cookie); # 412 "/usr/include/libio.h" 3 4 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__)); extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__)); extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__)); # 450 "/usr/include/libio.h" 3 4 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__)); extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); # 480 "/usr/include/libio.h" 3 4 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, __gnuc_va_list, int *__restrict); extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, __gnuc_va_list); extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__)); extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__)); extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__)); extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__)); extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); # 73 "/usr/include/stdio.h" 2 3 4 # 86 "/usr/include/stdio.h" 3 4 typedef _G_fpos64_t fpos_t; # 138 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 # 139 "/usr/include/stdio.h" 2 3 4 extern struct _IO_FILE *stdin; extern struct _IO_FILE *stdout; extern struct _IO_FILE *stderr; extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); # 172 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64"); # 183 "/usr/include/stdio.h" 3 4 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)); extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)); # 201 "/usr/include/stdio.h" 3 4 extern char *tempnam (__const char *__dir, __const char *__pfx) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); extern int fclose (FILE *__stream); extern int fflush (FILE *__stream); # 226 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 240 "/usr/include/stdio.h" 3 4 # 257 "/usr/include/stdio.h" 3 4 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64"); extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64"); # 278 "/usr/include/stdio.h" 3 4 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)); # 304 "/usr/include/stdio.h" 3 4 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) __attribute__ ((__nothrow__)); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) __attribute__ ((__nothrow__)); extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...); extern int printf (__const char *__restrict __format, ...); extern int sprintf (char *__restrict __s, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg); extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); extern int vsprintf (char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)); extern int snprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); # 398 "/usr/include/stdio.h" 3 4 extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) ; extern int scanf (__const char *__restrict __format, ...) ; extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); # 440 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); # 464 "/usr/include/stdio.h" 3 4 extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 475 "/usr/include/stdio.h" 3 4 extern int fgetc_unlocked (FILE *__stream); extern int fputc (int __c, FILE *__stream); extern int putc (int __c, FILE *__stream); extern int putchar (int __c); # 508 "/usr/include/stdio.h" 3 4 extern int fputc_unlocked (int __c, FILE *__stream); extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream); extern int putw (int __w, FILE *__stream); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ; extern char *gets (char *__s) ; # 589 "/usr/include/stdio.h" 3 4 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); extern int puts (__const char *__s); extern int ungetc (int __c, FILE *__stream); extern size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s) ; # 642 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern int fseek (FILE *__stream, long int __off, int __whence); extern long int ftell (FILE *__stream) ; extern void rewind (FILE *__stream); # 686 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); # 711 "/usr/include/stdio.h" 3 4 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); # 729 "/usr/include/stdio.h" 3 4 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void perror (__const char *__s); # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 # 27 "/usr/include/bits/sys_errlist.h" 3 4 extern int sys_nerr; extern __const char *__const sys_errlist[]; # 759 "/usr/include/stdio.h" 2 3 4 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; # 778 "/usr/include/stdio.h" 3 4 extern FILE *popen (__const char *__command, __const char *__modes) ; extern int pclose (FILE *__stream); extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); extern char *cuserid (char *__s); # 818 "/usr/include/stdio.h" 3 4 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); # 1 "/usr/include/getopt.h" 1 3 4 # 59 "/usr/include/getopt.h" 3 4 extern char *optarg; # 73 "/usr/include/getopt.h" 3 4 extern int optind; extern int opterr; extern int optopt; # 152 "/usr/include/getopt.h" 3 4 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __attribute__ ((__nothrow__)); # 834 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/bits/stdio.h" 1 3 4 # 33 "/usr/include/bits/stdio.h" 3 4 extern __inline int vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) { return vfprintf (stdout, __fmt, __arg); } extern __inline int getchar (void) { return _IO_getc (stdin); } extern __inline int getc_unlocked (FILE *__fp) { return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); } extern __inline int getchar_unlocked (void) { return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); } extern __inline int putchar (int __c) { return _IO_putc (__c, stdout); } extern __inline int fputc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline int putc_unlocked (int __c, FILE *__stream) { return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); } extern __inline int putchar_unlocked (int __c) { return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); } # 111 "/usr/include/bits/stdio.h" 3 4 extern __inline int __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x10) != 0); } extern __inline int __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) { return (((__stream)->_flags & 0x20) != 0); } # 840 "/usr/include/stdio.h" 2 3 4 # 848 "/usr/include/stdio.h" 3 4 # 32 "icalerror.h" 2 # 1 "../../../../config.h" 1 # 368 "../../../../config.h" unsigned long strlcat(char*, const char*, unsigned long); # 380 "../../../../config.h" unsigned long strlcpy(char*, const char*, unsigned long); # 36 "icalerror.h" 2 # 44 "icalerror.h" void icalerror_stop_here(void); void icalerror_crash_here(void); typedef enum icalerrorenum { ICAL_NO_ERROR, ICAL_BADARG_ERROR, ICAL_NEWFAILED_ERROR, ICAL_ALLOCATION_ERROR, ICAL_MALFORMEDDATA_ERROR, ICAL_PARSE_ERROR, ICAL_INTERNAL_ERROR, ICAL_FILE_ERROR, ICAL_USAGE_ERROR, ICAL_UNIMPLEMENTED_ERROR, ICAL_UNKNOWN_ERROR } icalerrorenum; icalerrorenum * icalerrno_return(void); extern int icalerror_errors_are_fatal; # 82 "icalerror.h" void icalerror_clear_errno(void); void _icalerror_set_errno(icalerrorenum); typedef enum icalerrorstate { ICAL_ERROR_FATAL, ICAL_ERROR_NONFATAL, ICAL_ERROR_DEFAULT, ICAL_ERROR_UNKNOWN } icalerrorstate ; char* icalerror_strerror(icalerrorenum e); char* icalerror_perror(); void icalerror_set_error_state( icalerrorenum error, icalerrorstate); icalerrorstate icalerror_get_error_state( icalerrorenum error); # 108 "icalerror.h" void icalerror_set_errno(icalerrorenum x); # 153 "icalerror.h" icalerrorstate icalerror_supress(const char* error); void icalerror_restore(const char* error, icalerrorstate es); # 37 "icalproperty.c" 2 # 1 "icalmemory.h" 1 # 30 "icalmemory.h" # 1 "/usr/include/sys/types.h" 1 3 4 # 29 "/usr/include/sys/types.h" 3 4 typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino64_t ino_t; # 62 "/usr/include/sys/types.h" 3 4 typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off64_t off_t; # 100 "/usr/include/sys/types.h" 3 4 typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 137 "/usr/include/sys/types.h" 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 148 "/usr/include/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 195 "/usr/include/sys/types.h" 3 4 typedef int int8_t __attribute__ ((__mode__ (__QI__))); typedef int int16_t __attribute__ ((__mode__ (__HI__))); typedef int int32_t __attribute__ ((__mode__ (__SI__))); typedef int int64_t __attribute__ ((__mode__ (__DI__))); typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); typedef int register_t __attribute__ ((__mode__ (__word__))); # 217 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 37 "/usr/include/endian.h" 3 4 # 1 "/usr/include/bits/endian.h" 1 3 4 # 38 "/usr/include/endian.h" 2 3 4 # 218 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/select.h" 1 3 4 # 31 "/usr/include/sys/select.h" 3 4 # 1 "/usr/include/bits/select.h" 1 3 4 # 32 "/usr/include/sys/select.h" 2 3 4 # 1 "/usr/include/bits/sigset.h" 1 3 4 # 23 "/usr/include/bits/sigset.h" 3 4 typedef int __sig_atomic_t; typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 35 "/usr/include/sys/select.h" 2 3 4 typedef __sigset_t sigset_t; # 1 "/usr/include/bits/time.h" 1 3 4 # 69 "/usr/include/bits/time.h" 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 47 "/usr/include/sys/select.h" 2 3 4 # 55 "/usr/include/sys/select.h" 3 4 typedef long int __fd_mask; # 67 "/usr/include/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 99 "/usr/include/sys/select.h" 3 4 # 109 "/usr/include/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 128 "/usr/include/sys/select.h" 3 4 # 221 "/usr/include/sys/types.h" 2 3 4 # 1 "/usr/include/sys/sysmacros.h" 1 3 4 # 29 "/usr/include/sys/sysmacros.h" 3 4 __extension__ extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, unsigned int __minor) __attribute__ ((__nothrow__)); __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) { return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); } __extension__ extern __inline unsigned int __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) { return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) { return ((__minor & 0xff) | ((__major & 0xfff) << 8) | (((unsigned long long int) (__minor & ~0xff)) << 12) | (((unsigned long long int) (__major & ~0xfff)) << 32)); } # 224 "/usr/include/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; # 248 "/usr/include/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt_t; typedef __fsblkcnt64_t fsblkcnt_t; typedef __fsfilcnt64_t fsfilcnt_t; # 270 "/usr/include/sys/types.h" 3 4 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 # 36 "/usr/include/bits/pthreadtypes.h" 3 4 typedef unsigned long int pthread_t; typedef union { char __size[36]; long int __align; } pthread_attr_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { struct { int __lock; unsigned int __futex; __extension__ unsigned long long int __total_seq; __extension__ unsigned long long int __wakeup_seq; __extension__ unsigned long long int __woken_seq; void *__mutex; unsigned int __nwaiters; unsigned int __broadcast_seq; } __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { char __size[4]; long int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned int __flags; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; # 271 "/usr/include/sys/types.h" 2 3 4 # 31 "icalmemory.h" 2 void* icalmemory_tmp_buffer(size_t size); char* icalmemory_tmp_copy(const char* str); void icalmemory_add_tmp_buffer(void*); void icalmemory_free_ring(void); void* icalmemory_new_buffer(size_t size); void* icalmemory_resize_buffer(void* buf, size_t size); void icalmemory_free_buffer(void* buf); # 70 "icalmemory.h" void icalmemory_append_string(char** buf, char** pos, size_t* buf_size, const char* string); void icalmemory_append_char(char** buf, char** pos, size_t* buf_size, char ch); char* icalmemory_strdup(const char *s); # 38 "icalproperty.c" 2 # 1 "icalparser.h" 1 # 36 "icalparser.h" typedef struct icalparser_impl icalparser; # 48 "icalparser.h" typedef enum icalparser_state { ICALPARSER_ERROR, ICALPARSER_SUCCESS, ICALPARSER_BEGIN_COMP, ICALPARSER_END_COMP, ICALPARSER_IN_PROGRESS } icalparser_state; icalparser* icalparser_new(void); icalcomponent* icalparser_add_line(icalparser* parser, char* str ); icalcomponent* icalparser_clean(icalparser* parser); icalparser_state icalparser_get_state(icalparser* parser); void icalparser_free(icalparser* parser); # 70 "icalparser.h" icalcomponent* icalparser_parse(icalparser *parser, char* (*line_gen_func)(char *s, size_t size, void *d)); void icalparser_set_gen_data(icalparser* parser, void* data); icalcomponent* icalparser_parse_string(const char* str); icalvalue* icalparser_parse_value(icalvalue_kind kind, const char* str, icalcomponent** errors); char* icalparser_get_line(icalparser* parser, char* (*line_gen_func)(char *s, size_t size, void *d)); char* icalparser_string_line_generator(char *out, size_t buf_size, void *d); # 39 "icalproperty.c" 2 # 1 "/usr/include/string.h" 1 3 4 # 28 "/usr/include/string.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/string.h" 2 3 4 extern void *memcpy (void *__restrict __dest, __const void *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, __const void *__src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void *memchr (__const void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 82 "/usr/include/string.h" 3 4 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, __const char *__restrict __src, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); # 130 "/usr/include/string.h" 3 4 extern char *strdup (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 165 "/usr/include/string.h" 3 4 extern char *strchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strrchr (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 181 "/usr/include/string.h" 3 4 extern size_t strcspn (__const char *__s, __const char *__reject) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strpbrk (__const char *__s, __const char *__accept) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strstr (__const char *__haystack, __const char *__needle) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strtok (char *__restrict __s, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, char **__restrict __save_ptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); # 240 "/usr/include/string.h" 3 4 extern size_t strlen (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 254 "/usr/include/string.h" 3 4 extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); # 281 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void bcopy (__const void *__src, void *__dest, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *index (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *rindex (__const char *__s, int __c) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 325 "/usr/include/string.h" 3 4 extern int strcasecmp (__const char *__s1, __const char *__s2) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 348 "/usr/include/string.h" 3 4 extern char *strsep (char **__restrict __stringp, __const char *__restrict __delim) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 414 "/usr/include/string.h" 3 4 # 1 "/usr/include/bits/string.h" 1 3 4 # 415 "/usr/include/string.h" 2 3 4 # 1 "/usr/include/bits/string2.h" 1 3 4 # 394 "/usr/include/bits/string2.h" 3 4 extern void *__rawmemchr (const void *__s, int __c); # 969 "/usr/include/bits/string2.h" 3 4 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); extern __inline size_t __strcspn_c1 (__const char *__s, int __reject) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject) ++__result; return __result; } extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2); extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, int __reject2) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2) ++__result; return __result; } extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3); extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, int __reject2, int __reject3) { register size_t __result = 0; while (__s[__result] != '\0' && __s[__result] != __reject1 && __s[__result] != __reject2 && __s[__result] != __reject3) ++__result; return __result; } # 1045 "/usr/include/bits/string2.h" 3 4 extern __inline size_t __strspn_c1 (__const char *__s, int __accept); extern __inline size_t __strspn_c1 (__const char *__s, int __accept) { register size_t __result = 0; while (__s[__result] == __accept) ++__result; return __result; } extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2); extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, int __accept2) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2) ++__result; return __result; } extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) { register size_t __result = 0; while (__s[__result] == __accept1 || __s[__result] == __accept2 || __s[__result] == __accept3) ++__result; return __result; } # 1121 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, int __accept2); extern __inline char * __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) { while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) ++__s; return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; } extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, int __accept3); extern __inline char * __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) { while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 && *__s != __accept3) ++__s; return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; } # 1173 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); extern __inline char * __strtok_r_1c (char *__s, char __sep, char **__nextp) { char *__result; if (__s == ((void *)0)) __s = *__nextp; while (*__s == __sep) ++__s; __result = ((void *)0); if (*__s != '\0') { __result = __s++; while (*__s != '\0') if (*__s++ == __sep) { __s[-1] = '\0'; break; } *__nextp = __s; } return __result; } # 1205 "/usr/include/bits/string2.h" 3 4 extern char *__strsep_g (char **__stringp, __const char *__delim); # 1223 "/usr/include/bits/string2.h" 3 4 extern __inline char *__strsep_1c (char **__s, char __reject); extern __inline char * __strsep_1c (char **__s, char __reject) { register char *__retval = *__s; if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) *(*__s)++ = '\0'; return __retval; } extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); extern __inline char * __strsep_2c (char **__s, char __reject1, char __reject2) { register char *__retval = *__s; if (__retval != ((void *)0)) { register char *__cp = __retval; while (1) { if (*__cp == '\0') { __cp = ((void *)0); break; } if (*__cp == __reject1 || *__cp == __reject2) { *__cp++ = '\0'; break; } ++__cp; } *__s = __cp; } return __retval; } extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3); extern __inline char * __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) { register char *__retval = *__s; if (__retval != ((void *)0)) { register char *__cp = __retval; while (1) { if (*__cp == '\0') { __cp = ((void *)0); break; } if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) { *__cp++ = '\0'; break; } ++__cp; } *__s = __cp; } return __retval; } # 1299 "/usr/include/bits/string2.h" 3 4 # 1 "/usr/include/stdlib.h" 1 3 4 # 33 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/stdlib.h" 2 3 4 # 587 "/usr/include/stdlib.h" 3 4 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; extern void *calloc (size_t __nmemb, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; # 978 "/usr/include/stdlib.h" 3 4 # 1300 "/usr/include/bits/string2.h" 2 3 4 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 1323 "/usr/include/bits/string2.h" 3 4 extern char *__strndup (__const char *__string, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); # 418 "/usr/include/string.h" 2 3 4 # 426 "/usr/include/string.h" 3 4 # 41 "icalproperty.c" 2 # 1 "/usr/include/assert.h" 1 3 4 # 42 "icalproperty.c" 2 # 1 "/usr/include/stdlib.h" 1 3 4 # 33 "/usr/include/stdlib.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 34 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/waitflags.h" 1 3 4 # 43 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/bits/waitstatus.h" 1 3 4 # 67 "/usr/include/bits/waitstatus.h" 3 4 union wait { int w_status; struct { unsigned int __w_termsig:7; unsigned int __w_coredump:1; unsigned int __w_retcode:8; unsigned int:16; } __wait_terminated; struct { unsigned int __w_stopval:8; unsigned int __w_stopsig:8; unsigned int:16; } __wait_stopped; }; # 44 "/usr/include/stdlib.h" 2 3 4 # 68 "/usr/include/stdlib.h" 3 4 typedef union { union wait *__uptr; int *__iptr; } __WAIT_STATUS __attribute__ ((__transparent_union__)); # 96 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; # 140 "/usr/include/stdlib.h" 3 4 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; extern double atof (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (__const char *__nptr) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (__const char *__restrict __nptr, char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 182 "/usr/include/stdlib.h" 3 4 extern long int strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int strtoull (__const char *__restrict __nptr, char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 279 "/usr/include/stdlib.h" 3 4 extern double __strtod_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern float __strtof_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long double __strtold_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern long int __strtol_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int __strtoll_internal (__const char *__restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern unsigned long long int __strtoull_internal (__const char * __restrict __nptr, char **__restrict __endptr, int __base, int __group) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern __inline double __attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr) { return __strtod_internal (__nptr, __endptr, 0); } extern __inline long int __attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtol_internal (__nptr, __endptr, __base, 0); } extern __inline unsigned long int __attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoul_internal (__nptr, __endptr, __base, 0); } # 364 "/usr/include/stdlib.h" 3 4 __extension__ extern __inline long long int __attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoull_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline long long int __attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) { return __strtoll_internal (__nptr, __endptr, __base, 0); } __extension__ extern __inline unsigned long long int __attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) { return __strtoull_internal (__nptr, __endptr, __base, 0); } extern __inline double __attribute__ ((__nothrow__)) atof (__const char *__nptr) { return strtod (__nptr, (char **) ((void *)0)); } extern __inline int __attribute__ ((__nothrow__)) atoi (__const char *__nptr) { return (int) strtol (__nptr, (char **) ((void *)0), 10); } extern __inline long int __attribute__ ((__nothrow__)) atol (__const char *__nptr) { return strtol (__nptr, (char **) ((void *)0), 10); } __extension__ extern __inline long long int __attribute__ ((__nothrow__)) atoll (__const char *__nptr) { return strtoll (__nptr, (char **) ((void *)0), 10); } # 429 "/usr/include/stdlib.h" 3 4 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; extern long int a64l (__const char *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; # 445 "/usr/include/stdlib.h" 3 4 extern long int random (void) __attribute__ ((__nothrow__)); extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) __attribute__ ((__nothrow__)); extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); extern double drand48 (void) __attribute__ ((__nothrow__)); extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) __attribute__ ((__nothrow__)); extern long int nrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) __attribute__ ((__nothrow__)); extern long int jrand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); # 597 "/usr/include/stdlib.h" 3 4 extern void *realloc (void *__ptr, size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); extern void free (void *__ptr) __attribute__ ((__nothrow__)); extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); # 1 "/usr/include/alloca.h" 1 3 4 # 25 "/usr/include/alloca.h" 3 4 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4 # 26 "/usr/include/alloca.h" 2 3 4 extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); # 613 "/usr/include/stdlib.h" 2 3 4 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; # 626 "/usr/include/stdlib.h" 3 4 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); # 658 "/usr/include/stdlib.h" 3 4 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern char *__secure_getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); extern int setenv (__const char *__name, __const char *__value, int __replace) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); extern int clearenv (void) __attribute__ ((__nothrow__)); # 698 "/usr/include/stdlib.h" 3 4 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; # 712 "/usr/include/stdlib.h" 3 4 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") __attribute__ ((__nonnull__ (1))) ; # 729 "/usr/include/stdlib.h" 3 4 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; extern int system (__const char *__command) ; # 757 "/usr/include/stdlib.h" 3 4 extern char *realpath (__const char *__restrict __name, char *__restrict __resolved) __attribute__ ((__nothrow__)) ; typedef int (*__compar_fn_t) (__const void *, __const void *); extern void *bsearch (__const void *__key, __const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) ; extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern div_t div (int __numer, int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; extern ldiv_t ldiv (long int __numer, long int __denom) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; # 822 "/usr/include/stdlib.h" 3 4 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *gcvt (double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qgcvt (long double __value, int __ndigit, char *__buf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; extern int mbtowc (wchar_t *__restrict __pwc, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; extern size_t mbstowcs (wchar_t *__restrict __pwcs, __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); extern size_t wcstombs (char *__restrict __s, __const wchar_t *__restrict __pwcs, size_t __n) __attribute__ ((__nothrow__)); # 910 "/usr/include/stdlib.h" 3 4 extern int getsubopt (char **__restrict __optionp, char *__const *__restrict __tokens, char **__restrict __valuep) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 935 "/usr/include/stdlib.h" 3 4 extern int grantpt (int __fd) __attribute__ ((__nothrow__)); extern int unlockpt (int __fd) __attribute__ ((__nothrow__)); extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ; # 962 "/usr/include/stdlib.h" 3 4 extern int getloadavg (double __loadavg[], int __nelem) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); # 978 "/usr/include/stdlib.h" 3 4 # 43 "icalproperty.c" 2 # 1 "/usr/include/errno.h" 1 3 4 # 32 "/usr/include/errno.h" 3 4 # 1 "/usr/include/bits/errno.h" 1 3 4 # 25 "/usr/include/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4 # 1 "/usr/include/asm/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 # 5 "/usr/include/asm-generic/errno.h" 2 3 4 # 5 "/usr/include/asm/errno.h" 2 3 4 # 5 "/usr/include/linux/errno.h" 2 3 4 # 26 "/usr/include/bits/errno.h" 2 3 4 # 43 "/usr/include/bits/errno.h" 3 4 extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); # 37 "/usr/include/errno.h" 2 3 4 # 59 "/usr/include/errno.h" 3 4 # 44 "icalproperty.c" 2 # 53 "icalproperty.c" void icalvalue_set_parent(icalvalue* value, icalproperty* property); icalproperty* icalvalue_get_parent(icalvalue* value); void icalparameter_set_parent(icalparameter* param, icalproperty* property); icalproperty* icalparameter_get_parent(icalparameter* value); void icalproperty_set_x_name(icalproperty* prop, const char* name); struct icalproperty_impl { char id[5]; icalproperty_kind kind; char* x_name; pvl_list parameters; pvl_elem parameter_iterator; icalvalue* value; icalcomponent *parent; }; void icalproperty_add_parameters(icalproperty* prop, va_list args) { void* vp; while((vp = __builtin_va_arg(args,void*)) != 0) { if (icalvalue_isa_value(vp) != 0 ){ } else if (icalparameter_isa_parameter(vp) != 0 ){ icalproperty_add_parameter((icalproperty*)prop, (icalparameter*)vp); } else { icalerror_set_errno(ICAL_BADARG_ERROR); } } } icalproperty* icalproperty_new_impl(icalproperty_kind kind) { icalproperty* prop; if (!icalproperty_kind_is_valid(kind)) return ((void *)0); if ( ( prop = (icalproperty*) malloc(sizeof(icalproperty))) == 0) { icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } strcpy(prop->id,"prop"); prop->kind = kind; prop->parameters = pvl_newlist(); prop->parameter_iterator = 0; prop->value = 0; prop->x_name = 0; prop->parent = 0; return prop; } icalproperty* icalproperty_new (icalproperty_kind kind) { if (kind == ICAL_NO_PROPERTY){ return 0; } return (icalproperty*)icalproperty_new_impl(kind); } icalproperty* icalproperty_new_clone(icalproperty* old) { icalproperty *new = icalproperty_new_impl(old->kind); pvl_elem p; if(!((old!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if(!((new!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (old->value !=0) { new->value = icalvalue_new_clone(old->value); } if (old->x_name != 0) { new->x_name = icalmemory_strdup(old->x_name); if (new->x_name == 0) { icalproperty_free(new); icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } } for(p=pvl_head(old->parameters);p != 0; p = pvl_next(p)){ icalparameter *param = icalparameter_new_clone(pvl_data(p)); if (param == 0){ icalproperty_free(new); icalerror_set_errno(ICAL_NEWFAILED_ERROR); return 0; } pvl_push(new->parameters,param); } return new; } icalproperty* icalproperty_new_from_string(const char* str) { size_t buf_size = 1024; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; icalproperty *prop; icalcomponent *comp; int errors = 0; if(!((str!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; icalmemory_append_string(&buf, &buf_ptr, &buf_size, "BEGIN:VCALENDAR\n"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, str); icalmemory_append_string(&buf, &buf_ptr, &buf_size, "\n"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, "END:VCALENDAR\n"); comp = icalparser_parse_string(buf); if(comp == 0){ icalerror_set_errno(ICAL_PARSE_ERROR); return 0; } errors = icalcomponent_count_errors(comp); prop = icalcomponent_get_first_property(comp,ICAL_ANY_PROPERTY); icalcomponent_remove_property(comp,prop); icalcomponent_free(comp); free(buf); if(errors > 0){ icalproperty_free(prop); return 0; } else { return prop; } } void icalproperty_free (icalproperty* p) { icalparameter* param; if(!((p!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(p->parent !=0){ return; } if (p->value != 0){ icalvalue_set_parent(p->value,0); icalvalue_free(p->value); } while( (param = pvl_pop(p->parameters)) != 0){ icalparameter_free(param); } pvl_free(p->parameters); if (p->x_name != 0) { free(p->x_name); } p->kind = ICAL_NO_PROPERTY; p->parameters = 0; p->parameter_iterator = 0; p->value = 0; p->x_name = 0; p->id[0] = 'X'; free(p); } static char* get_next_line_start (char *line_start, int chars_left) { char *pos; if (chars_left < 75) { return line_start + chars_left; } pos = line_start + 75 - 2; while (pos > line_start) { if (*pos == ';' || *pos == ':' || *pos == ' ') { return pos + 1; } pos--; } pos = line_start + 75 - 1; while (pos > line_start) { if ((*pos & 128) == 0) return pos; if ((*pos & 192) == 192) return pos; pos--; } return line_start + 75 - 1; } # 315 "icalproperty.c" static char* fold_property_line (char *text) { size_t buf_size; char *buf, *buf_ptr, *line_start, *next_line_start, *out_buf; int len, chars_left, first_line; char ch; len = strlen (text); buf_size = len * 2; buf = icalmemory_new_buffer (buf_size); buf_ptr = buf; line_start = text; chars_left = len; first_line = 1; for (;;) { if (chars_left <= 0) break; next_line_start = get_next_line_start (line_start, chars_left); if (!first_line) { icalmemory_append_string (&buf, &buf_ptr, &buf_size, "\n "); } first_line = 0; ch = *next_line_start; *next_line_start = '\0'; icalmemory_append_string (&buf, &buf_ptr, &buf_size, line_start); *next_line_start = ch; chars_left -= (next_line_start - line_start); line_start = next_line_start; } out_buf = icalmemory_tmp_buffer (strlen (buf) + 1); strcpy (out_buf, buf); icalmemory_free_buffer (buf); return out_buf; } static const char * icalproperty_get_value_kind(icalproperty *prop) { const char* kind_string = 0; icalparameter *orig_val_param = icalproperty_get_first_parameter(prop,ICAL_VALUE_PARAMETER); icalvalue *value = icalproperty_get_value(prop); icalvalue_kind orig_kind = ICAL_NO_VALUE; icalvalue_kind this_kind = ICAL_NO_VALUE; icalvalue_kind default_kind = icalproperty_kind_to_value_kind(prop->kind); if(orig_val_param){ orig_kind = (icalvalue_kind)icalparameter_get_value(orig_val_param); } if(value != 0){ this_kind = icalvalue_isa(value); } if(this_kind == default_kind && orig_kind != ICAL_NO_VALUE){ kind_string = icalvalue_kind_to_string(default_kind); } else if (this_kind != default_kind && this_kind != ICAL_NO_VALUE){ kind_string = icalvalue_kind_to_string(this_kind); } else { } return kind_string; } const char* icalproperty_as_ical_string (icalproperty* prop) { icalparameter *param; const char* property_name = 0; size_t buf_size = 1024; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; icalvalue* value; char *out_buf; const char* kind_string = 0; char newline[] = "\n"; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (prop->kind == ICAL_X_PROPERTY && prop->x_name != 0){ property_name = prop->x_name; } else { property_name = icalproperty_kind_to_string(prop->kind); } if (property_name == 0 ) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",451,"Got a property of an unknown kind.");}; icalmemory_free_buffer(buf); return 0; } icalmemory_append_string(&buf, &buf_ptr, &buf_size, property_name); kind_string = icalproperty_get_value_kind(prop); if(kind_string!=0){ icalmemory_append_string(&buf, &buf_ptr, &buf_size, ";VALUE="); icalmemory_append_string(&buf, &buf_ptr, &buf_size, kind_string); } for(param = icalproperty_get_first_parameter(prop,ICAL_ANY_PARAMETER); param != 0; param = icalproperty_get_next_parameter(prop,ICAL_ANY_PARAMETER)) { icalparameter_kind kind = icalparameter_isa(param); kind_string = icalparameter_as_ical_string(param); if(kind==ICAL_VALUE_PARAMETER){ continue; } if (kind_string == 0 ) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",478,"Got a parameter of unknown kind for the following property");}; {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",480,(property_name) ? property_name : "(NULL)");}; continue; } icalmemory_append_string(&buf, &buf_ptr, &buf_size, ";"); icalmemory_append_string(&buf, &buf_ptr, &buf_size, kind_string); } icalmemory_append_string(&buf, &buf_ptr, &buf_size, ":"); value = icalproperty_get_value(prop); if (value != 0){ const char *str = icalvalue_as_ical_string(value); ; icalmemory_append_string(&buf, &buf_ptr, &buf_size, str); } else { icalmemory_append_string(&buf, &buf_ptr, &buf_size,"ERROR: No Value"); } icalmemory_append_string(&buf, &buf_ptr, &buf_size, newline); out_buf = fold_property_line (buf); icalmemory_free_buffer(buf); return out_buf; } icalproperty_kind icalproperty_isa (icalproperty* p) { if(p != 0){ return p->kind; } return ICAL_NO_PROPERTY; } int icalproperty_isa_property (void* property) { icalproperty *impl = (icalproperty *) property; if(!((property!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (impl->id) && __builtin_constant_p ("prop") && (__s1_len = strlen (impl->id), __s2_len = strlen ("prop"), (!((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) || __s2_len >= 4)) ? __builtin_strcmp (impl->id, "prop") : (__builtin_constant_p (impl->id) && ((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) && (__s1_len = strlen (impl->id), __s1_len < 4) ? (__builtin_constant_p ("prop") && ((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) ? __builtin_strcmp (impl->id, "prop") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("prop"); register int __result = (((__const unsigned char *) (__const char *) (impl->id))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (impl->id))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (impl->id))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (impl->id))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("prop") && ((size_t)(const void *)(("prop") + 1) - (size_t)(const void *)("prop") == 1) && (__s2_len = strlen ("prop"), __s2_len < 4) ? (__builtin_constant_p (impl->id) && ((size_t)(const void *)((impl->id) + 1) - (size_t)(const void *)(impl->id) == 1) ? __builtin_strcmp (impl->id, "prop") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (impl->id); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("prop"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("prop"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("prop"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("prop"))[3]); } } __result; }))) : __builtin_strcmp (impl->id, "prop")))); }) == 0) { return 1; } else { return 0; } } void icalproperty_add_parameter (icalproperty* p,icalparameter* parameter) { if(!((p!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; pvl_push(p->parameters, parameter); } void icalproperty_set_parameter (icalproperty* prop,icalparameter* parameter) { icalparameter_kind kind; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_isa(parameter); if (kind != ICAL_X_PARAMETER) icalproperty_remove_parameter_by_kind(prop,kind); else icalproperty_remove_parameter_by_name(prop, icalparameter_get_xname(parameter)); icalproperty_add_parameter(prop,parameter); } void icalproperty_set_parameter_from_string(icalproperty* prop, const char* name, const char* value) { icalparameter_kind kind; icalparameter *param; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((name!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((value!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_string_to_kind(name); if(kind == ICAL_NO_PARAMETER){ icalerror_set_errno(ICAL_BADARG_ERROR); return; } param = icalparameter_new_from_value_string(kind,value); if (param == 0){ icalerror_set_errno(ICAL_BADARG_ERROR); return; } if(kind == ICAL_X_PARAMETER){ icalparameter_set_xname(param, name); } icalproperty_set_parameter(prop,param); } const char* icalproperty_get_parameter_as_string(icalproperty* prop, const char* name) { icalparameter_kind kind; icalparameter *param; char* str; char* pv; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if(!((name!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; kind = icalparameter_string_to_kind(name); if(kind == ICAL_NO_PARAMETER){ return 0; } for(param = icalproperty_get_first_parameter(prop,kind); param != 0; param = icalproperty_get_next_parameter(prop,kind)) { if (kind != ICAL_X_PARAMETER) { break; } if (__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (icalparameter_get_xname(param)) && __builtin_constant_p (name) && (__s1_len = strlen (icalparameter_get_xname(param)), __s2_len = strlen (name), (!((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__builtin_constant_p (icalparameter_get_xname(param)) && ((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) && (__s1_len = strlen (icalparameter_get_xname(param)), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(param)))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (icalparameter_get_xname(param)) && ((size_t)(const void *)((icalparameter_get_xname(param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(param)) == 1) ? __builtin_strcmp (icalparameter_get_xname(param), name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (icalparameter_get_xname(param)); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (icalparameter_get_xname(param), name)))); })==0) { break; } } if (param == 0){ return 0; } str = icalparameter_as_ical_string(param); pv = (__extension__ (__builtin_constant_p ('=') && !__builtin_constant_p (str) && ('=') == '\0' ? (char *) __rawmemchr (str, '=') : __builtin_strchr (str, '='))); if(pv == 0){ icalerror_set_errno(ICAL_INTERNAL_ERROR); return 0; } return pv+1; } void icalproperty_remove_parameter(icalproperty* prop, icalparameter_kind kind) { icalproperty_remove_parameter_by_kind(prop, kind); } # 674 "icalproperty.c" void icalproperty_remove_parameter_by_kind(icalproperty* prop, icalparameter_kind kind) { pvl_elem p; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* param = (icalparameter *)pvl_data (p); if (icalparameter_isa(param) == kind) { pvl_remove (prop->parameters, p); icalparameter_free(param); break; } } } # 707 "icalproperty.c" void icalproperty_remove_parameter_by_name(icalproperty* prop, const char *name) { pvl_elem p; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* param = (icalparameter *)pvl_data (p); const char * kind_string; if (icalparameter_isa(param) == ICAL_X_PARAMETER) kind_string = icalparameter_get_xname(param); else kind_string = icalparameter_kind_to_string(icalparameter_isa(param)); if (!kind_string) continue; if (0 == __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (kind_string) && __builtin_constant_p (name) && (__s1_len = strlen (kind_string), __s2_len = strlen (name), (!((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (kind_string, name) : (__builtin_constant_p (kind_string) && ((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) && (__s1_len = strlen (kind_string), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (kind_string, name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (kind_string))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (kind_string))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (kind_string))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (kind_string))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (kind_string) && ((size_t)(const void *)((kind_string) + 1) - (size_t)(const void *)(kind_string) == 1) ? __builtin_strcmp (kind_string, name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (kind_string); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (kind_string, name)))); })) { pvl_remove (prop->parameters, p); break; } } } # 743 "icalproperty.c" void icalproperty_remove_parameter_by_ref(icalproperty* prop, icalparameter* parameter) { pvl_elem p; icalparameter_kind kind; const char *name; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((parameter!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; kind = icalparameter_isa(parameter); name = icalparameter_get_xname(parameter); for(p=pvl_head(prop->parameters);p != 0; p = pvl_next(p)){ icalparameter* p_param = (icalparameter *)pvl_data (p); if (icalparameter_isa(p_param) == kind && (kind != ICAL_X_PARAMETER || !__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (icalparameter_get_xname(p_param)) && __builtin_constant_p (name) && (__s1_len = strlen (icalparameter_get_xname(p_param)), __s2_len = strlen (name), (!((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) || __s2_len >= 4)) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__builtin_constant_p (icalparameter_get_xname(p_param)) && ((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) && (__s1_len = strlen (icalparameter_get_xname(p_param)), __s1_len < 4) ? (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (name); register int __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (name) && ((size_t)(const void *)((name) + 1) - (size_t)(const void *)(name) == 1) && (__s2_len = strlen (name), __s2_len < 4) ? (__builtin_constant_p (icalparameter_get_xname(p_param)) && ((size_t)(const void *)((icalparameter_get_xname(p_param)) + 1) - (size_t)(const void *)(icalparameter_get_xname(p_param)) == 1) ? __builtin_strcmp (icalparameter_get_xname(p_param), name) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (icalparameter_get_xname(p_param)); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (name))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (name))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (name))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (name))[3]); } } __result; }))) : __builtin_strcmp (icalparameter_get_xname(p_param), name)))); }))) { pvl_remove (prop->parameters, p); icalparameter_free(p_param); break; } } } int icalproperty_count_parameters (const icalproperty* prop) { if(prop != 0){ return pvl_count(prop->parameters); } icalerror_set_errno(ICAL_USAGE_ERROR); return -1; } icalparameter* icalproperty_get_first_parameter(icalproperty* p, icalparameter_kind kind) { if(!((p!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; p->parameter_iterator = pvl_head(p->parameters); if (p->parameter_iterator == 0) { return 0; } for( p->parameter_iterator = pvl_head(p->parameters); p->parameter_iterator !=0; p->parameter_iterator = pvl_next(p->parameter_iterator)){ icalparameter *param = (icalparameter*)pvl_data(p->parameter_iterator); if(icalparameter_isa(param) == kind || kind == ICAL_ANY_PARAMETER){ return param; } } return 0; } icalparameter* icalproperty_get_next_parameter (icalproperty* p, icalparameter_kind kind) { if(!((p!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (p->parameter_iterator == 0) { return 0; } for( p->parameter_iterator = pvl_next(p->parameter_iterator); p->parameter_iterator !=0; p->parameter_iterator = pvl_next(p->parameter_iterator)){ icalparameter *param = (icalparameter*)pvl_data(p->parameter_iterator); if(icalparameter_isa(param) == kind || kind == ICAL_ANY_PARAMETER){ return param; } } return 0; } void icalproperty_set_value (icalproperty* p, icalvalue* value) { if(!((p !=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((value !=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if (p->value != 0){ icalvalue_set_parent(p->value,0); icalvalue_free(p->value); p->value = 0; } p->value = value; icalvalue_set_parent(value,p); } void icalproperty_set_value_from_string(icalproperty* prop,const char* str, const char* type) { icalvalue *oval,*nval; icalvalue_kind kind = ICAL_NO_VALUE; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((str!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((type!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (type) && __builtin_constant_p ("NO") && (__s1_len = strlen (type), __s2_len = strlen ("NO"), (!((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) || __s2_len >= 4)) ? __builtin_strcmp (type, "NO") : (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) && (__s1_len = strlen (type), __s1_len < 4) ? (__builtin_constant_p ("NO") && ((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) ? __builtin_strcmp (type, "NO") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("NO"); register int __result = (((__const unsigned char *) (__const char *) (type))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (type))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("NO") && ((size_t)(const void *)(("NO") + 1) - (size_t)(const void *)("NO") == 1) && (__s2_len = strlen ("NO"), __s2_len < 4) ? (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) ? __builtin_strcmp (type, "NO") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (type); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("NO"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("NO"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("NO"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("NO"))[3]); } } __result; }))) : __builtin_strcmp (type, "NO")))); })==0){ oval = icalproperty_get_value(prop); if(oval != 0){ kind = icalvalue_isa(oval); } else { kind = icalproperty_kind_to_value_kind(icalproperty_isa(prop)); } } else { kind = icalvalue_string_to_kind(type); } if(kind == ICAL_NO_VALUE){ icalerror_set_errno(ICAL_MALFORMEDDATA_ERROR); return; } nval = icalvalue_new_from_string(kind, str); if(nval == 0){ ((void) (0)); return; } icalproperty_set_value(prop,nval); } icalvalue* icalproperty_get_value(const icalproperty* prop) { if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return prop->value; } const char* icalproperty_get_value_as_string(const icalproperty* prop) { icalvalue *value; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; value = prop->value; return icalvalue_as_ical_string(value); } void icalproperty_set_x_name(icalproperty* prop, const char* name) { if(!((name!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if(!((prop!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; if (prop->x_name != 0) { free(prop->x_name); } prop->x_name = icalmemory_strdup(name); if(prop->x_name == 0){ icalerror_set_errno(ICAL_NEWFAILED_ERROR); } } const char* icalproperty_get_x_name(icalproperty* prop){ if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return prop->x_name; } const char* icalproperty_get_name(const icalproperty* prop) { {fprintf(stderr,"%s:%d: %s\n","icalproperty.c",943,"icalproperty_get_name() is DEPRECATED, please use icalproperty_get_property_name() instead.");}; return icalproperty_get_property_name(prop); } const char* icalproperty_get_property_name(const icalproperty* prop) { const char* property_name = 0; size_t buf_size = 256; char* buf = icalmemory_new_buffer(buf_size); char* buf_ptr = buf; if(!((prop!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; if (prop->kind == ICAL_X_PROPERTY && prop->x_name != 0){ property_name = prop->x_name; } else { property_name = icalproperty_kind_to_string(prop->kind); } if (property_name == 0 ) { icalerror_set_errno(ICAL_MALFORMEDDATA_ERROR); return 0; } else { icalmemory_append_string(&buf, &buf_ptr, &buf_size, property_name); } icalmemory_add_tmp_buffer(buf); return buf; } void icalproperty_set_parent(icalproperty* property, icalcomponent* component) { if(!((property!=0))) {icalerror_set_errno(ICAL_BADARG_ERROR); return; }; property->parent = component; } icalcomponent* icalproperty_get_parent(const icalproperty* property) { if(!((property!=0))) { icalerror_set_errno(ICAL_BADARG_ERROR); return 0;}; return property->parent; }