Annotation of embedaddon/strongswan/src/libstrongswan/plugins/bliss/bliss_huffman_code.c, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2014 Andreas Steffen
3: * HSR Hochschule fuer Technik Rapperswil
4: *
5: * This program is free software; you can redistribute it and/or modify it
6: * under the terms of the GNU General Public License as published by the
7: * Free Software Foundation; either version 2 of the License, or (at your
8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9: *
10: * This program is distributed in the hope that it will be useful, but
11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13: * for more details.
14: */
15:
16: #include "bliss_huffman_code.h"
17:
18: extern bliss_huffman_code_t bliss_huffman_code_1;
19: extern bliss_huffman_code_t bliss_huffman_code_3;
20: extern bliss_huffman_code_t bliss_huffman_code_4;
21:
22: /**
23: * See header.
24: */
25: bliss_huffman_code_t* bliss_huffman_code_get_by_id(bliss_param_set_id_t id)
26: {
27: switch (id)
28: {
29: case BLISS_I:
30: case BLISS_B_I:
31: return &bliss_huffman_code_1;
32: case BLISS_III:
33: case BLISS_B_III:
34: return &bliss_huffman_code_3;
35: case BLISS_IV:
36: case BLISS_B_IV:
37: return &bliss_huffman_code_4;
38: default:
39: return NULL;
40: }
41: }
42:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>