diff src/libaudclient/audctrl.h @ 2713:8f7da5257692 trunk

[svn] - rename to libaudclient - enforce libaudclient.so.1
author nenolod
date Wed, 09 May 2007 14:40:01 -0700
parents src/libaudaciousng/audctrl.h@c35913222440
children 13ac9eeaddf2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libaudclient/audctrl.h	Wed May 09 14:40:01 2007 -0700
@@ -0,0 +1,130 @@
+/*  Audacious - Cross-platform multimedia player
+ *  Copyright (DBusGProxy *proxy, C) 2005-2007  Audacious development team
+ *
+ *  Based on XMMS:
+ *  Copyright (DBusGProxy *proxy, C) 1998-2003  Peter Alm, Mikael Alm, Olle Hallnas,
+ *                           Thomas Nilsson and 4Front Technologies
+ *  Copyright (DBusGProxy *proxy, C) 1999-2003  Haavard Kvaalen
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; under version 2 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+#ifndef _AUDCTRL_H
+#define _AUDCTRL_H
+
+#include <glib.h>
+#include <dbus/dbus-glib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+    void audacious_remote_playlist(DBusGProxy *proxy, gchar **list, gint num,
+                                   gboolean enqueue);
+    gint audacious_remote_get_version(DBusGProxy *proxy);
+    void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list);
+    void audacious_remote_playlist_delete(DBusGProxy *proxy, gint pos);
+    void audacious_remote_play(DBusGProxy *proxy);
+    void audacious_remote_pause(DBusGProxy *proxy);
+    void audacious_remote_stop(DBusGProxy *proxy);
+    gboolean audacious_remote_is_playing(DBusGProxy *proxy);
+    gboolean audacious_remote_is_paused(DBusGProxy *proxy);
+    gint audacious_remote_get_playlist_pos(DBusGProxy *proxy);
+    void audacious_remote_set_playlist_pos(DBusGProxy *proxy, gint pos);
+    gint audacious_remote_get_playlist_length(DBusGProxy *proxy);
+    void audacious_remote_playlist_clear(DBusGProxy *proxy);
+    gint audacious_remote_get_output_time(DBusGProxy *proxy);
+    void audacious_remote_jump_to_time(DBusGProxy *proxy, gint pos);
+    void audacious_remote_get_volume(DBusGProxy *proxy, gint *vl, gint *vr);
+    gint audacious_remote_get_main_volume(DBusGProxy *proxy);
+    gint audacious_remote_get_balance(DBusGProxy *proxy);
+    void audacious_remote_set_volume(DBusGProxy *proxy, gint vl, gint vr);
+    void audacious_remote_set_main_volume(DBusGProxy *proxy, gint v);
+    void audacious_remote_set_balance(DBusGProxy *proxy, gint b);
+    gchar *audacious_remote_get_skin(DBusGProxy *proxy);
+    void audacious_remote_set_skin(DBusGProxy *proxy, gchar *skinfile);
+    gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, gint pos);
+    gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, gint pos);
+    gint audacious_remote_get_playlist_time(DBusGProxy *proxy, gint pos);
+    void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq,
+                                   gint *nch);
+    void audacious_remote_main_win_toggle(DBusGProxy *proxy, gboolean show);
+    void audacious_remote_pl_win_toggle(DBusGProxy *proxy, gboolean show);
+    void audacious_remote_eq_win_toggle(DBusGProxy *proxy, gboolean show);
+    gboolean audacious_remote_is_main_win(DBusGProxy *proxy);
+    gboolean audacious_remote_is_pl_win(DBusGProxy *proxy);
+    gboolean audacious_remote_is_eq_win(DBusGProxy *proxy);
+    void audacious_remote_show_prefs_box(DBusGProxy *proxy);
+    void audacious_remote_toggle_aot(DBusGProxy *proxy, gboolean ontop);
+    void audacious_remote_eject(DBusGProxy *proxy);
+    void audacious_remote_playlist_prev(DBusGProxy *proxy);
+    void audacious_remote_playlist_next(DBusGProxy *proxy);
+    void audacious_remote_playlist_add_url_string(DBusGProxy *proxy,
+                                                  gchar *string);
+    gboolean audacious_remote_is_running(DBusGProxy *proxy);
+    void audacious_remote_toggle_repeat(DBusGProxy *proxy);
+    void audacious_remote_toggle_shuffle(DBusGProxy *proxy);
+    gboolean audacious_remote_is_repeat(DBusGProxy *proxy);
+    gboolean audacious_remote_is_shuffle(DBusGProxy *proxy);
+    void audacious_remote_get_eq(DBusGProxy *proxy, gfloat *preamp,
+                                 gfloat **bands);
+    gfloat audacious_remote_get_eq_preamp(DBusGProxy *proxy);
+    gfloat audacious_remote_get_eq_band(DBusGProxy *proxy, gint band);
+    void audacious_remote_set_eq(DBusGProxy *proxy, gfloat preamp,
+                                 gfloat *bands);
+    void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp);
+    void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band,
+                                      gfloat value);
+
+/* Added in XMMS 1.2.1 */
+    void audacious_remote_quit(DBusGProxy *proxy);
+
+/* Added in XMMS 1.2.6 */
+    void audacious_remote_play_pause(DBusGProxy *proxy);
+    void audacious_remote_playlist_ins_url_string(DBusGProxy *proxy,
+                                                  gchar *string, gint pos);
+
+/* Added in XMMS 1.2.11 */
+    void audacious_remote_playqueue_add(DBusGProxy *proxy, gint pos);
+    void audacious_remote_playqueue_remove(DBusGProxy *proxy, gint pos);
+    gint audacious_remote_get_playqueue_length(DBusGProxy *proxy);
+    void audacious_remote_toggle_advance(DBusGProxy *proxy);
+    gboolean audacious_remote_is_advance(DBusGProxy *proxy);
+
+/* Added in BMP 0.9.7 */
+    void audacious_remote_activate(DBusGProxy *proxy);
+
+/* Added in Audacious 1.1 */
+    void audacious_remote_show_jtf_box(DBusGProxy *proxy);
+    void audacious_remote_playqueue_clear(DBusGProxy *proxy);
+    gboolean audacious_remote_playqueue_is_queued(DBusGProxy *proxy, gint pos);
+    gint audacious_remote_get_playqueue_position(DBusGProxy *proxy, gint pos);
+    gint audacious_remote_get_playqueue_queue_position(DBusGProxy *proxy,
+                                                       gint pos);
+
+/* Added in Audacious 1.2 */
+    void audacious_set_session_uri(DBusGProxy *proxy, gchar *uri);
+    gchar *audacious_get_session_uri(DBusGProxy *proxy);
+    void audacious_set_session_type(DBusGProxy *proxy, gint type);
+
+/* Added in Audacious 1.3 */
+    void audacious_remote_playlist_enqueue_to_temp(DBusGProxy *proxy,
+                                                   gchar *string);
+    gchar *audacious_get_tuple_field_data(DBusGProxy *proxy, gchar *field,
+                                          gint pos);
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif