Lines Matching refs:bus_header
159 old_size = sizeof(struct bus_header) + m->fields_size; in message_extend_fields()
182 memcpy(np, m->header, sizeof(struct bus_header)); in message_extend_fields()
191 m->fields_size = new_size - sizeof(struct bus_header); in message_extend_fields()
207 m->header_offsets[m->n_header_offsets++] = new_size - sizeof(struct bus_header); in message_extend_fields()
430 struct bus_header *h; in bus_message_from_header()
439 if (header_accessible < sizeof(struct bus_header)) in bus_message_from_header()
496 if (m->fields_size < sizeof(struct bus_header)) in bus_message_from_header()
499 m->fields_size -= sizeof(struct bus_header); in bus_message_from_header()
500 m->body_size = message_size - (sizeof(struct bus_header) + ALIGN8(m->fields_size)); in bus_message_from_header()
509 … if (sizeof(struct bus_header) + ALIGN8(m->fields_size) + m->body_size != message_size) in bus_message_from_header()
555 sz = length - sizeof(struct bus_header) - ALIGN8(m->fields_size); in bus_message_from_malloc()
558 … m->body.data = (uint8_t*) buffer + sizeof(struct bus_header) + ALIGN8(m->fields_size); in bus_message_from_malloc()
592 sd_bus_message *t = malloc0(ALIGN(sizeof(sd_bus_message)) + sizeof(struct bus_header)); in sd_bus_message_new()
598 t->header = (struct bus_header*) ((uint8_t*) t + ALIGN(sizeof(struct sd_bus_message))); in sd_bus_message_new()
2875 …sz = bus_gvariant_determine_word_size(sizeof(struct bus_header) + ALIGN8(m->fields_size) + m->body… in bus_message_close_header()
2885 …bus_gvariant_write_word_le((uint8_t*) d + 1 + l + 2, sz, sizeof(struct bus_header) + m->fields_siz… in bus_message_close_header()