oops, I shifted the wrong value.
[swfdec.git] / swfdec / swfdec_amf.h
blob06dde8a556e476f9edaaf620123f6c01a67844a0
1 /* Swfdec
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.
8 *
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>
26 G_BEGIN_DECLS
28 typedef enum {
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,
34 SWFDEC_AMF_NULL = 5,
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,
40 SWFDEC_AMF_DATE = 11,
41 SWFDEC_AMF_BIG_STRING = 12,
42 /* what is 13? */
43 SWFDEC_AMF_RECORDSET = 14,
44 SWFDEC_AMF_XML = 15,
45 SWFDEC_AMF_CLASS = 16,
46 SWFDEC_AMF_FLASH9 = 17,
47 /* add more items here */
48 SWFDEC_AMF_N_TYPES
49 } SwfdecAmfType;
51 gboolean swfdec_amf_parse_one (SwfdecAsContext * context,
52 SwfdecBits * bits,
53 SwfdecAmfType expected_type,
54 SwfdecAsValue * rval);
55 guint swfdec_amf_parse (SwfdecAsContext * context,
56 SwfdecBits * bits,
57 guint n_items,
58 ...);
61 G_END_DECLS
63 #endif