added tag types {EXPORT, IMPORT}ASSETS, ENABLEDEBUGGER
[swftools.git] / lib / rfxswf.h
index 43d4b87..d52192a 100644 (file)
@@ -16,6 +16,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
+#include <fcntl.h>
 #include "../config.h"
 
 #define DEBUG_RFXSWF
@@ -220,6 +222,9 @@ int   swf_SetRGBA(TAG * t,RGBA * col);
 #define ST_TEMPLATECOMMAND      49
 #define ST_GENERATOR3           51
 #define ST_EXTERNALFONT         52
+#define ST_EXPORTASSETS                56
+#define ST_IMPORTASSETS                57
+#define ST_ENABLEDEBUGGER      58
 
 #define ST_REFLEX              777 /* to identify generator software */
 
@@ -356,6 +361,9 @@ int swf_FontSetInfo(TAG * t,SWFFONT * f);
 int swf_FontExport(int handle,SWFFONT * f);
 int swf_FontImport(int handle,SWFFONT * * f);
 
+void swf_WriteFont(SWFFONT* font, char* filename, int useDefineFont2);
+SWFFONT* swf_ReadFont(char* filename);
+
 void swf_FontFree(SWFFONT * f);
 
 U32 swf_TextGetWidth(SWFFONT * font,U8 * s,int scale);