/[sido]/controller.h
ViewVC logotype

Contents of /controller.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (show annotations)
Sat Oct 17 00:31:21 2009 UTC (7 years, 8 months ago) by ben
File MIME type: text/plain
File size: 649 byte(s)
only one instance of volume control
1 #ifndef CONTROLLER_H
2 #define CONTROLLER_H
3 typedef struct {
4 gchar* config_path;
5 gchar* ip; /* MPD ip address */
6 gint port; /* MPD tcp port */
7 int sock;
8 GtkMenu* right_menu;
9 GtkStatusIcon* status_icon;
10 GtkWindow* pref_window;
11 GtkEntry* ip_entry;
12 GtkSpinButton* port_spin;
13 GtkMenuItem* pref_item;
14 GtkWidget* volume;
15 GtkWidget* vol_window;
16 } AppData;
17
18 void quit(AppData* d);
19 void read_config (AppData* d);
20 void write_config (AppData* d);
21 int mpd_connect (const char* host, int port);
22 void mpd_disconnect (int sockfd);
23 gboolean mpd_control (int sockfd, const gchar* ctl);
24 gint mpd_get_vol(int sockfd);
25 gchar* mpd_get_song(int sockfd);
26 #endif

  ViewVC Help
Powered by ViewVC 1.1.26