Mercurial > audlegacy
annotate src/libaudacious/beepctrl.h @ 2656:f6c8622ef240 trunk
[svn] - fixed c++ish declaration in a c file (part 3)
author | giacomo |
---|---|
date | Sat, 07 Apr 2007 05:08:36 -0700 |
parents | c2b49ba4be45 |
children |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious development team | |
3 * | |
4 * Based on XMMS: | |
5 * Copyright (C) 1998-2003 Peter Alm, Mikael Alm, Olle Hallnas, | |
6 * Thomas Nilsson and 4Front Technologies | |
7 * Copyright (C) 1999-2003 Haavard Kvaalen | |
8 * | |
9 * This program is free software; you can redistribute it and/or modify | |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; under version 2 of the License. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
21 */ | |
22 #ifndef XMMS_XMMSCTRL_H | |
23 #define XMMS_XMMSCTRL_H | |
24 | |
25 #include <glib.h> | |
26 | |
27 #ifdef __cplusplus | |
28 extern "C" { | |
29 #endif | |
30 | |
31 enum | |
32 { | |
33 AUDACIOUS_TYPE_UNIX, | |
2522
5726a642c3d3
[svn] - fix beepctrl.h:35: warning: comma at end of enumerator list
nenolod
parents:
2313
diff
changeset
|
34 AUDACIOUS_TYPE_TCP |
2313 | 35 }; |
36 | |
37 /* Do NOT use this! This is only for control socket initialization now. */ | |
38 gint xmms_connect_to_session(gint session); | |
39 | |
40 void xmms_remote_playlist(gint session, gchar ** list, gint num, | |
41 gboolean enqueue); | |
42 gint xmms_remote_get_version(gint session); | |
43 void xmms_remote_playlist_add(gint session, GList * list); | |
44 void xmms_remote_playlist_delete(gint session, gint pos); | |
45 void xmms_remote_play(gint session); | |
46 void xmms_remote_pause(gint session); | |
47 void xmms_remote_stop(gint session); | |
48 gboolean xmms_remote_is_playing(gint session); | |
49 gboolean xmms_remote_is_paused(gint session); | |
50 gint xmms_remote_get_playlist_pos(gint session); | |
51 void xmms_remote_set_playlist_pos(gint session, gint pos); | |
52 gint xmms_remote_get_playlist_length(gint session); | |
53 void xmms_remote_playlist_clear(gint session); | |
54 gint xmms_remote_get_output_time(gint session); | |
55 void xmms_remote_jump_to_time(gint session, gint pos); | |
56 void xmms_remote_get_volume(gint session, gint * vl, gint * vr); | |
57 gint xmms_remote_get_main_volume(gint session); | |
58 gint xmms_remote_get_balance(gint session); | |
59 void xmms_remote_set_volume(gint session, gint vl, gint vr); | |
60 void xmms_remote_set_main_volume(gint session, gint v); | |
61 void xmms_remote_set_balance(gint session, gint b); | |
62 gchar *xmms_remote_get_skin(gint session); | |
63 void xmms_remote_set_skin(gint session, gchar * skinfile); | |
64 gchar *xmms_remote_get_playlist_file(gint session, gint pos); | |
65 gchar *xmms_remote_get_playlist_title(gint session, gint pos); | |
66 gint xmms_remote_get_playlist_time(gint session, gint pos); | |
67 void xmms_remote_get_info(gint session, gint * rate, gint * freq, | |
68 gint * nch); | |
69 void xmms_remote_main_win_toggle(gint session, gboolean show); | |
70 void xmms_remote_pl_win_toggle(gint session, gboolean show); | |
71 void xmms_remote_eq_win_toggle(gint session, gboolean show); | |
72 gboolean xmms_remote_is_main_win(gint session); | |
73 gboolean xmms_remote_is_pl_win(gint session); | |
74 gboolean xmms_remote_is_eq_win(gint session); | |
75 void xmms_remote_show_prefs_box(gint session); | |
76 void xmms_remote_toggle_aot(gint session, gboolean ontop); | |
77 void xmms_remote_eject(gint session); | |
78 void xmms_remote_playlist_prev(gint session); | |
79 void xmms_remote_playlist_next(gint session); | |
80 void xmms_remote_playlist_add_url_string(gint session, gchar * string); | |
81 gboolean xmms_remote_is_running(gint session); | |
82 void xmms_remote_toggle_repeat(gint session); | |
83 void xmms_remote_toggle_shuffle(gint session); | |
84 gboolean xmms_remote_is_repeat(gint session); | |
85 gboolean xmms_remote_is_shuffle(gint session); | |
86 void xmms_remote_get_eq(gint session, gfloat * preamp, | |
87 gfloat ** bands); | |
88 gfloat xmms_remote_get_eq_preamp(gint session); | |
89 gfloat xmms_remote_get_eq_band(gint session, gint band); | |
90 void xmms_remote_set_eq(gint session, gfloat preamp, gfloat * bands); | |
91 void xmms_remote_set_eq_preamp(gint session, gfloat preamp); | |
92 void xmms_remote_set_eq_band(gint session, gint band, gfloat value); | |
93 | |
94 /* Added in XMMS 1.2.1 */ | |
95 void xmms_remote_quit(gint session); | |
96 | |
97 /* Added in XMMS 1.2.6 */ | |
98 void xmms_remote_play_pause(gint session); | |
99 void xmms_remote_playlist_ins_url_string(gint session, gchar * string, | |
100 gint pos); | |
101 | |
102 /* Added in XMMS 1.2.11 */ | |
103 void xmms_remote_playqueue_add(gint session, gint pos); | |
104 void xmms_remote_playqueue_remove(gint session, gint pos); | |
105 gint xmms_remote_get_playqueue_length(gint session); | |
106 void xmms_remote_toggle_advance(gint session); | |
107 gboolean xmms_remote_is_advance(gint session); | |
108 | |
109 /* Added in BMP 0.9.7 */ | |
110 void xmms_remote_activate(gint session); | |
111 | |
112 /* Added in Audacious 1.1 */ | |
113 void xmms_remote_show_jtf_box(gint session); | |
114 void xmms_remote_playqueue_clear(gint session); | |
115 gboolean xmms_remote_playqueue_is_queued(gint session, gint pos); | |
116 gint xmms_remote_get_playqueue_position(gint session, gint pos); | |
117 gint xmms_remote_get_playqueue_queue_position(gint session, gint pos); | |
118 | |
119 /* Added in Audacious 1.2 */ | |
120 void audacious_set_session_uri(gchar *uri); | |
121 gchar *audacious_get_session_uri(gint session); | |
122 void audacious_set_session_type(gint type); | |
123 | |
2585
c2b49ba4be45
[svn] - tuple reading now available through audtool with audacious_get_tuple_field_data()
nhjm449
parents:
2522
diff
changeset
|
124 /* Added in Audacious 1.3 */ |
c2b49ba4be45
[svn] - tuple reading now available through audtool with audacious_get_tuple_field_data()
nhjm449
parents:
2522
diff
changeset
|
125 void xmms_remote_playlist_enqueue_to_temp(gint session, gchar * string); |
c2b49ba4be45
[svn] - tuple reading now available through audtool with audacious_get_tuple_field_data()
nhjm449
parents:
2522
diff
changeset
|
126 gchar *audacious_get_tuple_field_data(gint session, gchar * field, gint pos); |
c2b49ba4be45
[svn] - tuple reading now available through audtool with audacious_get_tuple_field_data()
nhjm449
parents:
2522
diff
changeset
|
127 |
2313 | 128 #ifdef __cplusplus |
129 }; | |
130 #endif | |
131 | |
132 /* Deprecated APIs */ | |
133 void xmms_remote_play_files(gint session, GList * list); | |
134 | |
135 /** | |
136 * xmms_remote_add_files: | |
137 * @session: Legacy XMMS-style session identifier. | |
138 * @list: A GList of files to add. | |
139 * | |
140 * Tells audacious to add files to the playlist. | |
141 **/ | |
142 #define xmms_remote_add_files(session,list) \ | |
143 xmms_remote_playlist_add(session,list) | |
144 | |
145 | |
146 #endif |