Mercurial > audlegacy
annotate src/audtool/audtool.h @ 4799:142a28417ced
- renamed executable as audlegacy
- made the legacy interface default.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 24 Nov 2008 22:25:58 +0900 |
parents | 3ce92d3cd0e1 |
children | 7bf7f83a217e |
rev | line source |
---|---|
3118
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
1 /* |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
2 * Audtool2 |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
3 * Copyright (c) 2007 Audacious development team |
2313 | 4 * |
3118
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
5 * Redistribution and use in source and binary forms, with or without |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
6 * modification, are permitted provided that the following conditions are |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
7 * met: |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
8 * |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
9 * 1. Redistributions of source code must retain the above copyright notice, |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
10 * this list of conditions and the following disclaimer. |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
11 * |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
12 * 2. Redistributions in binary form must reproduce the above copyright |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
13 * notice, this list of conditions and the following disclaimer in the |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
14 * documentation and/or other materials provided with the distribution. |
2313 | 15 * |
3118
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
16 * 3. The name of the author may not be used to endorse or promote products |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
17 * derived from this software without specific prior written permission. |
2313 | 18 * |
3118
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
22 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
6c0bb87fd672
Fix license terms.
William Pitcock <nenolod@atheme-project.org>
parents:
2930
diff
changeset
|
29 * POSSIBILITY OF SUCH DAMAGE. |
2313 | 30 */ |
31 | |
32 #ifndef AUDTOOL_H | |
33 #define AUDTOOL_H | |
34 | |
2737 | 35 #include <mowgli.h> |
2731
f4a5f8fa3836
[svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents:
2723
diff
changeset
|
36 #include <audacious/dbus.h> |
f4a5f8fa3836
[svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents:
2723
diff
changeset
|
37 |
2737 | 38 extern mowgli_error_context_t *e; |
39 extern DBusGProxy *dbus_proxy; | |
40 | |
2313 | 41 struct commandhandler { |
42 gchar *name; | |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
43 void (*handler)(gint argc, gchar **argv); |
2313 | 44 gchar *desc; |
2924
cf35109c4c33
Add the amount of arguments each command takes.
William Pitcock <nenolod@atheme.org>
parents:
2737
diff
changeset
|
45 gint args; |
2313 | 46 }; |
47 | |
2737 | 48 extern struct commandhandler handlers[]; |
49 | |
4074 | 50 extern void audtool_report(const gchar *str, ...); |
51 extern void audtool_whine(const gchar *str, ...); | |
4611
895297e46ee3
Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents:
4074
diff
changeset
|
52 extern void audtool_whine_args(const gchar *name, const gchar *str, ...); |
4615
3ce92d3cd0e1
Use audacious_remote_get_tuple_fields() to get available standard tuple
Matti Hamalainen <ccr@tnsp.org>
parents:
4611
diff
changeset
|
53 extern void audtool_whine_tuple_fields(void); |
4074 | 54 |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
55 extern void get_handlers_list(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
56 extern void get_current_song(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
57 extern void get_current_song_filename(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
58 extern void get_current_song_length(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
59 extern void get_current_song_length_seconds(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
60 extern void get_current_song_length_frames(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
61 extern void get_current_song_output_length(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
62 extern void get_current_song_output_length_seconds(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
63 extern void get_current_song_output_length_frames(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
64 extern void get_current_song_bitrate(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
65 extern void get_current_song_bitrate_kbps(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
66 extern void get_current_song_frequency(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
67 extern void get_current_song_frequency_khz(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
68 extern void get_current_song_channels(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
69 extern void get_current_song_tuple_field_data(gint, gchar **argv); |
4074 | 70 extern void get_current_song_info(gint argc, gchar **argv); |
71 | |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
72 extern void get_volume(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
73 extern void set_volume(gint, gchar **); |
4074 | 74 |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
75 extern void playlist_position(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
76 extern void playlist_advance(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
77 extern void playlist_reverse(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
78 extern void playlist_length(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
79 extern void playlist_song(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
80 extern void playlist_song_filename(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
81 extern void playlist_song_length(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
82 extern void playlist_song_length_seconds(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
83 extern void playlist_song_length_frames(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
84 extern void playlist_display(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
85 extern void playlist_position(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
86 extern void playlist_jump(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
87 extern void playlist_add_url_string(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
88 extern void playlist_delete(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
89 extern void playlist_clear(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
90 extern void playlist_repeat_status(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
91 extern void playlist_repeat_toggle(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
92 extern void playlist_shuffle_status(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
93 extern void playlist_shuffle_toggle(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
94 extern void playlist_tuple_field_data(gint, gchar **argv); |
4074 | 95 extern void playlist_show(gint, gchar **); |
96 extern void playlist_enqueue_to_temp(gint argc, gchar **argv); | |
97 extern void playlist_ins_url_string(gint argc, gchar **argv); | |
98 | |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
99 extern void playqueue_add(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
100 extern void playqueue_remove(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
101 extern void playqueue_is_queued(gint, gchar **); |
3867
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3118
diff
changeset
|
102 extern void playqueue_get_queue_position(gint, gchar **); |
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3118
diff
changeset
|
103 extern void playqueue_get_list_position(gint, gchar **); |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
104 extern void playqueue_display(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
105 extern void playqueue_length(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
106 extern void playqueue_clear(gint, gchar **); |
4074 | 107 |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
108 extern void playback_play(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
109 extern void playback_pause(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
110 extern void playback_playpause(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
111 extern void playback_stop(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
112 extern void playback_playing(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
113 extern void playback_paused(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
114 extern void playback_stopped(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
115 extern void playback_status(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
116 extern void playback_seek(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
117 extern void playback_seek_relative(gint, gchar **); |
4074 | 118 |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
119 extern void mainwin_show(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
120 extern void show_preferences_window(gint, gchar **); |
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
121 extern void show_jtf_window(gint, gchar **); |
3917 | 122 extern void show_filebrowser(gint, gchar **); |
2723
5051af882447
[svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents:
2715
diff
changeset
|
123 extern void shutdown_audacious_server(gint, gchar **); |
3867
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3118
diff
changeset
|
124 extern void show_about_window(gint, gchar **); |
2313 | 125 |
4074 | 126 extern void activate(gint argc, gchar **argv); |
127 extern void toggle_aot(gint argc, gchar **argv); | |
128 extern void get_skin(gint argc, gchar **argv); | |
129 extern void set_skin(gint argc, gchar **argv); | |
130 extern void get_version(gint argc, gchar **argv); | |
2930
d1198fb765c6
Add audtool_report() and audtool_whine() for message handling.
William Pitcock <nenolod@atheme.org>
parents:
2924
diff
changeset
|
131 |
4074 | 132 extern void equalizer_get_eq(gint argc, gchar **argv); |
133 extern void equalizer_get_eq_preamp(gint argc, gchar **argv); | |
134 extern void equalizer_get_eq_band(gint argc, gchar **argv); | |
135 extern void equalizer_set_eq(gint argc, gchar **argv); | |
136 extern void equalizer_set_eq_preamp(gint argc, gchar **argv); | |
137 extern void equalizer_set_eq_band(gint argc, gchar **argv); | |
138 extern void equalizer_active(gint argc, gchar **argv); | |
139 extern void equalizer_show(gint, gchar **); | |
3915
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
140 |
4611
895297e46ee3
Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents:
4074
diff
changeset
|
141 extern gint check_args_playlist_pos(gint argc, gchar **argv); |
895297e46ee3
Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents:
4074
diff
changeset
|
142 |
2313 | 143 #endif |