Mercurial > audlegacy
annotate src/libaudclient/audctrl.h @ 3930:7e126e402b1c
Use G_BEGIN_DECLS/G_END_DECLS instead of #ifdef __cplusplus.
This makes it build on Sun Studio compilers again.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 12 Nov 2007 21:45:59 -0600 |
parents | b5ee3a4a8e3b |
children | 2eee464379dc |
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 |
3930
7e126e402b1c
Use G_BEGIN_DECLS/G_END_DECLS instead of #ifdef __cplusplus.
William Pitcock <nenolod@atheme.org>
parents:
3917
diff
changeset
|
26 G_BEGIN_DECLS |
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
|
27 |
c35913222440
[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 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
|
29 gboolean enqueue); |
3873
f3341c2d6b9e
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3867
diff
changeset
|
30 gchar *audacious_remote_get_version(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
|
31 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list); |
2767 | 32 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
|
33 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
|
34 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
|
35 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
|
36 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
|
37 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
|
38 gint audacious_remote_get_playlist_pos(DBusGProxy *proxy); |
2767 | 39 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
|
40 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
|
41 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
|
42 gint audacious_remote_get_output_time(DBusGProxy *proxy); |
2767 | 43 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
|
44 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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 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
|
50 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
|
51 void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile); |
2767 | 52 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, guint pos); |
53 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, guint pos); | |
54 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
|
55 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
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 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
|
73 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
|
74 gboolean audacious_remote_is_shuffle(DBusGProxy *proxy); |
3915
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
75 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp, |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
76 GArray **bands); |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
77 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy); |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
78 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band); |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
79 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp, |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
80 GArray *bands); |
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
81 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp); |
2711
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
82 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, |
3915
86c9abc83fbd
audacious remote functions:
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
3873
diff
changeset
|
83 gdouble value); |
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 |
c35913222440
[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 /* 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
|
86 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
|
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 /* 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
|
89 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
|
90 void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy, |
2767 | 91 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
|
92 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
93 /* Added in XMMS 1.2.11 */ |
2767 | 94 void audacious_remote_playqueue_add(DBusGProxy *proxy, guint pos); |
95 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
|
96 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
|
97 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
|
98 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
|
99 |
c35913222440
[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 /* 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
|
101 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
|
102 |
c35913222440
[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 /* 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
|
104 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
|
105 void audacious_remote_playqueue_clear(DBusGProxy *proxy); |
2767 | 106 gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, guint pos); |
3867
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2767
diff
changeset
|
107 gint audacious_remote_get_playqueue_list_position(DBusGProxy *proxy, guint qpos); |
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2767
diff
changeset
|
108 gint audacious_remote_get_playqueue_queue_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
|
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 /* 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
|
111 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
|
112 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
|
113 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
|
114 |
c35913222440
[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 /* 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
|
116 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
|
117 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
|
118 gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field, |
2767 | 119 guint pos); |
3867
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2767
diff
changeset
|
120 /* Added in Audacious 1.4 */ |
e48f2f4c116d
- many remained audacious remote functions have been implemented.
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
2767
diff
changeset
|
121 void audacious_remote_show_about_box(DBusGProxy *proxy); |
3917 | 122 void audacious_remote_toggle_about_box(DBusGProxy *proxy, gboolean show); |
123 void audacious_remote_toggle_jtf_box(DBusGProxy *proxy, gboolean show); | |
124 void audacious_remote_toggle_prefs_box(DBusGProxy *proxy, gboolean show); | |
125 void audacious_remote_toggle_filebrowser(DBusGProxy *proxy, gboolean show); | |
126 void audacious_remote_eq_activate(DBusGProxy *proxy, gboolean active); | |
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
|
127 |
3930
7e126e402b1c
Use G_BEGIN_DECLS/G_END_DECLS instead of #ifdef __cplusplus.
William Pitcock <nenolod@atheme.org>
parents:
3917
diff
changeset
|
128 G_END_DECLS |
2711
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
129 |
c35913222440
[svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents:
diff
changeset
|
130 #endif |