[vlc-commits] Add Fullscreen property to GetAllProperties on DBus root interface

Alex Merry git at videolan.org
Mon Jan 28 17:51:43 CET 2013


vlc | branch: master | Alex Merry <dev at randomguy3.me.uk> | Mon Jan 28 11:54:12 2013 +0000| [930cae6d529c6a459264b6a41dc807c12e6a9056] | committer: Mirsal Ennaime

Add Fullscreen property to GetAllProperties on DBus root interface

Previously, Fullscreen could be requested via
org.freedesktop.DBus.Properties.Get, but would not be returned by
org.freedesktop.DBus.Properties.GetAll.

Signed-off-by: Mirsal Ennaime <mirsal at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=930cae6d529c6a459264b6a41dc807c12e6a9056
---

 modules/control/dbus/dbus_root.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/control/dbus/dbus_root.c b/modules/control/dbus/dbus_root.c
index 19f34e0..3bcb36e 100644
--- a/modules/control/dbus/dbus_root.c
+++ b/modules/control/dbus/dbus_root.c
@@ -4,10 +4,12 @@
  * Copyright © 2006-2008 Rafaël Carré
  * Copyright © 2007-2011 Mirsal Ennaime
  * Copyright © 2009-2011 The VideoLAN team
+ * Copyright © 2013      Alex Merry
  * $Id$
  *
  * Authors:    Mirsal Ennaime <mirsal at mirsal fr>
  *             Rafaël Carré <funman at videolanorg>
+ *             Alex Merry <dev at randomguy3 me uk>
  *
  * 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
@@ -137,7 +139,7 @@ DBUS_METHOD( CanSetFullscreen )
     REPLY_SEND;
 }
 
-static void
+static int
 MarshalFullscreen( intf_thread_t *p_intf, DBusMessageIter *container )
 {
     dbus_bool_t b_fullscreen;
@@ -149,6 +151,7 @@ MarshalFullscreen( intf_thread_t *p_intf, DBusMessageIter *container )
 
     dbus_message_iter_append_basic( container,
             DBUS_TYPE_BOOLEAN, &b_fullscreen );
+    return VLC_SUCCESS;
 }
 
 DBUS_METHOD( FullscreenGet )
@@ -517,6 +520,7 @@ DBUS_METHOD( GetAllProperties )
     ADD_PROPERTY( HasTrackList,        "b"  );
     ADD_PROPERTY( CanQuit,             "b"  );
     ADD_PROPERTY( CanSetFullscreen,    "b"  );
+    ADD_PROPERTY( Fullscreen,          "b"  );
     ADD_PROPERTY( CanRaise,            "b"  );
 
     dbus_message_iter_close_container( &args, &dict );



More information about the vlc-commits mailing list