Debian Codegraph @

components/decoder/wma/dllinterface.cpp

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2015 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #include "dllinterface.h"
14
15 WMCREATEREADER ex_WMCreateReader = NIL;
16
17 DynamicLoader *wmvcoredll = NIL;
18
19 Bool LoadWMVCoreDLL()
20 {
21 wmvcoredll = new DynamicLoader("WMVCore");
22
23 ex_WMCreateReader = (WMCREATEREADER) wmvcoredll->GetFunctionAddress("WMCreateReader");
24
25 if (ex_WMCreateReader == NIL) { FreeWMVCoreDLL(); return False; }
26
27 return True;
28 }
29
30 Void FreeWMVCoreDLL()
31 {
32 Object::DeleteObject(wmvcoredll);
33
34 wmvcoredll = NIL;
35 }