0
|
1 /* XMMS - Cross-platform multimedia player
|
|
2 * Copyright (C) 1998-2003 Peter Alm, Mikael Alm, Olle Hallnas,
|
|
3 * Thomas Nilsson and 4Front Technologies
|
|
4 * Copyright (C) 1999-2003 Haavard Kvaalen
|
|
5 *
|
|
6 * This program is free software; you can redistribute it and/or modify
|
|
7 * it under the terms of the GNU General Public License as published by
|
|
8 * the Free Software Foundation; either version 2 of the License, or
|
|
9 * (at your option) any later version.
|
|
10 *
|
|
11 * This program is distributed in the hope that it will be useful,
|
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 * GNU General Public License for more details.
|
|
15 *
|
|
16 * You should have received a copy of the GNU General Public License
|
|
17 * along with this program; if not, write to the Free Software
|
|
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
19 */
|
|
20 #ifndef XMMS_XMMSCTRL_H
|
|
21 #define XMMS_XMMSCTRL_H
|
|
22
|
|
23 #include <glib.h>
|
|
24
|
|
25 #ifdef __cplusplus
|
|
26 extern "C" {
|
|
27 #endif
|
|
28
|
|
29 /* Do NOT use this! This is only for control socket initialization now. */
|
|
30 gint xmms_connect_to_session(gint session);
|
|
31
|
|
32 void xmms_remote_playlist(gint session, gchar ** list, gint num,
|
|
33 gboolean enqueue);
|
|
34 gint xmms_remote_get_version(gint session);
|
|
35 void xmms_remote_playlist_add(gint session, GList * list);
|
|
36 void xmms_remote_playlist_delete(gint session, gint pos);
|
|
37 void xmms_remote_play(gint session);
|
|
38 void xmms_remote_pause(gint session);
|
|
39 void xmms_remote_stop(gint session);
|
|
40 gboolean xmms_remote_is_playing(gint session);
|
|
41 gboolean xmms_remote_is_paused(gint session);
|
|
42 gint xmms_remote_get_playlist_pos(gint session);
|
|
43 void xmms_remote_set_playlist_pos(gint session, gint pos);
|
|
44 gint xmms_remote_get_playlist_length(gint session);
|
|
45 void xmms_remote_playlist_clear(gint session);
|
|
46 gint xmms_remote_get_output_time(gint session);
|
|
47 void xmms_remote_jump_to_time(gint session, gint pos);
|
|
48 void xmms_remote_get_volume(gint session, gint * vl, gint * vr);
|
|
49 gint xmms_remote_get_main_volume(gint session);
|
|
50 gint xmms_remote_get_balance(gint session);
|
|
51 void xmms_remote_set_volume(gint session, gint vl, gint vr);
|
|
52 void xmms_remote_set_main_volume(gint session, gint v);
|
|
53 void xmms_remote_set_balance(gint session, gint b);
|
|
54 gchar *xmms_remote_get_skin(gint session);
|
|
55 void xmms_remote_set_skin(gint session, gchar * skinfile);
|
|
56 gchar *xmms_remote_get_playlist_file(gint session, gint pos);
|
|
57 gchar *xmms_remote_get_playlist_title(gint session, gint pos);
|
|
58 gint xmms_remote_get_playlist_time(gint session, gint pos);
|
|
59 void xmms_remote_get_info(gint session, gint * rate, gint * freq,
|
|
60 gint * nch);
|
|
61 void xmms_remote_main_win_toggle(gint session, gboolean show);
|
|
62 void xmms_remote_pl_win_toggle(gint session, gboolean show);
|
|
63 void xmms_remote_eq_win_toggle(gint session, gboolean show);
|
|
64 gboolean xmms_remote_is_main_win(gint session);
|
|
65 gboolean xmms_remote_is_pl_win(gint session);
|
|
66 gboolean xmms_remote_is_eq_win(gint session);
|
|
67 void xmms_remote_show_prefs_box(gint session);
|
|
68 void xmms_remote_toggle_aot(gint session, gboolean ontop);
|
|
69 void xmms_remote_eject(gint session);
|
|
70 void xmms_remote_playlist_prev(gint session);
|
|
71 void xmms_remote_playlist_next(gint session);
|
|
72 void xmms_remote_playlist_add_url_string(gint session, gchar * string);
|
|
73 gboolean xmms_remote_is_running(gint session);
|
|
74 void xmms_remote_toggle_repeat(gint session);
|
|
75 void xmms_remote_toggle_shuffle(gint session);
|
|
76 gboolean xmms_remote_is_repeat(gint session);
|
|
77 gboolean xmms_remote_is_shuffle(gint session);
|
|
78 void xmms_remote_get_eq(gint session, gfloat * preamp,
|
|
79 gfloat ** bands);
|
|
80 gfloat xmms_remote_get_eq_preamp(gint session);
|
|
81 gfloat xmms_remote_get_eq_band(gint session, gint band);
|
|
82 void xmms_remote_set_eq(gint session, gfloat preamp, gfloat * bands);
|
|
83 void xmms_remote_set_eq_preamp(gint session, gfloat preamp);
|
|
84 void xmms_remote_set_eq_band(gint session, gint band, gfloat value);
|
|
85
|
|
86 /* Added in XMMS 1.2.1 */
|
|
87 void xmms_remote_quit(gint session);
|
|
88
|
|
89 /* Added in XMMS 1.2.6 */
|
|
90 void xmms_remote_play_pause(gint session);
|
|
91 void xmms_remote_playlist_ins_url_string(gint session, gchar * string,
|
|
92 gint pos);
|
|
93
|
|
94 /* Added in XMMS 1.2.11 */
|
|
95 void xmms_remote_playqueue_add(gint session, gint pos);
|
|
96 void xmms_remote_playqueue_remove(gint session, gint pos);
|
|
97 gint xmms_remote_get_playqueue_length(gint session);
|
|
98 void xmms_remote_toggle_advance(gint session);
|
|
99 gboolean xmms_remote_is_advance(gint session);
|
|
100
|
|
101 /* Added in BMP 0.9.7 */
|
|
102 void xmms_remote_activate(gint session);
|
|
103
|
984
|
104 /* Added in Audacious 1.1 */
|
|
105 void xmms_remote_show_jtf_box(gint session);
|
|
106 void xmms_remote_playqueue_clear(gint session);
|
|
107 gboolean xmms_remote_playqueue_is_queued(gint session, gint pos);
|
|
108 gint xmms_remote_get_playqueue_position(gint session, gint pos);
|
|
109 gint xmms_remote_get_playqueue_queue_position(gint session, gint pos);
|
0
|
110
|
|
111 #ifdef __cplusplus
|
|
112 };
|
|
113 #endif
|
|
114
|
|
115 /* Deprecated APIs */
|
|
116 void xmms_remote_play_files(gint session, GList * list);
|
|
117
|
|
118 #define xmms_remote_add_files(session,list) \
|
|
119 xmms_remote_playlist_add(session,list)
|
|
120
|
|
121
|
|
122 #endif
|