2 * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef __SWFDEC_AMF_H__
21 #define __SWFDEC_AMF_H__
23 #include <libswfdec/swfdec_as_context.h>
24 #include <libswfdec/swfdec_bits.h>
27 SWFDEC_AMF_NUMBER
= 0,
28 SWFDEC_AMF_BOOLEAN
= 1,
29 SWFDEC_AMF_STRING
= 2,
30 SWFDEC_AMF_OBJECT
= 3,
31 SWFDEC_AMF_MOVIECLIP
= 4,
33 SWFDEC_AMF_UNDEFINED
= 6,
34 SWFDEC_AMF_REFERENCE
= 7,
35 SWFDEC_AMF_MIXED_ARRAY
= 8,
36 SWFDEC_AMF_END_OBJECT
= 9,
37 SWFDEC_AMF_ARRAY
= 10,
39 SWFDEC_AMF_BIG_STRING
= 12,
41 SWFDEC_AMF_RECORDSET
= 14,
43 SWFDEC_AMF_CLASS
= 16,
44 SWFDEC_AMF_FLASH9
= 17,
45 /* add more items here */
49 gboolean
swfdec_amf_parse_one (SwfdecAsContext
* context
,
51 SwfdecAmfType expected_type
,
52 SwfdecAsValue
* rval
);
53 guint
swfdec_amf_parse (SwfdecAsContext
* context
,