XMMS2
Functions
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. More...
 
int xmmsv_c2c_message_get_id (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the id from a c2c message. More...
 
int xmmsv_c2c_message_get_destination (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the destination id from a c2c message. More...
 
xmmsv_txmmsv_c2c_message_get_payload (xmmsv_t *c2c_msg) XMMS_PUBLIC
 Extract the payload from a c2c message. More...
 

Function Documentation

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.
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_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.
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.