Lines 2055-2060
Link Here
|
2055 |
data->phonebook_entry->empty = true; |
2055 |
data->phonebook_entry->empty = true; |
2056 |
data->phonebook_entry->caller_group = 5; /* no group */ |
2056 |
data->phonebook_entry->caller_group = 5; /* no group */ |
2057 |
data->phonebook_entry->name[0] = '\0'; |
2057 |
data->phonebook_entry->name[0] = '\0'; |
|
|
2058 |
data->phonebook_entry->firstname[0] = '\0'; |
2059 |
data->phonebook_entry->lastname[0] = '\0'; |
2058 |
data->phonebook_entry->number[0] = '\0'; |
2060 |
data->phonebook_entry->number[0] = '\0'; |
2059 |
data->phonebook_entry->subentries_count = 0; |
2061 |
data->phonebook_entry->subentries_count = 0; |
2060 |
data->phonebook_entry->date.year = 0; |
2062 |
data->phonebook_entry->date.year = 0; |
Lines 2348-2353
Link Here
|
2348 |
j = char_unicode_encode((string + 1), entry->name, strlen(entry->name)); |
2350 |
j = char_unicode_encode((string + 1), entry->name, strlen(entry->name)); |
2349 |
string[0] = j; |
2351 |
string[0] = j; |
2350 |
count += PackBlock(0x07, j + 1, block++, string, req + count, GN_PHONEBOOK_ENTRY_MAX_LENGTH - count); |
2352 |
count += PackBlock(0x07, j + 1, block++, string, req + count, GN_PHONEBOOK_ENTRY_MAX_LENGTH - count); |
|
|
2353 |
dprintf(" surename: %s...\n",entry->lastname); |
2354 |
if (strlen(entry->lastname) > 0) { |
2355 |
j = char_unicode_encode((string + 1), entry->lastname, strlen(entry->lastname)); |
2356 |
string[0] = j; |
2357 |
count += PackBlock(GN_PHONEBOOK_ENTRY_Lastname, j + 1, block++, string, req + count, GN_PHONEBOOK_ENTRY_MAX_LENGTH - count); |
2358 |
} |
2359 |
|
2360 |
dprintf(" givenname: %s...\n",entry->firstname); |
2361 |
if (strlen(entry->firstname) > 0) { |
2362 |
j = char_unicode_encode((string + 1), entry->firstname, strlen(entry->firstname)); |
2363 |
string[0] = j; |
2364 |
count += PackBlock(GN_PHONEBOOK_ENTRY_Firstname, j + 1, block++, string, req + count, GN_PHONEBOOK_ENTRY_MAX_LENGTH - count); |
2365 |
} |
2351 |
|
2366 |
|
2352 |
/* Group */ |
2367 |
/* Group */ |
2353 |
string[0] = entry->caller_group + 1; |
2368 |
string[0] = entry->caller_group + 1; |