summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/module.cc4
-rw-r--r--ppapi/cpp/module.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ppapi/cpp/module.cc b/ppapi/cpp/module.cc
index d6adddc..220609d 100644
--- a/ppapi/cpp/module.cc
+++ b/ppapi/cpp/module.cc
@@ -144,6 +144,10 @@ Module::~Module() {
core_ = NULL;
}
+bool Module::Init() {
+ return true;
+}
+
const void* Module::GetPluginInterface(const char* interface_name) {
if (strcmp(interface_name, PPP_INSTANCE_INTERFACE) == 0)
return &instance_interface;
diff --git a/ppapi/cpp/module.h b/ppapi/cpp/module.h
index 308d3ce..f3e8af7 100644
--- a/ppapi/cpp/module.h
+++ b/ppapi/cpp/module.h
@@ -35,7 +35,7 @@ class Module {
// This function will be automatically called after the object is created.
// This is where you can put functions that rely on other parts of the API,
// now that the module has been created.
- virtual bool Init() { return true; }
+ virtual bool Init();
// Returns the internal module handle.
PP_Module pp_module() const { return pp_module_; }