Changeset 2116
- Timestamp:
- 06/09/07 16:51:45 (1 year ago)
- Files:
-
- plugins/gnokii-sync/src/gnokii_calendar.c (modified) (1 diff)
- plugins/gnokii-sync/src/gnokii_contact.c (modified) (5 diffs)
- plugins/gnokii-sync/src/gnokii_contact_format.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/gnokii-sync/src/gnokii_calendar.c
r2102 r2116 371 371 // prepare UID with gnokii-calendar-<memory location> 372 372 uid = g_strdup_printf ("gnokii-calendar-%i", calnote->location); 373 osync_ change_set_uid(change, uid);373 osync_hashtable_report(sinkenv->hashtable, uid); 374 374 375 375 // get hash of calnote 376 376 hash = gnokii_calendar_hash(calnote); 377 377 378 osync_change_set_hash(change, hash); 379 osync_change_set_uid(change, uid); 380 378 381 379 382 // set data plugins/gnokii-sync/src/gnokii_contact.c
r2114 r2116 422 422 // prepare UID with gnokii-contact-<memory type>-<memory location> 423 423 uid = gnokii_contact_uid(contact); 424 osync_hashtable_report(sinkenv->hashtable, uid); 424 425 425 426 hash = gnokii_contact_hash(contact); … … 473 474 g_free(data); 474 475 475 476 /* FIXME: this is really really broken :(477 476 int i; 478 479 477 char **uids = osync_hashtable_get_deleted(sinkenv->hashtable); 480 478 for (i = 0; uids[i]; i++) { … … 511 509 } 512 510 g_free(uids); 513 */514 511 515 512 osync_context_report_success(ctx); … … 528 525 OSyncError *error = NULL; 529 526 gn_phonebook_entry *contact = NULL; 527 char *buf; 530 528 char *uid = NULL; 531 529 char *hash = NULL; … … 536 534 537 535 // Get changed contact note 538 osync_data_get_data(osync_change_get_data(change), &contact, NULL); 536 osync_data_get_data(osync_change_get_data(change), &buf, NULL); 537 contact = (gn_phonebook_entry *) buf; 539 538 540 539 // Check for type of changes plugins/gnokii-sync/src/gnokii_contact_format.c
r2114 r2116 59 59 60 60 // FIXME: evo2 workaround - evo2 requires a Name / N filed :( 61 /* 61 62 xmlfield = osync_xmlfield_new(xmlformat, "Name", error); 62 63 osync_xmlfield_set_key_value(xmlfield, "FirstName", contact->name); 64 */ 63 65 } 64 66
