~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to server/vm/action.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2008-10-13 14:29:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081013142949-f6qdvnu4mn05ltdc
Tags: 0.8.4~~bzr9980-0ubuntu1
* new upstream release 0.8.4 (LP: #240325)
* ship new lib usr/lib/gnash/libmozsdk.so.* in mozilla-plugin-gnash
  - update debian/mozilla-plugin-gnash.install
* ship new lib usr/lib/gnash/libgnashnet.so.* in gnash-common
  - update debian/gnash-common.install
* add basic debian/build_head script to build latest CVS head packages.
  - add debian/build_head
* new sound architecture requires build depend on libsdl1.2-dev
  - update debian/control
* head build script now has been completely migrated to bzr (upstream +
  ubuntu)
  - update debian/build_head
* disable kde gui until klash/qt4 has been fixed; keep kde packages as empty
  packages for now.
  - update debian/rules
  - debian/klash.install
  - debian/klash.links
  - debian/klash.manpages
  - debian/konqueror-plugin-gnash.install
* drop libkonq5-dev build dependency accordingly
  - update debian/control
* don't install headers manually anymore. gnash doesnt provide a -dev
  package after all
  - update debian/rules
* update libs installed in gnash-common; libgnashserver-*.so is not available
  anymore (removed); in turn we add the new libgnashcore-*.so
  - update debian/gnash-common.install
* use -Os for optimization and properly pass CXXFLAGS=$(CFLAGS) to configure
  - update debian/rules
* touch firefox .autoreg in postinst of mozilla plugin
  - update debian/mozilla-plugin-gnash.postinst
* link gnash in ubufox plugins directory for the plugin alternative switcher
  - add debian/mozilla-plugin-gnash.links
* suggest ubufox accordingly
  - update debian/control
* add new required build-depends on libgif-dev
  - update debian/control
* add Xb-Npp-Description and Xb-Npp-File as new plugin database meta data
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// 
2
 
//   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3
 
// 
4
 
// This program is free software; you can redistribute it and/or modify
5
 
// it under the terms of the GNU General Public License as published by
6
 
// the Free Software Foundation; either version 3 of the License, or
7
 
// (at your option) any later version.
8
 
// 
9
 
// This program 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
12
 
// GNU General Public License for more details.
13
 
// 
14
 
// You should have received a copy of the GNU General Public License
15
 
// along with this program; if not, write to the Free Software
16
 
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
 
 
18
 
// Implementation and helpers for SWF actions.
19
 
 
20
 
 
21
 
#ifndef GNASH_ACTION_H
22
 
#define GNASH_ACTION_H
23
 
 
24
 
#ifdef HAVE_CONFIG_H
25
 
#include "gnashconfig.h"
26
 
#endif
27
 
 
28
 
#include "tu_config.h"
29
 
 
30
 
#include "gnash.h"
31
 
#include "as_object.h"
32
 
#include "types.h"
33
 
#include "smart_ptr.h"
34
 
 
35
 
#include <cwchar>
36
 
 
37
 
#ifdef __sgi
38
 
        __SGI_LIBC_USING_FROM_STD(va_list) 
39
 
#endif
40
 
 
41
 
namespace gnash {
42
 
        class sprite_instance;
43
 
        class as_environment;
44
 
        class as_object;
45
 
        class as_value;
46
 
        class swf_function;
47
 
 
48
 
 
49
 
        extern DSOEXPORT boost::intrusive_ptr<as_object> s_global;
50
 
 
51
 
        class DSOLOCAL as_property_interface
52
 
        {
53
 
        public:
54
 
                virtual ~as_property_interface() {}
55
 
                virtual bool    set_property(int index, const as_value& val) = 0;
56
 
        };
57
 
 
58
 
        //
59
 
        // Some handy helpers
60
 
        //
61
 
 
62
 
        // Dispatching methods from C++.
63
 
        as_value        call_method0(const as_value& method, as_environment* env, as_object* this_ptr);
64
 
        as_value        call_method1(
65
 
                const as_value& method, as_environment* env, as_object* this_ptr,
66
 
                const as_value& arg0);
67
 
        as_value        call_method2(
68
 
                const as_value& method, as_environment* env, as_object* this_ptr,
69
 
                const as_value& arg0, const as_value& arg1);
70
 
        as_value        call_method3(
71
 
                const as_value& method, as_environment* env, as_object* this_ptr,
72
 
                const as_value& arg0, const as_value& arg1, const as_value& arg2);
73
 
 
74
 
        /// Call a method, be it an as_function or a c_function. 
75
 
        //
76
 
        /// This is a thin wrapper around operator() and fn_call,
77
 
        /// probably worth dropping.
78
 
        ///
79
 
        /// first_arg_bottom_index is the stack index, from the bottom,
80
 
        /// of the first argument.  Subsequent arguments are at *lower*
81
 
        /// indices.  E.g. if first_arg_bottom_index = 7, then arg1 is
82
 
        /// at env->bottom(7), arg2 is at env->bottom(6), etc.
83
 
        ///
84
 
        DSOEXPORT as_value call_method(const as_value& method, as_environment* env,
85
 
                as_object* this_ptr, // this is ourself
86
 
                int nargs, int first_arg_bottom_index);
87
 
 
88
 
        const char*     call_method_parsed(
89
 
                as_environment* env,
90
 
                as_object* this_ptr,
91
 
                const char* method_name,
92
 
                const char* method_arg_fmt,
93
 
                va_list args);
94
 
 
95
 
        // tulrich: don't use this!  To register a class constructor,
96
 
        // just assign the classname to the constructor function.  E.g.:
97
 
        //
98
 
        // my_movie->set_member("MyClass", as_value(MyClassConstructorFunction));
99
 
        // 
100
 
        //void register_as_object(const char* object_name, as_c_function_ptr handler);
101
 
 
102
 
        // deprecated, use sprite_instance::loadMovie
103
 
        //void attach_extern_movie(const char* c_url, const sprite_instance* target, const sprite_instance* root_movie);
104
 
 
105
 
}       // end namespace gnash
106
 
 
107
 
 
108
 
#endif // GNASH_ACTION_H
109
 
 
110
 
 
111
 
// Local Variables:
112
 
// mode: C++
113
 
// indent-tabs-mode: t
114
 
// End: