~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to modules/db.checks/register_plugin.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  MySQLWorkbench
 
3
 *
 
4
 *  Created by Max Yehorov. April 2009.
 
5
 *  Copyright 2009 Sun Microsystems Inc. All rights reserved.
 
6
 *
 
7
 */
 
8
 
 
9
#include "stdafx.h"
 
10
 
 
11
#include "grtpp.h"
 
12
#include "interfaces/plugin.h"
 
13
 
 
14
#include "grts/structs.workbench.model.h"
 
15
 
 
16
 
 
17
#define MODULE_VERSION "1.0.0"
 
18
 
 
19
#include "wb_config.h"                                                                                                                 
 
20
 
 
21
static grt::ListRef<app_Plugin> get_mysql_plugins_info(grt::GRT *grt);
 
22
 
 
23
 
 
24
class WbRTValidatorsModuleImpl : public grt::ModuleImplBase
 
25
{
 
26
public:
 
27
  WbRTValidatorsModuleImpl(grt::CPPModuleLoader *ldr)
 
28
  : grt::ModuleImplBase(ldr)
 
29
  {}
 
30
 
 
31
  DEFINE_INIT_MODULE(MODULE_VERSION, "MySQL AB", grt::ModuleImplBase,
 
32
    DECLARE_MODULE_FUNCTION(WbRTValidatorsModuleImpl::getPluginInfo), NULL);
 
33
 
 
34
  virtual grt::ListRef<app_Plugin> getPluginInfo()
 
35
  {
 
36
    return get_mysql_plugins_info(get_grt());
 
37
  }
 
38
};
 
39
 
 
40
static grt::ListRef<app_Plugin> get_mysql_plugins_info(grt::GRT *grt)
 
41
{
 
42
  grt::ListRef<app_Plugin> validators(grt);
 
43
  return validators;
 
44
}
 
45
 
 
46
 
 
47
GRT_MODULE_ENTRY_POINT(WbRTValidatorsModuleImpl);