Lines Matching refs:header

128                 free(m->header);
177 return (uint8_t*) m->header + old_size;
180 np = realloc(m->header, ALIGN8(new_size));
184 /* Initially, the header is allocated as part of of
192 memcpy(np, m->header, sizeof(struct bus_header));
199 op = m->header;
200 m->header = np;
204 m->path = adjust_pointer(m->path, op, old_size, m->header);
205 m->interface = adjust_pointer(m->interface, op, old_size, m->header);
206 m->member = adjust_pointer(m->member, op, old_size, m->header);
207 m->destination = adjust_pointer(m->destination, op, old_size, m->header);
208 m->sender = adjust_pointer(m->sender, op, old_size, m->header);
209 m->error.name = adjust_pointer(m->error.name, op, old_size, m->header);
239 /* dbus1 only allows 8bit header field ids */
299 /* dbus1 only allows 8bit header field ids */
339 /* dbus1 only allows 8bit header field ids */
376 /* dbus1 only allows 8bit header field ids */
428 void *header,
444 assert(header || header_accessible <= 0);
457 h = header;
467 /* Note that we are happy with unknown flags in the flags header! */
482 m->header = header;
516 /* dbus1 has the sizes in the header */
605 m->header = (struct bus_header*) ((uint8_t*) m + ALIGN(sizeof(struct sd_bus_message)));
606 m->header->endian = BUS_NATIVE_ENDIAN;
607 m->header->type = type;
608 m->header->version = bus->message_version;
614 m->header->flags |= BUS_MESSAGE_ALLOW_INTERACTIVE_AUTHORIZATION;
640 t->header->flags |= BUS_MESSAGE_NO_REPLY_EXPECTED;
720 assert_return(call->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EINVAL);
728 t->header->flags |= BUS_MESSAGE_NO_REPLY_EXPECTED;
743 t->dont_send = !!(call->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED);
884 t->header->flags |= BUS_MESSAGE_NO_REPLY_EXPECTED;
949 *type = m->header->type;
981 return m->header->type == SD_BUS_MESSAGE_METHOD_CALL &&
982 !(m->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED);
988 return !(m->header->flags & BUS_MESSAGE_NO_AUTO_START);
994 return m->header->type == SD_BUS_MESSAGE_METHOD_CALL &&
995 (m->header->flags & BUS_MESSAGE_ALLOW_INTERACTIVE_AUTHORIZATION);
1086 if (m->header->type != SD_BUS_MESSAGE_SIGNAL)
1105 if (m->header->type != SD_BUS_MESSAGE_METHOD_CALL)
1120 if (m->header->type != SD_BUS_MESSAGE_METHOD_ERROR)
1132 assert_return(m->header->type == SD_BUS_MESSAGE_METHOD_CALL, -EPERM);
1135 m->header->flags &= ~BUS_MESSAGE_NO_REPLY_EXPECTED;
1137 m->header->flags |= BUS_MESSAGE_NO_REPLY_EXPECTED;
1147 m->header->flags &= ~BUS_MESSAGE_NO_AUTO_START;
1149 m->header->flags |= BUS_MESSAGE_NO_AUTO_START;
1159 m->header->flags |= BUS_MESSAGE_ALLOW_INTERACTIVE_AUTHORIZATION;
1161 m->header->flags &= ~BUS_MESSAGE_ALLOW_INTERACTIVE_AUTHORIZATION;
2925 m->header->dbus1.fields_size = m->fields_size;
2926 m->header->dbus1.body_size = m->body_size;
2955 if (m->header->type == SD_BUS_MESSAGE_METHOD_RETURN &&
2984 m->header->dbus2.cookie = cookie;
2986 m->header->dbus1.serial = (uint32_t) cookie;
2988 m->timeout = m->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED ? 0 : timeout;
5476 switch (m->header->type) {
5533 if (m->header->type == SD_BUS_MESSAGE_METHOD_ERROR)
5564 e = mempcpy(p, m->header, BUS_MESSAGE_BODY_BEGIN(m));
5703 if (m->header->type != SD_BUS_MESSAGE_METHOD_ERROR)
5849 switch ((*m)->header->type) {
5868 n = message_new(bus, (*m)->header->type);
5878 if ((*m)->header->type == SD_BUS_MESSAGE_METHOD_ERROR && (*m)->error.name) {
5904 n->header->flags |= (*m)->header->flags & (BUS_MESSAGE_NO_REPLY_EXPECTED|BUS_MESSAGE_NO_AUTO_START);
5911 if (timeout == 0 && !((*m)->header->flags & BUS_MESSAGE_NO_REPLY_EXPECTED))