blob: 5d658ef3ecea6c982cc1fe3670290fbc6463352c [file] [log] [blame]
Dan Sinclair1770c022016-03-14 14:14:16 -04001// 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 Sinclaire7786682017-03-29 15:18:41 -04007#include "fxbarcode/BC_Library.h"
Dan Sinclair85c8e7f2016-11-21 13:50:32 -05008
Dan Sinclaira98600a2016-03-21 15:15:56 -04009#include <stdint.h>
10
Dan Sinclaire7786682017-03-29 15:18:41 -040011#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 Sinclair1770c022016-03-14 14:14:16 -040018
19void BC_Library_Init() {
20 CBC_QRCoderErrorCorrectionLevel::Initialize();
21 CBC_QRCoderMode::Initialize();
22 CBC_QRCoderVersion::Initialize();
Dan Sinclair1770c022016-03-14 14:14:16 -040023 CBC_ReedSolomonGF256::Initialize();
Dan Sinclair1770c022016-03-14 14:14:16 -040024 CBC_SymbolInfo::Initialize();
25 CBC_ErrorCorrection::Initialize();
26 CBC_PDF417HighLevelEncoder::Initialize();
Dan Sinclair1770c022016-03-14 14:14:16 -040027}
Tom Sepez5628fd72017-04-27 14:58:53 -070028
29void BC_Library_Destroy() {
Dan Sinclair1770c022016-03-14 14:14:16 -040030 CBC_QRCoderErrorCorrectionLevel::Finalize();
31 CBC_QRCoderMode::Finalize();
32 CBC_QRCoderVersion::Finalize();
Dan Sinclair1770c022016-03-14 14:14:16 -040033 CBC_ReedSolomonGF256::Finalize();
Dan Sinclair1770c022016-03-14 14:14:16 -040034 CBC_SymbolInfo::Finalize();
35 CBC_ErrorCorrection::Finalize();
36 CBC_PDF417HighLevelEncoder::Finalize();
Dan Sinclair1770c022016-03-14 14:14:16 -040037}