Fix bug: link_count, link_base_id are unable to get 85/156085/1
authorJeesun Kim <iamjs.kim@samsung.com>
Tue, 17 Oct 2017 06:06:41 +0000 (15:06 +0900)
committerJeesun Kim <iamjs.kim@samsung.com>
Tue, 17 Oct 2017 06:06:57 +0000 (15:06 +0900)
Change-Id: I8236aef253b3bde4c91b37abb22bbe22b039dace

common/dbus/cal_dbus_helper.c

index 389f79b..d807820 100644 (file)
@@ -320,7 +320,7 @@ static GVariant *_only_event_to_gvariant(calendar_record_h record)
        GVariant *arg_start = _caltime_to_gvariant(&p->start);
        GVariant *arg_end = _caltime_to_gvariant(&p->end);
 
-       value = g_variant_new("(iisssssiiiiiiisssiddixixiiiviisssssssssissiiiissssivsivsi)",
+       value = g_variant_new("(iisssssiiiiiiisssiddixixiiiviisssssssssissiiiissssivsivsiii)",
                        p->index, p->calendar_id,
                        CAL_DBUS_SET_STRING(p->summary),
                        CAL_DBUS_SET_STRING(p->description),
@@ -356,7 +356,9 @@ static GVariant *_only_event_to_gvariant(calendar_record_h record)
                        CAL_DBUS_SET_STRING(p->start_tzid),
                        p->end.type, arg_end,
                        CAL_DBUS_SET_STRING(p->end_tzid),
-                       p->is_allday);
+                       p->is_allday,
+                       p->link_count,
+                       p->link_base_id);
        return value;
 }
 
@@ -996,7 +998,7 @@ static int _gvariant_to_only_event(GVariant *arg_record, calendar_record_h *out_
        GVariant *arg_end = NULL;
 
        g_variant_get(arg_record, "(ii&s&s&s&s&siiiiiii&s&s&siddixixiiivii"
-                       "&s&s&s&s&s&s&s&s&si&s&siiii&s&s&s&siv&siv&si)",
+                       "&s&s&s&s&s&s&s&s&si&s&siiii&s&s&s&siv&siv&siii)",
                        &p->index, &p->calendar_id, &p->summary, &p->description, &p->location,
                        &p->categories, &p->exdate, &p->event_status, &p->priority, &p->timezone,
                        &p->contact_id, &p->busy_status, &p->sensitivity, &p->meeting_status,
@@ -1008,7 +1010,7 @@ static int _gvariant_to_only_event(GVariant *arg_record, calendar_record_h *out_
                        &p->wkst, &p->recurrence_id, &p->rdate, &p->has_attendee, &p->has_alarm,
                        &p->system_type, &p->updated, &p->sync_data1, &p->sync_data2, &p->sync_data3,
                        &p->sync_data4, &p->start.type, &arg_start, &p->start_tzid, &p->end.type,
-                       &arg_end, &p->end_tzid, &p->is_allday);
+                       &arg_end, &p->end_tzid, &p->is_allday, &p->link_count, &p->link_base_id);
        _gvariant_to_caltime(p->until.type, arg_until, &p->until);
        _gvariant_to_caltime(p->start.type, arg_start, &p->start);
        _gvariant_to_caltime(p->end.type, arg_end, &p->end);