blob: 65c0a8a91dee3f90f8c05de284542c6601a7ae19 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001//
2// Copyright 2006 The Android Open Source Project
3//
4// Some global defines that don't really merit their own header.
5//
6#ifndef __MAIN_H
7#define __MAIN_H
8
9#include <utils.h>
10#include "Bundle.h"
11#include "AaptAssets.h"
12#include <utils/ZipFile.h>
13
14extern int doVersion(Bundle* bundle);
15extern int doList(Bundle* bundle);
16extern int doDump(Bundle* bundle);
17extern int doAdd(Bundle* bundle);
18extern int doRemove(Bundle* bundle);
19extern int doPackage(Bundle* bundle);
20
21extern int calcPercent(long uncompressedLen, long compressedLen);
22
23extern android::status_t writeAPK(Bundle* bundle,
24 const sp<AaptAssets>& assets,
25 const android::String8& outputFile);
26
27extern android::status_t buildResources(Bundle* bundle,
28 const sp<AaptAssets>& assets);
29
30extern android::status_t writeResourceSymbols(Bundle* bundle,
31 const sp<AaptAssets>& assets, const String8& pkgName, bool includePrivate);
32
33extern bool isValidResourceType(const String8& type);
34
35ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptAssets>& assets);
36
37extern status_t filterResources(Bundle* bundle, const sp<AaptAssets>& assets);
38
39int dumpResources(Bundle* bundle);
40
41#endif // __MAIN_H