1// Copyright 2016 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/fxfa/parser/xfa_basic_data.h"
8
9#include "xfa/fxfa/fxfa_basic.h"
10
11const XFA_PACKETINFO g_XFAPacketData[] = {
12    {0x0, nullptr, XFA_XDPPACKET_USER, nullptr,
13     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTMANY},
14    {0x811929d, L"sourceSet", XFA_XDPPACKET_SourceSet,
15     L"http://www.xfa.org/schema/xfa-source-set/",
16     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
17    {0xb843dba, L"pdf", XFA_XDPPACKET_Pdf, L"http://ns.adobe.com/xdp/pdf/",
18     XFA_XDPPACKET_FLAGS_COMPLETEMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
19    {0xc56afbf, L"xdc", XFA_XDPPACKET_Xdc, L"http://www.xfa.org/schema/xdc/",
20     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
21    {0xc56afcc, L"xdp", XFA_XDPPACKET_XDP, L"http://ns.adobe.com/xdp/",
22     XFA_XDPPACKET_FLAGS_COMPLETEMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
23    {0x132a8fbc, L"xmpmeta", XFA_XDPPACKET_Xmpmeta,
24     L"http://ns.adobe.com/xmpmeta/",
25     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTMANY},
26    {0x48d004a8, L"xfdf", XFA_XDPPACKET_Xfdf, L"http://ns.adobe.com/xfdf/",
27     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
28    {0x4e1e39b6, L"config", XFA_XDPPACKET_Config,
29     L"http://www.xfa.org/schema/xci/",
30     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
31    {0x5473b6dc, L"localeSet", XFA_XDPPACKET_LocaleSet,
32     L"http://www.xfa.org/schema/xfa-locale-set/",
33     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
34    {0x6038580a, L"stylesheet", XFA_XDPPACKET_Stylesheet,
35     L"http://www.w3.org/1999/XSL/Transform",
36     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTMANY},
37    {0x803550fc, L"template", XFA_XDPPACKET_Template,
38     L"http://www.xfa.org/schema/xfa-template/",
39     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
40    {0x8b036f32, L"signature", XFA_XDPPACKET_Signature,
41     L"http://www.w3.org/2000/09/xmldsig#",
42     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
43    {0x99b95079, L"datasets", XFA_XDPPACKET_Datasets,
44     L"http://www.xfa.org/schema/xfa-data/",
45     XFA_XDPPACKET_FLAGS_PREFIXMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
46    {0xcd309ff4, L"form", XFA_XDPPACKET_Form,
47     L"http://www.xfa.org/schema/xfa-form/",
48     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
49    {0xe14c801c, L"connectionSet", XFA_XDPPACKET_ConnectionSet,
50     L"http://www.xfa.org/schema/xfa-connection-set/",
51     XFA_XDPPACKET_FLAGS_NOMATCH | XFA_XDPPACKET_FLAGS_SUPPORTONE},
52};
53const int32_t g_iXFAPacketCount =
54    sizeof(g_XFAPacketData) / sizeof(XFA_PACKETINFO);
55