1
/* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
3
* PrimeBase Media Stream for MySQL
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 2 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
23
* PBMS daemon plugin interface.
28
#include <drizzled/common.h>
29
#include <drizzled/plugin.h>
30
#include <drizzled/session.h>
31
#include <boost/program_options.hpp>
32
#include <drizzled/module/option_map.h>
33
using namespace drizzled;
34
using namespace drizzled::plugin;
35
namespace po= boost::program_options;
37
#include "cslib/CSConfig.h"
39
#include "cslib/CSConfig.h"
40
#include "mysql_priv.h"
41
#include <mysql/plugin.h>
53
/////////////////////////
55
/////////////////////////
57
#include "events_ms.h"
58
static PBMSEvents *pbms_events= NULL;
60
extern int pbms_init_func(module::Context ®istry);
62
static void init_options(module::option_context &context)
64
PBMSParameters::initOptions(context);
67
static int my_init(module::Context &context)
71
PBMSParameters::startUp(context);
72
rtc = pbms_init_func(context);
74
pbms_events = new PBMSEvents();
75
context.add(pbms_events);
81
DRIZZLE_DECLARE_PLUGIN
86
"Barry Leslie, PrimeBase Technologies GmbH",
87
"The Media Stream daemon for Drizzle",
89
my_init, /* Plugin Init */
91
init_options /* config options */
93
DRIZZLE_DECLARE_PLUGIN_END;
97
extern int pbms_init_func(void *p);
98
extern int pbms_done_func(void *);
99
extern struct st_mysql_sys_var* pbms_system_variables[];
101
struct st_mysql_storage_engine pbms_engine_handler = {
102
MYSQL_HANDLERTON_INTERFACE_VERSION
105
mysql_declare_plugin(pbms)
107
MYSQL_STORAGE_ENGINE_PLUGIN,
108
&pbms_engine_handler,
110
"Barry Leslie, PrimeBase Technologies GmbH",
111
"The Media Stream daemon for MySQL",
113
pbms_init_func, /* Plugin Init */
114
pbms_done_func, /* Plugin Deinit */
116
NULL, /* status variables */
117
#if MYSQL_VERSION_ID >= 50118
118
pbms_system_variables, /* depends */
122
NULL /* config options */
124
mysql_declare_plugin_end;
128
// vim:noexpandtab:sts=8:sw=8:tabstop=8:smarttab: