LCOV - code coverage report
Current view: top level - avmedia/source/opengl - ogluno.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 13 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "oglmanager.hxx"
      11             : 
      12             : #include <cppuhelper/factory.hxx>
      13             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      14             : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
      15             : 
      16             : using namespace ::com::sun::star;
      17             : 
      18           0 : static uno::Reference< uno::XInterface > SAL_CALL create_MediaPlayer( const uno::Reference< lang::XMultiServiceFactory >& rxFact )
      19             : {
      20           0 :     return uno::Reference< uno::XInterface >( *new ::avmedia::ogl::OGLManager( rxFact ) );
      21             : }
      22             : 
      23           0 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediaogl_component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* )
      24             : {
      25           0 :     uno::Reference< lang::XSingleServiceFactory > xFactory;
      26           0 :     void* pRet = 0;
      27             : 
      28           0 :     if( rtl_str_compare( pImplName, "com.sun.star.comp.avmedia.Manager_OpenGL" ) == 0 )
      29             :     {
      30           0 :         const OUString aServiceName( "com.sun.star.media.Manager_OpenGL" );
      31             : 
      32           0 :         xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory(
      33             :                         reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
      34             :                         OUString("com.sun.star.comp.avmedia.Manager_OpenGL" ),
      35           0 :                         create_MediaPlayer, uno::Sequence< OUString >( &aServiceName, 1 ) ) );
      36             :     }
      37             : 
      38           0 :     if( xFactory.is() )
      39             :     {
      40           0 :         xFactory->acquire();
      41           0 :         pRet = xFactory.get();
      42             :     }
      43             : 
      44           0 :     return pRet;
      45             : }
      46             : 
      47             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10