annotate src/audtool/audtool.h @ 3867:e48f2f4c116d

- many remained audacious remote functions have been implemented. - audtool improvement in progress.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 29 Oct 2007 22:21:42 +0900
parents 6c0bb87fd672
children f3341c2d6b9e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
30 */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
31
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
32 #ifndef AUDTOOL_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
33 #define AUDTOOL_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
34
2737
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
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
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
38 extern mowgli_error_context_t *e;
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
39 extern DBusGProxy *dbus_proxy;
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
40
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
41 struct commandhandler {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
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
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
46 };
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
47
2737
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
48 extern struct commandhandler handlers[];
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
49
2723
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 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
58 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
59 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
60 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
61 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
62 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
63 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
64 extern void get_current_song_tuple_field_data(gint, gchar **argv);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
65 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
66 extern void set_volume(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
67 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
68 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
69 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
70 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
71 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
72 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
73 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
74 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
75 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
76 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
77 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
78 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
79 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
80 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
81 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
82 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
83 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
84 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
85 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
86 extern void playlist_tuple_field_data(gint, gchar **argv);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
87 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
88 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
89 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
90 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
91 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
92 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
93 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
94 extern void playqueue_clear(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
95 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
96 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
97 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
98 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
99 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
100 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
101 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
102 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
103 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
104 extern void playback_seek_relative(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
105 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
106 extern void playlist_show(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
107 extern void equalizer_show(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
108 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
109 extern void show_jtf_window(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
110 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
111 extern void show_about_window(gint, gchar **);
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
112
2930
d1198fb765c6 Add audtool_report() and audtool_whine() for message handling.
William Pitcock <nenolod@atheme.org>
parents: 2924
diff changeset
113 extern void audtool_report(const gchar *str, ...);
d1198fb765c6 Add audtool_report() and audtool_whine() for message handling.
William Pitcock <nenolod@atheme.org>
parents: 2924
diff changeset
114 extern void audtool_whine(const gchar *str, ...);
d1198fb765c6 Add audtool_report() and audtool_whine() for message handling.
William Pitcock <nenolod@atheme.org>
parents: 2924
diff changeset
115
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
116 /* test suite */
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
117 extern void test_activate(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
118 extern void test_enqueue_to_temp(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
119 extern void test_toggle_aot(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
120 extern void test_get_skin(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
121 extern void test_set_skin(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
122 extern void test_get_info(gint argc, gchar **argv);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 3118
diff changeset
123
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
124 #endif