Changeset 3289
- Timestamp:
- 04/27/08 14:47:12 (5 months ago)
- Files:
-
- trunk/opensync/archive/opensync_archive.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/opensync/archive/opensync_archive.c
r2800 r3289 58 58 59 59 char *tbl_changes = g_strdup_printf("tbl_changes_%s", objtype); 60 int ret = osync_db_ exists(db, tbl_changes, error);60 int ret = osync_db_table_exists(db, tbl_changes, error); 61 61 g_free(tbl_changes); 62 62 … … 95 95 96 96 char *tbl_changelog = g_strdup_printf("tbl_changelog_%s", objtype); 97 int ret = osync_db_ exists(db, tbl_changelog, error);97 int ret = osync_db_table_exists(db, tbl_changelog, error); 98 98 g_free(tbl_changelog); 99 99 … … 131 131 132 132 char *tbl_archive = g_strdup_printf("tbl_archive_%s", objtype); 133 int ret = osync_db_ exists(db, tbl_archive, error);133 int ret = osync_db_table_exists(db, tbl_archive, error); 134 134 g_free(tbl_archive); 135 135 … … 426 426 osync_assert(memberids); 427 427 428 GList *result = NULL, *row = NULL;428 OSyncList *result = NULL, *row = NULL; 429 429 430 430 if (!osync_archive_create_changes(archive->db, objtype, error)) … … 441 441 442 442 for (row = result; row; row = row->next) { 443 GList *column = row->data;444 445 long long int id = g_ascii_strtoull( g_list_nth_data(column, 0), NULL, 0);446 const char *uid = g_list_nth_data(column, 1);447 long long int mappingid = g_ascii_strtoull( g_list_nth_data(column, 2), NULL, 0);448 long long int memberid = g_ascii_strtoull( g_list_nth_data(column, 3), NULL, 0);443 OSyncList *column = row->data; 444 445 long long int id = g_ascii_strtoull(osync_list_nth_data(column, 0), NULL, 0); 446 const char *uid = osync_list_nth_data(column, 1); 447 long long int mappingid = g_ascii_strtoull(osync_list_nth_data(column, 2), NULL, 0); 448 long long int memberid = g_ascii_strtoull(osync_list_nth_data(column, 3), NULL, 0); 449 449 450 450 *ids = osync_list_append((*ids), GINT_TO_POINTER((int)id)); … … 519 519 osync_assert(changetypes); 520 520 521 GList *result = NULL;522 GList *row = NULL;521 OSyncList *result = NULL; 522 OSyncList *row = NULL; 523 523 524 524 if (!osync_archive_create_changelog(archive->db, objtype, error)) … … 535 535 536 536 for (row = result; row; row = row->next) { 537 GList *column = row->data;538 539 long long int id = g_ascii_strtoull( g_list_nth_data(column, 0), NULL, 0);540 int changetype = atoi( g_list_nth_data(column, 1));537 OSyncList *column = row->data; 538 539 long long int id = g_ascii_strtoull(osync_list_nth_data(column, 0), NULL, 0); 540 int changetype = atoi(osync_list_nth_data(column, 1)); 541 541 542 542 *ids = osync_list_append((*ids), GINT_TO_POINTER((int)id));
