aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c2
-rw-r--r--addressbook/backend/ebook/e-card-simple.h2
-rw-r--r--addressbook/backend/ebook/e-card.c2
-rw-r--r--addressbook/backend/ebook/e-card.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c
index ed10a56685..9eda02e484 100644
--- a/addressbook/backend/ebook/e-card-simple.c
+++ b/addressbook/backend/ebook/e-card-simple.c
@@ -253,7 +253,7 @@ ECardSimple *e_card_simple_duplicate(ECardSimple *simple)
* Returns: a string representing the id of the simple, which is unique
* within its book.
*/
-char *
+const char *
e_card_simple_get_id (ECardSimple *simple)
{
if (simple->card)
diff --git a/addressbook/backend/ebook/e-card-simple.h b/addressbook/backend/ebook/e-card-simple.h
index 899964fd24..24441df172 100644
--- a/addressbook/backend/ebook/e-card-simple.h
+++ b/addressbook/backend/ebook/e-card-simple.h
@@ -148,7 +148,7 @@ struct _ECardSimpleClass {
typedef void (*ECardSimpleArbitraryCallback) (const ECardArbitrary *arbitrary, gpointer closure);
ECardSimple *e_card_simple_new (ECard *card);
-char *e_card_simple_get_id (ECardSimple *simple);
+const char *e_card_simple_get_id (ECardSimple *simple);
void e_card_simple_set_id (ECardSimple *simple,
const gchar *character);
char *e_card_simple_get_vcard (ECardSimple *simple);
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index 59fa211d39..50dc348059 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -222,7 +222,7 @@ ECard *e_card_duplicate(ECard *card)
* Returns: a string representing the id of the card, which is unique
* within its book.
*/
-char *
+const char *
e_card_get_id (ECard *card)
{
return card->id;
diff --git a/addressbook/backend/ebook/e-card.h b/addressbook/backend/ebook/e-card.h
index ae0ab3c1ef..667fbdc89c 100644
--- a/addressbook/backend/ebook/e-card.h
+++ b/addressbook/backend/ebook/e-card.h
@@ -107,7 +107,7 @@ struct _ECardClass {
/* Simple functions */
ECard *e_card_new (char *vcard);
-char *e_card_get_id (ECard *card);
+const char *e_card_get_id (ECard *card);
void e_card_set_id (ECard *card,
const char *character);