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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
* PBMS daemon plugin interface.
28
#include <drizzled/common.h>
29
#include <drizzled/plugin.h>
30
#include <drizzled/session.h>
31
using namespace drizzled;
32
using namespace drizzled::plugin;
34
#include "cslib/CSConfig.h"
36
#include "cslib/CSConfig.h"
37
#include "mysql_priv.h"
38
#include <mysql/plugin.h>
50
/////////////////////////
52
/////////////////////////
54
#include "events_ms.h"
55
static PBMSEvents *pbms_events= NULL;
58
extern int pbms_init_func(module::Context ®istry);
59
extern struct drizzled::drizzle_sys_var* pbms_system_variables[];
61
static int my_init(module::Context ®istry)
65
PBMSParameters::startUp();
66
rtc = pbms_init_func(registry);
68
pbms_events = new PBMSEvents();
69
registry.add(pbms_events);
75
DRIZZLE_DECLARE_PLUGIN
80
"Barry Leslie, PrimeBase Technologies GmbH",
81
"The Media Stream daemon for Drizzle",
83
my_init, /* Plugin Init */
84
pbms_system_variables, /* system variables */
85
NULL /* config options */
87
DRIZZLE_DECLARE_PLUGIN_END;
91
extern int pbms_init_func(void *p);
92
extern int pbms_done_func(void *);
93
extern struct st_mysql_sys_var* pbms_system_variables[];
95
struct st_mysql_storage_engine pbms_engine_handler = {
96
MYSQL_HANDLERTON_INTERFACE_VERSION
99
mysql_declare_plugin(pbms)
101
MYSQL_STORAGE_ENGINE_PLUGIN,
102
&pbms_engine_handler,
104
"Barry Leslie, PrimeBase Technologies GmbH",
105
"The Media Stream daemon for MySQL",
107
pbms_init_func, /* Plugin Init */
108
pbms_done_func, /* Plugin Deinit */
110
NULL, /* status variables */
111
#if MYSQL_VERSION_ID >= 50118
112
pbms_system_variables, /* system variables */
116
NULL /* config options */
118
mysql_declare_plugin_end;