changeset 2735:ccf3e141fb1e trunk

[svn] - finish some stubs to make audtool work for my scripts
author nenolod
date Fri, 11 May 2007 12:35:52 -0700
parents eda1f3186687
children 8249a1248a09
files ChangeLog src/audacious/build_stamp.c src/libaudclient/audctrl.c
diffstat 3 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 11 12:22:38 2007 -0700
+++ b/ChangeLog	Fri May 11 12:35:52 2007 -0700
@@ -1,3 +1,13 @@
+2007-05-11 19:22:38 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [4494]
+  - BSDify code
+  - use mowgli.error_backtrace in parts of the code
+  
+  trunk/src/audtool/Makefile  |    2 +
+  trunk/src/audtool/audtool.c |   72 ++++++++++++++++++++++++++------------------
+  2 files changed, 45 insertions(+), 29 deletions(-)
+
+
 2007-05-11 18:52:56 +0000  Ben Tucker <bnt@interchange.ubc.ca>
   revision [4492]
   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.
--- a/src/audacious/build_stamp.c	Fri May 11 12:22:38 2007 -0700
+++ b/src/audacious/build_stamp.c	Fri May 11 12:35:52 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070511-4492";
+const gchar *svn_stamp = "20070511-4494";
--- a/src/libaudclient/audctrl.c	Fri May 11 12:22:38 2007 -0700
+++ b/src/libaudclient/audctrl.c	Fri May 11 12:35:52 2007 -0700
@@ -214,12 +214,24 @@
 }
 
 gchar *audacious_remote_get_playlist_file(DBusGProxy *proxy, gint pos) {
+    gchar *out;
+    org_atheme_audacious_song_filename(proxy, pos, &out, &error);
+    g_clear_error(&error);
+    return out;
 }
 
 gchar *audacious_remote_get_playlist_title(DBusGProxy *proxy, gint pos) {
+    gchar *out;
+    org_atheme_audacious_song_title(proxy, pos, &out, &error);
+    g_clear_error(&error);
+    return out;
 }
 
 gint audacious_remote_get_playlist_time(DBusGProxy *proxy, gint pos) {
+    gint out;
+    org_atheme_audacious_song_length(proxy, pos, &out, &error);
+    g_clear_error(&error);
+    return out;
 }
 
 void audacious_remote_get_info(DBusGProxy *proxy, gint *rate, gint *freq,