Mercurial > audlegacy
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 |
rev | line source |
---|---|
2313 | 1 /* Audtool -- Audacious scripting tool |
2 * Copyright (c) 2005-2007 Audacious development team | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * This program is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License | |
15 * along with this program; if not, write to the Free Software | |
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17 */ | |
18 | |
19 #ifndef AUDTOOL_H | |
20 #define AUDTOOL_H | |
21 | |
2737 | 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 | 25 extern mowgli_error_context_t *e; |
26 extern DBusGProxy *dbus_proxy; | |
27 | |
2313 | 28 struct commandhandler { |
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 | 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 | 33 }; |
34 | |
2737 | 35 extern struct commandhandler handlers[]; |
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 | 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 | 102 #endif |