xmmsc_result_t * xmmsc_visualization_version (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_VISUALIZATION, XMMS_IPC_CMD_VISUALIZATION_QUERY_VERSION); }
xmmsc_result_t * xmmsc_visualization_init (xmmsc_connection_t *c) { xmmsc_result_t *res = NULL; x_check_conn (c, 0); c->visc++; c->visv = realloc (c->visv, sizeof (xmmsc_visualization_t*) * c->visc); if (!c->visv) { x_oom (); c->visc = 0; } if (c->visc > 0) { int vv = c->visc-1; if (!(c->visv[vv] = x_new0 (xmmsc_visualization_t, 1))) { x_oom (); } else { c->visv[vv]->idx = vv; c->visv[vv]->state = VIS_NEW; res = xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_VISUALIZATION, XMMS_IPC_CMD_VISUALIZATION_REGISTER); if (res) { xmmsc_result_visc_set (res, c->visv[vv]); } } } return res; }
/** * Get a list of statistics from the server */ xmmsc_result_t * xmmsc_main_stats (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_MAIN, XMMS_IPC_CMD_STATS); }
/** * Retrive the name of the active playlist */ xmmsc_result_t * xmmsc_playlist_current_active (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYLIST, XMMS_IPC_CMD_CURRENT_ACTIVE); }
xmmsc_result_t * xmmsc_playback_pause (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYBACK, XMMS_IPC_CMD_PAUSE); }
/** * Stop decoding of current song. This will start decoding of the song * set with xmmsc_playlist_set_next, or the current song again if no * xmmsc_playlist_set_next was executed. */ xmmsc_result_t * xmmsc_playback_tickle (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYBACK, XMMS_IPC_CMD_DECODER_KILL); }
xmmsc_result_t * xmmsc_playback_volume_get (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYBACK, XMMS_IPC_CMD_VOLUME_GET); }
/** * Make server emit the current id. */ xmmsc_result_t * xmmsc_playback_current_id (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYBACK, XMMS_IPC_CMD_CURRENTID); }
/** * Make server emit the playback status. */ xmmsc_result_t * xmmsc_playback_status (xmmsc_connection_t *c) { x_check_conn (c, NULL); return xmmsc_send_msg_no_arg (c, XMMS_IPC_OBJECT_PLAYBACK, XMMS_IPC_CMD_PLAYBACK_STATUS); }