aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-10-28 04:34:53 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-10-28 04:34:53 +0800
commit7b8d4345fe3671e0d6fe0dab23ba1212d564a172 (patch)
treedf97567630f49d4c55f599cce56b3b9bc2a53a1b /libical
parent78a43af4b23250dc56e4a971915f274ab0da377d (diff)
downloadgsoc2013-evolution-7b8d4345fe3671e0d6fe0dab23ba1212d564a172.tar.gz
gsoc2013-evolution-7b8d4345fe3671e0d6fe0dab23ba1212d564a172.tar.zst
gsoc2013-evolution-7b8d4345fe3671e0d6fe0dab23ba1212d564a172.zip
Fixed icalproperty_remove_parameter().
svn path=/trunk/; revision=6239
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog5
-rw-r--r--libical/src/libical/icalproperty.c19
2 files changed, 23 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index 4b077f01ee..8b902fd4a9 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-20 Jesse Pavel <jpavel@helixcode.com>
+
+ * src/libical/icalproperty.c: added support for the
+ icalproperty_remove_parameter() function.
+
2000-10-11 Damon Chaplin <damon@helixcode.com>
* src/libical/icalparameter.c (icalparameter_as_ical_string):
diff --git a/libical/src/libical/icalproperty.c b/libical/src/libical/icalproperty.c
index 1040215108..b63c8a960a 100644
--- a/libical/src/libical/icalproperty.c
+++ b/libical/src/libical/icalproperty.c
@@ -382,9 +382,26 @@ icalproperty_add_parameter (icalproperty* prop,icalparameter* parameter)
void
icalproperty_remove_parameter (icalproperty* prop, icalparameter_kind kind)
{
+ struct icalproperty_impl *p = (struct icalproperty_impl*)prop;
+ icalparameter *param;
+ pvl_elem elem;
+
icalerror_check_arg_rv((prop!=0),"prop");
- assert(0); /* This routine is not implemented */
+ /* This routine is now implemented, so disregard the following
+ assertion. */
+ /* assert(0); */
+
+ elem = pvl_head (p->parameters);
+ while (elem != NULL) {
+ param = (icalparameter *)pvl_data (elem);
+ if (icalparameter_isa (param) == kind) {
+ pvl_remove (p->parameters, elem);
+ icalparameter_free (param);
+ break;
+ }
+ elem = pvl_next (elem);
+ }
}
t/cgit.cgi/freebsd-ports-gnome/commit/www/dansguardian?h=gnome-3.24&id=15c7b45950f454d9a6d0c0eb0caf1c01deb6ea8a'>Remove a new crop of the long-spurious FreeBSD KEYWORDs.dougb2006-07-111-1/+1 * - Better use of rc_subr frameworkpav2006-04-084-29/+37 * Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.dougb2006-02-211-1/+1 * - Make apache dependency optionalpav2005-12-181-5/+9 * - Update to 2.8.0.6garga2005-10-072-3/+3 * - Update to 2.8.0.4sem2005-03-055-62/+135 * * Update to version 2.8.0.2sem2004-08-103-14/+13 * DansGuardian 2.8.0-0 has been released as the new stable version. New featur...vs2004-07-288-57/+142 * - Update to 2.6.1-13pav2004-05-079-299/+155 * Correct the CONFLICTS. Remove unneccessary fluff.linimon2004-03-101-5/+4 * Update port to support new ports features including unique LATEST_LINK,linimon2004-03-102-1/+5 * One more attempt to get the plist right.linimon2004-01-092-2/+3 * Fix conflicts. Also check in the changes to the plist that I foolishlylinimon2004-01-092-43/+43 * Update to 2.6.1-11: bugfixes and better start/stop script; also, somelinimon2004-01-085-93/+169 * Update to version 2.6.1.6: mainly bugfixes.linimon2004-01-075-49/+44 * Use the new Apache bits from bsd.port.mk.marcus2003-11-071-1/+1