aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-19 05:13:05 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-19 05:13:05 +0800
commit8589cb087050e616facdba00e79479868b08c07f (patch)
tree9d6416306b5566e350ab0ed42e5ee82839e0a278
parent5f5b342dbd14a76290ef758292eee40e3df6d2ee (diff)
downloadgsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar.gz
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar.bz2
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar.lz
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar.xz
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.tar.zst
gsoc2013-evolution-8589cb087050e616facdba00e79479868b08c07f.zip
Made this take a const GList.
2001-10-18 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-card.c, backend/ebook/e-card.h (e_card_list_get_vcard): Made this take a const GList. svn path=/trunk/; revision=13773
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/ebook/e-card.c6
-rw-r--r--addressbook/backend/ebook/e-card.h2
3 files changed, 9 insertions, 4 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 1fdb0dd408..fb79650a1c 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-18 Christopher James Lahey <clahey@ximian.com>
+
+ * backend/ebook/e-card.c, backend/ebook/e-card.h
+ (e_card_list_get_vcard): Made this take a const GList.
+
2001-10-18 Jon Trowbridge <trow@ximian.com>
* gui/component/select-names/e-select-names-completion.c
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 34f924d4b1..cbea56a6bc 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -422,7 +422,7 @@ addPropValueQP(VObject *o, const char *p, const char *v)
}
static void
-addPropValueSets (VObject *o, char *p, char *v, gboolean assumeUTF8, gboolean *is_ascii, gboolean *has_return)
+addPropValueSets (VObject *o, const char *p, const char *v, gboolean assumeUTF8, gboolean *is_ascii, gboolean *has_return)
{
addPropValue (o, p, v);
if (*has_return && (assumeUTF8 || !*is_ascii))
@@ -475,7 +475,7 @@ addPropValueSets (VObject *o, char *p, char *v, gboolean assumeUTF8, gboolean *i
static VObject *
-e_card_get_vobject (ECard *card, gboolean assumeUTF8)
+e_card_get_vobject (const ECard *card, gboolean assumeUTF8)
{
VObject *vobj;
@@ -839,7 +839,7 @@ e_card_get_vcard_assume_utf8 (ECard *card)
* Returns: a string in vCard format.
*/
char *
-e_card_list_get_vcard (GList *list)
+e_card_list_get_vcard (const GList *list)
{
VObject *vobj;
diff --git a/addressbook/backend/ebook/e-card.h b/addressbook/backend/ebook/e-card.h
index 242c9738b7..3fa6ca2700 100644
--- a/addressbook/backend/ebook/e-card.h
+++ b/addressbook/backend/ebook/e-card.h
@@ -129,7 +129,7 @@ void e_card_set_book (ECard
struct _EBook *book);
char *e_card_get_vcard (ECard *card);
char *e_card_get_vcard_assume_utf8 (ECard *card);
-char *e_card_list_get_vcard (GList *list);
+char *e_card_list_get_vcard (const GList *list);
ECard *e_card_duplicate (ECard *card);
float e_card_get_use_score (ECard *card);
void e_card_touch (ECard *card);