]>
git.saurik.com Git - android/aapt.git/blob - Main.h
2 // Copyright 2006 The Android Open Source Project
4 // Some global defines that don't really merit their own header.
10 #include <utils/threads.h>
11 #include <utils/List.h>
12 #include <utils/Errors.h>
14 #include "AaptAssets.h"
17 extern int doVersion(Bundle
* bundle
);
18 extern int doList(Bundle
* bundle
);
19 extern int doDump(Bundle
* bundle
);
20 extern int doAdd(Bundle
* bundle
);
21 extern int doRemove(Bundle
* bundle
);
22 extern int doPackage(Bundle
* bundle
);
24 extern int calcPercent(long uncompressedLen
, long compressedLen
);
26 extern android::status_t
writeAPK(Bundle
* bundle
,
27 const sp
<AaptAssets
>& assets
,
28 const android::String8
& outputFile
);
30 extern android::status_t
buildResources(Bundle
* bundle
,
31 const sp
<AaptAssets
>& assets
);
33 extern android::status_t
writeResourceSymbols(Bundle
* bundle
,
34 const sp
<AaptAssets
>& assets
, const String8
& pkgName
, bool includePrivate
);
36 extern bool isValidResourceType(const String8
& type
);
38 ssize_t
processAssets(Bundle
* bundle
, ZipFile
* zip
, const sp
<AaptAssets
>& assets
);
40 extern status_t
filterResources(Bundle
* bundle
, const sp
<AaptAssets
>& assets
);
42 int dumpResources(Bundle
* bundle
);