annotate src/libaudclient/audctrl.c @ 2767:55dc022c405a trunk

[svn] Changed signedness and formatting.
author magma
date Sun, 13 May 2007 11:56:01 -0700
parents c89362b15525
children bf2d80abf76e
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
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
31 GError *error = NULL;
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) {
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
44 }
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
46 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
47 * audacious_remote_get_version:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
48 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
49 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
50 * Queries audacious for it's protocol version.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
51 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
52 * Return value: The protocol version used by Audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
53 **/
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
54 gint audacious_remote_get_version(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
55 return 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
56 }
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
58 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
59 * audacious_remote_playlist_add:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
60 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
61 * @list: A GList of URIs to add to the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
62 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
63 * 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
64 **/
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
65 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) {
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 }
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
67
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
68 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
69 * audacious_remote_playlist_delete:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
70 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
71 * @pos: The playlist position to delete.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
72 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
73 * Deletes a playlist entry.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
74 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
75 void audacious_remote_playlist_delete(DBusGProxy *proxy, guint pos) {
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
76 }
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
77
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
78 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
79 * audacious_remote_play:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
80 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
81 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
82 * Tells audacious to begin playback.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
83 **/
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
84 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
85 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
86 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
87 }
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
88
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
89 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
90 * audacious_remote_pause:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
91 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
92 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
93 * Tells audacious to pause.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
94 **/
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
95 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
96 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
97 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
98 }
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
99
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
100 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
101 * audacious_remote_stop:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
102 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
103 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
104 * Tells audacious to stop.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
105 **/
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
106 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
107 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
108 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
109 }
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
110
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
111 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
112 * audacious_remote_is_playing:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
113 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
114 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
115 * Queries audacious about whether it is playing or not.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
116 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
117 * Return value: TRUE if playing, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
118 **/
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
119 gboolean audacious_remote_is_playing(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
120 gboolean is_playing;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
121 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
122 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
123 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
124 }
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
126 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
127 * audacious_remote_is_paused:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
128 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
129 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
130 * Queries audacious about whether it is paused or not.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
131 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
132 * Return value: TRUE if playing, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
133 **/
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
134 gboolean audacious_remote_is_paused(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
135 gboolean is_paused;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
136 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
137 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
138 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
139 }
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
141 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
142 * audacious_remote_get_playlist_pos:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
143 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
144 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
145 * Queries audacious about the current playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
146 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
147 * Return value: The current playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
148 **/
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
149 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy) {
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
150 guint pos;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
151 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
152 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
153 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
154 }
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
156 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
157 * audacious_remote_set_playlist_pos:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
158 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
159 * @pos: Playlist position to jump to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
160 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
161 * Tells audacious to jump to a different playlist position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
162 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
163 void audacious_remote_set_playlist_pos(DBusGProxy *proxy, guint pos) {
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
164 }
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
165
2762
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 * audacious_remote_get_playlist_length:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
168 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
169 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
170 * Queries audacious about the current playlist length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
171 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
172 * Return value: The amount of entries in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
173 **/
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
174 gint audacious_remote_get_playlist_length(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
175 gint len;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
176 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
177 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
178 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
179 }
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
180
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
181 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
182 * audacious_remote_playlist_clear:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
183 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
184 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
185 * Clears the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
186 **/
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
187 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
188 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
189 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
190 }
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
191
2762
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 * audacious_remote_get_output_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
194 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
195 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
196 * Queries audacious about the current output position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
197 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
198 * Return value: The current output position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
199 **/
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
200 gint audacious_remote_get_output_time(DBusGProxy *proxy) {
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
201 guint time;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
202 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
203 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
204 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
205 }
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
206
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
207 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
208 * audacious_remote_jump_to_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
209 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
210 * @pos: The time (in milliseconds) to jump to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
211 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
212 * Tells audacious to seek to a new time position.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
213 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
214 void audacious_remote_jump_to_time(DBusGProxy *proxy, guint pos) {
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
215 }
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
216
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
217 /**
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
218 * 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
219 * @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
220 * @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
221 * @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
222 *
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
223 * 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
224 **/
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 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
226 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
227 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
228 }
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
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 /**
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 * 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
232 * @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
233 *
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 * 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
235 *
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
236 * 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
237 **/
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 gint audacious_remote_get_main_volume(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
239 gint 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
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_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
242
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 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
244 }
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 /**
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
247 * audacious_remote_get_balance:
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
248 * @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
249 *
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
250 * 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
251 *
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
252 * 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
253 **/
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
254 gint audacious_remote_get_balance(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
255 gint balance;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
256 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
257 g_clear_error(&error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
258 return balance;
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
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
261 /**
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
262 * 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
263 * @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
264 * @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
265 * @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
266 *
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
267 * 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
268 **/
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
269 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
270 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
271 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
272 }
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
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
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 /**
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 * 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
277 * @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
278 * @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
279 *
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
280 * 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
281 **/
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 void audacious_remote_set_main_volume(DBusGProxy *proxy, gint 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
283 gint b, 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
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 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
286
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 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
288 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
289 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
290 } 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
291 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
292 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
293 } 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
294 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
295 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
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
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
298 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
299 * audacious_remote_set_balance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
300 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
301 * @b: The balance to set.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
302 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
303 * Sets the balance in Audacious.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
304 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
305 void audacious_remote_set_balance(DBusGProxy *proxy, gint b) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
306 gint v, vl, vr;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
307
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
308 if (b < -100)
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
309 b = -100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
310 if (b > 100)
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
311 b = 100;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
312
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
313 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
314
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
315 if (b < 0) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
316 vl = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
317 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
318 } else if (b > 0) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
319 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
320 vr = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
321 } else
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
322 vl = vr = v;
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
323 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
324 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
325
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
326 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
327 * audacious_remote_get_skin:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
328 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
329 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
330 * Queries Audacious about it's skin.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
331 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
332 * Return value: A path to the currently selected skin.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
333 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
334 gchar *audacious_remote_get_skin(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
335 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
336
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
337 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
338 * audacious_remote_set_skin:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
339 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
340 * @skinfile: Path to a skinfile to use with Audacious.
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 * Tells audacious to start using the skinfile provided.
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 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
345 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
346
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
347 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
348 * audacious_remote_get_playlist_file:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
349 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
350 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
351 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
352 * Queries Audacious about a playlist entry's file.
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 * 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
355 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
356 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos) {
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
357 gchar *out;
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
358 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
359 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
360 return out;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
361 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
362
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
363 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
364 * audacious_remote_get_playlist_title:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
365 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
366 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
367 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
368 * Queries Audacious about a playlist entry's title.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
369 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
370 * 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
371 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
372 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos) {
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
373 gchar *out;
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
374 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
375 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
376 return out;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
377 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
378
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
379 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
380 * audacious_remote_get_playlist_time:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
381 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
382 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
383 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
384 * Queries Audacious about a playlist entry's length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
385 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
386 * 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
387 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
388 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, guint pos) {
2735
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
389 gint out;
2738
1eb06f902923 [svn] - call SongFrames not SongLength
nenolod
parents: 2735
diff changeset
390 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
391 g_clear_error(&error);
ccf3e141fb1e [svn] - finish some stubs to make audtool work for my scripts
nenolod
parents: 2733
diff changeset
392 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
393 }
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
394
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
395 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
396 * audacious_remote_get_info:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
397 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
398 * @rate: Pointer to an integer containing the bitrate.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
399 * @freq: Pointer to an integer containing the frequency.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
400 * @nch: Pointer to an integer containing the number of channels.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
401 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
402 * Queries Audacious about the current audio format.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
403 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
404 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
405 gint *nch) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
406 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
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_main_win_toggle:
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 * @show: Whether or not to show the main window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
412 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
413 * Toggles the main window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
414 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
415 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
416 const char* path = dbus_g_proxy_get_path(proxy);
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
417 g_print("path: %s\n", path);
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
418 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
419 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
420 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
421
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
422 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
423 * audacious_remote_pl_win_toggle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
424 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
425 * @show: Whether or not to show the playlist window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
426 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
427 * Toggles the playlist window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
428 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
429 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
430 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
431 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
432 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
433
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
434 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
435 * audacious_remote_eq_win_toggle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
436 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
437 * @show: Whether or not to show the equalizer window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
438 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
439 * Toggles the equalizer window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
440 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
441 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
442 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
443 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
444 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
445
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
446 /**
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
447 * audacious_remote_is_main_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
448 * @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
449 *
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
450 * 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
451 *
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
452 * 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
453 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
454 gboolean audacious_remote_is_main_win(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
455 gboolean visible;
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 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
457 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
458 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
459 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
460
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
461 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
462 * audacious_remote_is_pl_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
463 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
464 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
465 * Queries Audacious about the playlist window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
466 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
467 * Return value: TRUE if visible, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
468 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
469 gboolean audacious_remote_is_pl_win(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
470 gboolean visible;
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 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
472 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
473 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
474 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
475
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
476 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
477 * audacious_remote_is_eq_win:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
478 * @proxy: DBus proxy for audacious
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 * Queries Audacious about the equalizer window's visibility.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
481 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
482 * Return value: TRUE if visible, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
483 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
484 gboolean audacious_remote_is_eq_win(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
485 gboolean visible;
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 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
487 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
488 return visible;
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
489 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
490
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
491 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
492 * audacious_remote_show_prefs_box:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
493 * @proxy: DBus proxy for audacious
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 * Tells audacious to show the preferences pane.
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 void audacious_remote_show_prefs_box(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
498 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
499
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
500 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
501 * audacious_remote_toggle_aot:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
502 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
503 * @ontop: Whether or not Audacious should be always-on-top.
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 * Tells audacious to toggle the always-on-top feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
506 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
507 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
508 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
509
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
510 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
511 * audacious_remote_eject:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
512 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
513 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
514 * Tells audacious to display the open files pane.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
515 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
516 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
517 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
518 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
519 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
520
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
521 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
522 * audacious_remote_playlist_prev:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
523 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
524 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
525 * Tells audacious to move backwards in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
526 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
527 void audacious_remote_playlist_prev(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
528 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
529
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
530 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
531 * audacious_remote_playlist_next:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
532 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
533 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
534 * Tells audacious to move forward in the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
535 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
536 void audacious_remote_playlist_next(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
537 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
538
2762
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 * audacious_remote_playlist_add_url_string:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
541 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
542 * @string: The URI to add.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
543 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
544 * Tells audacious to add an URI to the playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
545 **/
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
546 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
547 gchar *string) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
548 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
549 g_clear_error(&error);
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
550 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
551
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
552 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
553 * audacious_remote_is_running:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
554 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
555 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
556 * Checks to see if an Audacious server is running.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
557 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
558 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
559 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
560 gboolean audacious_remote_is_running(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
561 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
562
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
563 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
564 * audacious_remote_toggle_repeat:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
565 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
566 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
567 * Tells audacious to toggle the repeat feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
568 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
569 void audacious_remote_toggle_repeat(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
570 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
571
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
572 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
573 * audacious_remote_toggle_shuffle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
574 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
575 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
576 * Tells audacious to toggle the shuffle feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
577 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
578 void audacious_remote_toggle_shuffle(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
579 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
580
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
581 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
582 * audacious_remote_is_repeat:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
583 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
584 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
585 * 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
586 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
587 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
588 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
589 gboolean audacious_remote_is_repeat(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
590 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
591
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
592 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
593 * audacious_remote_is_shuffle:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
594 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
595 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
596 * 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
597 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
598 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
599 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
600 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
601 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
602
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
603 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
604 * audacious_remote_get_eq:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
605 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
606 * @preamp: Pointer to value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
607 * @bands: Pointer to array of band settings.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
608 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
609 * Queries audacious about the equalizer settings.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
610 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
611 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
612 gfloat **bands) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
613 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
614
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
615 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
616 * audacious_remote_get_eq_preamp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
617 * @proxy: DBus proxy for audacious
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 * Queries audacious about the equalizer preamp's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
620 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
621 * Return value: The equalizer preamp's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
622 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
623 gfloat audacious_remote_get_eq_preamp(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
624 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
625
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
626 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
627 * audacious_remote_get_eq_band:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
628 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
629 * @band: Which band to lookup the value for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
630 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
631 * Queries audacious about an equalizer band's value.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
632 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
633 * Return value: The equalizer band's value.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
634 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
635 gfloat audacious_remote_get_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
636 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
637
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
638 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
639 * audacious_remote_set_eq:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
640 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
641 * @preamp: Value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
642 * @bands: Array of band settings.
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 * 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
645 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
646 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
647 gfloat *bands) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
648 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
649
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
650 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
651 * audacious_remote_set_eq_preamp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
652 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
653 * @preamp: Value for preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
654 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
655 * Tells audacious to set the equalizer's preamp setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
656 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
657 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
658 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
659
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
660 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
661 * audacious_remote_set_eq_band:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
662 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
663 * @band: The band to set the value for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
664 * @value: The value to set that band to.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
665 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
666 * Tells audacious to set an equalizer band's setting.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
667 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
668 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
669 gfloat value) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
670 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
671
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
672 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
673 * audacious_remote_quit:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
674 * @proxy: DBus proxy for audacious
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 * Tells audacious to quit.
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 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
679 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
680 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
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_play_pause:
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 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
687 * Tells audacious to either play or pause.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
688 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
689 void audacious_remote_play_pause(DBusGProxy *proxy) {
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
690 }
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
691
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
692 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
693 * audacious_remote_playlist_ins_url_string:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
694 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
695 * @string: The URI to add.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
696 * @pos: The position to add the URI at.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
697 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
698 * 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
699 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
700 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
701 gchar *string, guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
702 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
703
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
704 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
705 * audacious_remote_playqueue_add:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
706 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
707 * @pos: The playlist position to add to the queue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
708 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
709 * Tells audacious to add a playlist entry to the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
710 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
711 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
712 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
713
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
714 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
715 * audacious_remote_playqueue_remove:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
716 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
717 * @pos: The playlist position to remove from the queue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
718 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
719 * Tells audacious to remove a playlist entry from the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
720 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
721 void audacious_remote_playqueue_remove(DBusGProxy *proxy, guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
722 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
723
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
724 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
725 * audacious_remote_get_playqueue_length:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
726 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
727 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
728 * Queries audacious about the playqueue's length.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
729 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
730 * Return value: The number of entries in the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
731 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
732 gint audacious_remote_get_playqueue_length(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
733 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
734
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
735 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
736 * audacious_remote_toggle_advance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
737 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
738 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
739 * Tells audacious to toggle the no-playlist-advance feature.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
740 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
741 void audacious_remote_toggle_advance(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
742 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
743
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
744 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
745 * audacious_remote_is_advance:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
746 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
747 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
748 * 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
749 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
750 * Return value: TRUE if yes, otherwise FALSE.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
751 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
752 gboolean audacious_remote_is_advance(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
753 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
754
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
755 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
756 * audacious_remote_activate:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
757 * @proxy: DBus proxy for audacious
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 display the main window and become the selected window.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
760 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
761 void audacious_remote_activate(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
762 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
763
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
764 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
765 * audacious_remote_show_jtf_box:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
766 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
767 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
768 * Tells audacious to show the Jump-to-File pane.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
769 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
770 void audacious_remote_show_jtf_box(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
771 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
772
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
773 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
774 * audacious_remote_playqueue_clear:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
775 * @proxy: DBus proxy for audacious
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 * Tells audacious to clear the playqueue.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
778 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
779 void audacious_remote_playqueue_clear(DBusGProxy *proxy) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
780 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
781
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
782 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
783 * audacious_remote_playqueue_is_queued:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
784 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
785 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
786 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
787 * 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
788 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
789 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
790 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
791 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
792 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
793
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
794 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
795 * audacious_remote_get_playqueue_position:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
796 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
797 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
798 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
799 * 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
800 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
801 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
802 **/
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
803 gint audacious_remote_get_playqueue_position(DBusGProxy *proxy, guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
804 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
805
2762
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 * audacious_remote_get_playqueue_queue_position:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
808 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
809 * @pos: Position to check queue for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
810 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
811 * 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
812 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
813 * Return value: TRUE if yes, FALSE otherwise.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
814 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
815 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
816 guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
817 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
818
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
819 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
820 * audacious_remote_playlist_enqueue_to_temp:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
821 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
822 * @string: The URI to enqueue to a temporary playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
823 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
824 * Tells audacious to add an URI to a temporary playlist.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
825 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
826 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
827 gchar *string) {
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
828 }
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
829
2762
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
830 /**
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
831 * audacious_get_tuple_field_data:
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
832 * @proxy: DBus proxy for audacious
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
833 * @field: The name of the tuple field to retrieve.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
834 * @pos: The playlist position to query for.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
835 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
836 * Queries Audacious about a playlist entry's tuple information.
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
837 *
c89362b15525 [svn] Added lots of comments (styled after beepctrl).
magma
parents: 2738
diff changeset
838 * 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
839 **/
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
840 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
2767
55dc022c405a [svn] Changed signedness and formatting.
magma
parents: 2762
diff changeset
841 guint pos) {
2731
f4a5f8fa3836 [svn] Added stubs in audctrl.c for the unimplemented functions defined in audctrl.h.
magma
parents: 2713
diff changeset
842 }