annotate src/audacious/dbus.h @ 4557:2eee464379dc

Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 May 2008 01:29:46 +0300
parents 30ed2878807f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
diff changeset
1 /*
2696
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
2 * Audacious: A cross-platform multimedia player
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
3 * Copyright (c) 2007 Ben Tucker
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
4 *
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
5 * This program is free software; you can redistribute it and/or modify
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
6 * it under the terms of the GNU General Public License as published by
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 2769
diff changeset
7 * the Free Software Foundation; under version 3 of the License.
2696
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
8 *
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
9 * This program is distributed in the hope that it will be useful,
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
12 * GNU General Public License for more details.
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
13 *
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
14 * You should have received a copy of the GNU General Public License
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 2769
diff changeset
15 * along with this program. If not, see <http://www.gnu.org/licenses>.
3123
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
16 *
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
17 * The Audacious team does not consider modular code linking to
f1c756f39e6c Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents: 3121
diff changeset
18 * Audacious or using our public API to be a derived work.
2696
c00850315ce1 [svn] Fixed licensing issues and DBus node/interface names. Also implemented playlist advance and reverse.
magma
parents: 2695
diff changeset
19 */
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
diff changeset
20
4557
2eee464379dc Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents: 3270
diff changeset
21 #ifndef AUDACIOUS_DBUS_H
2eee464379dc Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents: 3270
diff changeset
22 #define AUDACIOUS_DBUS_H
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
diff changeset
23
2711
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents: 2700
diff changeset
24 #define AUDACIOUS_DBUS_SERVICE "org.atheme.audacious"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents: 2700
diff changeset
25 #define AUDACIOUS_DBUS_PATH "/org/atheme/audacious"
c35913222440 [svn] Initial commit of dbus client library for plugins. Various changes were made to the plugin structure to support dbus.
magma
parents: 2700
diff changeset
26 #define AUDACIOUS_DBUS_INTERFACE "org.atheme.audacious"
3256
eb0fd96f5d58 Update MPRIS service name.
William Pitcock <nenolod@atheme-project.org>
parents: 3123
diff changeset
27 #define AUDACIOUS_DBUS_SERVICE_MPRIS "org.mpris.audacious"
3260
3d740a3c5e16 -Fixed a compilation issue with DBus on Mac
Ben Tucker <ben.tucker@gmail.com>
parents: 3123
diff changeset
28 #define AUDACIOUS_DBUS_INTERFACE_MPRIS "org.freedesktop.MediaPlayer"
2769
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2711
diff changeset
29 #define AUDACIOUS_DBUS_PATH_MPRIS_ROOT "/"
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2711
diff changeset
30 #define AUDACIOUS_DBUS_PATH_MPRIS_PLAYER "/Player"
bf2d80abf76e [svn] Implemented CMD_IS_ADVANCE and CMD_TOGGLE_ADVANCE. Added partial MPRIS support. Root is complete, Player is partially implemented, and TrackList has not been started.
magma
parents: 2711
diff changeset
31 #define AUDACIOUS_DBUS_PATH_MPRIS_TRACKLIST "/TrackList"
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents:
diff changeset
32
3268
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
33 #define NONE = 0
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
34 #define CAN_GO_NEXT = 1 << 0
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
35 #define CAN_GO_PREV = 1 << 1
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
36 #define CAN_PAUSE = 1 << 2
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
37 #define CAN_PLAY = 1 << 3
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
38 #define CAN_SEEK = 1 << 4
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
39 #define CAN_RESTORE_CONTEXT = 1 << 5
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
40 #define CAN_PROVIDE_METADATA = 1 << 6
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
41 #define PROVIDES_TIMING = 1 << 7
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
42
8af43e099cce Added function prototypes for Disconnect and GetMetadata methods, and a prototype for the Disconnected signal.
Ben Tucker <ben.tucker@gmail.com>
parents: 3260
diff changeset
43
4557
2eee464379dc Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents: 3270
diff changeset
44 #endif /* AUDACIOUS_DBUS_H */