]> git.saurik.com Git - android/aapt.git/blame - Main.h
get rid of utils.h
[android/aapt.git] / Main.h
CommitLineData
dadd9c1f
TAOSP
1//
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
79e5d372
MA
9#include <utils/Log.h>
10#include <utils/threads.h>
11#include <utils/List.h>
12#include <utils/Errors.h>
dadd9c1f
TAOSP
13#include "Bundle.h"
14#include "AaptAssets.h"
15#include <utils/ZipFile.h>
16
17extern int doVersion(Bundle* bundle);
18extern int doList(Bundle* bundle);
19extern int doDump(Bundle* bundle);
20extern int doAdd(Bundle* bundle);
21extern int doRemove(Bundle* bundle);
22extern int doPackage(Bundle* bundle);
23
24extern int calcPercent(long uncompressedLen, long compressedLen);
25
26extern android::status_t writeAPK(Bundle* bundle,
27 const sp<AaptAssets>& assets,
28 const android::String8& outputFile);
29
30extern android::status_t buildResources(Bundle* bundle,
31 const sp<AaptAssets>& assets);
32
33extern android::status_t writeResourceSymbols(Bundle* bundle,
34 const sp<AaptAssets>& assets, const String8& pkgName, bool includePrivate);
35
36extern bool isValidResourceType(const String8& type);
37
38ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<AaptAssets>& assets);
39
40extern status_t filterResources(Bundle* bundle, const sp<AaptAssets>& assets);
41
42int dumpResources(Bundle* bundle);
43
44#endif // __MAIN_H