• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 #include "xfa/fxbarcode/BC_Library.h"
8 
9 #include <stdint.h>
10 
11 #include "xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h"
12 #include "xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h"
13 #include "xfa/fxbarcode/datamatrix/BC_SymbolInfo.h"
14 #include "xfa/fxbarcode/pdf417/BC_PDF417HighLevelEncoder.h"
15 #include "xfa/fxbarcode/qrcode/BC_QRCoderErrorCorrectionLevel.h"
16 #include "xfa/fxbarcode/qrcode/BC_QRCoderMode.h"
17 #include "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h"
18 
BC_Library_Init()19 void BC_Library_Init() {
20   CBC_QRCoderErrorCorrectionLevel::Initialize();
21   CBC_QRCoderMode::Initialize();
22   CBC_QRCoderVersion::Initialize();
23   CBC_ReedSolomonGF256::Initialize();
24   CBC_SymbolInfo::Initialize();
25   CBC_ErrorCorrection::Initialize();
26   CBC_PDF417HighLevelEncoder::Initialize();
27 }
BC_Library_Destory()28 void BC_Library_Destory() {
29   CBC_QRCoderErrorCorrectionLevel::Finalize();
30   CBC_QRCoderMode::Finalize();
31   CBC_QRCoderVersion::Finalize();
32   CBC_ReedSolomonGF256::Finalize();
33   CBC_SymbolInfo::Finalize();
34   CBC_ErrorCorrection::Finalize();
35   CBC_PDF417HighLevelEncoder::Finalize();
36 }
37