make the loader keep a SwfdecAsValue, not target_movie/target_string
[swfdec.git] / vivified / core / vivi_wrap.h
blob9f0aec0bc91bd715501d45610c0d73234aba46a1
1 /* Vivified
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 _VIVI_WRAP_H_
21 #define _VIVI_WRAP_H_
23 #include <swfdec/swfdec.h>
24 #include <vivified/core/vivi_application.h>
26 G_BEGIN_DECLS
29 typedef struct _ViviWrap ViviWrap;
30 typedef struct _ViviWrapClass ViviWrapClass;
32 #define VIVI_TYPE_WRAP (vivi_wrap_get_type())
33 #define VIVI_IS_WRAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIVI_TYPE_WRAP))
34 #define VIVI_IS_WRAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIVI_TYPE_WRAP))
35 #define VIVI_WRAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIVI_TYPE_WRAP, ViviWrap))
36 #define VIVI_WRAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIVI_TYPE_WRAP, ViviWrapClass))
37 #define VIVI_WRAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIVI_TYPE_WRAP, ViviWrapClass))
39 struct _ViviWrap
41 SwfdecAsObject object;
43 SwfdecAsObject * wrap; /* the object we wrap */
46 struct _ViviWrapClass
48 SwfdecAsObjectClass object_class;
51 GType vivi_wrap_get_type (void);
53 SwfdecAsObject * vivi_wrap_object (ViviApplication * app,
54 SwfdecAsObject * object);
55 void vivi_wrap_value (ViviApplication * app,
56 SwfdecAsValue * dest,
57 const SwfdecAsValue * src);
59 G_END_DECLS
60 #endif