summaryrefslogtreecommitdiff
path: root/avmedia/source/vlc/wrapper/Instance.cxx
blob: bc23167210b666427fa86ac9ade7c229c350e5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <rtl/ustring.hxx>

#include "Instance.hxx"
#include "SymbolLoader.hxx"

namespace VLC
{
    namespace
    {
        libvlc_instance_t *(*libvlc_new) (int argc, const char * const *argv);
        void (*libvlc_release) (libvlc_instance_t *p_instance);

        ApiMap VLC_INSTANCE_API[] =
        {
            SYM_MAP( libvlc_new ),
            SYM_MAP( libvlc_release )
        };
    }

    Instance::Instance( int argc, const char * const *argv )
    {
        InitApiMap( VLC_INSTANCE_API );

        mInstance = libvlc_new( argc, argv );
    }

    Instance::~Instance()
    {
        libvlc_release( mInstance );
    }

}