annotate libaudacious/beepctrl.h @ 2133:d6c33d953f95 trunk

[svn] - while building the jump to file list, disassociate the GtkListStore from the GtkTreeView widget which displays the JTF list.
author nenolod
date Fri, 15 Dec 2006 20:20:46 -0800
parents 63af5b9c5026
children f363009b7410
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
2105
f18a5b617c34 [svn] - move to GPLv2-only. Based on my interpretation of the license, we are
nenolod
parents: 2060
diff changeset
8 * the Free Software Foundation; under version 2 of the License.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
1459
705d4c089fce [svn] Fix postal code.
chainsaw
parents: 1458
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 #ifndef XMMS_XMMSCTRL_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 #define XMMS_XMMSCTRL_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 #ifdef __cplusplus
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 extern "C" {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27
1436
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
28 enum
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
29 {
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
30 AUDACIOUS_TYPE_UNIX,
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
31 AUDACIOUS_TYPE_TCP,
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
32 };
c70b68bcf527 [svn] - add framework for later handling tcp:// connections
nenolod
parents: 984
diff changeset
33
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 /* Do NOT use this! This is only for control socket initialization now. */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35 gint xmms_connect_to_session(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 void xmms_remote_playlist(gint session, gchar ** list, gint num,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38 gboolean enqueue);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 gint xmms_remote_get_version(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 void xmms_remote_playlist_add(gint session, GList * list);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41 void xmms_remote_playlist_delete(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 void xmms_remote_play(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 void xmms_remote_pause(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 void xmms_remote_stop(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 gboolean xmms_remote_is_playing(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 gboolean xmms_remote_is_paused(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47 gint xmms_remote_get_playlist_pos(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 void xmms_remote_set_playlist_pos(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 gint xmms_remote_get_playlist_length(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 void xmms_remote_playlist_clear(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 gint xmms_remote_get_output_time(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 void xmms_remote_jump_to_time(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 void xmms_remote_get_volume(gint session, gint * vl, gint * vr);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 gint xmms_remote_get_main_volume(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 gint xmms_remote_get_balance(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 void xmms_remote_set_volume(gint session, gint vl, gint vr);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 void xmms_remote_set_main_volume(gint session, gint v);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 void xmms_remote_set_balance(gint session, gint b);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 gchar *xmms_remote_get_skin(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 void xmms_remote_set_skin(gint session, gchar * skinfile);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 gchar *xmms_remote_get_playlist_file(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 gchar *xmms_remote_get_playlist_title(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 gint xmms_remote_get_playlist_time(gint session, gint pos);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 void xmms_remote_get_info(gint session, gint * rate, gint * freq,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 gint * nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 void xmms_remote_main_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 void xmms_remote_pl_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 void xmms_remote_eq_win_toggle(gint session, gboolean show);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 gboolean xmms_remote_is_main_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 gboolean xmms_remote_is_pl_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 gboolean xmms_remote_is_eq_win(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 void xmms_remote_show_prefs_box(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 void xmms_remote_toggle_aot(gint session, gboolean ontop);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 void xmms_remote_eject(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 void xmms_remote_playlist_prev(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 void xmms_remote_playlist_next(gint session);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 void xmms_remote_playlist_add_url_string(gint session, gchar * string);
2127
63af5b9c5026 [svn] - add playlist_select_playlist() to select a literal playlist
nenolod
parents: 2105
diff changeset
78 void xmms_remote_playlist_enqueue_to_temp(gint session, gchar * string);
0
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);
2042
0985452d1962 [svn] - clean up some internal audacious controlsocket functions
nenolod
parents: 1459
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
2060
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
129 /**
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
130 * xmms_remote_add_files:
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
131 * @session: Legacy XMMS-style session identifier.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
132 * @list: A GList of files to add.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
133 *
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
134 * Tells audacious to add files to the playlist.
53a3d5db6b58 [svn] - finish documenting the libaudacious API
nenolod
parents: 2042
diff changeset
135 **/
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 #define xmms_remote_add_files(session,list) \
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 xmms_remote_playlist_add(session,list)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 #endif