K. Moon | 832a694 | 2022-10-31 20:11:31 +0000 | [diff] [blame] | 1 | // Copyright 2014 The PDFium Authors |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 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/datamatrix/BC_SymbolInfo.h" |
Tom Sepez | ff9d7ec | 2019-05-16 20:54:49 +0000 | [diff] [blame] | 12 | #include "fxbarcode/qrcode/BC_QRCoderEncoder.h" |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 13 | #include "fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h" |
| 14 | #include "fxbarcode/qrcode/BC_QRCoderMode.h" |
| 15 | #include "fxbarcode/qrcode/BC_QRCoderVersion.h" |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 16 | |
| 17 | void BC_Library_Init() { |
| 18 | CBC_QRCoderErrorCorrectionLevel::Initialize(); |
| 19 | CBC_QRCoderMode::Initialize(); |
| 20 | CBC_QRCoderVersion::Initialize(); |
Tom Sepez | ff9d7ec | 2019-05-16 20:54:49 +0000 | [diff] [blame] | 21 | CBC_QRCoderEncoder::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 22 | CBC_SymbolInfo::Initialize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 23 | } |
Tom Sepez | 5628fd7 | 2017-04-27 14:58:53 -0700 | [diff] [blame] | 24 | |
| 25 | void BC_Library_Destroy() { |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 26 | CBC_QRCoderErrorCorrectionLevel::Finalize(); |
| 27 | CBC_QRCoderMode::Finalize(); |
| 28 | CBC_QRCoderVersion::Finalize(); |
Tom Sepez | ff9d7ec | 2019-05-16 20:54:49 +0000 | [diff] [blame] | 29 | CBC_QRCoderEncoder::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 30 | CBC_SymbolInfo::Finalize(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 31 | } |