25 #ifndef __MOTR_RPC_PACKET_INT_H__ 26 #define __MOTR_RPC_PACKET_INT_H__ 74 #define for_each_item_in_packet(item, packet) \ 75 m0_tl_for(packet_item, &packet->rp_items, item) 77 #define end_for_each_item_in_packet m0_tl_endfor
static struct m0_addb2_philter p
M0_INTERNAL int m0_rpc_packet_decode(struct m0_rpc_packet *p, struct m0_bufvec *bufvec, m0_bindex_t off, m0_bcount_t len)
M0_INTERNAL void m0_rpc_packet_traverse_items(struct m0_rpc_packet *p, item_visit_fn *visit, int opaque_data)
M0_INTERNAL void m0_rpc_packet_add_item(struct m0_rpc_packet *p, struct m0_rpc_item *item)
static struct m0_rpc_item * item
M0_INTERNAL bool m0_rpc_packet_invariant(const struct m0_rpc_packet *p)
M0_INTERNAL void m0_rpc_packet_init(struct m0_rpc_packet *p, struct m0_rpc_machine *rmach)
M0_INTERNAL void m0_rpc_packet_fini(struct m0_rpc_packet *p)
M0_INTERNAL int m0_rpc_packet_decode_using_cursor(struct m0_rpc_packet *p, struct m0_bufvec_cursor *cursor, m0_bcount_t len)
M0_INTERNAL int m0_rpc_packet_encode_using_cursor(struct m0_rpc_packet *packet, struct m0_bufvec_cursor *cursor)
struct m0_rpc_packet_onwire_header rp_ow
M0_INTERNAL int m0_rpc_packet_encode(struct m0_rpc_packet *p, struct m0_bufvec *bufvec)
void item_visit_fn(struct m0_rpc_packet *packet, struct m0_rpc_item *item, int data)
M0_TL_DECLARE(packet_item, M0_INTERNAL, struct m0_rpc_item)
M0_INTERNAL bool m0_rpc_packet_is_carrying_item(const struct m0_rpc_packet *p, const struct m0_rpc_item *item)
struct m0_rpc_machine * rp_rmachine
M0_INTERNAL m0_bcount_t m0_rpc_packet_onwire_footer_size(void)
M0_INTERNAL void m0_rpc_packet_discard(struct m0_rpc_packet *packet)
struct m0_rpc_frm * rp_frm
M0_INTERNAL void m0_rpc_packet_remove_item(struct m0_rpc_packet *p, struct m0_rpc_item *item)
M0_TL_DESCR_DECLARE(packet_item, M0_EXTERN)
M0_INTERNAL void m0_rpc_packet_remove_all_items(struct m0_rpc_packet *p)
M0_INTERNAL bool m0_rpc_packet_is_empty(const struct m0_rpc_packet *p)
M0_INTERNAL m0_bcount_t m0_rpc_packet_onwire_header_size(void)