Mercurial > audlegacy
annotate src/libaudclient/audctrl.h @ 2938:1cdfc508d758 trunk
Fix adding files when Audacious is running.
A fix to start Audacious with a file will follow.
Aditionally, some old, useless XMMS stuff was removed.
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Fri, 29 Jun 2007 15:52:26 +0200 |
parents | 55dc022c405a |
children | e48f2f4c116d |
rev | line source |
---|---|
2714 | 1 /* |
2 * Audacious: A cross-platform multimedia player | |
3 * Copyright (c) 2007 Ben Tucker | |
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
|
4 * |
2714 | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by | |
7 * the Free Software Foundation; under version 2 of the License. | |
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
|
8 * |
2714 | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
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
|
13 * |
2714 | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | |
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
17 * 02110-1301, USA. | |
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
|
18 */ |
2714 | 19 |
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
|
20 #ifndef _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
|
21 #define _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
|
22 |
c35913222440
[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 #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
|
24 #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
|
25 |
c35913222440
[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 #ifdef __cplusplus |
c35913222440
[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 extern "C" { |
c35913222440
[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 #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
|
29 |
c35913222440
[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 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
|
31 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
|
32 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
|
33 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list); |
2767 | 34 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
|
35 void audacious_remote_play(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
|
36 void audacious_remote_pause(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
|
37 void audacious_remote_stop(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
|
38 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
|
39 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
|
40 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy); |
2767 | 41 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
|
42 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
|
43 void audacious_remote_playlist_clear(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
|
44 gint audacious_remote_get_output_time(DBusGProxy *proxy); |
2767 | 45 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
|
46 void audacious_remote_get_volume(DBusGProxy *proxy, gint *vl, gint *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
|
47 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
|
48 gint audacious_remote_get_balance(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
|
49 void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint 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
|
50 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
|
51 void audacious_remote_set_balance(DBusGProxy *proxy, gint b); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
52 gchar *audacious_remote_get_skin(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
|
53 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile); |
2767 | 54 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos); |
55 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos); | |
56 gint audacious_remote_get_playlist_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
|
57 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq, |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
58 gint *nch); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
59 void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
60 void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
61 void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
62 gboolean audacious_remote_is_main_win(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
|
63 gboolean audacious_remote_is_pl_win(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
|
64 gboolean audacious_remote_is_eq_win(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
|
65 void audacious_remote_show_prefs_box(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
|
66 void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop); |
c35913222440
[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 void audacious_remote_eject(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
|
68 void audacious_remote_playlist_prev(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
|
69 void audacious_remote_playlist_next(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
|
70 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
|
71 gchar *string); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
72 gboolean audacious_remote_is_running(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
|
73 void audacious_remote_toggle_repeat(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
|
74 void audacious_remote_toggle_shuffle(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
|
75 gboolean audacious_remote_is_repeat(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
|
76 gboolean audacious_remote_is_shuffle(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
|
77 void audacious_remote_get_eq(DBusGProxy *proxy, gfloat *preamp, |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
78 gfloat **bands); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
79 gfloat audacious_remote_get_eq_preamp(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
|
80 gfloat audacious_remote_get_eq_band(DBusGProxy *proxy, gint band); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
81 void audacious_remote_set_eq(DBusGProxy *proxy, gfloat preamp, |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
82 gfloat *bands); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
83 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp); |
c35913222440
[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_set_eq_band(DBusGProxy *proxy, gint band, |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
85 gfloat value); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
86 |
c35913222440
[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 /* Added in XMMS 1.2.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
|
88 void audacious_remote_quit(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
|
89 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
90 /* Added in XMMS 1.2.6 */ |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
91 void audacious_remote_play_pause(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
|
92 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, |
2767 | 93 gchar *string, 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
|
94 |
c35913222440
[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 /* Added in XMMS 1.2.11 */ |
2767 | 96 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos); |
97 void audacious_remote_playqueue_remove(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
|
98 gint audacious_remote_get_playqueue_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
|
99 void audacious_remote_toggle_advance(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
|
100 gboolean audacious_remote_is_advance(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
|
101 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
102 /* Added in BMP 0.9.7 */ |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
103 void audacious_remote_activate(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
|
104 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
105 /* Added in Audacious 1.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
|
106 void audacious_remote_show_jtf_box(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
|
107 void audacious_remote_playqueue_clear(DBusGProxy *proxy); |
2767 | 108 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos); |
109 gint audacious_remote_get_playqueue_position(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
|
110 gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy, |
2767 | 111 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
|
112 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
113 /* Added in Audacious 1.2 */ |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
114 void audacious_set_session_uri(DBusGProxy *proxy, gchar *uri); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
115 gchar *audacious_get_session_uri(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
|
116 void audacious_set_session_type(DBusGProxy *proxy, gint type); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
117 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
118 /* Added in Audacious 1.3 */ |
c35913222440
[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 void audacious_remote_playlist_enqueue_to_temp(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 gchar *string); |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
121 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, |
2767 | 122 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
|
123 |
c35913222440
[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 #ifdef __cplusplus |
c35913222440
[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 }; |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
126 #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
|
127 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
128 #endif |