Lines Matching refs:payload_size
145 char *payload, size_t payload_size) { in finish_item() argument
152 assert(payload_size > 0); in finish_item()
176 combined = memdup(payload, payload_size + 1); in finish_item()
249 size_t payload_size = 0; in catalog_import_file() local
307 if (payload_size == 0) in catalog_import_file()
313 … r = finish_item(h, id, lang ?: deflang, payload, payload_size); in catalog_import_file()
318 payload_size = 0; in catalog_import_file()
345 … if (!GREEDY_REALLOC(payload, payload_size + (empty_line ? 1 : 0) + line_len + 1 + 1)) in catalog_import_file()
349 payload[payload_size++] = '\n'; in catalog_import_file()
350 memcpy(payload + payload_size, line, line_len); in catalog_import_file()
351 payload_size += line_len; in catalog_import_file()
352 payload[payload_size++] = '\n'; in catalog_import_file()
353 payload[payload_size] = '\0'; in catalog_import_file()
359 if (payload_size == 0) in catalog_import_file()
364 r = finish_item(h, id, lang ?: deflang, payload, payload_size); in catalog_import_file()