annotate src/audtool/handlers_playqueue.c @ 4661:e4e7999a21bc

Move D-Bus initialization before plugin system and playlist initialization. (The other changes in this changeset are to remedy the problem arising from the move, which resulted in annoying pause during startup due to D-Bus being initialized when assumed not to be.)
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Jun 2008 17:57:39 +0300
parents 8a7752f1c662
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
1 /*
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
2 * Audtool2
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
3 * Copyright (c) 2007 Audacious development team
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
4 *
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
5 * Redistribution and use in source and binary forms, with or without
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
6 * modification, are permitted provided that the following conditions are
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
7 * met:
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
8 *
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright notice,
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
10 * this list of conditions and the following disclaimer.
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
11 *
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
15 *
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
16 * 3. The name of the author may not be used to endorse or promote products
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
17 * derived from this software without specific prior written permission.
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
18 *
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
22 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
29 * POSSIBILITY OF SUCH DAMAGE.
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
30 */
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
31
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
32 #include <stdlib.h>
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
33 #include <string.h>
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
34 #include <glib.h>
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
35 #include <mowgli.h>
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
36 #include <locale.h>
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
37 #include "libaudclient/audctrl.h"
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
38 #include "audtool.h"
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
39
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
40 void playqueue_add(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
41 {
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
42 gint i = check_args_playlist_pos(argc, argv);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
43
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
44 if (!(audacious_remote_playqueue_is_queued(dbus_proxy, i - 1)))
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
45 audacious_remote_playqueue_add(dbus_proxy, i - 1);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
46 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
47
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
48 void playqueue_remove(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
49 {
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
50 gint i = check_args_playlist_pos(argc, argv);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
51
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
52 if (audacious_remote_playqueue_is_queued(dbus_proxy, i - 1))
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
53 audacious_remote_playqueue_remove(dbus_proxy, i - 1);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
54 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
55
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
56 void playqueue_is_queued(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
57 {
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
58 gint i = check_args_playlist_pos(argc, argv);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
59
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
60 if (audacious_remote_playqueue_is_queued(dbus_proxy, i - 1)) {
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
61 audtool_report("OK");
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
62 exit(0);
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
63 }
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
64 else
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
65 exit(1);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
66 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
67
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
68 void playqueue_get_queue_position(gint argc, gchar **argv)
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
69 {
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
70 gint pos, i = check_args_playlist_pos(argc, argv);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
71
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
72 pos = audacious_remote_get_playqueue_queue_position(dbus_proxy, i - 1) + 1;
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
73
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
74 if (pos < 1)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
75 return;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
76
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
77 audtool_report("%d", pos);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
78 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
79
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
80 void playqueue_get_list_position(gint argc, gchar **argv)
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
81 {
4611
895297e46ee3 Cure some 'repetitive code syndromes' from audtool.
Matti Hamalainen <ccr@tnsp.org>
parents: 4609
diff changeset
82 gint pos, i = check_args_playlist_pos(argc, argv);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
83
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
84 pos = audacious_remote_get_playqueue_list_position(dbus_proxy, i - 1) + 1;
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
85
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
86 if (pos < 1)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
87 return;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
88
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
89 audtool_report("%d", pos);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
90 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
91
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
92 void playqueue_display(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
93 {
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
94 gint i, ii, position, frames, length, total;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
95 gchar *songname;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
96 gchar *fmt = NULL, *p;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
97 gint column;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
98
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
99 i = audacious_remote_get_playqueue_length(dbus_proxy);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
100
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
101 audtool_report("%d queued tracks.", i);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
102
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
103 total = 0;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
104
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
105 for (ii = 0; ii < i; ii++)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
106 {
3867
e48f2f4c116d - many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents: 2933
diff changeset
107 position = audacious_remote_get_playqueue_list_position(dbus_proxy, ii);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
108 songname = audacious_remote_get_playlist_title(dbus_proxy, position);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
109 frames = audacious_remote_get_playlist_time(dbus_proxy, position);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
110 length = frames / 1000;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
111 total += length;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
112
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
113 /* adjust width for multi byte characters */
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
114 column = 60;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
115 if(songname) {
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
116 p = songname;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
117 while(*p){
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
118 gint stride;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
119 stride = g_utf8_next_char(p) - p;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
120 if(g_unichar_iswide(g_utf8_get_char(p))
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
121 || g_unichar_iswide_cjk(g_utf8_get_char(p))
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
122 ){
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
123 column += (stride - 2);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
124 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
125 else {
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
126 column += (stride - 1);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
127 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
128 p = g_utf8_next_char(p);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
129 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
130 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
131
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
132 fmt = g_strdup_printf("%%4d | %%4d | %%-%ds | %%d:%%.2d", column);
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
133 audtool_report(fmt, ii + 1, position + 1, songname, length / 60, length % 60);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
134 g_free(fmt);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
135 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
136
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
137 audtool_report("Total length: %d:%.2d", total / 60, total % 60);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
138 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
139
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
140 void playqueue_length(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
141 {
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
142 gint i;
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
143
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
144 i = audacious_remote_get_playqueue_length(dbus_proxy);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
145
2933
7be518cc8e60 Transition to audtool_report()/audtool_whine().
William Pitcock <nenolod@atheme.org>
parents: 2929
diff changeset
146 audtool_report("%d", i);
2929
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
147 }
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
148
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
149 void playqueue_clear(gint argc, gchar **argv)
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
150 {
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
151 audacious_remote_playqueue_clear(dbus_proxy);
b0ca7bddaec9 Split out playqueue functions.
William Pitcock <nenolod@atheme.org>
parents:
diff changeset
152 }