add a test for just-fixed crash
[swfdec.git] / test / swfedit_list.h
blobe0666f753a901462264f45eb9c968e0ec81ec2a6
1 /* Swfedit
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 __SWFEDIT_LIST_H__
21 #define __SWFEDIT_LIST_H__
23 #include "swfdec_out.h"
24 #include "swfedit_tag.h"
26 G_BEGIN_DECLS
28 typedef struct _SwfeditList SwfeditList;
29 typedef struct _SwfeditListClass SwfeditListClass;
31 #define SWFEDIT_TYPE_LIST (swfedit_list_get_type())
32 #define SWFEDIT_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFEDIT_TYPE_LIST))
33 #define SWFEDIT_IS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFEDIT_TYPE_LIST))
34 #define SWFEDIT_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFEDIT_TYPE_LIST, SwfeditList))
35 #define SWFEDIT_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFEDIT_TYPE_LIST, SwfeditListClass))
36 #define SWFEDIT_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFEDIT_TYPE_LIST, SwfeditListClass))
38 struct _SwfeditList {
39 SwfeditToken token;
41 const SwfeditTagDefinition * def; /* definition of our items */
42 guint n_defs; /* number of items in def */
45 struct _SwfeditListClass {
46 SwfeditTokenClass token_class;
49 GType swfedit_list_get_type (void);
51 SwfeditList * swfedit_list_new (const SwfeditTagDefinition * def);
52 SwfeditList * swfedit_list_new_read (SwfeditToken * parent,
53 SwfdecBits * bits,
54 const SwfeditTagDefinition * def);
56 SwfdecBuffer * swfedit_list_write (SwfeditList * list);
59 G_END_DECLS
61 #endif