annotate src/libaudclient/audctrl.c @ 2938:1cdfc508d758 trunk

Fix adding files when Audacious is running. A fix to start Audacious with a file will follow. Aditionally, some old, useless XMMS stuff was removed.
author Jonathan Schleifer <js@h3c.de>
date Fri, 29 Jun 2007 15:52:26 +0200
parents 77a012c3b521
children 3b6d316f8b09
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
1 /*
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
2 * Audacious: A cross-platform multimedia player
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
3 * Copyright (c) 2007 Ben Tucker
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
4 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
7 * the Free Software Foundation; under version 2 of the License.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
8 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
12 * GNU General Public License for more details.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
13 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
17 * 02110-1301, USA.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
18 */
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
19
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
20 #ifdef HAVE_CONFIG_H
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
21 # include "config.h"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
22 #endif
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
23
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
24 #include <stdlib.h>
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
25 #include <glib.h>
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
26 #include <dbus/dbus-glib.h>
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
27 #include "audacious/dbus.h"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
28 #include "audacious/dbus-client-bindings.h"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
29 #include "audctrl.h"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
30
2800
f42a5b531c03 [svn] - hide 'error' from outside to avoid symbol conflict.
yaz
parents: 2785
diff changeset
31 static GError *error = NULL; //it must be hidden from outside, otherwise symbol conflict likely to happen.
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
32
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
33 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
34 * audacious_remote_playlist:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
35 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
36 * @list: A list of URIs to play.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
37 * @num: Number of URIs to play.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
38 * @enqueue: Whether or not the new playlist should be added on, or replace the current playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
39 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
40 * Sends a playlist to audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
41 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
42 void audacious_remote_playlist(DBusGProxy *proxy, gchar **list, gint num,
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
43 gboolean enqueue) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
44 //XXX
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
45 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
46
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
47 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
48 * audacious_remote_get_version:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
49 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
50 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
51 * Queries audacious for it's protocol version.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
52 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
53 * Return value: The protocol version used by Audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
54 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
55 gint audacious_remote_get_version(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
56 return 0x09a3; // XXX should do actual dbus call.
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
57 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
58
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
59 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
60 * audacious_remote_playlist_add:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
61 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
62 * @list: A GList of URIs to add to the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
63 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
64 * Sends a list of URIs to Audacious to add to the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
65 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
66 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) {
2938
1cdfc508d758 Fix adding files when Audacious is running.
Jonathan Schleifer <js@h3c.de>
parents: 2814
diff changeset
67 GList *iter;
1cdfc508d758 Fix adding files when Audacious is running.
Jonathan Schleifer <js@h3c.de>
parents: 2814
diff changeset
68 for (iter = list; iter != NULL; iter = g_list_next(iter))
1cdfc508d758 Fix adding files when Audacious is running.
Jonathan Schleifer <js@h3c.de>
parents: 2814
diff changeset
69 org_atheme_audacious_add(proxy, iter->data, &error);
1cdfc508d758 Fix adding files when Audacious is running.
Jonathan Schleifer <js@h3c.de>
parents: 2814
diff changeset
70 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
71 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
72
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
73 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
74 * audacious_remote_playlist_delete:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
75 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
76 * @pos: The playlist position to delete.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
77 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
78 * Deletes a playlist entry.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
79 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
80 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
81 //XXX
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
82 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
83
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
84 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
85 * audacious_remote_play:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
86 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
87 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
88 * Tells audacious to begin playback.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
89 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
90 void audacious_remote_play(DBusGProxy *proxy) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
91 org_atheme_audacious_play(proxy, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
92 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
93 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
94
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
95 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
96 * audacious_remote_pause:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
97 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
98 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
99 * Tells audacious to pause.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
100 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
101 void audacious_remote_pause(DBusGProxy *proxy) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
102 org_atheme_audacious_pause(proxy, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
103 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
104 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
105
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
106 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
107 * audacious_remote_stop:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
108 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
109 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
110 * Tells audacious to stop.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
111 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
112 void audacious_remote_stop(DBusGProxy *proxy) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
113 org_atheme_audacious_stop(proxy, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
114 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
115 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
116
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
117 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
118 * audacious_remote_is_playing:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
119 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
120 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
121 * Queries audacious about whether it is playing or not.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
122 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
123 * Return value: TRUE if playing, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
124 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
125 gboolean audacious_remote_is_playing(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
126 gboolean is_playing = FALSE;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
127 org_atheme_audacious_playing(proxy, &is_playing, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
128 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
129 return is_playing;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
130 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
131
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
132 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
133 * audacious_remote_is_paused:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
134 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
135 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
136 * Queries audacious about whether it is paused or not.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
137 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
138 * Return value: TRUE if playing, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
139 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
140 gboolean audacious_remote_is_paused(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
141 gboolean is_paused = FALSE;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
142 org_atheme_audacious_paused(proxy, &is_paused, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
143 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
144 return is_paused;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
145 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
146
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
147 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
148 * audacious_remote_get_playlist_pos:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
149 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
150 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
151 * Queries audacious about the current playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
152 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
153 * Return value: The current playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
154 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
155 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
156 guint pos = 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
157 org_atheme_audacious_position(proxy, &pos, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
158 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
159 return pos;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
160 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
161
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
162 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
163 * audacious_remote_set_playlist_pos:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
164 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
165 * @pos: Playlist position to jump to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
166 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
167 * Tells audacious to jump to a different playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
168 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
169 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
170 org_atheme_audacious_jump (proxy, pos, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
171 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
172 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
173
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
174 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
175 * audacious_remote_get_playlist_length:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
176 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
177 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
178 * Queries audacious about the current playlist length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
179 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
180 * Return value: The amount of entries in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
181 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
182 gint audacious_remote_get_playlist_length(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
183 gint len = 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
184 org_atheme_audacious_length(proxy, &len, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
185 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
186 return len;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
187 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
188
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
189 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
190 * audacious_remote_playlist_clear:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
191 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
192 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
193 * Clears the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
194 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
195 void audacious_remote_playlist_clear(DBusGProxy *proxy) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
196 org_atheme_audacious_clear(proxy, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
197 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
198 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
199
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
200 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
201 * audacious_remote_get_output_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
202 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
203 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
204 * Queries audacious about the current output position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
205 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
206 * Return value: The current output position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
207 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
208 gint audacious_remote_get_output_time(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
209 guint time = 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
210 org_atheme_audacious_time(proxy, &time, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
211 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
212 return time;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
213 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
214
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
215 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
216 * audacious_remote_jump_to_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
217 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
218 * @pos: The time (in milliseconds) to jump to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
219 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
220 * Tells audacious to seek to a new time position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
221 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
222 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
223 org_atheme_audacious_seek (proxy, pos, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
224 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
225 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
226
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
227 /**
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
228 * audacious_remote_get_volume:
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
229 * @proxy: DBus proxy for audacious
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
230 * @vl: Pointer to integer containing the left channel's volume.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
231 * @vr: Pointer to integer containing the right channel's volume.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
232 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
233 * Queries audacious about the current volume.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
234 **/
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
235 void audacious_remote_get_volume(DBusGProxy *proxy, gint * vl, gint * vr) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
236 org_atheme_audacious_volume(proxy, vl, vr, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
237 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
238 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
239
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
240 /**
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
241 * audacious_remote_get_main_volume:
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
242 * @proxy: DBus proxy for audacious
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
243 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
244 * Queries audacious about the current volume.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
245 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
246 * Return value: The current volume.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
247 **/
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
248 gint audacious_remote_get_main_volume(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
249 gint vl = 0, vr = 0;
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
250
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
251 audacious_remote_get_volume(proxy, &vl, &vr);
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
252
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
253 return (vl > vr) ? vl : vr;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
254 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
255
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
256 /**
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
257 * audacious_remote_get_balance:
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
258 * @proxy: DBus proxy for audacious
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
259 *
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
260 * Queries audacious about the current balance.
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
261 *
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
262 * Return value: The current balance.
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
263 **/
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
264 gint audacious_remote_get_balance(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
265 gint balance = 50;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
266 org_atheme_audacious_balance(proxy, &balance, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
267 g_clear_error(&error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
268 return balance;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
269 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
270
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
271 /**
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
272 * audacious_remote_set_volume:
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
273 * @proxy: DBus proxy for audacious
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
274 * @vl: The volume for the left channel.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
275 * @vr: The volume for the right channel.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
276 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
277 * Sets the volume for the left and right channels in Audacious.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
278 **/
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
279 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
280 org_atheme_audacious_set_volume(proxy, vl, vr, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
281 g_clear_error(&error);
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
282 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
283
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
284
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
285 /**
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
286 * audacious_remote_set_main_volume:
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
287 * @proxy: DBus proxy for audacious
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
288 * @v: The volume to set.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
289 *
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
290 * Sets the volume in Audacious.
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
291 **/
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
292 void audacious_remote_set_main_volume(DBusGProxy *proxy, gint v) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
293 gint b = 50, vl = 0, vr = 0;
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
294
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
295 b = audacious_remote_get_balance(proxy);
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
296
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
297 if (b < 0) {
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
298 vl = v;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
299 vr = (v * (100 - abs(b))) / 100;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
300 } else if (b > 0) {
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
301 vl = (v * (100 - b)) / 100;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
302 vr = v;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
303 } else
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
304 vl = vr = v;
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
305 audacious_remote_set_volume(proxy, vl, vr);
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
306 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
307
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
308 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
309 * audacious_remote_set_balance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
310 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
311 * @b: The balance to set.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
312 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
313 * Sets the balance in Audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
314 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
315 void audacious_remote_set_balance(DBusGProxy *proxy, gint b) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
316 gint v = 0, vl = 0, vr = 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
317
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
318 if (b < -100)
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
319 b = -100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
320 if (b > 100)
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
321 b = 100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
322
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
323 v = audacious_remote_get_main_volume(proxy);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
324
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
325 if (b < 0) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
326 vl = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
327 vr = (v * (100 - abs(b))) / 100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
328 } else if (b > 0) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
329 vl = (v * (100 - b)) / 100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
330 vr = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
331 } else
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
332 vl = vr = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
333 audacious_remote_set_volume(proxy, vl, vr);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
334 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
335
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
336 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
337 * audacious_remote_get_skin:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
338 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
339 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
340 * Queries Audacious about it's skin.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
341 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
342 * Return value: A path to the currently selected skin.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
343 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
344 gchar *audacious_remote_get_skin(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
345 //XXX
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
346 return NULL;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
347 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
348
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
349 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
350 * audacious_remote_set_skin:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
351 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
352 * @skinfile: Path to a skinfile to use with Audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
353 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
354 * Tells audacious to start using the skinfile provided.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
355 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
356 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
357 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
358 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
359
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
360 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
361 * audacious_remote_get_playlist_file:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
362 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
363 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
364 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
365 * Queries Audacious about a playlist entry's file.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
366 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
367 * Return value: A path to the file in the playlist at %pos position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
368 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
369 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
370 gchar *out = NULL;
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
371 org_atheme_audacious_song_filename(proxy, pos, &out, &error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
372 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
373 return out;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
374 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
375
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
376 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
377 * audacious_remote_get_playlist_title:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
378 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
379 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
380 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
381 * Queries Audacious about a playlist entry's title.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
382 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
383 * Return value: The title for the entry in the playlist at %pos position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
384 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
385 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
386 gchar *out = NULL;
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
387 org_atheme_audacious_song_title(proxy, pos, &out, &error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
388 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
389 return out;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
390 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
391
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
392 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
393 * audacious_remote_get_playlist_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
394 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
395 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
396 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
397 * Queries Audacious about a playlist entry's length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
398 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
399 * Return value: The length of the entry in the playlist at %pos position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
400 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
401 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
402 gint out = 0;
2738
1eb06f902923 [svn] - call SongFrames not SongLength
nenolod
parents: 2735
diff changeset
403 org_atheme_audacious_song_frames(proxy, pos, &out, &error);
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
404 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
405 return out;
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
406 }
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
407
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
408 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
409 * audacious_remote_get_info:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
410 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
411 * @rate: Pointer to an integer containing the bitrate.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
412 * @freq: Pointer to an integer containing the frequency.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
413 * @nch: Pointer to an integer containing the number of channels.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
414 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
415 * Queries Audacious about the current audio format.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
416 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
417 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq,
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
418 gint *nch) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
419 org_atheme_audacious_info(proxy, rate, freq, nch, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
420 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
421 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
422
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
423 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
424 * audacious_remote_main_win_toggle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
425 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
426 * @show: Whether or not to show the main window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
427 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
428 * Toggles the main window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
429 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
430 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show) {
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
431 org_atheme_audacious_show_main_win(proxy, show, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
432 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
433 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
434
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
435 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
436 * audacious_remote_pl_win_toggle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
437 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
438 * @show: Whether or not to show the playlist window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
439 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
440 * Toggles the playlist window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
441 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
442 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show) {
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
443 org_atheme_audacious_show_playlist(proxy, show, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
444 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
445 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
446
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
447 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
448 * audacious_remote_eq_win_toggle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
449 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
450 * @show: Whether or not to show the equalizer window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
451 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
452 * Toggles the equalizer window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
453 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
454 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show) {
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
455 org_atheme_audacious_show_equalizer(proxy, show, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
456 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
457 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
458
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
459 /**
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
460 * audacious_remote_is_main_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
461 * @proxy: DBus proxy for audacious
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
462 *
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
463 * Queries Audacious about the main window's visibility.
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
464 *
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
465 * Return value: TRUE if visible, FALSE otherwise.
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
466 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
467 gboolean audacious_remote_is_main_win(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
468 gboolean visible = TRUE;
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
469 org_atheme_audacious_main_win_visible(proxy, &visible, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
470 g_clear_error(&error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
471 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
472 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
473
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
474 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
475 * audacious_remote_is_pl_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
476 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
477 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
478 * Queries Audacious about the playlist window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
479 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
480 * Return value: TRUE if visible, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
481 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
482 gboolean audacious_remote_is_pl_win(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
483 gboolean visible = TRUE;
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
484 org_atheme_audacious_playlist_visible(proxy, &visible, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
485 g_clear_error(&error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
486 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
487 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
488
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
489 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
490 * audacious_remote_is_eq_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
491 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
492 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
493 * Queries Audacious about the equalizer window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
494 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
495 * Return value: TRUE if visible, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
496 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
497 gboolean audacious_remote_is_eq_win(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
498 gboolean visible = FALSE;
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
499 org_atheme_audacious_equalizer_visible(proxy, &visible, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
500 g_clear_error(&error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
501 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
502 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
503
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
504 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
505 * audacious_remote_show_prefs_box:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
506 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
507 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
508 * Tells audacious to show the preferences pane.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
509 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
510 void audacious_remote_show_prefs_box(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
511 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
512 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
513
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
514 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
515 * audacious_remote_toggle_aot:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
516 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
517 * @ontop: Whether or not Audacious should be always-on-top.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
518 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
519 * Tells audacious to toggle the always-on-top feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
520 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
521 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
522 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
523 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
524
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
525 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
526 * audacious_remote_eject:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
527 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
528 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
529 * Tells audacious to display the open files pane.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
530 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
531 void audacious_remote_eject(DBusGProxy *proxy) {
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
532 org_atheme_audacious_eject(proxy, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
533 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
534 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
535
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
536 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
537 * audacious_remote_playlist_prev:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
538 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
539 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
540 * Tells audacious to move backwards in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
541 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
542 void audacious_remote_playlist_prev(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
543 org_atheme_audacious_reverse(proxy, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
544 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
545 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
546
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
547 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
548 * audacious_remote_playlist_next:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
549 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
550 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
551 * Tells audacious to move forward in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
552 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
553 void audacious_remote_playlist_next(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
554 org_atheme_audacious_advance(proxy, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
555 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
556 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
557
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
558 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
559 * audacious_remote_playlist_add_url_string:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
560 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
561 * @string: The URI to add.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
562 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
563 * Tells audacious to add an URI to the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
564 **/
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
565 void audacious_remote_playlist_add_url_string(DBusGProxy *proxy,
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
566 gchar *string) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
567 org_atheme_audacious_add_url(proxy, string, &error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
568 g_clear_error(&error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
569 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
570
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
571 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
572 * audacious_remote_is_running:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
573 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
574 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
575 * Checks to see if an Audacious server is running.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
576 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
577 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
578 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
579 gboolean audacious_remote_is_running(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
580 char *string = NULL;
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
581 org_atheme_audacious_version(proxy, &string, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
582 g_clear_error(&error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
583 if(string) {
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
584 g_free(string);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
585 return TRUE;
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
586 }
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
587 else
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
588 return FALSE;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
589 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
590
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
591 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
592 * audacious_remote_toggle_repeat:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
593 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
594 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
595 * Tells audacious to toggle the repeat feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
596 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
597 void audacious_remote_toggle_repeat(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
598 org_atheme_audacious_toggle_repeat(proxy, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
599 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
600 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
601
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
602 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
603 * audacious_remote_toggle_shuffle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
604 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
605 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
606 * Tells audacious to toggle the shuffle feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
607 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
608 void audacious_remote_toggle_shuffle(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
609 org_atheme_audacious_toggle_shuffle (proxy, &error);
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
610 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
611 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
612
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
613 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
614 * audacious_remote_is_repeat:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
615 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
616 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
617 * Queries audacious about whether or not the repeat feature is active.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
618 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
619 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
620 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
621 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) {
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
622 gboolean is_repeat;
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
623 org_atheme_audacious_repeat(proxy, &is_repeat, &error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
624 g_clear_error(&error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
625 return is_repeat;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
626 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
627
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
628 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
629 * audacious_remote_is_shuffle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
630 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
631 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
632 * Queries audacious about whether or not the shuffle feature is active.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
633 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
634 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
635 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
636 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) {
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
637 gboolean is_shuffle;
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
638 org_atheme_audacious_shuffle(proxy, &is_shuffle, &error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
639 g_clear_error(&error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
640 return is_shuffle;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
641 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
642
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
643 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
644 * audacious_remote_get_eq:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
645 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
646 * @preamp: Pointer to value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
647 * @bands: Pointer to array of band settings.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
648 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
649 * Queries audacious about the equalizer settings.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
650 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
651 void audacious_remote_get_eq(DBusGProxy *proxy, gfloat *preamp,
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
652 gfloat **bands) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
653 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
654 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
655
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
656 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
657 * audacious_remote_get_eq_preamp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
658 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
659 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
660 * Queries audacious about the equalizer preamp's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
661 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
662 * Return value: The equalizer preamp's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
663 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
664 gfloat audacious_remote_get_eq_preamp(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
665 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
666 return 0.0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
667 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
668
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
669 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
670 * audacious_remote_get_eq_band:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
671 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
672 * @band: Which band to lookup the value for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
673 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
674 * Queries audacious about an equalizer band's value.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
675 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
676 * Return value: The equalizer band's value.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
677 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
678 gfloat audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
679 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
680 return 0.0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
681 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
682
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
683 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
684 * audacious_remote_set_eq:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
685 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
686 * @preamp: Value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
687 * @bands: Array of band settings.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
688 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
689 * Tells audacious to set the equalizer up using the provided values.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
690 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
691 void audacious_remote_set_eq(DBusGProxy *proxy, gfloat preamp,
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
692 gfloat *bands) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
693 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
694 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
695
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
696 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
697 * audacious_remote_set_eq_preamp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
698 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
699 * @preamp: Value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
700 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
701 * Tells audacious to set the equalizer's preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
702 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
703 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
704 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
705 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
706
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
707 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
708 * audacious_remote_set_eq_band:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
709 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
710 * @band: The band to set the value for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
711 * @value: The value to set that band to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
712 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
713 * Tells audacious to set an equalizer band's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
714 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
715 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band,
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
716 gfloat value) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
717 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
718 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
719
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
720 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
721 * audacious_remote_quit:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
722 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
723 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
724 * Tells audacious to quit.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
725 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
726 void audacious_remote_quit(DBusGProxy *proxy) {
2733
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
727 org_atheme_audacious_quit(proxy, &error);
cf080b11c3fa [svn] Implemented more of the stubs in audctrl; Added more methods to objects.xml with implementations in dbus.c. I'm still trying to get plugins working with libaudclient.
magma
parents: 2731
diff changeset
728 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
729 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
730
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
731 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
732 * audacious_remote_play_pause:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
733 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
734 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
735 * Tells audacious to either play or pause.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
736 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
737 void audacious_remote_play_pause(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
738 //XXX
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff changeset
739 }
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
740
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
741 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
742 * audacious_remote_playlist_ins_url_string:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
743 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
744 * @string: The URI to add.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
745 * @pos: The position to add the URI at.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
746 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
747 * Tells audacious to add an URI to the playlist at a specific position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
748 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
749 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
750 gchar *string, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
751 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
752 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
753
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
754 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
755 * audacious_remote_playqueue_add:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
756 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
757 * @pos: The playlist position to add to the queue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
758 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
759 * Tells audacious to add a playlist entry to the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
760 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
761 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
762 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
763 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
764
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
765 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
766 * audacious_remote_playqueue_remove:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
767 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
768 * @pos: The playlist position to remove from the queue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
769 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
770 * Tells audacious to remove a playlist entry from the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
771 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
772 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
773 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
774 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
775
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
776 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
777 * audacious_remote_get_playqueue_length:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
778 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
779 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
780 * Queries audacious about the playqueue's length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
781 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
782 * Return value: The number of entries in the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
783 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
784 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) {
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
785 gint len = 0;
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
786 // this returns the lenght of the playlist, NOT the length of the playqueue
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
787 org_atheme_audacious_length(proxy, &len, &error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
788 g_clear_error(&error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
789 return len;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
790 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
791
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
792 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
793 * audacious_remote_toggle_advance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
794 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
795 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
796 * Tells audacious to toggle the no-playlist-advance feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
797 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
798 void audacious_remote_toggle_advance(DBusGProxy *proxy) {
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
799 org_atheme_audacious_toggle_auto_advance(proxy, &error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
800 g_clear_error(&error);
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
801 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
802
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
803 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
804 * audacious_remote_is_advance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
805 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
806 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
807 * Queries audacious about whether or not the no-playlist-advance feature is active.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
808 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
809 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
810 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
811 gboolean audacious_remote_is_advance(DBusGProxy *proxy) {
2814
77a012c3b521 [svn] - give default values to audacious_remote_* functions. if dbus call fails, default value will be returned.
yaz
parents: 2800
diff changeset
812 gboolean is_advance = FALSE;
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
813 org_atheme_audacious_auto_advance(proxy, &is_advance, &error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
814 g_clear_error(&error);
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2767
diff changeset
815 return is_advance;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
816 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
817
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
818 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
819 * audacious_remote_activate:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
820 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
821 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
822 * Tells audacious to display the main window and become the selected window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
823 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
824 void audacious_remote_activate(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
825 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
826 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
827
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
828 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
829 * audacious_remote_show_jtf_box:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
830 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
831 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
832 * Tells audacious to show the Jump-to-File pane.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
833 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
834 void audacious_remote_show_jtf_box(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
835 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
836 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
837
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
838 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
839 * audacious_remote_playqueue_clear:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
840 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
841 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
842 * Tells audacious to clear the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
843 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
844 void audacious_remote_playqueue_clear(DBusGProxy *proxy) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
845 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
846 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
847
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
848 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
849 * audacious_remote_playqueue_is_queued:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
850 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
851 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
852 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
853 * Queries audacious about whether or not a playlist entry is in the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
854 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
855 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
856 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
857 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
858 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
859 return FALSE;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
860 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
861
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
862 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
863 * audacious_remote_get_playqueue_position:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
864 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
865 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
866 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
867 * Queries audacious about what the playqueue position is for a playlist entry.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
868 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
869 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
870 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
871 gint audacious_remote_get_playqueue_position(DBusGProxy *proxy, guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
872 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
873 return 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
874 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
875
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
876 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
877 * audacious_remote_get_playqueue_queue_position:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
878 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
879 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
880 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
881 * Queries audacious about what the playlist position is for a playqueue entry.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
882 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
883 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
884 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
885 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
886 guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
887 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
888 return 0;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
889 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
890
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
891 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
892 * audacious_remote_playlist_enqueue_to_temp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
893 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
894 * @string: The URI to enqueue to a temporary playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
895 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
896 * Tells audacious to add an URI to a temporary playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
897 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
898 void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy,
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
899 gchar *string) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
900 //XXX
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
901 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
902
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
903 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
904 * audacious_get_tuple_field_data:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
905 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
906 * @field: The name of the tuple field to retrieve.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
907 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
908 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
909 * Queries Audacious about a playlist entry's tuple information.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
910 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
911 * Return value: The requested field's data for the entry in the playlist at %pos position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
912 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
913 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
914 guint pos) {
2785
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
915 //XXX
182aa34ae6c4 [svn] - implement some audacious-remote functions.
yaz
parents: 2769
diff changeset
916 return NULL;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
917 }