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 <swfdec/swfdec_as_context.h>
24 #include <swfdec/swfdec_bits.h>
29 SWFDEC_AMF_NUMBER
= 0,
30 SWFDEC_AMF_BOOLEAN
= 1,
31 SWFDEC_AMF_STRING
= 2,
32 SWFDEC_AMF_OBJECT
= 3,
33 SWFDEC_AMF_MOVIECLIP
= 4,
35 SWFDEC_AMF_UNDEFINED
= 6,
36 SWFDEC_AMF_REFERENCE
= 7,
37 SWFDEC_AMF_MIXED_ARRAY
= 8,
38 SWFDEC_AMF_END_OBJECT
= 9,
39 SWFDEC_AMF_ARRAY
= 10,
41 SWFDEC_AMF_BIG_STRING
= 12,
43 SWFDEC_AMF_RECORDSET
= 14,
45 SWFDEC_AMF_CLASS
= 16,
46 SWFDEC_AMF_FLASH9
= 17,
47 /* add more items here */
51 gboolean
swfdec_amf_parse_one (SwfdecAsContext
* context
,
53 SwfdecAmfType expected_type
,
54 SwfdecAsValue
* rval
);
55 guint
swfdec_amf_parse (SwfdecAsContext
* context
,