Mercurial > audlegacy
diff audacious/controlsocket.c @ 984:bcd1ebd0a7c1 trunk
[svn] - jumptofile and queue support fun
author | nhjm449 |
---|---|
date | Fri, 28 Apr 2006 22:46:00 -0700 |
parents | 704c0b2e5f6b |
children | 2f714bee0645 |
line wrap: on
line diff
--- a/audacious/controlsocket.c Fri Apr 28 22:44:06 2006 -0700 +++ b/audacious/controlsocket.c Fri Apr 28 22:46:00 2006 -0700 @@ -354,6 +354,33 @@ ctrl_write_gint(pkt->fd, playlist_queue_get_length()); ctrl_ack_packet(pkt); break; + case CMD_PLAYQUEUE_IS_QUEUED: + ctrl_write_gboolean(pkt->fd, + playlist_is_position_queued(*((guint32 *) pkt->data))); + ctrl_ack_packet(pkt); + break; + case CMD_PLAYQUEUE_GET_POS: + if (pkt->data) + ctrl_write_gint(pkt->fd, + playlist_get_queue_position_number(* + ((guint32 *) pkt-> + data))); + else + ctrl_write_gint(pkt->fd, 0); + + ctrl_ack_packet(pkt); + break; + case CMD_PLAYQUEUE_GET_QPOS: + if (pkt->data) + ctrl_write_gint(pkt->fd, + playlist_get_queue_qposition_number(* + ((guint32 *) pkt-> + data))); + else + ctrl_write_gint(pkt->fd, 0); + + ctrl_ack_packet(pkt); + break; case CMD_GET_OUTPUT_TIME: if (bmp_playback_get_playing()) ctrl_write_gint(pkt->fd, bmp_playback_get_time()); @@ -584,6 +611,9 @@ if (num < (guint)playlist_get_length()) playlist_queue_remove(num); break; + case CMD_PLAYQUEUE_CLEAR: + playlist_clear_queue(); + break; case CMD_SET_PLAYLIST_POS: num = *((guint32 *) data); if (num < (guint)playlist_get_length()) @@ -628,6 +658,11 @@ break; show_prefs_window(); break; + case CMD_SHOW_JTF_BOX: + if (has_x11_connection != TRUE) + break; + mainwin_jump_to_file(); + break; case CMD_TOGGLE_AOT: if (has_x11_connection != TRUE) break;