comparison src/audacious/dbus.c @ 2696:c00850315ce1 trunk

[svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
author magma
date Sat, 05 May 2007 16:24:08 -0700
parents 4c4c8b294287
children 2d1837805ca4
comparison
equal deleted inserted replaced
2695:4c4c8b294287 2696:c00850315ce1
1 /* 1 /*
2 * 2 * Audacious: A cross-platform multimedia player
3 * Author: Ben Tucker <bnt@interchange.ubc.ca>, (C) 2007 3 * Copyright (c) 2007 Ben Tucker
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify it 5 * This program is free software; you can redistribute it and/or modify
6 * under the terms of the GNU General Public License as published by the 6 * it under the terms of the GNU General Public License as published by
7 * Free Software Foundation; either version 2 of the License, or (at your 7 * the Free Software Foundation; under version 2 of the License.
8 * option) any later version. 8 *
9 * 9 * This program is distributed in the hope that it will be useful,
10 * This program is distributed in the hope that it will be useful, but 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * GNU General Public License for more details.
13 * General Public License for more details. 13 *
14 * 14 * You should have received a copy of the GNU General Public License
15 * You should have received a copy of the GNU General Public License along 15 * along with this program; if not, write to the Free Software
16 * with this program; if not, write to the Free Software Foundation, Inc., 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 * 02110-1301, USA.
18 * 18 */
19 */
20 19
21 #ifdef HAVE_CONFIG_H 20 #ifdef HAVE_CONFIG_H
22 # include "config.h" 21 # include "config.h"
23 #endif 22 #endif
24 23
159 { 158 {
160 return TRUE; 159 return TRUE;
161 } 160 }
162 161
163 gboolean audacious_remote_advance(RemoteObject *obj, GError **error) { 162 gboolean audacious_remote_advance(RemoteObject *obj, GError **error) {
163 playlist_next(playlist_get_active());
164 return TRUE; 164 return TRUE;
165 } 165 }
166 166
167 gboolean audacious_remote_reverse(RemoteObject *obj, GError **error) { 167 gboolean audacious_remote_reverse(RemoteObject *obj, GError **error) {
168 playlist_prev(playlist_get_active());
168 return TRUE; 169 return TRUE;
169 } 170 }
170 171
171 gboolean audacious_remote_length(RemoteObject *obj, int *length, 172 gboolean audacious_remote_length(RemoteObject *obj, int *length,
172 GError **error) { 173 GError **error) {