Debian Codegraph @

components/decoder/bonk/dllinterface.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2022 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 <smooth.h>
14
15 #include <bonk/bonk.h>
16
17 using namespace smooth;
18 using namespace smooth::System;
19
20 extern DynamicLoader *bonkdll;
21
22 Bool LoadBonkDLL();
23 Void FreeBonkDLL();
24
25 typedef void * (BONKCONV *BONKDECODERCREATE) ();
26 typedef bool (BONKCONV *BONKDECODERINIT) (void *, unsigned char *, int, unsigned int *, unsigned int *, int *);
27 typedef int (BONKCONV *BONKDECODERDECODEPACKET) (void *, unsigned char *, int, signed short *, int);
28 typedef int (BONKCONV *BONKDECODERFINISH) (void *);
29 typedef bool (BONKCONV *BONKDECODERCLOSE) (void *);
30 typedef bool (BONKCONV *BONKDECODERGETSTREAMINFO) (void *, bool *, bool *);
31 typedef bool (BONKCONV *BONKDECODERGETID3DATA) (void *, unsigned char **, int *);
32 typedef bool (BONKCONV *BONKDECODERINITSEEKTABLE) (void *, unsigned char *, int);
33 typedef bool (BONKCONV *BONKDECODERSEEKTO) (void *, int);
34 typedef const char * (BONKCONV *BONKGETVERSIONSTRING) ();
35
36 extern BONKDECODERCREATE ex_bonk_decoder_create;
37 extern BONKDECODERINIT ex_bonk_decoder_init;
38 extern BONKDECODERDECODEPACKET ex_bonk_decoder_decode_packet;
39 extern BONKDECODERFINISH ex_bonk_decoder_finish;
40 extern BONKDECODERCLOSE ex_bonk_decoder_close;
41 extern BONKDECODERGETSTREAMINFO ex_bonk_decoder_get_stream_info;
42 extern BONKDECODERGETID3DATA ex_bonk_decoder_get_id3_data;
43 extern BONKDECODERINITSEEKTABLE ex_bonk_decoder_init_seektable;
44 extern BONKDECODERSEEKTO ex_bonk_decoder_seek_to;
45 extern BONKGETVERSIONSTRING ex_bonk_get_version_string;