XMMS2
xmmsv_c2c.h File Reference

Functions

int xmmsv_c2c_message_get_sender (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the sender id from a c2c message.
int xmmsv_c2c_message_get_id (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the id from a c2c message.
int xmmsv_c2c_message_get_destination (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the destination id from a c2c message.
xmmsv_txmmsv_c2c_message_get_payload (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the payload from a c2c message.

Function Documentation

◆ xmmsv_c2c_message_get_destination()

int xmmsv_c2c_message_get_destination ( xmmsv_t * msg)

Extract the destination id from a c2c message.

Parameters
msgThe client-to-client-message.
Returns
The destination id upon success, -1 upon failure.

◆ xmmsv_c2c_message_get_id()

int xmmsv_c2c_message_get_id ( xmmsv_t * msg)

Extract the id from a c2c message.

Parameters
msgThe client-to-client message.
Returns
The id upon success, -1 upon failure.

◆ xmmsv_c2c_message_get_payload()

xmmsv_t * xmmsv_c2c_message_get_payload ( xmmsv_t * msg)

Extract the payload from a c2c message.

Parameters
msgThe client-to-client message.
Returns
The payload upon success, NULL upon failure.

◆ xmmsv_c2c_message_get_sender()

int xmmsv_c2c_message_get_sender ( xmmsv_t * msg)

Extract the sender id from a c2c message.

Parameters
msgThe client-to-client message.
Returns
The sender id upon success, -1 upon failure.