blob: d9708caed28428da66e883ccc43872b7da7ce900 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16/*
17 * Utility functions related to "dexopt".
18 */
19#ifndef _LIBDEX_OPTINVOCATION
20#define _LIBDEX_OPTINVOCATION
21
22#include <stdint.h>
23#include <unistd.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29
30/*
31 * Utility routines, used by the VM.
32 */
33char* dexOptGenerateCacheFileName(const char* fileName,
34 const char* subFileName);
35int dexOptCreateEmptyHeader(int fd);
36
37/* some flags that get passed through to "dexopt" command */
38#define DEXOPT_OPT_ENABLED (1)
39#define DEXOPT_OPT_ALL (1 << 1)
40#define DEXOPT_VERIFY_ENABLED (1 << 2)
41#define DEXOPT_VERIFY_ALL (1 << 3)
42#define DEXOPT_IS_BOOTSTRAP (1 << 4)
43#define DEXOPT_GEN_REGISTER_MAP (1 << 5)
44
45
46#ifdef __cplusplus
47};
48#endif
49
50#endif /*_LIBDEX_OPTINVOCATION*/