annotate libaudacious/beepctrl.h @ 1939:e090f66574f6 trunk

[svn] Compile errors are bad, hmmkay?
author chainsaw
date Sun, 05 Nov 2006 06:25:22 -0800
parents 705d4c089fce
children 0985452d1962
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
1459
705d4c089fce [svn] Fix postal code.
chainsaw
parents: 1458
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
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
1436
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
29 enum
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
30 {
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
31 AUDACIOUS_TYPE_UNIX,
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
32 AUDACIOUS_TYPE_TCP,
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
33 };
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
34
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 /* Do NOT use this! This is only for control socket initialization now. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 gint xmms_connect_to_session(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 void xmms_remote_playlist(gint session, gchar ** list, gint num,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 gboolean enqueue);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 gint xmms_remote_get_version(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 void xmms_remote_playlist_add(gint session, GList * list);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 void xmms_remote_playlist_delete(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 void xmms_remote_play(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 void xmms_remote_pause(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 void xmms_remote_stop(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 gboolean xmms_remote_is_playing(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 gboolean xmms_remote_is_paused(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 gint xmms_remote_get_playlist_pos(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 void xmms_remote_set_playlist_pos(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 gint xmms_remote_get_playlist_length(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 void xmms_remote_playlist_clear(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 gint xmms_remote_get_output_time(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void xmms_remote_jump_to_time(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 void xmms_remote_get_volume(gint session, gint * vl, gint * vr);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 gint xmms_remote_get_main_volume(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 gint xmms_remote_get_balance(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 void xmms_remote_set_volume(gint session, gint vl, gint vr);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 void xmms_remote_set_main_volume(gint session, gint v);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 void xmms_remote_set_balance(gint session, gint b);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 gchar *xmms_remote_get_skin(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 void xmms_remote_set_skin(gint session, gchar * skinfile);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 gchar *xmms_remote_get_playlist_file(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 gchar *xmms_remote_get_playlist_title(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 gint xmms_remote_get_playlist_time(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 void xmms_remote_get_info(gint session, gint * rate, gint * freq,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 gint * nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 void xmms_remote_main_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 void xmms_remote_pl_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 void xmms_remote_eq_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 gboolean xmms_remote_is_main_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 gboolean xmms_remote_is_pl_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 gboolean xmms_remote_is_eq_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 void xmms_remote_show_prefs_box(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 void xmms_remote_toggle_aot(gint session, gboolean ontop);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 void xmms_remote_eject(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 void xmms_remote_playlist_prev(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 void xmms_remote_playlist_next(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 void xmms_remote_playlist_add_url_string(gint session, gchar * string);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 gboolean xmms_remote_is_running(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 void xmms_remote_toggle_repeat(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 void xmms_remote_toggle_shuffle(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 gboolean xmms_remote_is_repeat(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 gboolean xmms_remote_is_shuffle(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 void xmms_remote_get_eq(gint session, gfloat * preamp,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 gfloat ** bands);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 gfloat xmms_remote_get_eq_preamp(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87 gfloat xmms_remote_get_eq_band(gint session, gint band);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 void xmms_remote_set_eq(gint session, gfloat preamp, gfloat * bands);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 void xmms_remote_set_eq_preamp(gint session, gfloat preamp);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 void xmms_remote_set_eq_band(gint session, gint band, gfloat value);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 /* Added in XMMS 1.2.1 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 void xmms_remote_quit(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 /* Added in XMMS 1.2.6 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 void xmms_remote_play_pause(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 void xmms_remote_playlist_ins_url_string(gint session, gchar * string,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 /* Added in XMMS 1.2.11 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 void xmms_remote_playqueue_add(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 void xmms_remote_playqueue_remove(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 gint xmms_remote_get_playqueue_length(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 void xmms_remote_toggle_advance(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 gboolean xmms_remote_is_advance(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 /* Added in BMP 0.9.7 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108 void xmms_remote_activate(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109
984
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
110 /* Added in Audacious 1.1 */
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
111 void xmms_remote_show_jtf_box(gint session);
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
112 void xmms_remote_playqueue_clear(gint session);
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
113 gboolean xmms_remote_playqueue_is_queued(gint session, gint pos);
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
114 gint xmms_remote_get_playqueue_position(gint session, gint pos);
bcd1ebd0a7c1 [svn] - jumptofile and queue support fun
nhjm449
parents: 0
diff changeset
115 gint xmms_remote_get_playqueue_queue_position(gint session, gint pos);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116
1437
dd2b97f79a20 [svn] - add audacious_set_session_uri().
nenolod
parents: 1436
diff changeset
117 /* Added in Audacious 1.2 */
dd2b97f79a20 [svn] - add audacious_set_session_uri().
nenolod
parents: 1436
diff changeset
118 void audacious_set_session_uri(gchar *uri);
dd2b97f79a20 [svn] - add audacious_set_session_uri().
nenolod
parents: 1436
diff changeset
119 gchar *audacious_get_session_uri(gint session);
1456
6fe7ba6e5489 [svn] - Don't poll the config database if not using TCP sockets.
nhjm449
parents: 1437
diff changeset
120 void audacious_set_session_type(gint *type);
1437
dd2b97f79a20 [svn] - add audacious_set_session_uri().
nenolod
parents: 1436
diff changeset
121
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 /* Deprecated APIs */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127 void xmms_remote_play_files(gint session, GList * list);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 #define xmms_remote_add_files(session,list) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 xmms_remote_playlist_add(session,list)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133 #endif