annotate src/audtool/audtool.h @ 2934:c32036aa4b4d trunk

Transition to audtool_report()/audtool_whine().
author William Pitcock <nenolod@atheme.org>
date Fri, 29 Jun 2007 08:38:21 -0500
parents d1198fb765c6
children 6c0bb87fd672
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
1 /* Audtool -- Audacious scripting tool
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
2 * Copyright (c) 2005-2007 Audacious development team
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
3 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
7 * (at your option) any later version.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
8 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
13 *
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
17 */
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
18
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
19 #ifndef AUDTOOL_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
20 #define AUDTOOL_H
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
21
2737
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
22 #include <mowgli.h>
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2723
diff changeset
23 #include <audacious/dbus.h>
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2723
diff changeset
24
2737
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
25 extern mowgli_error_context_t *e;
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
26 extern DBusGProxy *dbus_proxy;
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
27
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
28 struct commandhandler {
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
29 gchar *name;
2723
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
30 void (*handler)(gint argc, gchar **argv);
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
31 gchar *desc;
2924
cf35109c4c33 Add the amount of arguments each command takes.
William Pitcock <nenolod@atheme.org>
parents: 2737
diff changeset
32 gint args;
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
33 };
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 extern struct commandhandler handlers[];
b189991f7417 [svn] - split handlers out to handlers.c
nenolod
parents: 2731
diff changeset
36
2723
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
37 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
38 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
39 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
40 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
41 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
42 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
43 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
44 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
45 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
46 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
47 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
48 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
49 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
50 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
51 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
52 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
53 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
54 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
55 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
56 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
57 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
58 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
59 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
60 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
61 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
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 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
70 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
71 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
72 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
73 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
74 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
75 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
76 extern void playqueue_is_queued(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
77 extern void playqueue_get_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 playqueue_get_qposition(gint, gchar **);
5051af882447 [svn] - bind to the right dbus interfaces, but this still has problems building
nenolod
parents: 2715
diff changeset
79 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
80 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
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 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
89 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
90 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
91 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
92 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
93 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
94 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
95 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
96 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
97 extern void shutdown_audacious_server(gint, gchar **);
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
98
2930
d1198fb765c6 Add audtool_report() and audtool_whine() for message handling.
William Pitcock <nenolod@atheme.org>
parents: 2924
diff changeset
99 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
100 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
101
2313
3149d4b1a9a9 [svn] - objective-make autodepend fixes
nenolod
parents:
diff changeset
102 #endif