annotate libaudacious/beepctrl.h @ 1341:981ffc1cc402 trunk

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