Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame^] | 7 | #include "fxbarcode/BC_Library.h" |
Dan Sinclair | 85c8e7f | 2016-11-21 13:50:32 -0500 | [diff] [blame] | 8 | |
Dan Sinclair | a98600a | 2016-03-21 15:15:56 -0400 | [diff] [blame] | 9 | #include <stdint.h> |
| 10 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame^] | 11 | #include "fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h" |
| 12 | #include "fxbarcode/datamatrix/BC_ErrorCorrection.h" |
| 13 | #include "fxbarcode/datamatrix/BC_SymbolInfo.h" |
| 14 | #include "fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h" |
| 15 | #include "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h" |
| 16 | #include "fxbarcode/qrcode/BC_QRCoderMode.h" |
| 17 | #include "fxbarcode/qrcode/BC_QRCoderVersion.h" |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 18 | |
| 19 | void BC_Library_Init() { |
| 20 | CBC_QRCoderErrorCorrectionLevel::Initialize(); |
| 21 | CBC_QRCoderMode::Initialize(); |
| 22 | CBC_QRCoderVersion::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 23 | CBC_ReedSolomonGF256::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 24 | CBC_SymbolInfo::Initialize(); |
| 25 | CBC_ErrorCorrection::Initialize(); |
| 26 | CBC_PDF417HighLevelEncoder::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 27 | } |
| 28 | void BC_Library_Destory() { |
| 29 | CBC_QRCoderErrorCorrectionLevel::Finalize(); |
| 30 | CBC_QRCoderMode::Finalize(); |
| 31 | CBC_QRCoderVersion::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 32 | CBC_ReedSolomonGF256::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 33 | CBC_SymbolInfo::Finalize(); |
| 34 | CBC_ErrorCorrection::Finalize(); |
| 35 | CBC_PDF417HighLevelEncoder::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 36 | } |