Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 983:6cc5538851d6 | 984:bcd1ebd0a7c1 |
|---|---|
| 352 break; | 352 break; |
| 353 case CMD_GET_PLAYQUEUE_LENGTH: | 353 case CMD_GET_PLAYQUEUE_LENGTH: |
| 354 ctrl_write_gint(pkt->fd, playlist_queue_get_length()); | 354 ctrl_write_gint(pkt->fd, playlist_queue_get_length()); |
| 355 ctrl_ack_packet(pkt); | 355 ctrl_ack_packet(pkt); |
| 356 break; | 356 break; |
| 357 case CMD_PLAYQUEUE_IS_QUEUED: | |
| 358 ctrl_write_gboolean(pkt->fd, | |
| 359 playlist_is_position_queued(*((guint32 *) pkt->data))); | |
| 360 ctrl_ack_packet(pkt); | |
| 361 break; | |
| 362 case CMD_PLAYQUEUE_GET_POS: | |
| 363 if (pkt->data) | |
| 364 ctrl_write_gint(pkt->fd, | |
| 365 playlist_get_queue_position_number(* | |
| 366 ((guint32 *) pkt-> | |
| 367 data))); | |
| 368 else | |
| 369 ctrl_write_gint(pkt->fd, 0); | |
| 370 | |
| 371 ctrl_ack_packet(pkt); | |
| 372 break; | |
| 373 case CMD_PLAYQUEUE_GET_QPOS: | |
| 374 if (pkt->data) | |
| 375 ctrl_write_gint(pkt->fd, | |
| 376 playlist_get_queue_qposition_number(* | |
| 377 ((guint32 *) pkt-> | |
| 378 data))); | |
| 379 else | |
| 380 ctrl_write_gint(pkt->fd, 0); | |
| 381 | |
| 382 ctrl_ack_packet(pkt); | |
| 383 break; | |
| 357 case CMD_GET_OUTPUT_TIME: | 384 case CMD_GET_OUTPUT_TIME: |
| 358 if (bmp_playback_get_playing()) | 385 if (bmp_playback_get_playing()) |
| 359 ctrl_write_gint(pkt->fd, bmp_playback_get_time()); | 386 ctrl_write_gint(pkt->fd, bmp_playback_get_time()); |
| 360 else | 387 else |
| 361 ctrl_write_gint(pkt->fd, 0); | 388 ctrl_write_gint(pkt->fd, 0); |
| 582 case CMD_PLAYQUEUE_REMOVE: | 609 case CMD_PLAYQUEUE_REMOVE: |
| 583 num = *((guint32 *) data); | 610 num = *((guint32 *) data); |
| 584 if (num < (guint)playlist_get_length()) | 611 if (num < (guint)playlist_get_length()) |
| 585 playlist_queue_remove(num); | 612 playlist_queue_remove(num); |
| 586 break; | 613 break; |
| 614 case CMD_PLAYQUEUE_CLEAR: | |
| 615 playlist_clear_queue(); | |
| 616 break; | |
| 587 case CMD_SET_PLAYLIST_POS: | 617 case CMD_SET_PLAYLIST_POS: |
| 588 num = *((guint32 *) data); | 618 num = *((guint32 *) data); |
| 589 if (num < (guint)playlist_get_length()) | 619 if (num < (guint)playlist_get_length()) |
| 590 playlist_set_position(num); | 620 playlist_set_position(num); |
| 591 break; | 621 break; |
| 625 break; | 655 break; |
| 626 case CMD_SHOW_PREFS_BOX: | 656 case CMD_SHOW_PREFS_BOX: |
| 627 if (has_x11_connection != TRUE) | 657 if (has_x11_connection != TRUE) |
| 628 break; | 658 break; |
| 629 show_prefs_window(); | 659 show_prefs_window(); |
| 660 break; | |
| 661 case CMD_SHOW_JTF_BOX: | |
| 662 if (has_x11_connection != TRUE) | |
| 663 break; | |
| 664 mainwin_jump_to_file(); | |
| 630 break; | 665 break; |
| 631 case CMD_TOGGLE_AOT: | 666 case CMD_TOGGLE_AOT: |
| 632 if (has_x11_connection != TRUE) | 667 if (has_x11_connection != TRUE) |
| 633 break; | 668 break; |
| 634 tbool = *((gboolean *) data); | 669 tbool = *((gboolean *) data); |
