git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
69bc83b
)
Add Actionscript header and functions.
author
kramm
<kramm>
Tue, 30 Oct 2001 10:27:32 +0000
(10:27 +0000)
committer
kramm
<kramm>
Tue, 30 Oct 2001 10:27:32 +0000
(10:27 +0000)
lib/rfxswf.c
patch
|
blob
|
history
lib/rfxswf.h
patch
|
blob
|
history
diff --git
a/lib/rfxswf.c
b/lib/rfxswf.c
index
ec0d3d2
..
7079c94
100644
(file)
--- a/
lib/rfxswf.c
+++ b/
lib/rfxswf.c
@@
-804,6
+804,7
@@
void FreeTags(SWF * swf) // Frees all malloc'ed memory for tags
#include "modules\swftools.c"
#include "modules\swfcgi.c"
#include "modules\swfbits.c"
#include "modules\swftools.c"
#include "modules\swfcgi.c"
#include "modules\swfbits.c"
+#include "modules\swfaction.c"
#else
#else
@@
-815,6
+816,7
@@
void FreeTags(SWF * swf) // Frees all malloc'ed memory for tags
#include "modules/swftools.c"
#include "modules/swfcgi.c"
#include "modules/swfbits.c"
#include "modules/swftools.c"
#include "modules/swfcgi.c"
#include "modules/swfbits.c"
+#include "modules/swfaction.c"
#endif
#endif
diff --git
a/lib/rfxswf.h
b/lib/rfxswf.h
index
e846438
..
fc9afd5
100644
(file)
--- a/
lib/rfxswf.h
+++ b/
lib/rfxswf.h
@@
-85,6
+85,18
@@
typedef struct _TAG // NEVER access a Tag-Struct directly !
U8 bitcount; // [write]
} TAG, * LPTAG;
U8 bitcount; // [write]
} TAG, * LPTAG;
+typedef struct _ActionTAG
+{ U8 op;
+ U16 len;
+ U8 * data;
+
+ struct _ActionTAG * next;
+ struct _ActionTAG * prev;
+
+ TAG* parent; // may be null
+} ActionTAG;
+
+
typedef struct _SWF
{ U8 FileVersion;
U32 FileSize; // valid after load and save
typedef struct _SWF
{ U8 FileVersion;
U32 FileSize; // valid after load and save
@@
-455,4
+467,9
@@
MATRIX * MatrixMapTriangle(MATRIX * m,int dx,int dy,
void uncgi(); // same behaviour as Steven Grimm's uncgi-library
void uncgi(); // same behaviour as Steven Grimm's uncgi-library
+// swfaction.c
+
+ActionTAG* GetActions(TAG*tag);
+void DumpActions(ActionTAG*atag, char*prefix);
+
#endif
#endif