/[sido]/controller.h
ViewVC logotype

Annotation of /controller.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (hide annotations)
Sat Oct 17 00:31:21 2009 UTC (11 years, 4 months ago) by ben
File MIME type: text/plain
File size: 649 byte(s)
only one instance of volume control
1 ben 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 ben 17 GtkWidget* volume;
15 ben 19 GtkWidget* vol_window;
16 ben 1 } 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