aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/libical/icalproperty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libical/src/libical/icalproperty.c')
-rw-r--r--libical/src/libical/icalproperty.c375
1 files changed, 209 insertions, 166 deletions
diff --git a/libical/src/libical/icalproperty.c b/libical/src/libical/icalproperty.c
index b63c8a960a..84d6605160 100644
--- a/libical/src/libical/icalproperty.c
+++ b/libical/src/libical/icalproperty.c
@@ -6,7 +6,6 @@
$Id$
-
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
This program is free software; you can redistribute it and/or modify
@@ -23,24 +22,26 @@
The original code is icalproperty.c
======================================================================*/
+#line 27 "icalproperty.c.in"
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <string.h> /* For icalmemory_strdup, rindex */
-#include <assert.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <stdio.h> /* for printf */
-#include <stdarg.h> /* for va_list, va_start, etc. */
-
-#include "ical.h"
+#include "icalproperty.h"
+#include "icalcomponent.h"
#include "pvl.h"
#include "icalenums.h"
#include "icalerror.h"
#include "icalmemory.h"
+#include <string.h> /* For icalmemory_strdup, rindex */
+#include <assert.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <stdio.h> /* for printf */
+#include <stdarg.h> /* for va_list, va_start, etc. */
+
#define TMP_BUF_SIZE 1024
/* Private routines for icalproperty */
@@ -87,6 +88,7 @@ void icalproperty_add_parameters(struct icalproperty_impl *impl,va_list args)
}
+
struct icalproperty_impl*
icalproperty_new_impl (icalproperty_kind kind)
{
@@ -251,18 +253,14 @@ icalproperty_as_ical_string (icalproperty* prop)
by libical, so it can be given to the caller without fear of
the caller forgetting to free it */
- char* property_name = 0;
+ 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;
-#ifdef ICAL_UNIX_NEWLINE
char newline[] = "\n";
-#else
- char newline[] = "\r\n";
-#endif
struct icalproperty_impl *impl = (struct icalproperty_impl*)prop;
@@ -315,7 +313,7 @@ icalproperty_as_ical_string (icalproperty* prop)
value = icalproperty_get_value(prop);
if (value != 0){
- char *str = icalvalue_as_ical_string(value);
+ const char *str = icalvalue_as_ical_string(value);
icalerror_assert((str !=0),"Could not get string representation of a value");
icalmemory_append_string(&buf, &buf_ptr, &buf_size, str);
} else {
@@ -378,14 +376,32 @@ icalproperty_add_parameter (icalproperty* prop,icalparameter* parameter)
}
+void
+icalproperty_set_parameter (icalproperty* prop,icalparameter* parameter)
+{
+ icalproperty_kind kind;
+
+ kind = icalparameter_isa(parameter);
+
+ icalproperty_remove_parameter(prop,kind);
+
+ icalproperty_add_parameter(prop,parameter);
+}
+
void
icalproperty_remove_parameter (icalproperty* prop, icalparameter_kind kind)
{
+<<<<<<< icalproperty.c
struct icalproperty_impl *p = (struct icalproperty_impl*)prop;
icalparameter *param;
pvl_elem elem;
+=======
+ pvl_elem p;
+ struct icalproperty_impl *impl = (struct icalproperty_impl*)prop;
+>>>>>>> 1.1.1.5
+<<<<<<< icalproperty.c
icalerror_check_arg_rv((prop!=0),"prop");
/* This routine is now implemented, so disregard the following
@@ -402,6 +418,18 @@ icalproperty_remove_parameter (icalproperty* prop, icalparameter_kind kind)
}
elem = pvl_next (elem);
}
+=======
+ icalerror_check_arg_rv((prop!=0),"prop");
+
+ for(p=pvl_head(impl->parameters);p != 0; p = pvl_next(p)){
+ icalparameter* param = (icalparameter *)pvl_data (p);
+ if (icalparameter_isa(param) == kind) {
+ pvl_remove (impl->parameters, p);
+ icalparameter_free (param);
+ break;
+ }
+ }
+>>>>>>> 1.1.1.5
}
@@ -432,27 +460,45 @@ icalproperty_get_first_parameter (icalproperty* prop, icalparameter_kind kind)
return 0;
}
- return (icalparameter*) pvl_data(p->parameter_iterator);
+ 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* prop, icalparameter_kind kind)
{
- struct icalproperty_impl *p = (struct icalproperty_impl*)prop;
- icalerror_check_arg_rz( (prop!=0),"prop");
-
- if (p->parameter_iterator == 0 ) {
- return 0;
- }
-
- p->parameter_iterator = pvl_next(p->parameter_iterator);
-
- if (p->parameter_iterator == 0 ) {
- return 0;
- }
+ struct icalproperty_impl *p = (struct icalproperty_impl*)prop;
+
+ icalerror_check_arg_rz( (prop!=0),"prop");
+
+ 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;
- return (icalparameter*) pvl_data(p->parameter_iterator);
}
void
@@ -589,7 +635,7 @@ icalproperty_method icalproperty_get_method(icalproperty* prop)
/* X-LIC-MIMECID */
-icalproperty* icalproperty_new_xlicmimecid(char* v)
+icalproperty* icalproperty_new_xlicmimecid(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECID_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -600,7 +646,7 @@ icalproperty* icalproperty_new_xlicmimecid(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimecid(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimecid(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECID_PROPERTY);
@@ -616,7 +662,7 @@ icalproperty* icalproperty_vanew_xlicmimecid(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimecid(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimecid(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -630,7 +676,7 @@ void icalproperty_set_xlicmimecid(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimecid(icalproperty* prop)
+const char* icalproperty_get_xlicmimecid(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -692,7 +738,7 @@ struct icaltimetype icalproperty_get_lastmodified(icalproperty* prop)
/* UID */
-icalproperty* icalproperty_new_uid(char* v)
+icalproperty* icalproperty_new_uid(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_UID_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -703,7 +749,7 @@ icalproperty* icalproperty_new_uid(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_uid(char* v, ...)
+icalproperty* icalproperty_vanew_uid(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_UID_PROPERTY);
@@ -719,7 +765,7 @@ icalproperty* icalproperty_vanew_uid(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_uid(icalproperty* prop, char* v)
+void icalproperty_set_uid(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -733,7 +779,7 @@ void icalproperty_set_uid(icalproperty* prop, char* v)
}
-char* icalproperty_get_uid(icalproperty* prop)
+const char* icalproperty_get_uid(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -745,7 +791,7 @@ char* icalproperty_get_uid(icalproperty* prop)
/* PRODID */
-icalproperty* icalproperty_new_prodid(char* v)
+icalproperty* icalproperty_new_prodid(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRODID_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -756,7 +802,7 @@ icalproperty* icalproperty_new_prodid(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_prodid(char* v, ...)
+icalproperty* icalproperty_vanew_prodid(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_PRODID_PROPERTY);
@@ -772,7 +818,7 @@ icalproperty* icalproperty_vanew_prodid(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_prodid(icalproperty* prop, char* v)
+void icalproperty_set_prodid(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -786,7 +832,7 @@ void icalproperty_set_prodid(icalproperty* prop, char* v)
}
-char* icalproperty_get_prodid(icalproperty* prop)
+const char* icalproperty_get_prodid(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -798,23 +844,21 @@ char* icalproperty_get_prodid(icalproperty* prop)
/* STATUS */
-icalproperty* icalproperty_new_status(char* v)
+icalproperty* icalproperty_new_status(icalproperty_status v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_STATUS_PROPERTY);
- icalerror_check_arg_rz( (v!=0),"v");
-
+
icalproperty_set_status((icalproperty*)impl,v);
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_status(char* v, ...)
+icalproperty* icalproperty_vanew_status(icalproperty_status v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_STATUS_PROPERTY);
- icalerror_check_arg_rz( (v!=0),"v");
-
+
icalproperty_set_status((icalproperty*)impl,v);
@@ -825,33 +869,32 @@ icalproperty* icalproperty_vanew_status(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_status(icalproperty* prop, char* v)
+void icalproperty_set_status(icalproperty* prop, icalproperty_status v)
{
icalvalue *value;
- icalerror_check_arg_rv( (v!=0),"v");
-
+
icalerror_check_arg_rv( (prop!=0),"prop");
- value = icalvalue_new_text(v);
+ value = icalvalue_new_status(v);
icalproperty_set_value(prop,value);
}
-char* icalproperty_get_status(icalproperty* prop)
+icalproperty_status icalproperty_get_status(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
value = icalproperty_get_value(prop);
- return icalvalue_get_text(value);
+ return icalvalue_get_status(value);
}
/* DESCRIPTION */
-icalproperty* icalproperty_new_description(char* v)
+icalproperty* icalproperty_new_description(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DESCRIPTION_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -862,7 +905,7 @@ icalproperty* icalproperty_new_description(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_description(char* v, ...)
+icalproperty* icalproperty_vanew_description(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_DESCRIPTION_PROPERTY);
@@ -878,7 +921,7 @@ icalproperty* icalproperty_vanew_description(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_description(icalproperty* prop, char* v)
+void icalproperty_set_description(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -892,7 +935,7 @@ void icalproperty_set_description(icalproperty* prop, char* v)
}
-char* icalproperty_get_description(icalproperty* prop)
+const char* icalproperty_get_description(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -954,7 +997,7 @@ struct icaldurationtype icalproperty_get_duration(icalproperty* prop)
/* CATEGORIES */
-icalproperty* icalproperty_new_categories(char* v)
+icalproperty* icalproperty_new_categories(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CATEGORIES_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -965,7 +1008,7 @@ icalproperty* icalproperty_new_categories(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_categories(char* v, ...)
+icalproperty* icalproperty_vanew_categories(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CATEGORIES_PROPERTY);
@@ -981,7 +1024,7 @@ icalproperty* icalproperty_vanew_categories(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_categories(icalproperty* prop, char* v)
+void icalproperty_set_categories(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -995,7 +1038,7 @@ void icalproperty_set_categories(icalproperty* prop, char* v)
}
-char* icalproperty_get_categories(icalproperty* prop)
+const char* icalproperty_get_categories(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1007,7 +1050,7 @@ char* icalproperty_get_categories(icalproperty* prop)
/* VERSION */
-icalproperty* icalproperty_new_version(char* v)
+icalproperty* icalproperty_new_version(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_VERSION_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1018,7 +1061,7 @@ icalproperty* icalproperty_new_version(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_version(char* v, ...)
+icalproperty* icalproperty_vanew_version(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_VERSION_PROPERTY);
@@ -1034,7 +1077,7 @@ icalproperty* icalproperty_vanew_version(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_version(icalproperty* prop, char* v)
+void icalproperty_set_version(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1048,7 +1091,7 @@ void icalproperty_set_version(icalproperty* prop, char* v)
}
-char* icalproperty_get_version(icalproperty* prop)
+const char* icalproperty_get_version(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1160,7 +1203,7 @@ struct icalrecurrencetype icalproperty_get_rrule(icalproperty* prop)
/* ATTENDEE */
-icalproperty* icalproperty_new_attendee(char* v)
+icalproperty* icalproperty_new_attendee(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTENDEE_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1171,7 +1214,7 @@ icalproperty* icalproperty_new_attendee(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_attendee(char* v, ...)
+icalproperty* icalproperty_vanew_attendee(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ATTENDEE_PROPERTY);
@@ -1187,7 +1230,7 @@ icalproperty* icalproperty_vanew_attendee(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_attendee(icalproperty* prop, char* v)
+void icalproperty_set_attendee(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1201,7 +1244,7 @@ void icalproperty_set_attendee(icalproperty* prop, char* v)
}
-char* icalproperty_get_attendee(icalproperty* prop)
+const char* icalproperty_get_attendee(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1213,7 +1256,7 @@ char* icalproperty_get_attendee(icalproperty* prop)
/* CONTACT */
-icalproperty* icalproperty_new_contact(char* v)
+icalproperty* icalproperty_new_contact(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CONTACT_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1224,7 +1267,7 @@ icalproperty* icalproperty_new_contact(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_contact(char* v, ...)
+icalproperty* icalproperty_vanew_contact(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CONTACT_PROPERTY);
@@ -1240,7 +1283,7 @@ icalproperty* icalproperty_vanew_contact(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_contact(icalproperty* prop, char* v)
+void icalproperty_set_contact(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1254,7 +1297,7 @@ void icalproperty_set_contact(icalproperty* prop, char* v)
}
-char* icalproperty_get_contact(icalproperty* prop)
+const char* icalproperty_get_contact(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1266,7 +1309,7 @@ char* icalproperty_get_contact(icalproperty* prop)
/* X-LIC-MIMECONTENTTYPE */
-icalproperty* icalproperty_new_xlicmimecontenttype(char* v)
+icalproperty* icalproperty_new_xlicmimecontenttype(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECONTENTTYPE_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1277,7 +1320,7 @@ icalproperty* icalproperty_new_xlicmimecontenttype(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimecontenttype(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimecontenttype(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECONTENTTYPE_PROPERTY);
@@ -1293,7 +1336,7 @@ icalproperty* icalproperty_vanew_xlicmimecontenttype(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimecontenttype(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimecontenttype(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1307,7 +1350,7 @@ void icalproperty_set_xlicmimecontenttype(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimecontenttype(icalproperty* prop)
+const char* icalproperty_get_xlicmimecontenttype(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1319,7 +1362,7 @@ char* icalproperty_get_xlicmimecontenttype(icalproperty* prop)
/* X-LIC-MIMEOPTINFO */
-icalproperty* icalproperty_new_xlicmimeoptinfo(char* v)
+icalproperty* icalproperty_new_xlicmimeoptinfo(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEOPTINFO_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1330,7 +1373,7 @@ icalproperty* icalproperty_new_xlicmimeoptinfo(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimeoptinfo(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimeoptinfo(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEOPTINFO_PROPERTY);
@@ -1346,7 +1389,7 @@ icalproperty* icalproperty_vanew_xlicmimeoptinfo(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1360,7 +1403,7 @@ void icalproperty_set_xlicmimeoptinfo(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimeoptinfo(icalproperty* prop)
+const char* icalproperty_get_xlicmimeoptinfo(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1372,7 +1415,7 @@ char* icalproperty_get_xlicmimeoptinfo(icalproperty* prop)
/* RELATED-TO */
-icalproperty* icalproperty_new_relatedto(char* v)
+icalproperty* icalproperty_new_relatedto(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELATEDTO_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1383,7 +1426,7 @@ icalproperty* icalproperty_new_relatedto(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_relatedto(char* v, ...)
+icalproperty* icalproperty_vanew_relatedto(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RELATEDTO_PROPERTY);
@@ -1399,7 +1442,7 @@ icalproperty* icalproperty_vanew_relatedto(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_relatedto(icalproperty* prop, char* v)
+void icalproperty_set_relatedto(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1413,7 +1456,7 @@ void icalproperty_set_relatedto(icalproperty* prop, char* v)
}
-char* icalproperty_get_relatedto(icalproperty* prop)
+const char* icalproperty_get_relatedto(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1425,7 +1468,7 @@ char* icalproperty_get_relatedto(icalproperty* prop)
/* ORGANIZER */
-icalproperty* icalproperty_new_organizer(char* v)
+icalproperty* icalproperty_new_organizer(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ORGANIZER_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1436,7 +1479,7 @@ icalproperty* icalproperty_new_organizer(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_organizer(char* v, ...)
+icalproperty* icalproperty_vanew_organizer(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ORGANIZER_PROPERTY);
@@ -1452,7 +1495,7 @@ icalproperty* icalproperty_vanew_organizer(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_organizer(icalproperty* prop, char* v)
+void icalproperty_set_organizer(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1466,7 +1509,7 @@ void icalproperty_set_organizer(icalproperty* prop, char* v)
}
-char* icalproperty_get_organizer(icalproperty* prop)
+const char* icalproperty_get_organizer(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1478,7 +1521,7 @@ char* icalproperty_get_organizer(icalproperty* prop)
/* COMMENT */
-icalproperty* icalproperty_new_comment(char* v)
+icalproperty* icalproperty_new_comment(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMMENT_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1489,7 +1532,7 @@ icalproperty* icalproperty_new_comment(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_comment(char* v, ...)
+icalproperty* icalproperty_vanew_comment(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_COMMENT_PROPERTY);
@@ -1505,7 +1548,7 @@ icalproperty* icalproperty_vanew_comment(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_comment(icalproperty* prop, char* v)
+void icalproperty_set_comment(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1519,7 +1562,7 @@ void icalproperty_set_comment(icalproperty* prop, char* v)
}
-char* icalproperty_get_comment(icalproperty* prop)
+const char* icalproperty_get_comment(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1531,7 +1574,7 @@ char* icalproperty_get_comment(icalproperty* prop)
/* X-LIC-ERROR */
-icalproperty* icalproperty_new_xlicerror(char* v)
+icalproperty* icalproperty_new_xlicerror(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICERROR_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1542,7 +1585,7 @@ icalproperty* icalproperty_new_xlicerror(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicerror(char* v, ...)
+icalproperty* icalproperty_vanew_xlicerror(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICERROR_PROPERTY);
@@ -1558,7 +1601,7 @@ icalproperty* icalproperty_vanew_xlicerror(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicerror(icalproperty* prop, char* v)
+void icalproperty_set_xlicerror(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1572,7 +1615,7 @@ void icalproperty_set_xlicerror(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicerror(icalproperty* prop)
+const char* icalproperty_get_xlicerror(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1634,7 +1677,7 @@ union icaltriggertype icalproperty_get_trigger(icalproperty* prop)
/* CLASS */
-icalproperty* icalproperty_new_class(char* v)
+icalproperty* icalproperty_new_class(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CLASS_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1645,7 +1688,7 @@ icalproperty* icalproperty_new_class(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_class(char* v, ...)
+icalproperty* icalproperty_vanew_class(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CLASS_PROPERTY);
@@ -1661,7 +1704,7 @@ icalproperty* icalproperty_vanew_class(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_class(icalproperty* prop, char* v)
+void icalproperty_set_class(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1675,7 +1718,7 @@ void icalproperty_set_class(icalproperty* prop, char* v)
}
-char* icalproperty_get_class(icalproperty* prop)
+const char* icalproperty_get_class(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1687,7 +1730,7 @@ char* icalproperty_get_class(icalproperty* prop)
/* X */
-icalproperty* icalproperty_new_x(char* v)
+icalproperty* icalproperty_new_x(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_X_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1698,7 +1741,7 @@ icalproperty* icalproperty_new_x(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_x(char* v, ...)
+icalproperty* icalproperty_vanew_x(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_X_PROPERTY);
@@ -1714,7 +1757,7 @@ icalproperty* icalproperty_vanew_x(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_x(icalproperty* prop, char* v)
+void icalproperty_set_x(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1728,7 +1771,7 @@ void icalproperty_set_x(icalproperty* prop, char* v)
}
-char* icalproperty_get_x(icalproperty* prop)
+const char* icalproperty_get_x(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1790,7 +1833,7 @@ int icalproperty_get_tzoffsetto(icalproperty* prop)
/* TRANSP */
-icalproperty* icalproperty_new_transp(char* v)
+icalproperty* icalproperty_new_transp(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRANSP_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1801,7 +1844,7 @@ icalproperty* icalproperty_new_transp(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_transp(char* v, ...)
+icalproperty* icalproperty_vanew_transp(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TRANSP_PROPERTY);
@@ -1817,7 +1860,7 @@ icalproperty* icalproperty_vanew_transp(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_transp(icalproperty* prop, char* v)
+void icalproperty_set_transp(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1831,7 +1874,7 @@ void icalproperty_set_transp(icalproperty* prop, char* v)
}
-char* icalproperty_get_transp(icalproperty* prop)
+const char* icalproperty_get_transp(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1843,7 +1886,7 @@ char* icalproperty_get_transp(icalproperty* prop)
/* X-LIC-MIMEENCODING */
-icalproperty* icalproperty_new_xlicmimeencoding(char* v)
+icalproperty* icalproperty_new_xlicmimeencoding(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEENCODING_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1854,7 +1897,7 @@ icalproperty* icalproperty_new_xlicmimeencoding(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimeencoding(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimeencoding(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEENCODING_PROPERTY);
@@ -1870,7 +1913,7 @@ icalproperty* icalproperty_vanew_xlicmimeencoding(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimeencoding(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimeencoding(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1884,7 +1927,7 @@ void icalproperty_set_xlicmimeencoding(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimeencoding(icalproperty* prop)
+const char* icalproperty_get_xlicmimeencoding(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1946,7 +1989,7 @@ int icalproperty_get_sequence(icalproperty* prop)
/* LOCATION */
-icalproperty* icalproperty_new_location(char* v)
+icalproperty* icalproperty_new_location(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LOCATION_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -1957,7 +2000,7 @@ icalproperty* icalproperty_new_location(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_location(char* v, ...)
+icalproperty* icalproperty_vanew_location(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_LOCATION_PROPERTY);
@@ -1973,7 +2016,7 @@ icalproperty* icalproperty_vanew_location(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_location(icalproperty* prop, char* v)
+void icalproperty_set_location(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -1987,7 +2030,7 @@ void icalproperty_set_location(icalproperty* prop, char* v)
}
-char* icalproperty_get_location(icalproperty* prop)
+const char* icalproperty_get_location(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -1999,7 +2042,7 @@ char* icalproperty_get_location(icalproperty* prop)
/* REQUEST-STATUS */
-icalproperty* icalproperty_new_requeststatus(char* v)
+icalproperty* icalproperty_new_requeststatus(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REQUESTSTATUS_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2010,7 +2053,7 @@ icalproperty* icalproperty_new_requeststatus(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_requeststatus(char* v, ...)
+icalproperty* icalproperty_vanew_requeststatus(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_REQUESTSTATUS_PROPERTY);
@@ -2026,7 +2069,7 @@ icalproperty* icalproperty_vanew_requeststatus(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_requeststatus(icalproperty* prop, char* v)
+void icalproperty_set_requeststatus(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2040,7 +2083,7 @@ void icalproperty_set_requeststatus(icalproperty* prop, char* v)
}
-char* icalproperty_get_requeststatus(icalproperty* prop)
+const char* icalproperty_get_requeststatus(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2102,7 +2145,7 @@ struct icaltimetype icalproperty_get_exdate(icalproperty* prop)
/* TZID */
-icalproperty* icalproperty_new_tzid(char* v)
+icalproperty* icalproperty_new_tzid(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZID_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2113,7 +2156,7 @@ icalproperty* icalproperty_new_tzid(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_tzid(char* v, ...)
+icalproperty* icalproperty_vanew_tzid(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZID_PROPERTY);
@@ -2129,7 +2172,7 @@ icalproperty* icalproperty_vanew_tzid(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_tzid(icalproperty* prop, char* v)
+void icalproperty_set_tzid(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2143,7 +2186,7 @@ void icalproperty_set_tzid(icalproperty* prop, char* v)
}
-char* icalproperty_get_tzid(icalproperty* prop)
+const char* icalproperty_get_tzid(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2155,7 +2198,7 @@ char* icalproperty_get_tzid(icalproperty* prop)
/* RESOURCES */
-icalproperty* icalproperty_new_resources(char* v)
+icalproperty* icalproperty_new_resources(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RESOURCES_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2166,7 +2209,7 @@ icalproperty* icalproperty_new_resources(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_resources(char* v, ...)
+icalproperty* icalproperty_vanew_resources(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_RESOURCES_PROPERTY);
@@ -2182,7 +2225,7 @@ icalproperty* icalproperty_vanew_resources(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_resources(icalproperty* prop, char* v)
+void icalproperty_set_resources(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2196,7 +2239,7 @@ void icalproperty_set_resources(icalproperty* prop, char* v)
}
-char* icalproperty_get_resources(icalproperty* prop)
+const char* icalproperty_get_resources(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2208,7 +2251,7 @@ char* icalproperty_get_resources(icalproperty* prop)
/* TZURL */
-icalproperty* icalproperty_new_tzurl(char* v)
+icalproperty* icalproperty_new_tzurl(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZURL_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2219,7 +2262,7 @@ icalproperty* icalproperty_new_tzurl(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_tzurl(char* v, ...)
+icalproperty* icalproperty_vanew_tzurl(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZURL_PROPERTY);
@@ -2235,7 +2278,7 @@ icalproperty* icalproperty_vanew_tzurl(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_tzurl(icalproperty* prop, char* v)
+void icalproperty_set_tzurl(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2249,7 +2292,7 @@ void icalproperty_set_tzurl(icalproperty* prop, char* v)
}
-char* icalproperty_get_tzurl(icalproperty* prop)
+const char* icalproperty_get_tzurl(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2511,7 +2554,7 @@ struct icaltimetype icalproperty_get_recurrenceid(icalproperty* prop)
/* SUMMARY */
-icalproperty* icalproperty_new_summary(char* v)
+icalproperty* icalproperty_new_summary(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SUMMARY_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2522,7 +2565,7 @@ icalproperty* icalproperty_new_summary(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_summary(char* v, ...)
+icalproperty* icalproperty_vanew_summary(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_SUMMARY_PROPERTY);
@@ -2538,7 +2581,7 @@ icalproperty* icalproperty_vanew_summary(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_summary(icalproperty* prop, char* v)
+void icalproperty_set_summary(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2552,7 +2595,7 @@ void icalproperty_set_summary(icalproperty* prop, char* v)
}
-char* icalproperty_get_summary(icalproperty* prop)
+const char* icalproperty_get_summary(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2614,7 +2657,7 @@ struct icaltimetype icalproperty_get_dtend(icalproperty* prop)
/* TZNAME */
-icalproperty* icalproperty_new_tzname(char* v)
+icalproperty* icalproperty_new_tzname(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZNAME_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2625,7 +2668,7 @@ icalproperty* icalproperty_new_tzname(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_tzname(char* v, ...)
+icalproperty* icalproperty_vanew_tzname(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_TZNAME_PROPERTY);
@@ -2641,7 +2684,7 @@ icalproperty* icalproperty_vanew_tzname(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_tzname(icalproperty* prop, char* v)
+void icalproperty_set_tzname(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2655,7 +2698,7 @@ void icalproperty_set_tzname(icalproperty* prop, char* v)
}
-char* icalproperty_get_tzname(icalproperty* prop)
+const char* icalproperty_get_tzname(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2717,7 +2760,7 @@ struct icalperiodtype icalproperty_get_rdate(icalproperty* prop)
/* X-LIC-MIMEFILENAME */
-icalproperty* icalproperty_new_xlicmimefilename(char* v)
+icalproperty* icalproperty_new_xlicmimefilename(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEFILENAME_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2728,7 +2771,7 @@ icalproperty* icalproperty_new_xlicmimefilename(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimefilename(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimefilename(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMEFILENAME_PROPERTY);
@@ -2744,7 +2787,7 @@ icalproperty* icalproperty_vanew_xlicmimefilename(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimefilename(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimefilename(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2758,7 +2801,7 @@ void icalproperty_set_xlicmimefilename(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimefilename(icalproperty* prop)
+const char* icalproperty_get_xlicmimefilename(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2770,7 +2813,7 @@ char* icalproperty_get_xlicmimefilename(icalproperty* prop)
/* URL */
-icalproperty* icalproperty_new_url(char* v)
+icalproperty* icalproperty_new_url(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_URL_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2781,7 +2824,7 @@ icalproperty* icalproperty_new_url(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_url(char* v, ...)
+icalproperty* icalproperty_vanew_url(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_URL_PROPERTY);
@@ -2797,7 +2840,7 @@ icalproperty* icalproperty_vanew_url(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_url(icalproperty* prop, char* v)
+void icalproperty_set_url(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -2811,7 +2854,7 @@ void icalproperty_set_url(icalproperty* prop, char* v)
}
-char* icalproperty_get_url(icalproperty* prop)
+const char* icalproperty_get_url(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -2973,7 +3016,7 @@ struct icalrecurrencetype icalproperty_get_exrule(icalproperty* prop)
/* QUERY */
-icalproperty* icalproperty_new_query(char* v)
+icalproperty* icalproperty_new_query(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERY_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -2984,7 +3027,7 @@ icalproperty* icalproperty_new_query(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_query(char* v, ...)
+icalproperty* icalproperty_vanew_query(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_QUERY_PROPERTY);
@@ -3000,7 +3043,7 @@ icalproperty* icalproperty_vanew_query(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_query(icalproperty* prop, char* v)
+void icalproperty_set_query(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -3014,7 +3057,7 @@ void icalproperty_set_query(icalproperty* prop, char* v)
}
-char* icalproperty_get_query(icalproperty* prop)
+const char* icalproperty_get_query(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -3076,7 +3119,7 @@ int icalproperty_get_percentcomplete(icalproperty* prop)
/* CALSCALE */
-icalproperty* icalproperty_new_calscale(char* v)
+icalproperty* icalproperty_new_calscale(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALSCALE_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -3087,7 +3130,7 @@ icalproperty* icalproperty_new_calscale(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_calscale(char* v, ...)
+icalproperty* icalproperty_vanew_calscale(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_CALSCALE_PROPERTY);
@@ -3103,7 +3146,7 @@ icalproperty* icalproperty_vanew_calscale(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_calscale(icalproperty* prop, char* v)
+void icalproperty_set_calscale(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -3117,7 +3160,7 @@ void icalproperty_set_calscale(icalproperty* prop, char* v)
}
-char* icalproperty_get_calscale(icalproperty* prop)
+const char* icalproperty_get_calscale(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -3229,7 +3272,7 @@ struct icalgeotype icalproperty_get_geo(icalproperty* prop)
/* X-LIC-MIMECHARSET */
-icalproperty* icalproperty_new_xlicmimecharset(char* v)
+icalproperty* icalproperty_new_xlicmimecharset(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECHARSET_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -3240,7 +3283,7 @@ icalproperty* icalproperty_new_xlicmimecharset(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_xlicmimecharset(char* v, ...)
+icalproperty* icalproperty_vanew_xlicmimecharset(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_XLICMIMECHARSET_PROPERTY);
@@ -3256,7 +3299,7 @@ icalproperty* icalproperty_vanew_xlicmimecharset(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_xlicmimecharset(icalproperty* prop, char* v)
+void icalproperty_set_xlicmimecharset(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -3270,7 +3313,7 @@ void icalproperty_set_xlicmimecharset(icalproperty* prop, char* v)
}
-char* icalproperty_get_xlicmimecharset(icalproperty* prop)
+const char* icalproperty_get_xlicmimecharset(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");
@@ -3432,7 +3475,7 @@ struct icaltimetype icalproperty_get_due(icalproperty* prop)
/* ACTION */
-icalproperty* icalproperty_new_action(char* v)
+icalproperty* icalproperty_new_action(const char* v)
{
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ACTION_PROPERTY);
icalerror_check_arg_rz( (v!=0),"v");
@@ -3443,7 +3486,7 @@ icalproperty* icalproperty_new_action(char* v)
return (icalproperty*)impl;
}
-icalproperty* icalproperty_vanew_action(char* v, ...)
+icalproperty* icalproperty_vanew_action(const char* v, ...)
{
va_list args;
struct icalproperty_impl *impl = icalproperty_new_impl(ICAL_ACTION_PROPERTY);
@@ -3459,7 +3502,7 @@ icalproperty* icalproperty_vanew_action(char* v, ...)
return (icalproperty*)impl;
}
-void icalproperty_set_action(icalproperty* prop, char* v)
+void icalproperty_set_action(icalproperty* prop, const char* v)
{
icalvalue *value;
@@ -3473,7 +3516,7 @@ void icalproperty_set_action(icalproperty* prop, char* v)
}
-char* icalproperty_get_action(icalproperty* prop)
+const char* icalproperty_get_action(icalproperty* prop)
{
icalvalue *value;
icalerror_check_arg( (prop!=0),"prop");