1324.2.3
by Monty Taylor
Remove plugin deinit. |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3 |
*
|
|
4 |
* Daemon Plugin Interface
|
|
5 |
*
|
|
6 |
* Copyright (C) 2010 Monty Taylor
|
|
7 |
*
|
|
8 |
* This program is free software; you can redistribute it and/or modify
|
|
9 |
* it under the terms of the GNU General Public License as published by
|
|
10 |
* the Free Software Foundation; version 2 of the License.
|
|
11 |
*
|
|
12 |
* This program is distributed in the hope that it will be useful,
|
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 |
* GNU General Public License for more details.
|
|
16 |
*
|
|
17 |
* You should have received a copy of the GNU General Public License
|
|
18 |
* along with this program; if not, write to the Free Software
|
|
19 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
20 |
*/
|
|
21 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
22 |
#pragma once
|
1324.2.3
by Monty Taylor
Remove plugin deinit. |
23 |
|
2173.2.1
by Monty Taylor
Fixes incorrect usage of include |
24 |
#include <drizzled/plugin/plugin.h> |
1324.2.3
by Monty Taylor
Remove plugin deinit. |
25 |
|
2173.2.1
by Monty Taylor
Fixes incorrect usage of include |
26 |
#include <drizzled/visibility.h> |
2119.4.1
by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by |
27 |
|
2252.1.22
by Olaf van der Spek
Common fwd |
28 |
namespace drizzled { |
29 |
namespace plugin { |
|
1324.2.3
by Monty Taylor
Remove plugin deinit. |
30 |
|
2119.4.1
by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by |
31 |
class DRIZZLED_API Daemon : public Plugin |
1324.2.3
by Monty Taylor
Remove plugin deinit. |
32 |
{
|
33 |
public: |
|
34 |
explicit Daemon(std::string name_arg) |
|
35 |
: Plugin(name_arg, "Daemon") |
|
36 |
{}
|
|
37 |
||
38 |
/**
|
|
39 |
* Standard plugin system registration hooks
|
|
40 |
*/
|
|
41 |
static bool addPlugin(Daemon *) |
|
42 |
{
|
|
43 |
return false; |
|
44 |
}
|
|
45 |
static void removePlugin(Daemon *) |
|
46 |
{}
|
|
47 |
||
48 |
};
|
|
49 |
||
50 |
} /* namespace plugin */ |
|
51 |
} /* namespace drizzled */ |
|
52 |