2 * Copyright (C) 2015 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 * Header file of the dexdump utility.
18 * This is a re-implementation of the original dexdump utility that was
19 * based on Dalvik functions in libdex into a new dexdump that is now
20 * based on Art functions in libart instead. The output is identical to
21 * the original for correct DEX files. Error messages may differ, however.
22 * Also, ODEX files are no longer supported.
25 #ifndef ART_DEXDUMP_DEXDUMP_H_
26 #define ART_DEXDUMP_DEXDUMP_H_
33 /* Supported output formats. */
35 OUTPUT_PLAIN = 0, // default
36 OUTPUT_XML, // XML-style
39 /* Command-line options. */
44 bool ignoreBadChecksum;
48 bool showSectionHeaders;
50 OutputFormat outputFormat;
51 const char* outputFileName;
55 extern struct Options gOptions;
56 extern FILE* gOutFile;
57 int processFile(const char* fileName);
61 #endif // ART_DEXDUMP_DEXDUMP_H_