don't set __constructor__ in Flash <= 5
[swfdec.git] / test / swfedit_file.h
blobecd096ac31088b5641ece507e77c64b14aa323d7
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_FILE_H__
21 #define __SWFEDIT_FILE_H__
23 #include <libswfdec/swfdec_rect.h>
24 #include "swfedit_token.h"
26 G_BEGIN_DECLS
28 typedef struct _SwfeditFile SwfeditFile;
29 typedef struct _SwfeditFileClass SwfeditFileClass;
31 #define SWFEDIT_TYPE_FILE (swfedit_file_get_type())
32 #define SWFEDIT_IS_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFEDIT_TYPE_FILE))
33 #define SWFEDIT_IS_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFEDIT_TYPE_FILE))
34 #define SWFEDIT_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFEDIT_TYPE_FILE, SwfeditFile))
35 #define SWFEDIT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFEDIT_TYPE_FILE, SwfeditFileClass))
36 #define SWFEDIT_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFEDIT_TYPE_FILE, SwfeditFileClass))
38 struct _SwfeditFile {
39 SwfeditToken token;
41 char * filename; /* name this file is saved to */
44 struct _SwfeditFileClass {
45 SwfeditTokenClass token_class;
48 GType swfedit_file_get_type (void);
50 SwfeditFile * swfedit_file_new (const char * filename,
51 GError ** error);
53 gboolean swfedit_file_save (SwfeditFile * file,
54 GError ** error);
55 guint swfedit_file_get_version (SwfeditFile * file);
58 G_END_DECLS
60 #endif