clean up DefineFont3 code
[swfdec.git] / libswfdec / swfdec_amf.h
blob0f9c67eb230b7928d75ca4677fa190b240e7840d
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 <libswfdec/swfdec_as_context.h>
24 #include <libswfdec/swfdec_bits.h>
26 typedef enum {
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,
32 SWFDEC_AMF_NULL = 5,
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,
38 SWFDEC_AMF_DATE = 11,
39 SWFDEC_AMF_BIG_STRING = 12,
40 /* what is 13? */
41 SWFDEC_AMF_RECORDSET = 14,
42 SWFDEC_AMF_XML = 15,
43 SWFDEC_AMF_CLASS = 16,
44 SWFDEC_AMF_FLASH9 = 17,
45 /* add more items here */
46 SWFDEC_AMF_N_TYPES
47 } SwfdecAmfType;
49 gboolean swfdec_amf_parse_one (SwfdecAsContext * context,
50 SwfdecBits * bits,
51 SwfdecAmfType expected_type,
52 SwfdecAsValue * rval);
53 guint swfdec_amf_parse (SwfdecAsContext * context,
54 SwfdecBits * bits,
55 guint n_items,
56 ...);
59 #endif