implemented asset resolving
[swftools.git] / lib / as3 / assets.h
1 #ifndef __abc_assets_h__
2 #define __abc_assets_h__
3 #include "abc.h"
4 #include "registry.h"
5
6 typedef struct _asset_resolver {
7     SWF*swf;
8     abc_asset_t**id2asset;
9     dict_t*name2asset;
10     U16 mainclass_id;
11 } asset_resolver_t;
12
13 asset_resolver_t* swf_ParseAssets(SWF*swf);
14 void swf_ResolveAssets(asset_resolver_t*swf, abc_file_t*file);
15 void swf_DumpAsset(FILE*fo, abc_asset_t*asset, const char*prefix);
16 TAG*swf_AssetsToTags(TAG*tag, asset_bundle_list_t*assets);
17
18 #endif //__abc_assets_h__