add blend mode tests
[swfdec.git] / swfdec / swfdec_as_debugger.h
blob3cd4b4fd4f0a5c4712664d938f1b864af43b9961
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_AS_DEBUGGER_H_
21 #define _SWFDEC_AS_DEBUGGER_H_
23 #include <swfdec/swfdec_as_object.h>
24 #include <swfdec/swfdec_as_types.h>
25 #include <swfdec/swfdec_script.h>
27 G_BEGIN_DECLS
29 typedef struct _SwfdecAsDebuggerClass SwfdecAsDebuggerClass;
31 #define SWFDEC_TYPE_AS_DEBUGGER (swfdec_as_debugger_get_type())
32 #define SWFDEC_IS_AS_DEBUGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_AS_DEBUGGER))
33 #define SWFDEC_IS_AS_DEBUGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_AS_DEBUGGER))
34 #define SWFDEC_AS_DEBUGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_AS_DEBUGGER, SwfdecAsDebugger))
35 #define SWFDEC_AS_DEBUGGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_AS_DEBUGGER, SwfdecAsDebuggerClass))
36 #define SWFDEC_AS_DEBUGGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_AS_DEBUGGER, SwfdecAsDebuggerClass))
38 struct _SwfdecAsDebugger {
39 /*< private >*/
40 GObject object;
43 struct _SwfdecAsDebuggerClass {
44 /*< private >*/
45 GObjectClass object_class;
47 /*< public >*/
48 /* a new object was added to the GC */
49 void (* add) (SwfdecAsDebugger * debugger,
50 SwfdecAsContext * context,
51 SwfdecAsObject * object);
52 /* an object was removed from the GC */
53 void (* remove) (SwfdecAsDebugger * debugger,
54 SwfdecAsContext * context,
55 SwfdecAsObject * object);
56 /* called before executing a bytecode */
57 void (* step) (SwfdecAsDebugger * debugger,
58 SwfdecAsContext * context);
59 /* called after adding a frame from the function stack */
60 void (* enter_frame) (SwfdecAsDebugger * debugger,
61 SwfdecAsContext * context,
62 SwfdecAsFrame * frame);
63 /* called after removing a frame from the function stack */
64 void (* leave_frame) (SwfdecAsDebugger * debugger,
65 SwfdecAsContext * context,
66 SwfdecAsFrame * frame,
67 const SwfdecAsValue * return_value);
68 /* called before setting a variable */
69 void (* set_variable)(SwfdecAsDebugger * debugger,
70 SwfdecAsContext * context,
71 SwfdecAsObject * object,
72 const char * variable,
73 const SwfdecAsValue * value);
76 GType swfdec_as_debugger_get_type (void);
79 G_END_DECLS
80 #endif