Go to the source code of this file.
Defines | |
| #define | VLC_MPRIS_VERSION_MAJOR 1 |
| #define | VLC_MPRIS_VERSION_MINOR 0 |
| #define | VLC_MPRIS_DBUS_SERVICE "org.mpris.vlc" |
| #define | MPRIS_DBUS_INTERFACE "org.freedesktop.MediaPlayer" |
| #define | MPRIS_DBUS_ROOT_PATH "/" |
| #define | MPRIS_DBUS_PLAYER_PATH "/Player" |
| #define | MPRIS_DBUS_TRACKLIST_PATH "/TrackList" |
| #define | DBUS_METHOD(method_function) |
| #define | DBUS_SIGNAL(signal_function) |
| #define | REPLY_INIT |
| #define | REPLY_SEND |
| #define | SIGNAL_INIT(path, signal) |
| #define | SIGNAL_SEND |
| #define | OUT_ARGUMENTS |
| #define | DBUS_ADD(dbus_type, value) |
| #define | ADD_STRING(s) DBUS_ADD( DBUS_TYPE_STRING, s ) |
| #define | ADD_BOOL(b) DBUS_ADD( DBUS_TYPE_BOOLEAN, b ) |
| #define | ADD_INT32(i) DBUS_ADD( DBUS_TYPE_INT32, i ) |
| #define | ADD_BYTE(b) DBUS_ADD( DBUS_TYPE_BYTE, b ) |
Functions | |
| static DBusHandlerResult | handle_root (DBusConnection *p_conn, DBusMessage *p_from, void *p_this) |
| static DBusHandlerResult | handle_player (DBusConnection *p_conn, DBusMessage *p_from, void *p_this) |
| static DBusHandlerResult | handle_tracklist (DBusConnection *p_conn, DBusMessage *p_from, void *p_this) |
Variables | |
| const char * | psz_introspection_xml_data_root |
| const char * | psz_introspection_xml_data_player |
| const char * | psz_introspection_xml_data_tracklist |
| static const DBusObjectPathVTable | vlc_dbus_root_vtable |
| static const DBusObjectPathVTable | vlc_dbus_player_vtable |
| static const DBusObjectPathVTable | vlc_dbus_tracklist_vtable |
| #define ADD_INT32 | ( | i | ) | DBUS_ADD( DBUS_TYPE_INT32, i ) |
Referenced by AddTrack(), CapsChangeSignal(), GetCaps(), GetCurrentTrack(), GetLength(), PositionGet(), TrackListChangeSignal(), and VolumeGet().
| #define ADD_STRING | ( | s | ) | DBUS_ADD( DBUS_TYPE_STRING, s ) |
Referenced by handle_introspect_player(), handle_introspect_root(), handle_introspect_tracklist(), and Identity().
| #define DBUS_ADD | ( | dbus_type, | |||
| value | ) |
Value:
if( !dbus_message_iter_append_basic( &args, dbus_type, value ) ) \ return DBUS_HANDLER_RESULT_NEED_MEMORY
| #define DBUS_METHOD | ( | method_function | ) |
Value:
static DBusHandlerResult method_function \ ( DBusConnection *p_conn, DBusMessage *p_from, void *p_this )
| #define DBUS_SIGNAL | ( | signal_function | ) |
Value:
static DBusHandlerResult signal_function \ ( DBusConnection *p_conn, void *p_data )
| #define MPRIS_DBUS_INTERFACE "org.freedesktop.MediaPlayer" |
| #define MPRIS_DBUS_PLAYER_PATH "/Player" |
Referenced by CapsChangeSignal(), StatusChangeSignal(), and TrackChangeSignal().
| #define MPRIS_DBUS_ROOT_PATH "/" |
| #define MPRIS_DBUS_TRACKLIST_PATH "/TrackList" |
Referenced by TrackListChangeSignal().
| #define OUT_ARGUMENTS |
Value:
DBusMessageIter args; \
dbus_message_iter_init_append( p_msg, &args )
Referenced by AddTrack(), CapsChangeSignal(), GetCaps(), GetCurrentMetadata(), GetCurrentTrack(), GetLength(), GetMetadata(), GetStatus(), handle_introspect_player(), handle_introspect_root(), handle_introspect_tracklist(), Identity(), MprisVersion(), PositionGet(), Repeat(), SetLoop(), SetRandom(), StatusChangeSignal(), TrackChangeSignal(), TrackListChangeSignal(), and VolumeGet().
| #define REPLY_INIT |
Value:
DBusMessage* p_msg = dbus_message_new_method_return( p_from ); \
if( !p_msg ) return DBUS_HANDLER_RESULT_NEED_MEMORY; \
Referenced by AddTrack(), DelTrack(), GetCaps(), GetCurrentMetadata(), GetCurrentTrack(), GetLength(), GetMetadata(), GetStatus(), handle_introspect_player(), handle_introspect_root(), handle_introspect_tracklist(), Identity(), MprisVersion(), Next(), Pause(), Play(), PositionGet(), PositionSet(), Prev(), Quit(), Repeat(), SetLoop(), SetRandom(), Stop(), VolumeGet(), and VolumeSet().
| #define REPLY_SEND |
Value:
if( !dbus_connection_send( p_conn, p_msg, NULL ) ) \ return DBUS_HANDLER_RESULT_NEED_MEMORY; \ dbus_connection_flush( p_conn ); \ dbus_message_unref( p_msg ); \ return DBUS_HANDLER_RESULT_HANDLED
Referenced by AddTrack(), DelTrack(), GetCaps(), GetCurrentMetadata(), GetCurrentTrack(), GetLength(), GetMetadata(), GetStatus(), handle_introspect_player(), handle_introspect_root(), handle_introspect_tracklist(), Identity(), MprisVersion(), Next(), Pause(), Play(), PositionGet(), PositionSet(), Prev(), Quit(), Repeat(), SetLoop(), SetRandom(), Stop(), VolumeGet(), and VolumeSet().
| #define SIGNAL_INIT | ( | path, | |||
| signal | ) |
Value:
DBusMessage *p_msg = dbus_message_new_signal( path, \
MPRIS_DBUS_INTERFACE, signal ); \
if( !p_msg ) return DBUS_HANDLER_RESULT_NEED_MEMORY; \
Referenced by CapsChangeSignal(), StatusChangeSignal(), TrackChangeSignal(), and TrackListChangeSignal().
| #define SIGNAL_SEND |
Value:
if( !dbus_connection_send( p_conn, p_msg, NULL ) ) \ return DBUS_HANDLER_RESULT_NEED_MEMORY; \ dbus_message_unref( p_msg ); \ dbus_connection_flush( p_conn ); \ return DBUS_HANDLER_RESULT_HANDLED
Referenced by CapsChangeSignal(), StatusChangeSignal(), TrackChangeSignal(), and TrackListChangeSignal().
| #define VLC_MPRIS_DBUS_SERVICE "org.mpris.vlc" |
| #define VLC_MPRIS_VERSION_MAJOR 1 |
Referenced by MprisVersion().
| #define VLC_MPRIS_VERSION_MINOR 0 |
Referenced by MprisVersion().
| static DBusHandlerResult handle_player | ( | DBusConnection * | p_conn, | |
| DBusMessage * | p_from, | |||
| void * | p_this | |||
| ) | [static] |
| static DBusHandlerResult handle_root | ( | DBusConnection * | p_conn, | |
| DBusMessage * | p_from, | |||
| void * | p_this | |||
| ) | [static] |
| static DBusHandlerResult handle_tracklist | ( | DBusConnection * | p_conn, | |
| DBusMessage * | p_from, | |||
| void * | p_this | |||
| ) | [static] |
| const char* psz_introspection_xml_data_player |
Referenced by handle_introspect_player().
| const char* psz_introspection_xml_data_root |
Initial value:
"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n" "\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n" "<node>\n" " <node name=\"Player\"/>\n" " <node name=\"TrackList\"/>\n" " <interface name=\"org.freedesktop.DBus.Introspectable\">\n" " <method name=\"Introspect\">\n" " <arg name=\"data\" direction=\"out\" type=\"s\"/>\n" " </method>\n" " </interface>\n" " <interface name=\"org.freedesktop.MediaPlayer\">\n" " <method name=\"Identity\">\n" " <arg type=\"s\" direction=\"out\" />\n" " </method>\n" " <method name=\"MprisVersion\">\n" " <arg type=\"(qq)\" direction=\"out\" />\n" " </method>\n" " <method name=\"Quit\">\n" " </method>\n" " </interface>\n" "</node>\n"
Referenced by handle_introspect_root().
| const char* psz_introspection_xml_data_tracklist |
Referenced by handle_introspect_tracklist().
const DBusObjectPathVTable vlc_dbus_player_vtable [static] |
Initial value:
{
NULL, handle_player,
NULL, NULL, NULL, NULL
}
const DBusObjectPathVTable vlc_dbus_root_vtable [static] |
Initial value:
{
NULL, handle_root,
NULL, NULL, NULL, NULL
}
const DBusObjectPathVTable vlc_dbus_tracklist_vtable [static] |
Initial value:
{
NULL, handle_tracklist,
NULL, NULL, NULL, NULL
}
1.5.6