1
// ID3Info_as.cpp: ActionScript "ID3Info" class, for Gnash.
3
// Copyright (C) 2009 Free Software Foundation, Inc.
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 3 of the License, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#include "gnashconfig.h"
24
#include "media/ID3Info_as.h"
27
#include "Global_as.h"
28
#include "smart_ptr.h" // for boost intrusive_ptr
29
#include "builtin_function.h" // need builtin_function
30
#include "GnashException.h" // for ActionException
34
// Forward declarations
36
as_value id3info_ctor(const fn_call& fn);
37
void attachID3InfoInterface(as_object& o);
38
void attachID3InfoStaticInterface(as_object& o);
39
as_object* getID3InfoInterface();
43
class ID3Info_as : public as_object
50
as_object(getID3InfoInterface())
54
// extern (used by Global.cpp)
56
id3info_class_init(as_object& where, const ObjectURI& uri)
58
registerBuiltinClass(where, id3info_ctor, attachID3InfoInterface,
59
attachID3InfoStaticInterface, uri);
65
attachID3InfoInterface(as_object& /*o*/)
70
attachID3InfoStaticInterface(as_object& /*o*/)
78
static boost::intrusive_ptr<as_object> o;
81
attachID3InfoInterface(*o);
87
id3info_ctor(const fn_call& /*fn*/)
89
boost::intrusive_ptr<as_object> obj = new ID3Info_as;
91
return as_value(obj.get()); // will keep alive
94
} // anonymous namespace
99
// indent-tabs-mode: t