[evolution-kolab/ek-wip-porting] KolabMailInfoDbRecord: field-type type fix
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-porting] KolabMailInfoDbRecord: field-type type fix
- Date: Thu, 8 Dec 2011 14:19:24 +0000 (UTC)
commit 2081aa8064167487185294ea464c11194f6b050a
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Dec 8 12:46:36 2011 +0100
KolabMailInfoDbRecord: field-type type fix
* the uint field getter/setter functions used the
wrong field id type (KolabMailInfoDbRecordCharFieldID
instead of KolabMailInfoDbRecordUintFieldID)
* fixed.
src/libekolab/kolab-mail-info-db-record.c | 4 +-
src/libekolab/kolab-mail-info-db-record.h | 45 ++++++++++++++++++++++------
2 files changed, 37 insertions(+), 12 deletions(-)
---
diff --git a/src/libekolab/kolab-mail-info-db-record.c b/src/libekolab/kolab-mail-info-db-record.c
index cec57f6..6aaf55a 100644
--- a/src/libekolab/kolab-mail-info-db-record.c
+++ b/src/libekolab/kolab-mail-info-db-record.c
@@ -163,7 +163,7 @@ kolab_mail_info_db_record_get_char_field (const KolabMailInfoDbRecord *record,
void
kolab_mail_info_db_record_set_uint_field (KolabMailInfoDbRecord *record,
- KolabMailInfoDbRecordCharFieldID field_id,
+ KolabMailInfoDbRecordUintFieldID field_id,
guint value)
{
g_assert (record != NULL);
@@ -174,7 +174,7 @@ kolab_mail_info_db_record_set_uint_field (KolabMailInfoDbRecord *record,
guint
kolab_mail_info_db_record_get_uint_field (const KolabMailInfoDbRecord *record,
- KolabMailInfoDbRecordCharFieldID field_id)
+ KolabMailInfoDbRecordUintFieldID field_id)
{
g_assert (record != NULL);
g_assert (field_id < KOLAB_MAIL_INFO_DB_RECORD_UINT_LAST_FIELD);
diff --git a/src/libekolab/kolab-mail-info-db-record.h b/src/libekolab/kolab-mail-info-db-record.h
index 5d4cfca..fb7a7e8 100644
--- a/src/libekolab/kolab-mail-info-db-record.h
+++ b/src/libekolab/kolab-mail-info-db-record.h
@@ -92,21 +92,46 @@ struct _KolabMailInfoDbRecord {
/*----------------------------------------------------------------------------*/
-KolabMailInfoDbRecord* kolab_mail_info_db_record_new (void);
-KolabMailInfoDbRecord* kolab_mail_info_db_record_clone (const KolabMailInfoDbRecord *record);
-void kolab_mail_info_db_record_free (KolabMailInfoDbRecord *record);
-void kolab_mail_info_db_record_gdestroy (gpointer data);
-gboolean kolab_mail_info_db_record_equal (const KolabMailInfoDbRecord *record1, const KolabMailInfoDbRecord *record2);
+KolabMailInfoDbRecord*
+kolab_mail_info_db_record_new (void);
+
+KolabMailInfoDbRecord*
+kolab_mail_info_db_record_clone (const KolabMailInfoDbRecord *record);
+
+void
+kolab_mail_info_db_record_free (KolabMailInfoDbRecord *record);
+
+void
+kolab_mail_info_db_record_gdestroy (gpointer data);
+
+gboolean
+kolab_mail_info_db_record_equal (const KolabMailInfoDbRecord *record1,
+ const KolabMailInfoDbRecord *record2);
/* accessors */
-void kolab_mail_info_db_record_set_char_field (KolabMailInfoDbRecord *record, KolabMailInfoDbRecordCharFieldID field_id, gchar *value);
-const gchar* kolab_mail_info_db_record_get_char_field (const KolabMailInfoDbRecord *record, KolabMailInfoDbRecordCharFieldID field_id);
-void kolab_mail_info_db_record_set_uint_field (KolabMailInfoDbRecord *record, KolabMailInfoDbRecordCharFieldID field_id, guint value);
-guint kolab_mail_info_db_record_get_uint_field (const KolabMailInfoDbRecord *record, KolabMailInfoDbRecordCharFieldID field_id);
+void
+kolab_mail_info_db_record_set_char_field (KolabMailInfoDbRecord *record,
+ KolabMailInfoDbRecordCharFieldID field_id,
+ gchar *value);
+
+const gchar*
+kolab_mail_info_db_record_get_char_field (const KolabMailInfoDbRecord *record,
+ KolabMailInfoDbRecordCharFieldID field_id);
+
+void
+kolab_mail_info_db_record_set_uint_field (KolabMailInfoDbRecord *record,
+ KolabMailInfoDbRecordUintFieldID field_id,
+ guint value);
+
+guint
+kolab_mail_info_db_record_get_uint_field (const KolabMailInfoDbRecord *record,
+ KolabMailInfoDbRecordUintFieldID field_id);
/* debugging */
-void kolab_mail_info_db_record_dump (const KolabMailInfoDbRecord *record);
+
+void
+kolab_mail_info_db_record_dump (const KolabMailInfoDbRecord *record);
/*----------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]