/[sido]/controller.h
ViewVC logotype

Contents of /controller.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Sun Oct 11 19:01:42 2009 UTC (11 years, 4 months ago) by ben
File MIME type: text/plain
File size: 605 byte(s)
use persistent connection
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 } AppData;
15
16 void quit(AppData* d);
17 void read_config (AppData* d);
18 void write_config (AppData* d);
19 int mpd_connect (const char* host, int port);
20 void mpd_disconnect (int sockfd);
21 gboolean mpd_control (int sockfd, const gchar* ctl);
22 gint mpd_get_vol(int sockfd);
23 gchar* mpd_get_song(int sockfd);
24 #endif

  ViewVC Help
Powered by ViewVC 1.1.26