|
| 1 | +/** |
| 2 | + Copyright (C) powturbo 2013-2021 |
| 3 | + GPL v2 License |
| 4 | + |
| 5 | + This program is free software; you can redistribute it and/or modify |
| 6 | + it under the terms of the GNU General Public License as published by |
| 7 | + the Free Software Foundation; either version 2 of the License, or |
| 8 | + (at your option) any later version. |
| 9 | +
|
| 10 | + This program is distributed in the hope that it will be useful, |
| 11 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + GNU General Public License for more details. |
| 14 | +
|
| 15 | + You should have received a copy of the GNU General Public License along |
| 16 | + with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | +
|
| 19 | + - homepage : https://sites.google.com/site/powturbo/ |
| 20 | + - github : https://github.com/powturbo |
| 21 | + - twitter : https://twitter.com/powturbo |
| 22 | + - email : powturbo [_AT_] gmail [_DOT_] com |
| 23 | +**/ |
| 24 | +// TurboBench: plugins.h - settings |
| 25 | +#define E_ANS 0x1 |
| 26 | +#define E_HUF 0x2 |
| 27 | + |
| 28 | +struct plugs { |
| 29 | + int id; |
| 30 | + char *s; |
| 31 | + int codec; |
| 32 | + char *name,*lev; |
| 33 | + unsigned flag,blksize; |
| 34 | +}; |
| 35 | + |
| 36 | + #ifdef __cplusplus |
| 37 | +extern "C" { |
| 38 | + #endif |
| 39 | +extern struct plugs plugs[]; |
| 40 | +int coddicsize(int _dicsize); |
| 41 | +int codini( size_t insize, int codec, int lev, char *prm); |
| 42 | +void codexit( int codec); |
| 43 | +int codstart(size_t insize, int codec, int lev, char *prm, int mode); |
| 44 | +int codend( size_t insize, int codec, int lev, char *prm, int mode); |
| 45 | + |
| 46 | +unsigned codcomp( unsigned char *in, unsigned inlen, unsigned char *out, unsigned outsize, int codec, int lev, char *prm); |
| 47 | +unsigned coddecomp(unsigned char *in, unsigned inlen, unsigned char *out, unsigned outlen, int codec, int lev, char *prm); |
| 48 | +char *codver(int codec, char *v, char *s); |
| 49 | +void *_valloc(size_t size, unsigned a); |
| 50 | +void _vfree(void *p, size_t size); |
| 51 | + #ifdef __cplusplus |
| 52 | +} |
| 53 | + #endif |
0 commit comments