blob: a150fefe620a6c870ba7c704921aae442391c20f (
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( const char * const argv[] )
{
InitApiMap( VLC_INSTANCE_API );
mInstance = libvlc_new( sizeof( argv ) / sizeof( argv[0] ), argv );
}
Instance::~Instance()
{
libvlc_release( mInstance );
}
}
|