[vlc-devel] commit: Extensions/Qt: new method ExtensionManager::getManager() ( Jean-Philippe André )

git version control git at videolan.org
Fri Jan 29 01:17:53 CET 2010


vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Fri Jan 29 00:29:51 2010 +0100| [95caced71422f86bcf62783b972cbf3b72bb60a5] | committer: Jean-Philippe André 

Extensions/Qt: new method ExtensionManager::getManager()

Returns a direct pointer to the extensions_manager_t

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

 modules/gui/qt4/extensions_manager.hpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/extensions_manager.hpp b/modules/gui/qt4/extensions_manager.hpp
index c008ff9..1edfce5 100644
--- a/modules/gui/qt4/extensions_manager.hpp
+++ b/modules/gui/qt4/extensions_manager.hpp
@@ -63,6 +63,14 @@ public:
     inline bool isUnloading() { return b_unloading; }
     void menu( QMenu *current );
 
+    /** Get the extensions_manager_t if it is loaded and hold the object */
+    extensions_manager_t* getManager()
+    {
+        if( !p_extensions_manager ) return NULL;
+        vlc_object_hold( p_extensions_manager );
+        return p_extensions_manager;
+    }
+
 public slots:
     bool loadExtensions();
     void unloadExtensions();




More information about the vlc-devel mailing list