comparison audacious/controlsocket.c @ 1653:a6e6d3500c13 trunk

[svn] - revert back to r2216
author nenolod
date Thu, 07 Sep 2006 22:26:54 -0700
parents f3934d790a2e
children 70caa62ead63
comparison
equal deleted inserted replaced
1652:62c5bff8a05b 1653:a6e6d3500c13
42 #include <sys/socket.h> 42 #include <sys/socket.h>
43 #include <fcntl.h> 43 #include <fcntl.h>
44 #include <arpa/inet.h> 44 #include <arpa/inet.h>
45 45
46 #include "main.h" 46 #include "main.h"
47 #include "equalizer.h"
48 #include "mainwin.h"
47 #include "input.h" 49 #include "input.h"
48 #include "playback.h" 50 #include "playback.h"
49 #include "playlist.h" 51 #include "playlist.h"
52 #include "ui_playlist.h"
50 #include "prefswin.h" 53 #include "prefswin.h"
51 #include "libaudacious/beepctrl.h" 54 #include "libaudacious/beepctrl.h"
52 #include "interface.h"
53 55
54 #define CTRLSOCKET_BACKLOG 100 56 #define CTRLSOCKET_BACKLOG 100
55 #define CTRLSOCKET_TIMEOUT 100000 57 #define CTRLSOCKET_TIMEOUT 100000
56 58
57 59
430 else 432 else
431 b = 0; 433 b = 0;
432 ctrl_write_gint(pkt->fd, b); 434 ctrl_write_gint(pkt->fd, b);
433 ctrl_ack_packet(pkt); 435 ctrl_ack_packet(pkt);
434 break; 436 break;
437 case CMD_GET_SKIN:
438 ctrl_write_string(pkt->fd, bmp_active_skin->path);
439 ctrl_ack_packet(pkt);
440 break;
435 case CMD_GET_PLAYLIST_FILE: 441 case CMD_GET_PLAYLIST_FILE:
436 if (pkt->data) { 442 if (pkt->data) {
437 gchar *filename; 443 gchar *filename;
438 filename = playlist_get_filename(*((guint32 *) pkt->data)); 444 filename = playlist_get_filename(*((guint32 *) pkt->data));
439 ctrl_write_string(pkt->fd, filename); 445 ctrl_write_string(pkt->fd, filename);
748 */ 754 */
749 g_mutex_unlock(packet_list_mutex); 755 g_mutex_unlock(packet_list_mutex);
750 mainwin_quit_cb(); 756 mainwin_quit_cb();
751 break; 757 break;
752 case CMD_ACTIVATE: 758 case CMD_ACTIVATE:
753 current_interface->present(); 759 gtk_window_present(GTK_WINDOW(mainwin));
754 break; 760 break;
755 default: 761 default:
756 g_message("Unknown socket command received"); 762 g_message("Unknown socket command received");
757 break; 763 break;
758 } 764 }