void xmms_ipc_msg_set_cookie (xmms_ipc_msg_t *msg, uint32_t cookie) { xmmsv_bitbuffer_goto (msg->bb, 8 * 8); xmmsv_bitbuffer_put_bits (msg->bb, 32, cookie); xmmsv_bitbuffer_end (msg->bb); }
static void _internal_store_on_bb_uint32 (xmmsv_t *bb, uint32_t offset, uint32_t v) { xmmsv_bitbuffer_goto (bb, offset); xmmsv_bitbuffer_put_bits (bb, 32, v); xmmsv_bitbuffer_end (bb); }
static void xmms_ipc_msg_set_cmd (xmms_ipc_msg_t *msg, uint32_t cmd) { x_return_if_fail (msg); xmmsv_bitbuffer_goto (msg->bb, 4 * 8); xmmsv_bitbuffer_put_bits (msg->bb, 32, cmd); xmmsv_bitbuffer_end (msg->bb); }
static void xmms_ipc_msg_set_object (xmms_ipc_msg_t *msg, uint32_t object) { x_return_if_fail (msg); xmmsv_bitbuffer_goto (msg->bb, 0); xmmsv_bitbuffer_put_bits (msg->bb, 32, object); xmmsv_bitbuffer_end (msg->bb); }
static void xmms_ipc_msg_update_length (xmmsv_t *bb) { int len; len = xmmsv_bitbuffer_len (bb); len /= 8; len -= XMMS_IPC_MSG_HEAD_LEN; xmmsv_bitbuffer_goto (bb, 12*8); xmmsv_bitbuffer_put_bits (bb, 32, len); xmmsv_bitbuffer_end (bb); }